:root {
    /* Color Palette - Modern Medical */
    --primary: #008080;
    /* Teal/cyan base - Trustworthy medical color */
    --primary-dark: #006666;
    --primary-light: #e0f2f1;
    --secondary: #264653;
    /* Dark slate - Professional contrast */
    --accent: #2a9d8f;
    /* Vibrant teal for accents/buttons */
    --text-main: #2c3e50;
    --text-light: #607d8b;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-accent: #e0f7fa;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --transition: all 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 20px 0;
    border-radius: 2px;
}

.section-header {
    margin-bottom: 60px;
    text-align: left;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    /* Adjust based on logo aspect ratio */
}

.nav-menu ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--secondary);
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu .btn-nav {
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu .btn-nav:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-agenda {
    background-color: var(--secondary) !important;
}

.btn-agenda:hover {
    background-color: var(--primary) !important;
    transform: translateY(-2px);
}

.btn-asistente {
    background-color: #25d366 !important;
}

.btn-asistente:hover {
    background-color: #128c7e !important;
    transform: translateY(-2px);
}

.desktop-only {
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 100px);
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2f1 100%);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Columna Izquierda: Galería */
.hero-gallery {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 30px;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.gallery-track-vertical {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

.gallery-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-col img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

/* Animation Tracks */
.p-top {
    animation: scroll-up 25s linear infinite;
}

.p-bottom {
    animation: scroll-down 25s linear infinite;
}

@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@keyframes scroll-down {
    0% {
        transform: translateY(-50%);
    }

    100% {
        transform: translateY(0);
    }
}

/* Columna Derecha: Contenido */
.hero-content {
    text-align: left;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    color: var(--secondary);
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: var(--text-light);
    max-width: 600px;
    margin-left: 0;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 45px;
    justify-content: flex-start;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--secondary);
    font-size: 1.1rem;
}

.hero-benefits i {
    color: var(--primary);
    font-size: 1.3rem;
}

.hero-cta {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.hero-note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-light);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 20px;
}

.about-model {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--bg-accent);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
}

.model-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary-dark);
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-category {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-category:hover {
    box-shadow: var(--shadow-lg);
}

.cat-header {
    background-color: var(--secondary);
    color: white;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cat-header i {
    font-size: 1.8rem;
    color: var(--accent);
}

.cat-header h3 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
}

.service-list {
    padding: 25px;
}

.service-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list .price {
    font-weight: 700;
    color: var(--primary);
}

/* Packages */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.package-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    padding: 30px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.package-card.popular {
    border-color: var(--accent);
    background-color: #fafdff;
}

.package-card .badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pkg-header {
    margin-bottom: 20px;
    text-align: center;
}

.pkg-header h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.pkg-subtitle {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
}

.pkg-body {
    flex-grow: 1;
}

.pkg-quote {
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-light);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.pkg-list {
    margin: 20px 0;
}

.pkg-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.pkg-list li:last-child {
    border-bottom: none;
}

.item-name {
    color: var(--text-main);
    flex: 1;
    padding-right: 10px;
}

.item-price {
    font-weight: 700;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.pkg-list li.optional .item-price {
    background-color: #f0f0f0;
    color: #888;
}

.pkg-list li.included .item-price {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.pkg-list li.discount .item-price {
    background-color: #fff3e0;
    color: #ef6c00;
}

.pkg-bonus {
    margin-top: 15px;
    padding: 12px;
    background-color: #f0fdf4;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #166534;
    border: 1px solid #dcfce7;
}

.pkg-bonus i {
    color: #22c55e;
    margin-right: 5px;
}

.pkg-footer {
    margin-top: 25px;
    text-align: center;
}

/* Steps */
.steps-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.step-item {
    text-align: center;
    padding: 20px;
    position: relative;
}

.step-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: var(--transition);
}

.step-item:hover .step-icon {
    color: var(--accent);
    transform: scale(1.1) rotate(5deg);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 0.9rem;
}

/* Testimonials */
.testimonials-slider-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.testimonial-card p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--secondary);
}

.testimonial-card .author {
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary);
    text-align: right;
}

.marketing-tip {
    text-align: center;
    margin-top: 50px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 1.2rem;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* Contact */
.contact-section {
    background-color: var(--primary-dark);
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    color: white;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-details {
    margin: 30px 0;
}

.c-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.c-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 5px;
}

.c-item h4 {
    color: white;
    margin-bottom: 5px;
}

.map-link {
    color: var(--accent);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent);
}

.contact-map-frame {
    height: 450px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-map-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Footer */
footer {
    background-color: #1a252f;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-logo h3 {
    color: white;
    margin: 0;
}

.footer-legal {
    margin-top: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 5px;
}

/* Modern Floating Actions */
.mobile-float-group {
    position: fixed;
    bottom: 30px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
    display: none;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.asistente-float {
    background-color: rgba(37, 211, 102, 0.9);
}

.agenda-float {
    background-color: rgba(0, 128, 128, 0.9);
    /* Primary color with transparency */
}

.float-btn i {
    font-size: 1.2rem;
}

.float-btn:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.mobile-float-group .float-btn {
    animation: float 4s ease-in-out infinite;
}

.mobile-float-group .float-btn:nth-child(2) {
    animation-delay: 0.5s;
}

/* Carousel Styles */
.about-carousel-container {
    margin-top: 30px;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.about-carousel {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background-color: #f0f0f0;
}

.carousel-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* Animations */
.fade-in,
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in {
    transform: translateY(20px);
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Base delays for sequential animations */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 900px) {

    .hero {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 40px;
        min-height: calc(100vh - var(--header-height));
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-gallery {
        height: 250px;
        /* Reduced to fit first viewport better */
        order: 1;
        /* Images first on mobile */
        margin-bottom: 10px;
    }

    .hero-content {
        text-align: center;
        order: 2;
        /* Text after images */
    }

    .hero-content h1 {
        font-size: 1.8rem;
        /* Scaled down for mobile */
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin: 0 auto 20px;
        padding: 0 10px;
    }

    .hero-benefits {
        align-items: center;
        margin-bottom: 30px;
        font-size: 0.95rem;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: white;
        flex-direction: column;
        align-items: center;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        padding-top: 40px;
        gap: 25px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-float-group {
        display: flex;
        bottom: 15px;
        right: 15px;
        scale: 0.9;
        /* Slightly smaller for mobile screens */
    }

    /* Better Model Steps on Mobile */
    .model-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .model-steps .arrow {
        transform: rotate(90deg);
        margin-left: 10px;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2rem;
    }
}