/* Malcan Physical Therapy - Design System */

:root {
    /* Color Palette */
    --primary-green: #2EBFA3;
    --deep-green: #0F766E;
    --off-white: #F6F7F7;
    --white: #FFFFFF;
    --charcoal: #1F2937;
    --soft-gray: #E5E7EB;

    /* Text Colors */
    --text-primary: var(--charcoal);
    --text-secondary: #4B5563;
    --text-light: #9CA3AF;
    --text-white: var(--white);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --section-padding: 80px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 600px) {
  :root {
    --section-padding: 56px;
  }
}

/* Impact Section Styles */
.bg-gradient-brand {
    background: linear-gradient(135deg, #2EBFA3 0%, #0F766E 100%);
}

.text-white {
    color: #FFFFFF;
}

.opacity-90 {
    opacity: 0.9;
}

.stats-grid-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.stat-box-clean {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-desc {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Stats Grid (Original - Kept for fallback if needed, or remove later) */
.stats-grid {
    display: flex;
    gap: 24px;
    margin: 32px 0;
}

.stat-card {
    background-color: var(--background-alt);
    /* Light gray/green tint */
    padding: 24px;
    border-radius: 16px;
    flex: 1;
    min-width: 140px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-green);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(46, 191, 163, 0.1);
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    color: var(--deep-green);
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--primary-green);
}

/* Base Reset & Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--deep-green);
}

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

/* Home Page Specific Styles Refined */
.section-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #E0F2F1;
    /* Slightly darker mint */
    color: #0d5f58;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 100px;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title-large {
    font-size: 3.5rem;
    /* Larger title */
    font-weight: 800;
    line-height: 1.1;
    color: var(--deep-green);
    margin-bottom: 24px;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.text-primary-green {
    color: #0F766E;
}

/* Ensure distinct teal */

.section-text-large {
    font-size: 1.125rem;
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 95%;
}

.stats-row-large {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card-large {
    flex: 1;
    background-color: #F0FDF9;
    /* Very light mint/teal */
    border-radius: 24px;
    padding: 32px;
    min-width: 180px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    border: 1px solid #CCFBF1;
    /* Subtle border */
}

@media (max-width: 600px) {
  .stats-row-large {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    margin-bottom: 24px;
  }
  .stat-card-large {
    padding: 32px;
    min-width: 0; /* permitir que se ajusten sin desbordar */
  }
}

.stat-number-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0F766E;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-label-large {
    font-size: 1rem;
    color: #4B5563;
    font-weight: 600;
}

.btn-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0F766E;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.2s;
}

.btn-text-link:hover {
    color: var(--primary-green);
    transform: translateX(4px);
}

/* Image Styling with Blob - Refined Shape */
.split-image {
    position: relative;
    z-index: 1;
    /* Establish stacking context */
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 560px;
    margin-left: auto;
}

.blob-bg-shape {
    position: absolute;
    --blob-offset-x: 20px;
    --blob-offset-y: 20px;
    --blob-radius-lg: 80px;
    --blob-radius-sm: 20px;
    top: var(--blob-offset-y);
    left: var(--blob-offset-x);
    width: calc(100% - var(--blob-offset-x));
    height: calc(100% - var(--blob-offset-y));
    background: linear-gradient(135deg, var(--deep-green) 0%, #0d5f58 60%, var(--primary-green) 100%);
    border-top-left-radius: var(--blob-radius-lg);
    border-bottom-right-radius: var(--blob-radius-lg);
    border-top-right-radius: var(--blob-radius-sm);
    border-bottom-left-radius: var(--blob-radius-sm);
    z-index: -1;
    box-shadow: 0 30px 50px -20px rgba(15, 118, 110, 0.45);
}

.image-wrapper-custom-shape {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    min-height: 420px;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    overflow: hidden;
    background-color: white;
    padding: 0;
    /* No white border in target image, just the shape */
    z-index: 10;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.25);
}

.image-wrapper-custom-shape img {
    /* Image matches wrapper radius */
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    object-fit: cover;
    object-position: 50% 45%;
    width: 100%;
    height: 100%;
    display: block;
    filter: contrast(105%) saturate(110%);
}

@media (max-width: 900px) {
    .split-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .split-layout.reverse-mobile {
        flex-direction: column-reverse;
    }

    .split-content {
        padding-right: 0 !important;
    }

    .split-image {
        max-width: 100%;
        margin-left: 0;
        margin-top: 24px;
        width: 100%;
        justify-content: center;
    }

    .image-wrapper-custom-shape {
        aspect-ratio: 4 / 3;
        min-height: 320px;
        width: 100%;
    }

    .blob-bg-shape {
        --blob-offset-x: 12px;
        --blob-offset-y: 12px;
    }
}


/* Stats Grid used in About - kept for legacy/about page */
.stats-grid-home {
    display: flex;
    gap: 24px;
    margin: 32px 0;
}

/* Home Page Specific Styles */
.section-tag-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #F0FDFA;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.tag-icon {
    font-size: 1.1em;
}

.stat-card-home {
    background-color: #E2E8F0;
    /* From mockup */
    background-color: rgba(235, 245, 243, 1);
    padding: 24px 32px;
    border-radius: 16px;
    min-width: 160px;
}

.stat-number-home {
    font-size: 2rem;
    font-weight: 700;
    color: #0F766E;
    margin-bottom: 4px;
}

.stat-label-home {
    font-size: 0.9rem;
    color: #4B5563;
    font-weight: 500;
}

.rounded-3xl {
    border-radius: 32px;
}

.decorative-blob {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--primary-green);
    border-radius: 32px;
    z-index: 1;
    transform: rotate(3deg);
}

/* Centered Testimonial (sobre gradiente) */
.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.12);
}

.testimonial-card-centered {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 32px 32px;
    border-radius: 24px;
    text-align: left;
    background: radial-gradient(circle at top left,
                rgba(255, 255, 255, 0.22),
                rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(15, 118, 110, 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: var(--text-white);
}

/* Comilla decorativa */
.testimonial-card-centered::before {
    content: "“";
    position: absolute;
    top: 18px;
    left: 24px;
    font-size: 3.5rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

/* Estrellas (ya usas .stars, aquí las afinamos para este bloque) */
.stars {
    color: #FBBF24;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

/* Centrar las estrellas dentro de testimonios centrados */
.testimonial-card-centered .stars {
    text-align: center;
}

/* Texto de la cita */
.testimonial-text-large {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 8px;
}

/* Autor */
.testimonial-author {
    font-weight: 700;
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-top: 24px;
}

/* Dots del slider centrado */
 

/* Responsive testimonial */
@media (max-width: 768px) {
    .testimonial-card-centered {
        padding: 28px 20px 24px;
    }

    .testimonial-text-large {
        font-size: 1rem;
    }
}


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

html, body {
  width: 100%;
  overflow-x: hidden;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    background: none;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

@media (max-width: 600px) {
  .home-services {
    padding-top: 40px;
  }
}
.text-center {
    text-align: center;
}

 

.grid {
    display: grid;
}

.hidden {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--deep-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-primary {
    border: 2px solid transparent;
}
.btn-primary:hover {
    border-color: var(--primary-green);
}

.btn-outline {
    border: 2px solid var(--deep-green);
    color: var(--deep-green);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    padding: 24px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    will-change: background-color;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Scrolled state */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px 0;
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .logo {
    color: var(--deep-green);
}

.navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

.navbar.scrolled .mobile-menu-btn .bar {
    background-color: var(--deep-green);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
    z-index: 1002;
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.logo-img-dark {
    display: none;
}

.navbar.scrolled .logo-img-light {
    display: none;
}

.navbar.scrolled .logo-img-dark {
    display: block;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
}

/* Scrolled Logo State */
.navbar.scrolled .logo-icon {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.navbar.scrolled .logo-title {
    color: var(--deep-green);
}

.navbar.scrolled .logo-subtitle {
    color: var(--text-light);
}

/* Nav Links - Centered */
.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-base);
    padding: 8px 16px;
    border-radius: 999px;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link.active {
    background-color: transparent;
    color: var(--primary-green);
    font-weight: 600;
    box-shadow: none;
}

.navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

.navbar.scrolled .nav-link.active {
    color: var(--primary-green);
}
.navbar.scrolled .nav-link:hover {
    color: var(--primary-green);
}

/* Services Dropdown */
.dropdown {
    position: relative;
}


.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 8px;
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    pointer-events: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-link {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: background-color var(--transition-base), color var(--transition-base), transform var(--transition-fast);
}

.dropdown-link:hover {
    color: var(--deep-green);
    background-color: var(--off-white);
    transform: translateX(2px);
}

.dropdown-link:focus {
    outline: 3px solid rgba(46, 191, 163, 0.35);
    outline-offset: 2px;
}

.dropdown > .nav-link::after {
    content: "▾";
    display: inline-block;
    margin-left: 6px;
    transition: transform var(--transition-base);
}

.dropdown.open > .nav-link::after {
    transform: rotate(180deg);
}

/* Nav Actions (Right Button) */
.nav-actions {
    display: flex;
    align-items: center;
}

.mobile-only {
    display: none;
}


.hide-mobile {
    display: inline-flex;
    align-items: center;
}
@media (max-width: 1024px) {
    .hide-mobile,
    a.btn-text-link.hide-mobile {
        display: none !important;
    }
}
.w-full {
    width: 100%;
}

.block {
    display: block;
}

.border-gray-100 {
    border-color: #F3F4F6;
}

.text-gray-600 {
    color: #4B5563;
}

.font-bold {
    font-weight: 700;
}

.text-deep-green {
    color: var(--deep-green);
}

.flex {
    display: flex;
}

.items-start {
    align-items: flex-start;
}

.icon-box-soft-green {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(46, 191, 163, 0.1);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1002;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition-base);
}

@media (max-width: 900px) {
    .nav-actions {
        display: none;
        /* Hide desktop button */
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        /* Slide-in panel */
        width: 85vw;
        max-width: 420px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        padding-bottom: 200px;
        gap: 20px;
        transition: transform var(--transition-smooth);
        z-index: 1005;
        overflow-x: hidden;
        overflow-y: auto;
        border-right: 1px solid rgba(17, 24, 39, 0.06);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.10);
        will-change: transform;
    }

    .nav-links.active {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        color: var(--deep-green);
        /* Dark text on mobile menu */
        font-size: 1.2rem;
        font-weight: 600;
        padding: 10px 6px;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .nav-link.active {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding-bottom: 6px;
        margin-bottom: 2px;
        color: var(--deep-green);
    }
    .nav-link.active::after {
        content: "";
        display: block;
        width: 28px;
        height: 2px;
        background: var(--deep-green);
        border-radius: 999px;
        margin-top: 6px;
    }
    .nav-link:focus,
    .nav-link:focus-visible,
    .nav-link:active {
        outline: none;
        border-bottom: 2px solid var(--primary-green);
    }

    /* Mobile: dropdown expands inline, matching existing menu style */
    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0 0 0 8px;
        min-width: auto;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: none;
        visibility: hidden;
        pointer-events: none;
        transition: max-height var(--transition-smooth), opacity var(--transition-smooth), visibility var(--transition-smooth);
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .dropdown.open .dropdown-menu {
        opacity: 1;
        max-height: 600px;
        visibility: visible;
        pointer-events: auto;
        padding-top: 4px;
    }

    /* Asegurar enfoque visible en móvil */
    .dropdown-link:focus {
        outline: 3px solid rgba(46, 191, 163, 0.35);
        outline-offset: 2px;
    }

    .dropdown-link {
        padding: 12px 0;
        color: var(--deep-green);
        font-size: 1.125rem;
        border-radius: 0;
        padding-left: 8px;
        min-height: 44px;
        align-items: center;
        display: inline-flex;
    }
    .dropdown-link.active {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding-bottom: 6px;
    }
    .dropdown-link.active::after {
        content: "";
        display: block;
        width: 24px;
        height: 2px;
        background: rgba(46, 191, 163, 0.6);
        border-radius: 999px;
        margin-top: 6px;
    }
    .dropdown-link:focus,
    .dropdown-link:focus-visible,
    .dropdown-link:active {
        outline: none;
        border-bottom: 2px solid rgba(46, 191, 163, 0.8);
    }

    .mobile-only {
        display: none;
    }

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

    /* Hamburger Animation */
    .mobile-menu-btn.active .bar {
        background-color: var(--deep-green);
        /* Dark bars when open */
    }

    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .about-highlight-section .about-highlight-cta-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 24px auto 0;
        text-align: center;
    }

    .about-highlight-section .about-highlight-cta-mobile svg {
        margin-left: 6px;
    }

}

/* Footer Styles */
.footer-cta {
    padding: 100px 0;
}

@media (max-width: 600px) {
  .footer-cta {
    padding: 64px 0;
  }
}
.bg-deep-green {
    background-color: var(--deep-green);
}

.bg-darker-green {
    background-color: #0d5f58;
    /* Slightly darker than deep green */
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
    z-index: 1004;
}
.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 32px;
    border-top: 1px solid #E5E7EB;
    padding-top: 24px;
}
.mobile-cta-group .btn {
    width: 100%;
    box-shadow: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
}
@media (max-width: 900px) {
  .mobile-cta-group .btn.btn-lg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
  }
  .mobile-cta-group .btn-primary {
    background-color: var(--deep-green);
    color: #ffffff;
    border: none;
  }
  .mobile-cta-group .btn-outline {
    border: 1px solid #D1D5DB;
    color: var(--deep-green);
    background: transparent;
  }
}
.text-primary-light {
    color: #5EEAD4;
}

.footer-heading {
    font-size: 1.125rem;
    margin-bottom: 24px;
    font-weight: 600;
    color: var(--white);
}

.footer-links li,
.footer-contact-list li,
.footer-hours-list li {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}
.footer-contact-list a,
.footer-contact-list span {
    line-height: 2;
    margin-top: 2px;
    display: inline-block;
}

.footer-hours-note {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-hours-note.btn {
    cursor: pointer;
}

@media (max-width: 600px) {
  .footer-hours-note {
    font-size: 0.9rem;
  }
}
/* Utilities for colors */
.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-opacity-80 {
    color: rgba(255, 255, 255, 0.8);
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-70 {
    opacity: 0.7;
}

.leading-relaxed {
    line-height: 1.625;
}

.max-w-xs {
    max-width: 20rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.pt-16 {
    padding-top: 4rem;
}

.pb-8 {
    padding-bottom: 2rem;
}

.mt-16 {
    margin-top: 4rem;
}

.pt-8 {
    padding-top: 2rem;
}

.justify-between {
    justify-content: space-between;
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--deep-green) 0%, #1F2937 100%);
    color: var(--white);
    padding: 64px 0 32px;
    margin-top: auto;
}

.footer p {
    line-height: 1.8;
    margin-bottom: 12px;
}

/* Fix footer grid override */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 300px;
}

 

.footer-links {
    list-style: none;
}

 

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-base);
}

 

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Utilities */
.text-highlight {
    color: var(--primary-green);
    position: relative;
    display: inline-block;
}

.btn-icon {
    margin-right: 8px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    /* Full viewport height */
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    color: var(--white);
    text-align: center;
    background-color: var(--deep-green);
    /* Fallback for text contrast */
}

/* Inner Page Hero Variant */
.hero-inner {
    min-height: 60vh;
    min-height: 500px;
    background: linear-gradient(135deg, #0F766E 0%, #064E3B 50%, #111827 100%);
}

/* Hide background image on inner pages if using gradient */
.hero-inner .hero-bg {
    display: none;
}

.hero-inner h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.hero-inner p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Background Image & Overlay */
.hero {
    position: relative;
}
.hero:not(.hero-inner) {
    min-height: 100vh;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Gradient from reference */
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.9) 0%, rgba(31, 41, 55, 0.7) 50%, rgba(15, 118, 110, 0.9) 100%);
    z-index: 1;
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 800ms ease;
    pointer-events: none;
    will-change: opacity;
}
.hero-slide.active {
    opacity: 1;
}
.scroll-indicator {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    color: #ffffff;
    opacity: 0.85;
    backdrop-filter: blur(6px);
    transition: opacity .2s ease;
    z-index: 12;
}
.scroll-indicator:hover {
    opacity: 1;
}
.scroll-indicator svg {
    width: 20px;
    height: 20px;
    animation: scrollPulse 1.6s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.hero .container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    padding: 120px 24px 80px;
    /* Account for fixed header */
}

@media (max-width: 600px) {
  .hero .container {
    padding: calc(var(--header-height) + 24px) 16px 48px;
  }
  .hero p {
    margin-bottom: 24px;
  }
  .hero-badge {
    margin-bottom: 24px;
  }
}
/* Mobile scroll stability */
@media (max-width: 900px) {
  /* Prevent body scroll lock via class */
  body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }
  /* iOS backdrop-filter fix on navbar */
  .navbar {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .navbar.scrolled {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  /* Disable smooth scroll for mobile */
  html {
    scroll-behavior: auto !important;
  }
  .nav-links,
  .dropdown-menu,
  .testimonials-slider {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto !important;
  }
  /* Safer viewport height for hero on mobile */
  .hero:not(.hero-inner) {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
  }
  /* Prevent iframes capturing vertical scroll */
  iframe {
    touch-action: pan-x;
  }
}
/* Hero Content */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 999px;
    /* Pill shape */
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 32px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}
.hero:not(.hero-inner) .hero-badge {
    transform: translateY(-10px);
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    /* Responsive giant text */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: var(--white);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero h1 span {
    color: var(--primary-green);
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Updated Button Styles for Reference Match */
.btn {
    padding: 16px 40px;
    border-radius: 16px;
    /* Larger radius per reference */
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 20px -5px rgba(46, 191, 163, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    box-shadow: none;
}

.btn-lg {
    padding: 18px 48px;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    border: 2px solid var(--primary-green);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--deep-green);
    border-color: var(--white);
    transform: translateY(-4px);
}

.footer-cta .btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--white);
    box-shadow: none;
}

.footer-cta .btn-outline:hover {
    background-color: var(--white);
    color: var(--deep-green);
    border-color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.2);
}

.hero .btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: var(--white);
    box-shadow: none;
}

.hero .btn-outline:hover {
    background-color: var(--white);
    color: var(--deep-green);
    border-color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 16px;
        padding: 0;
    }

    .btn {
        width: 100%;
    }
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

@media (max-width: 600px) {
  .services-grid {
    gap: 20px;
    margin-top: 32px;
  }
  .service-card {
    padding: 24px 20px;
  }
}
.service-card {
    background-color: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(46, 191, 163, 0.1);
    border-radius: 16px;
    /* Rounded square */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-green);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--deep-green);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-link {
    margin-top: auto;
    color: var(--primary-green);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    gap: 12px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}
.home-services .section-header p {
    text-align: center;
}

/* Testimonials */
.testimonials-section {
    background-color: var(--white);
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 32px 24px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 400px;
    scroll-snap-align: center;
    background-color: var(--off-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.testimonial-quote {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonials-slider .testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}


.author-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.author-info h4 {
    color: var(--deep-green);
    font-size: 1rem;
    margin-bottom: 4px;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-light);
}

.stars {
    color: #FBBF24;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 300px;
        padding: 24px;
    }
}

/* Insurance Section */
.insurance-section {
    background-color: var(--off-white);
    text-align: center;
}

.insurance-note {
    margin-top: 24px;
}

.insurance-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    opacity: 0.7;
}

.insurance-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Location Section */
.location-section {
    background-color: var(--white);
}

.location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.location-info h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.location-details {
    margin-top: 32px;
}

.location-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.location-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-green);
    flex-shrink: 0;
}

.location-text h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
    color: var(--deep-green);
}

.location-text p {
    color: var(--text-secondary);
}

.map-container {
    height: 400px;
    background-color: var(--soft-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E5E7EB;
    color: var(--text-light);
    font-weight: 500;
}

@media (max-width: 900px) {
    .location-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .map-container {
        height: 300px;
    }
}

/* About Page Styles */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.split-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.check-list {
    list-style: none;
    margin-top: 24px;
}

.check-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    color: var(--charcoal);
    font-weight: 500;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-green);
    font-weight: 700;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}
@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Team Styles */
.section-badge-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(46, 191, 163, 0.1);
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
    display: table;
    /* Trick to center inline-flex with auto margins */
}

.team-card {
    background-color: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
    border: none;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.team-image {
    height: 260px;
    background-color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}


.team-content {
    padding: 24px 20px;
}

.team-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1e293b;
}

.team-badge {
    display: inline-block;
    color: var(--primary-green);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.team-role-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f766e;
    margin-bottom: 12px;
}

.team-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
}

.contact-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form-group {
    margin-bottom: 24px;
}

.contact-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--charcoal);
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--soft-gray);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: #FAFAFA;
}
.contact-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--soft-gray);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: #FAFAFA;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(46, 191, 163, 0.1);
}

.contact-form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.info-card {
    background-color: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

.info-card h3 {
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
}
.contact-info .info-card {
    flex: 1;
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 100ms;
}

.stagger-2 {
    transition-delay: 200ms;
}

.stagger-3 {
    transition-delay: 300ms;
}


/* Override split-layout on home About section for mobile
   (ensure image stacks under text instead of grid side-by-side) */
@media (max-width: 900px) {
    .about-highlight-section .split-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .about-highlight-section .split-content {
        padding-right: 0 !important;
    }

    .about-highlight-section .split-image {
        max-width: 100%;
        margin-left: 0;
        margin-top: 24px;
        width: 100%;
        justify-content: center;
    }

    .about-highlight-section .image-wrapper-custom-shape {
        aspect-ratio: 4 / 3;
        min-height: 320px;
        width: 100%;
    }
}

 

/* Mejora contraste y jerarquía en sección de testimonios */
.testimonials-section-hero .section-badge-center {
    background-color: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.96);
}

.testimonials-heading {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    margin-bottom: 8px;
}

.section-subtitle-muted {
    max-width: 620px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Más espacio entre subtítulo y cuadro */
.testimonials-subtitle {
    margin-bottom: 40px;
}

/* ========================= */
/*   AUTO TESTIMONIAL SLIDER */
/* ========================= */

.testimonials-slider-auto {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    min-height: 360px;
}

/* Apilar todos los slides en el mismo espacio */
.testimonials-slider-auto .testimonial-card-centered {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    margin: 0 auto;
}

/* Solo el slide activo es visible */
.testimonials-slider-auto .testimonial-card-centered.active {
    opacity: 1;
    transform: translateY(0);
}

/* Imagen de review dentro del slide centrado */
.testimonial-card-centered .review-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

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

.dot.active {
    width: 22px;
    background: #fff;
    border-radius: 999px;
}
.testimonial-card-centered::before {
    content: "“";
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 36px;
    color: rgba(255,255,255,0.15);
    pointer-events: none;
}

.insurance-marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.insurance-track {
    display: inline-flex;
    gap: 48px;
    width: max-content;
    will-change: transform;
    animation: scrollText 22s linear infinite;
}

.insurance-logo {
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0.85;
    transition: opacity .3s ease, transform .3s ease;
}

.insurance-logo:hover {
    opacity: 1;
    transform: scale(1.08);
}

@keyframes scrollText {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .insurance-track { gap: 32px; }
  .insurance-logo { font-size: 1.1rem; }
}

.footer-cta {
    text-align: center !important;
}

.footer-cta.section {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Story split layout */
.about-highlight-section .split-layout {
    display: flex;
    align-items: center;
    gap: 48px;
}

/* Que texto e imagen ocupen mitad y mitad en desktop */
.about-highlight-section .split-image,
.about-highlight-section .split-content {
    flex: 1;
}

/* Imagen con bordes redondos modernos */
.about-highlight-section .image-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.about-highlight-section .story-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Responsive: en móvil se apilan y reverse-mobile controla el orden */
@media (max-width: 768px) {
    .about-highlight-section .split-layout {
        flex-direction: column;
    }

    .about-highlight-section .split-layout.reverse-mobile {
        flex-direction: column-reverse;
    }

    .about-highlight-section .split-image,
    .about-highlight-section .split-content {
        width: 100%;
    }
}
/* ===== Appointments Section (Calendly) ===== */

.section-appointments {
  background: var(--white);
  padding: 32px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid #E5E7EB;
  box-shadow: var(--shadow-md);
}

.section-appointments .section-heading {
  text-align: center;
  font-size: clamp(2rem, 3vw, 2.3rem);
  font-weight: 600;
  color: #064e3b; /* similar al verde de tus títulos */
  margin-bottom: 6px;
}

.section-appointments .section-subtitle {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: 0.98rem;
  color: #6b7280;
}

.section-appointments .booking-card {
  max-width: 760px;
  margin: 0 auto;
  background-color: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  flex: 1;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.booking-grid .contact-form-group {
  margin-bottom: 0;
}

/* Espaciado extra para el botón de envío en la sección de citas */
.section-appointments #submit-btn {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .booking-grid {
    grid-template-columns: 1fr;
  }
}

/* Imagen circular y responsive en sección Clinic Story */
.clinic-story .split-layout {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-direction: row-reverse;
  transition: gap 0.3s ease;
}
.clinic-story .section-title {
  font-size: clamp(2.4rem, 5vw, 2.9rem);
  line-height: 1.2;
  margin-bottom: 16px;
}
.clinic-story {
  --story-max: 680px;
}
.clinic-story .split-content,
.clinic-story .split-image {
  flex: 1;
  max-width: none;
}
.clinic-story .split-image {
  margin: 0;
  transition: max-width 0.3s ease;
}
.clinic-story .image-wrapper {
  aspect-ratio: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.clinic-story .story-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* Responsive: apilar y colocar imagen debajo del texto */
@media (max-width: 768px) {
  .clinic-story .split-layout {
    flex-direction: column;
    gap: 24px;
  }
  .clinic-story .split-content,
  .clinic-story .split-image {
    width: 100%;
    max-width: var(--story-max);
    margin: 0 auto;
  }
  .clinic-story .split-image {
    margin-top: 24px;
  }
}
/* Clinic Photo Gallery Helpers */
.clinic-photo-card {
    padding: 0 !important;
}

.clinic-photo-placeholder {
    width: 100%;
    height: 260px;
    background-color: #E5E7EB;
    border-radius: var(--radius-md);
    object-fit: cover;
    display: block;
}
/* Service Card Mint Accent Variant (white card with subtle border/shadow) */
.service-card.tag-green {
    background-color: var(--white);
    border: 1px solid #E5E7EB;
    box-shadow: var(--shadow-md);
}
/* Compact variant for service cards */
.service-card.compact {
    padding: 28px 24px;
}
.service-card.compact .service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
}
.service-card.compact h3 {
    margin-bottom: 10px;
}
.service-card.compact p {
    margin-bottom: 12px;
}
.service-card.compact .btn-link {
    margin-top: 8px;
}
.service-card.compact .section-tag {
    padding: 6px 12px;
    margin-bottom: 8px;
}

.process-steps-wrapper {
  position: relative;
  margin-top: 48px;
}

/* Línea que conecta los íconos */
.process-steps-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 42px;
  height: 2px;
  background: rgba(46, 191, 163, 0.25);
  z-index: 0;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Cada paso */
.process-step {
  flex: 1 1 0;
  transition: var(--transition-base);
  background-color: var(--white);
  border: 1px solid #E5E7EB;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* Icono redondo con degradado */
.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background-color: rgba(46, 191, 163, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  transition: var(--transition-base);
}

/* Textos */
.step-number {
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-green);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--deep-green);
  margin-bottom: 8px;
}

.step-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Interacciones */
.process-step:hover .step-icon {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 900px) {
  .process-steps {
    flex-wrap: wrap;
    row-gap: 32px;
  }

  .process-step {
    flex: 1 1 45%;
    padding: 20px;
  }

  .process-steps-line {
    left: 12%;
    right: 12%;
  }
}

@media (max-width: 640px) {
  .process-step {
    flex: 1 1 100%;
  }

  .process-steps-line {
    display: none;
  }
}
/* ============================================
   SCROLL FIX - Agregar al final de style.css
   ============================================ */

html {
    scroll-behavior: smooth;
    overflow-y: scroll !important;
    overscroll-behavior-y: none;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto !important;
}

/* Clase para menú abierto */
body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* Hero optimizations */
.hero {
    will-change: unset;
}

.hero-slide {
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Navbar optimization */
.navbar {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.navbar.scrolled {
    /* Removido backdrop-filter para mejor performance */
    background-color: rgba(255, 255, 255, 0.98);
}

/* Mobile optimizations */
@media (max-width: 900px) {
    html {
        scroll-behavior: auto !important;
    }
    
    .hero:not(.hero-inner) {
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .nav-links {
        height: 100dvh;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        will-change: transform;
        backface-visibility: hidden;
    }
    
    iframe {
        touch-action: pan-x pan-y;
    }
}

/* Animaciones optimizadas */
.reveal {
    will-change: opacity, transform;
}

.reveal.active {
    will-change: auto;
}

/* Prevenir body fixed accidental */
@supports (position: sticky) {
    body:not(.menu-open) {
        position: relative !important;
        top: auto !important;
        width: auto !important;
    }
}

/* Touch optimization */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

a, button {
    -webkit-tap-highlight-color: rgba(46, 191, 163, 0.1);
}
