/* DM Sans â€” local */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('Assets/Fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('Assets/Fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Syne â€” local */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('Assets/Fonts/syne-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('Assets/Fonts/syne-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('Assets/Fonts/syne-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary: #53667d;          /* Brand Slate Blue */
    --primary-hover: #3d4e61;
    --primary-light: #bcc2d3;    /* Brand Light Gray-Blue */
    --accent: #bcc2d3;
    --bg-dark: #162030;          /* Brand Dark Navy */
    --bg-darker: #0c121b;        /* Brand Darker Shadow Navy */
    --text-main: #ffffff;
    --text-muted: #bcc2d3;
    --bg-main: #162030;
    --bg-white: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

@media (min-width: 1025px) {
    html, body {
        overflow-x: visible;
    }
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    min-height: 100vh;
    line-height: 1.5;
}

/* Header & Transparent Fixed Navigation */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 1rem 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transform: translate3d(0, 0, 0);
    will-change: background-color, border-color, box-shadow;
}

header.scrolled {
    background-color: rgba(12, 18, 27, 0.9); /* Slightly higher opacity for a cleaner look with 8px blur */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
    width: 100%;
    max-width: 1300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 65px;
    width: auto;
}

/* Force inline SVG logo to render white for transparent header */
.logo circle {
    stroke: #ffffff !important;
}
.logo path {
    fill: #ffffff !important;
}
.logo text {
    fill: #ffffff !important;
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-secondary-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-secondary-link:hover {
    color: #ffffff;
}

/* Glassmorphism Header Button */
.btn-glass-sm {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-glass-sm svg.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-glass-sm:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 35px rgba(255, 255, 255, 0.1);
}

/* Hamburger menu button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile full-screen menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 20, 38, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
}

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

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.mobile-menu-close:hover {
    color: #ffffff;
}

.mobile-menu-close svg {
    width: 28px;
    height: 28px;
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    width: 100%;
    max-width: 320px;
}

.mobile-nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: #ffffff;
}

.mobile-menu-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.mobile-phone-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.mobile-phone-link:hover {
    color: #ffffff;
}

/* Full Bleed Hero Section */
.hero-b {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    background-image: url('Assets/hero-bg.webp');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* Artistic Neon Lighting Overlay */
.hero-b::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle neon gradients (rose to blue/teal) to mimic reference photo styling */
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, rgba(30, 111, 253, 0.1) 50%, rgba(20, 184, 166, 0.12) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Dark Overlay for Text Readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.6) 55%, rgba(15, 23, 42, 0.95) 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-b-container {
    position: relative;
    z-index: 5;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 3rem 4rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: fadeInUp 0.8s ease-out;
}

/* Clean Rating Row with Doctoralia SVG Logo */
.hero-rating-clean {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.75rem;
}

.hero-rating-clean .stars {
    color: #f59e0b;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
}

.doctoralia-rating-logo {
    height: 20px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    filter: brightness(0) invert(1); /* Makes the SVG white to match the clean dark theme! */
    opacity: 0.9;
    margin-left: 0.25rem;
}

/* Bottom Content Grid (Title on left, subtitle/desc/button on right) */
.hero-b-bottom {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
    align-items: flex-end;
    width: 100%;
}

.hero-b-title {
    font-family: 'Syne', sans-serif;
    font-size: 5.6rem; /* Increased size for more cinematic emphasis */
    font-weight: 600; /* SemiBold */
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.hero-title-subtitle {
    font-family: 'Syne', sans-serif;
    font-size: 2.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.75rem;
    letter-spacing: -0.01em;
}


/* Each title line staggers in */
.hero-b-title span:nth-child(1) { animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.1s; }
.hero-b-title span:nth-child(2) { animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.17s; }
.hero-b-title span:nth-child(3) { animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.24s; }

.hero-b-right {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.18s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-b-desc {
    font-size: 1.15rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.25rem;
    max-width: 480px;
}

/* Capsule CTA Button */
.btn-fitflow {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    background-color: #ffffff;
    color: var(--bg-dark);
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.btn-fitflow:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    background-color: #f8fafc;
}

.btn-fitflow-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-fitflow:hover .btn-fitflow-circle {
    transform: scale(1.05);
    background-color: var(--primary-hover);
}

.btn-fitflow-circle svg {
    width: 18px;
    height: 18px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .hero-b-title {
        font-size: 4.6rem;
    }
    .hero-title-subtitle {
        font-size: 2.4rem;
    }
    .hero-b-bottom {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    header {
        padding: 1rem 2rem;
    }
    .hero-b-container {
        padding: 0 2rem 3rem 2rem;
    }
    .hero-b-bottom {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        align-items: flex-start;
    }
    .hero-b-title {
        font-size: 4rem;
    }
    .hero-title-subtitle {
        font-size: 2.1rem;
    }
    .hero-b-desc {
        max-width: 100%;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }
    nav {
        display: none;
    }
    .header-cta {
        display: none;
    }
    .hamburger-btn {
        display: flex;
    }
    .hero-b-container {
        padding: 0 1.5rem 2.5rem 1.5rem;
    }
    .hero-b-title {
        font-size: 3rem;
    }
    .hero-title-subtitle {
        font-size: 1.6rem;
        margin-top: 0.5rem;
    }
    .hero-rating-clean {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
        gap: 0.6rem;
    }
    .hero-rating-clean .stars {
        font-size: 1rem;
    }
    .doctoralia-rating-logo {
        height: 16px;
    }
    .btn-fitflow {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==========================================
   Section Two: About the Doctor (Sobre el Dr)
   ========================================== */

.about-dr-section {
    position: relative;
    background-color: #ffffff; /* Light theme background */
    padding: 10rem 2rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.about-dr-section .watermark-text {
    color: rgba(83, 102, 125, 0.03);
    -webkit-text-stroke: 1.5px rgba(83, 102, 125, 0.05);
}

.about-dr-section .section-label {
    color: var(--primary);
}

.about-dr-section .section-title {
    color: #162030;
}

.about-dr-section .text-gradient {
    background: linear-gradient(135deg, #162030 0%, #53667d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-dr-section .section-desc {
    color: #53667d;
}

/* Light styling overrides for left/right credentials cards */
.about-dr-section .card-left,
.about-dr-section .card-right {
    background: #ffffff;
    border: 1px solid rgba(83, 102, 125, 0.1);
    box-shadow: 0 15px 35px rgba(22, 32, 48, 0.04);
}

.about-dr-section .card-left:hover,
.about-dr-section .card-right:hover {
    border-color: rgba(83, 102, 125, 0.22);
    box-shadow: 0 25px 50px rgba(22, 32, 48, 0.08);
}

.about-dr-section .card-left .card-title,
.about-dr-section .card-right .card-title {
    color: #162030;
}

.about-dr-section .card-left .card-badge,
.about-dr-section .card-right .card-badge {
    color: var(--primary);
    opacity: 0.9;
}

.about-dr-section .card-left .credential-icon,
.about-dr-section .card-right .credential-icon {
    background: rgba(83, 102, 125, 0.06);
    border: 1px solid rgba(83, 102, 125, 0.12);
    color: var(--primary);
}

.about-dr-section .card-left:hover .credential-icon,
.about-dr-section .card-right:hover .credential-icon {
    background: rgba(83, 102, 125, 0.12);
    border-color: rgba(83, 102, 125, 0.25);
    color: #162030;
}

.about-dr-section .card-left .credential-text h4,
.about-dr-section .card-right .credential-text h4 {
    color: #162030;
}

.about-dr-section .card-left .credential-text p,
.about-dr-section .card-right .credential-text p {
    color: rgba(83, 102, 125, 0.7);
}

.about-dr-section .card-left .credential-text strong,
.about-dr-section .card-right .credential-text strong {
    color: #162030;
}

/* Center card remains dark and prominent as a visual focal point */
.about-dr-section .card-portrait-center {
    background: #162030;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.18);
}

.about-dr-section .card-portrait-center:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.watermark-text {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Syne', sans-serif;
    font-size: 14vw;
    font-weight: 800;
    color: rgba(188, 194, 211, 0.04);
    -webkit-text-stroke: 1.5px rgba(188, 194, 211, 0.07);
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.about-dr-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.15;
    margin: 0;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #bcc2d3 50%, #53667d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(188, 194, 211, 0.7);
    max-width: 650px;
    margin-bottom: 5rem;
}

/* Flanking Showcase Container */
.dr-showcase-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
}

/* Showcase Glass Card Styles */
.showcase-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-left, .card-right {
    width: 340px;
    height: 440px;
}

.card-portrait-center {
    width: 380px;
    height: 500px;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.4);
}

/* Floating Animations */
@keyframes float-left {
    0% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-14px) rotate(1deg); }
    100% { transform: translateY(0) rotate(2deg); }
}

@keyframes float-right {
    0% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-14px) rotate(-1deg); }
    100% { transform: translateY(0) rotate(-2deg); }
}

@keyframes float-center {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Scale up and shift slightly on hover */
.showcase-card:hover {
    transform: scale(1.03) translateY(-6px) !important;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(188, 194, 211, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    z-index: 2;
}

.portrait-inner {
    padding: 0;
    justify-content: flex-end;
    background: radial-gradient(circle at center, rgba(83, 102, 125, 0.25) 0%, rgba(22, 32, 48, 0.3) 60%, transparent 100%);
}

.dr-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.card-dr-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 2rem 2.25rem 2rem;
    background: linear-gradient(to top, rgba(22, 32, 48, 0.98) 0%, rgba(22, 32, 48, 0.6) 60%, transparent 100%);
    z-index: 5;
}

.card-dr-info h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.card-dr-info p {
    font-size: 0.95rem;
    color: var(--accent);
}

.plus-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #162030;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.plus-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.plus-btn svg {
    width: 20px;
    height: 20px;
}

.card-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.card-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.75rem;
    line-height: 1.25;
}

.credentials-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.credential-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.credential-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(83, 102, 125, 0.15);
    border: 1px solid rgba(188, 194, 211, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.credential-item:hover .credential-icon {
    background: rgba(83, 102, 125, 0.3);
    border-color: rgba(188, 194, 211, 0.4);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(188, 194, 211, 0.2);
}

.credential-icon svg {
    width: 20px;
    height: 20px;
}

.credential-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
    letter-spacing: 0.01em;
}

.credential-text p {
    font-size: 0.85rem;
    color: rgba(188, 194, 211, 0.65);
    line-height: 1.4;
}

.credential-text strong {
    color: #ffffff;
}

/* Responsive overrides for Section Two */
@media (max-width: 1200px) {
    .dr-showcase-container {
        gap: 1.5rem;
    }
    .card-left, .card-right {
        width: 300px;
        height: 410px;
    }
    .card-portrait-center {
        width: 340px;
        height: 470px;
    }
    .card-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    .credentials-list {
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 3rem;
    }
    .dr-showcase-container {
        gap: 1rem;
    }
    .card-left, .card-right {
        width: 260px;
        height: 380px;
    }
    .card-portrait-center {
        width: 300px;
        height: 440px;
    }
    .credential-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    .credential-icon svg {
        width: 16px;
        height: 16px;
    }
    .card-title {
        font-size: 1.3rem;
    }
    .credential-text h4 {
        font-size: 0.85rem;
    }
    .credential-text p {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .about-dr-section {
        padding: 5rem 1.5rem;
    }
    .section-title {
        font-size: 2.4rem;
    }
    .section-desc {
        margin-bottom: 2.5rem;
        font-size: 1rem;
    }
    .watermark-text {
        display: none;
    }
    .dr-showcase-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .showcase-card {
        position: relative;
        width: 100% !important;
        height: auto !important;
        min-height: auto;
        transform: none !important;
        animation: none !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
    .card-portrait-center {
        order: 1; /* Display Doctor portrait first on mobile */
    }
    .card-left {
        order: 2; /* Trayectoria AcadÃ©mica second */
    }
    .card-right {
        order: 3; /* EspecializaciÃ³n third */
    }
    .card-inner {
        padding: 1.75rem;
    }
    .card-dr-info {
        padding: 1.5rem;
        position: relative;
        background: rgba(22, 32, 48, 0.95);
    }
    .dr-portrait {
        max-height: 420px;
    }
    .dr-quote-container {
        margin: 4rem auto 0 auto;
        padding: 0 1rem;
    }
    .dr-quote-container::before {
        margin-bottom: 2rem;
        width: 40px;
    }
    .dr-quote-text {
        font-size: 1.25rem;
        line-height: 1.5;
    }
}

/* Quote Block Styling */
.dr-quote-container {
    max-width: 850px;
    margin: 6rem auto 0 auto;
    text-align: center;
    position: relative;
    padding: 0 2rem;
}

.dr-quote-container::before {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: rgba(83, 102, 125, 0.2);
    margin: 0 auto 3rem auto;
}

.dr-quote-text {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-style: italic;
    line-height: 1.6;
    color: #162030;
    margin: 0 0 1.5rem 0;
    font-weight: 500;
}

.dr-quote-author {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    font-style: normal;
    display: block;
}

/* ===================================================
   Section Three: Especialidades y Condiciones
   =================================================== */

.conditions-section {
    position: relative;
    background-color: #f4f6f9; /* Premium light slate-blue/off-white */
    padding: 10rem 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.conditions-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100%;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.conditions-sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.conditions-sidebar .section-label {
    color: var(--primary); /* Accent slate-blue */
}

.conditions-sidebar .section-title {
    color: #162030; /* Dark navy for contrast */
}

.conditions-sidebar .text-gradient {
    background: linear-gradient(135deg, #162030 0%, #53667d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.conditions-sidebar .section-desc {
    color: #53667d; /* Slate blue */
}

.filter-controls {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.filter-group-toggle {
    display: flex;
    background: rgba(83, 102, 125, 0.05);
    border: 1px solid rgba(83, 102, 125, 0.12);
    padding: 0.35rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    gap: 0.25rem;
}

.btn-toggle {
    border: none;
    background: transparent;
    color: #53667d;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-toggle:hover {
    color: #162030;
}

.btn-toggle.active {
    background: #162030; /* Dark navy active toggle */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(22, 32, 48, 0.25);
}

.filter-tabs-container {
    width: 100%;
}

.conditions-expand-row {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1300px;
    padding: 3.5rem 0 0;
}

.conditions-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    border: 1.5px solid rgba(22, 32, 48, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
    color: #2d3e52;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    box-shadow: 0 2px 10px rgba(22, 32, 48, 0.06);
}

.conditions-expand-btn:hover {
    background: #fff;
    border-color: rgba(22, 32, 48, 0.28);
    color: #162030;
    box-shadow: 0 4px 18px rgba(22, 32, 48, 0.1);
    transform: translateY(-1px);
}

.conditions-expand-btn .expand-icon {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.conditions-expand-btn[aria-expanded='true'] .expand-icon {
    transform: rotate(180deg);
}

.conditions-expand-btn[aria-expanded='true'] {
    border-color: rgba(22, 32, 48, 0.2);
    background: #fff;
}

.tab-row {
    display: none;
    flex-wrap: wrap;
    gap: 0.75rem;
    transition: var(--transition);
}

.tab-row.active {
    display: flex;
}

.btn-tab {
    border: 1px solid rgba(83, 102, 125, 0.12);
    background: rgba(255, 255, 255, 0.6);
    color: #53667d;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-tab:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #162030;
    color: #162030;
}

.btn-tab.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: #162030;
    color: #162030;
    box-shadow: 0 4px 15px rgba(22, 32, 48, 0.05);
}

/* Right Content Slider */
.conditions-slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-card {
    width: 100%;
    height: 560px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.75); /* Light glassmorphism card */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(83, 102, 125, 0.1);
    box-shadow: 0 30px 60px rgba(22, 32, 48, 0.06);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.slider-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(188, 194, 211, 0.3), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.slider-inner {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.slide-item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 3.5rem;
    gap: 3rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide-item.active {
    opacity: 1;
}

.slide-info {
    flex: 1.25;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.slide-meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: #53667d;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.slide-title {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #162030;
    line-height: 1.25;
    margin-bottom: 1.75rem;
}

.slide-title-link {
    color: inherit;
    text-decoration: none;
    display: inline;
    transition: color 0.25s ease;
}

.slide-title-link .link-text {
    text-decoration: underline;
    text-decoration-color: rgba(47, 79, 115, 0.35);
    text-underline-offset: 0.15em;
    transition: text-decoration-color 0.25s ease;
}

.slide-title-link:hover {
    color: #2f4f73;
}

.slide-title-link:hover .link-text {
    text-decoration-color: currentColor;
}

/* Lucide Arrow transition styling */
.hover-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 0.35rem;
    width: 20px;
    height: 20px;
    opacity: 0;
    transform: translateX(-6px) scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease, margin-left 0.25s ease;
}

.hover-arrow svg {
    width: 100%;
    height: 100%;
    stroke-width: 2px;
}

.slide-title-link:hover .hover-arrow {
    opacity: 1;
    transform: translateX(0) scale(1);
    margin-left: 0.55rem;
}

.slide-section {
    margin-bottom: 1.5rem;
}

.slide-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #162030;
    margin-bottom: 0.5rem;
}

.slide-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #53667d;
}

.slide-visual {
    flex: 0.75;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(188, 194, 211, 0.4);
    filter: blur(40px);
    z-index: 1;
}

.visual-image-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 260px;
    height: 260px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(83, 102, 125, 0.1);
    box-shadow: 0 15px 35px rgba(22, 32, 48, 0.05);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-joint-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.slide-item:hover .visual-joint-image {
    transform: scale(1.05);
}

/* Slider Arrow Buttons */
.slider-arrow {
    position: absolute;
    z-index: 5;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(83, 102, 125, 0.15);
    color: #162030;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(22, 32, 48, 0.06);
}

.slider-arrow:hover {
    background: #162030;
    color: #ffffff;
    border-color: #162030;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(22, 32, 48, 0.2);
}

.arrow-prev {
    left: -26px;
}

.arrow-next {
    right: -26px;
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
}

/* Pagination Dots */
.slider-pagination {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.all-conditions-panel {
    max-width: 1300px;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.45s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.all-conditions-panel.is-open {
    max-height: 1200px;
    opacity: 1;
    margin-top: 2.25rem;
}

.all-conditions-panel-inner {
    border: 1px solid rgba(83, 102, 125, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.75rem;
}

.all-conditions-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #162030;
    margin-bottom: 1.25rem;
}

.all-conditions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.all-conditions-group {
    border: 1px solid rgba(83, 102, 125, 0.12);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 1rem;
}

.all-conditions-group-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #53667d;
    margin-bottom: 0.75rem;
}

.all-conditions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.all-conditions-item {
    border: 1px solid rgba(83, 102, 125, 0.1);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    text-decoration: none;
    color: #162030;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.all-conditions-item:hover {
    border-color: rgba(22, 32, 48, 0.28);
    background: #ffffff;
    transform: translateY(-2px);
}

.all-conditions-item-title {
    font-size: 0.92rem;
    line-height: 1.35;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(83, 102, 125, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pagination-dot:hover {
    background: rgba(83, 102, 125, 0.4);
}

.pagination-dot.active {
    background: rgba(83, 102, 125, 0.2);
    width: 48px;
    border-radius: 100px;
}

.pagination-dot.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #162030;
    border-radius: 100px;
    animation: dot-progress 4.5s linear forwards;
}

@keyframes dot-progress {
    from { width: 0%; }
    to   { width: 100%; }
}

/* Responsive overrides for Section Three */
@media (max-width: 1200px) {
    .conditions-container {
        gap: 3rem;
    }
    .arrow-prev {
        left: -15px;
    }
    .arrow-next {
        right: -15px;
    }
}

@media (max-width: 992px) {
    .conditions-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .conditions-sidebar {
        align-items: center;
        text-align: center;
    }
    .slider-card {
        height: auto;
        min-height: 520px;
    }

    .all-conditions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .conditions-section {
        padding: 5rem 1.5rem;
    }
    .conditions-sidebar .section-title {
        font-size: 2.4rem;
    }
    .conditions-sidebar .section-desc {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    .filter-group-toggle {
        margin-bottom: 1.5rem;
    }

    .conditions-expand-row {
        padding: 1.5rem 0 0;
    }
    .conditions-expand-btn {
        font-size: 0.85rem;
        padding: 0.7rem 1.5rem;
    }
    .slide-item {
        padding: 2.5rem 1.5rem;
        flex-direction: column-reverse;
        gap: 2rem;
    }
    .slide-visual {
        width: 100%;
        justify-content: center;
    }
    .slide-info {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .slide-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .slide-title-link {
        display: inline;
    }

    .slider-arrow {
        display: none; /* Hide arrows on mobile screens and rely on dots */
    }

    .all-conditions-panel-inner {
        padding: 1.25rem;
    }

    .all-conditions-title {
        font-size: 1.2rem;
    }
}

/* ==========================================
   Section Four: Tratamientos y Procedimientos
   ========================================== */

.treatments-section {
    position: relative;
    background-color: var(--bg-darker); /* Deep black-navy background */
    padding: 8rem 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Vertical stack */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    gap: 5rem; /* Gap between triage and cards grid */
}

.treatments-container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Artroscopia symptom triage rows */
.artroscopia-triage {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

.triage-header {
    margin-bottom: 1.75rem;
}

.triage-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.triage-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.triage-rows {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.triage-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.triage-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 1rem;
    background: transparent;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease, padding-left 0.3s ease;
    border-radius: 12px;
}

.triage-row-header:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 1.5rem;
}

.triage-item.active .triage-row-header {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px 12px 0 0;
}

.triage-symptom {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    flex: 1;
}

.triage-zone {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    min-width: 80px;
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 100px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Accent colors for different triage categories */
.triage-item:nth-child(1) .triage-zone { 
    color: #52a0ff; 
    background: rgba(82, 160, 255, 0.1); 
    border: 1px solid rgba(82, 160, 255, 0.2); 
}
.triage-item:nth-child(2) .triage-zone { 
    color: #a855f7; 
    background: rgba(168, 85, 247, 0.1); 
    border: 1px solid rgba(168, 85, 247, 0.2); 
}
.triage-item:nth-child(3) .triage-zone { 
    color: #f59e0b; 
    background: rgba(245, 158, 11, 0.1); 
    border: 1px solid rgba(245, 158, 11, 0.2); 
}
.triage-item:nth-child(4) .triage-zone { 
    color: #10b981; 
    background: rgba(16, 185, 129, 0.1); 
    border: 1px solid rgba(16, 185, 129, 0.2); 
}
.triage-item:nth-child(5) .triage-zone { 
    color: #94a3b8; 
    background: rgba(148, 163, 184, 0.1); 
    border: 1px solid rgba(148, 163, 184, 0.2); 
}

.triage-symptom p {
    margin: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    line-height: 1.4;
}

.triage-row--general .triage-symptom p {
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
}

.triage-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

.triage-row-header:hover .triage-toggle-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.triage-item.active .triage-toggle-icon {
    transform: rotate(135deg); /* Plus to X symbol rotation */
    background: #0070f3; /* Custom brand blue */
    color: #ffffff;
    border-color: #0070f3;
}

.triage-toggle-icon svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

/* Accordion Expandable Content */
.triage-row-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.015);
}

.triage-content-inner {
    padding: 0 1.5rem 2rem 1.5rem;
}

.triage-details-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.triage-col-problem {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.triage-col-solution {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.triage-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.triage-col-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.triage-symptom-bullets {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.triage-symptom-bullets li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.45;
}

.triage-procedure-anchor {
    display: flex;
    align-items: center;
}

.triage-procedure-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.triage-procedure-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #52a0ff;
    transition: width 0.3s ease;
}

.triage-procedure-link:hover {
    color: #52a0ff;
}

.triage-procedure-link:hover::after {
    width: 100%;
}

.triage-procedure-link svg {
    width: 18px;
    height: 18px;
    color: #52a0ff;
    transition: transform 0.3s ease;
}

.triage-procedure-link:hover svg {
    transform: translate(4px, -2px);
}

.triage-solution-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.triage-cta-row {
    margin-top: auto;
    padding-top: 1rem;
}

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

@media (max-width: 992px) {
    .triage-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .triage-row-header {
        padding: 1.25rem 0.5rem;
    }

    .triage-symptom {
        flex-direction: column;
        gap: 0.5rem;
    }

    .triage-zone {
        min-width: unset;
        font-size: 0.7rem;
    }

    .triage-symptom p {
        font-size: 0.95rem;
    }

    .triage-content-inner {
        padding: 0 0.5rem 1.5rem 0.5rem;
    }
}

/* â”€â”€ Procedure 2Ã—2 grid â”€â”€ */
.proc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-top: 3rem;
}

.proc-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.proc-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.proc-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.proc-card-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.proc-card:hover .proc-card-image img {
    transform: scale(1.06);
}

.proc-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 16, 30, 0.8) 100%);
    pointer-events: none;
}

.proc-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
    text-align: left;
    align-items: flex-start;
}

.proc-card-zone {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    text-align: left;
}

.proc-card-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-align: left;
    display: block;
    text-decoration: none;
}

.proc-card-title-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.proc-card-title .title-text {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.22);
    text-underline-offset: 0.18em;
    transition: text-decoration-color 0.25s ease;
}

.proc-card:hover .proc-card-title .title-text {
    text-decoration-color: rgba(255, 255, 255, 0.75);
}

.proc-card:hover .proc-card-title .hover-arrow {
    opacity: 1;
    transform: translateX(0) scale(1);
    margin-left: 0.55rem;
}

.proc-card-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
    text-align: left;
    width: 100%;
}

.proc-card-bullets {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
    width: 100%;
}

.proc-card-bullets li {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    padding-left: 1rem;
    position: relative;
}

.proc-card-bullets li::before {
    content: '\2014';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.2);
}


/* Text-only variant (no render image) */
.proc-card--text {
    background: rgba(255, 255, 255, 0.025);
    justify-content: center;
}

.proc-card--text .proc-card-body {
    padding: 2.25rem;
}

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

    .proc-card-image {
        height: 180px;
    }
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
    max-width: 1300px;
    margin-top: 0;
}

/* Treatment Card Styling */
.treatment-card {
    text-decoration: none;
    color: #ffffff;
    border-radius: 32px;
    position: relative;
    padding: 3.5rem 2.25rem 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
}

/* Card Glossy Glass Reflection Overlay */
.treatment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 52%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 85%, rgba(255, 255, 255, 0) 100%);
    border-radius: 32px 32px 100% 100% / 32px 32px 25% 25%;
    pointer-events: none;
    z-index: 2;
    transition: background 0.5s ease;
}

.treatment-card:hover::before {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.04) 85%, rgba(255, 255, 255, 0) 100%);
}

/* Card Gradients Mapping */
/* Card 1: Hombro */
.treatment-card:nth-child(1) {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Card 2: Rodilla (Highlight) */
.treatment-card:nth-child(2),
.treatment-card.highlighted {
    background: linear-gradient(135deg, #162030 0%, #0070f3 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 45px rgba(0, 112, 243, 0.2), 0 20px 45px rgba(0, 0, 0, 0.3);
}

/* Card 3: Otros */
.treatment-card:nth-child(3) {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.treatment-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.treatment-card.highlighted:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 112, 243, 0.35), 0 30px 60px rgba(0, 0, 0, 0.45);
}

.card-inner-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card Arrow Icon Link */
.card-arrow {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: var(--transition);
}

.treatment-card:hover .card-arrow {
    background: #ffffff;
    color: var(--bg-darker);
    transform: scale(1.08);
    border-color: #ffffff;
}

.card-arrow svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.treatment-card:hover .card-arrow svg {
    transform: translate(1px, -1px);
}

.card-meta {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.treatment-card .card-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

.card-description {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

/* Pill methodology badges */
.methodology-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.badge {
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.02em;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.badge:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Responsive Rules for Section Four */
@media (max-width: 1200px) {
    .treatments-grid {
        gap: 1.5rem;
    }
    .treatment-card {
        padding: 3rem 1.75rem 2rem 1.75rem;
    }
    .treatment-card .card-title {
        font-size: 1.4rem;
    }
    .card-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .treatments-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
        margin: 2rem auto 0 auto;
    }
}

@media (max-width: 768px) {
    .treatments-section {
        padding: 5rem 1.5rem;
    }
    .treatments-section .section-title {
        font-size: 2.4rem;
    }
    .treatments-section .section-desc {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    .treatment-card {
        padding: 2.5rem 1.5rem 2rem 1.5rem;
        border-radius: 24px;
    }
    .treatment-card::before {
        border-radius: 24px 24px 100% 100% / 24px 24px 25% 25%;
    }
}

/* ==========================================
   Section Five: Opiniones y ReseÃ±as
   ========================================== */

.reviews-section {
    position: relative;
    background-color: #ffffff; /* Premium pure white background */
    padding: 10rem 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.reviews-section .watermark-text {
    color: rgba(83, 102, 125, 0.03);
    -webkit-text-stroke: 1.5px rgba(83, 102, 125, 0.05);
    z-index: 1;
}

.reviews-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.reviews-section .section-label {
    color: var(--primary);
}

.reviews-section .section-title {
    color: #162030;
}

.reviews-section .text-gradient {
    background: linear-gradient(135deg, #162030 0%, #53667d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reviews-section .section-desc {
    color: #53667d;
    max-width: 650px;
    margin-bottom: 2rem;
}

/* Horizontal Infinite Marquee Scrolling */
.reviews-marquee-container {
    width: 100vw;
    position: relative;
    overflow: hidden;
    margin: 3.5rem 0 5.5rem 0;
    display: flex;
    /* Edge fade gradient */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.reviews-track {
    display: flex;
    gap: 2.25rem;
    width: max-content;
    animation: marquee-scroll 45s linear infinite;
    padding: 1rem 0;
    will-change: transform;
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Translates half the marquee width (total width of all unique cards + gaps) */
        transform: translateX(calc(-50% - 1.125rem));
    }
}

/* Review Card Styling */
.review-card {
    width: 380px;
    background: #ffffff;
    border: 1px solid rgba(83, 102, 125, 0.08);
    box-shadow: 0 12px 30px rgba(22, 32, 48, 0.03);
    border-radius: 24px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(22, 32, 48, 0.08);
    border-color: rgba(83, 102, 125, 0.2);
}

/* Header inside card */
.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(22, 32, 48, 0.15);
}

/* Custom Gradients for Avatars */
.avatar-blue { background: linear-gradient(135deg, #53667d 0%, #162030 100%); }
.avatar-green { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.avatar-purple { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.avatar-orange { background: linear-gradient(135deg, #f97316 0%, #c2410c 100%); }
.avatar-teal { background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%); }
.avatar-navy { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }

.review-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.review-user-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #162030;
    margin-bottom: 0.15rem;
}

.review-rating {
    display: flex;
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #53667d;
    border-bottom: 1px solid rgba(83, 102, 125, 0.06);
    padding-bottom: 0.75rem;
}

.review-source {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.review-source-img {
    height: 16px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.source-icon {
    width: 14px;
    height: 14px;
}

.source-doctoralia {
    color: #00c3a5;
}

.source-google {
    color: #ea4335;
}

.review-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #162030;
    margin: 0;
    text-align: left;
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #53667d;
    margin: 0;
    text-align: left;
    font-style: italic;
    opacity: 0.95;
}

/* Bottom Review Summary Row */
.reviews-summary-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    margin-top: 1rem;
}

.summary-score-card {
    background: #ffffff;
    border: 1px solid rgba(83, 102, 125, 0.08);
    box-shadow: 0 10px 30px rgba(22, 32, 48, 0.03);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 440px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-decoration: none;
}

.summary-score-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(22, 32, 48, 0.07);
    border-color: rgba(83, 102, 125, 0.2);
}

.summary-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #162030;
    flex-shrink: 0;
}

.summary-logo span {
    letter-spacing: -0.02em;
}

.brand-logo-svg {
    width: 36px;
    height: 36px;
}

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

.brand-logo-svg.green-icon {
    color: #00c3a5;
}

.brand-logo-svg.red-icon {
    color: #ea4335;
}

.summary-score-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.summary-stars {
    color: #f59e0b;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.summary-label {
    font-size: 1.15rem;
    font-weight: 600;
    color: #162030;
    margin-bottom: 0.15rem;
}

.summary-details {
    font-size: 0.85rem;
    color: #53667d;
    margin: 0;
    opacity: 0.9;
}

/* Responsive Rules for Section Five */
@media (max-width: 1200px) {
    .reviews-summary-row {
        gap: 2rem;
    }
    .summary-score-card {
        padding: 1.75rem 2rem;
        width: 400px;
    }
}

@media (max-width: 992px) {
    .reviews-summary-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .summary-score-card {
        width: 100%;
        max-width: 460px;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 5rem 0;
    }
    .reviews-container {
        padding: 0 1.5rem;
    }
    .reviews-section .section-title {
        font-size: 2.4rem;
    }
    .reviews-section .section-desc {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .reviews-marquee-container {
        margin: 2.5rem 0 3.5rem 0;
    }
    .review-card {
        width: 320px;
        padding: 1.75rem;
        gap: 1rem;
    }
}

/* ==========================================
   Section: UbicaciÃ³n (NewCity Medical Plaza)
   ========================================== */

.location-section {
    position: relative;
    background-image: url('Assets/ubicacion-bg.webp'); /* Full-bleed background image */
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    padding: 10rem 2rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

/* Gradient overlay for readability on left side of image */
.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(12, 18, 27, 0.96) 35%, rgba(12, 18, 27, 0.7) 65%, rgba(12, 18, 27, 0.96) 100%);
    z-index: 1;
    pointer-events: none;
}

.location-section .watermark-text {
    color: rgba(188, 194, 211, 0.02);
    -webkit-text-stroke: 1.5px rgba(188, 194, 211, 0.04);
    z-index: 1;
}

.location-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100%;
    display: grid;
    /* 1.15fr left for text content, 0.85fr empty space to show the background image */
    grid-template-columns: 1.25fr 0.75fr;
    gap: 5rem;
    align-items: center;
}

.location-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.location-details-box {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2.5rem 0;
    width: 100%;
}

.location-detail-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.location-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(83, 102, 125, 0.25);
    border: 1px solid rgba(188, 194, 211, 0.2);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.location-detail-item:hover .location-detail-icon {
    background: rgba(83, 102, 125, 0.4);
    border-color: rgba(188, 194, 211, 0.5);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(188, 194, 211, 0.3);
}

.location-detail-icon svg {
    width: 22px;
    height: 22px;
}

.location-detail-text h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.location-detail-text p {
    font-size: 0.95rem;
    color: rgba(188, 194, 211, 0.7);
    line-height: 1.5;
}

.location-detail-text strong {
    color: #ffffff;
}

.location-phone-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.location-phone-link:hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(188, 194, 211, 0.2);
}

.location-ctas {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-location-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-location-secondary:hover {
    color: var(--accent);
}

.btn-location-secondary:hover .arrow-down-icon {
    transform: translateY(3px);
}

.arrow-down-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

/* Watermark Brand Logo Overlay */
.watermark-logo {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    transition: var(--transition);
}

/* About Doctor section: placed on the right margin, rotated slightly, slate-blue */
.about-dr-section .watermark-logo {
    right: -8vw;
    top: 15%;
    width: 35vw;
    max-width: 650px;
    height: auto;
    transform: rotate(-12deg);
    color: rgba(83, 102, 125, 0.035);
}

/* Treatments section: placed on the left margin, rotated slightly, white */
.treatments-section .watermark-logo {
    left: -8vw;
    top: 20%;
    width: 38vw;
    max-width: 700px;
    height: auto;
    transform: rotate(12deg);
    color: rgba(255, 255, 255, 0.022);
}

@media (max-width: 1200px) {
    .about-dr-section .watermark-logo {
        width: 40vw;
        right: -10vw;
    }
    .treatments-section .watermark-logo {
        width: 42vw;
        left: -10vw;
    }
}

@media (max-width: 768px) {
    .about-dr-section .watermark-logo {
        width: 65vw;
        right: -15vw;
        top: 25%;
        opacity: 0.7;
    }
    .treatments-section .watermark-logo {
        width: 68vw;
        left: -15vw;
        top: 30%;
        opacity: 0.7;
    }
}

/* Responsive Rules for Location Section */
@media (max-width: 992px) {
    .location-overlay {
        /* Bottom fade on tablet/mobile to keep building visible at the top, text clear at the bottom */
        background: linear-gradient(to bottom, rgba(12, 18, 27, 0.65) 0%, rgba(12, 18, 27, 0.96) 65%, rgba(12, 18, 27, 0.98) 100%);
    }
    .location-container {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 650px;
        margin-top: 10vh; /* Shift content down so upper building stays visible */
    }
    .location-content {
        align-items: center;
        text-align: center;
    }
    .location-details-box {
        align-items: flex-start;
        max-width: 500px;
        margin: 2rem auto;
    }
    .location-detail-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
    }
    .location-ctas {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .location-section {
        padding: 5rem 1.5rem;
        background-position: center center;
    }
    .location-section .section-title {
        font-size: 2.4rem;
    }
    .location-section .section-desc {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .location-ctas {
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
    }
    .location-ctas .btn-fitflow {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==========================================================================
   Section Six: Contacto (Dark Theme)
   ========================================================================= */
.contact-section {
    position: relative;
    background-color: var(--bg-dark); /* Navy blue background #162030 */
    padding: 10rem 2rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 6rem;
    max-width: 1300px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info .section-label {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-info .section-title {
    color: #ffffff;
    margin-bottom: 2rem;
}

.contact-info .section-desc {
    color: #bcc2d3;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 3.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    margin-bottom: 4rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: rgba(30, 111, 253, 0.1);
    border: 1px solid rgba(30, 111, 253, 0.2);
    color: var(--primary);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-text h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

.contact-text p {
    color: #bcc2d3;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-text strong {
    color: #ffffff;
}

.contact-text .phone-link {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-text .phone-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(30, 111, 253, 0.4);
}

.contact-ctas {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-contact-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.2rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.25);
    transition: var(--transition);
}

.btn-contact-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.btn-contact-primary .btn-icon {
    width: 20px;
    height: 20px;
}

.btn-contact-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1.1rem 2.2rem;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-contact-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    transform: translateY(-3px);
}

.contact-map {
    display: flex;
    align-items: center;
}

.map-card-wrapper {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.map-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(30, 111, 253, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.map-card-wrapper iframe {
    position: relative;
    z-index: 2;
    display: block;
}

.map-card-wrapper:hover {
    border-color: rgba(30, 111, 253, 0.35);
    box-shadow: 0 35px 70px rgba(30, 111, 253, 0.12);
}

/* ==========================================================================
   Section Seven: Preguntas Frecuentes (Light Slate Theme)
   ========================================================================== */
.faq-section {
    position: relative;
    background-color: #f4f6f9; /* Light slate background */
    padding: 10rem 2rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-container {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.faq-section .section-label {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.faq-section .section-title {
    color: #162030;
    text-align: center;
    margin-bottom: 5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.faq-item {
    background: #ffffff;
    border: 1px solid rgba(83, 102, 125, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(22, 32, 48, 0.02);
    transition: var(--transition);
}

.faq-item:hover, .faq-item.active {
    border-color: rgba(30, 111, 253, 0.2);
    box-shadow: 0 15px 45px rgba(22, 32, 48, 0.06);
}

.faq-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.faq-header span:first-child {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #162030;
    transition: var(--transition);
}

.faq-header:hover span:first-child, .faq-item.active .faq-header span:first-child {
    color: var(--primary);
}

.faq-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(83, 102, 125, 0.05);
    color: #53667d;
    transition: var(--transition);
}

.faq-icon-wrapper svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-icon-wrapper {
    background: rgba(30, 111, 253, 0.1);
    color: var(--primary);
}

.faq-item.active .faq-icon-wrapper svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
    padding: 0 2.5rem 2.2rem 2.5rem;
}

.faq-answer-inner p {
    color: #53667d;
    font-size: 1.05rem;
    line-height: 1.65;
}

/* ==========================================================================
   Section Eight: Footer (Deep Dark Theme)
   ========================================================================== */
.footer-section {
    background-color: #0c121b; /* Deep black-navy background */
    padding: 7rem 2rem 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-container {
    max-width: 1300px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Col 1 - Brand Identity */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo-svg {
    width: 32px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.footer-brand-desc {
    color: #bcc2d3;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 380px;
}

.footer-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-credentials span:first-child {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

.footer-credentials .cred-number {
    font-size: 0.85rem;
    color: #8c96ab;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #bcc2d3;
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(30, 111, 253, 0.1);
    border-color: rgba(30, 111, 253, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 111, 253, 0.15);
}

.social-icon {
    width: 18px;
    height: 18px;
}

/* Col 2 - Quick Links */
.footer-col.col-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-col.col-links a {
    color: #bcc2d3;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col.col-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Col 3 - Certifications & Seals */
.footer-badges-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 320px;
}

.footer-badge-link {
    display: block;
    text-decoration: none;
}

.footer-badge-emblem {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: var(--transition);
}

.footer-badge-logo {
    height: 18px;
    width: auto;
    margin-bottom: 0.6rem;
    display: block;
    align-self: flex-start;
}

.footer-badge-emblem .badge-check {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-badge-emblem.google-emblem .badge-stars {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fbbc05; /* Gold Stars */
}

.footer-badge-link:hover .footer-badge-emblem {
    border-color: rgba(30, 111, 253, 0.3);
    background: rgba(30, 111, 253, 0.03);
    transform: translateY(-2px);
}

/* Footer Bottom Row */
.footer-bottom {
    width: 100%;
    max-width: 1300px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3rem;
    margin-top: 2rem;
}

.footer-bottom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-copyright {
    color: #8c96ab;
    font-size: 0.9rem;
}

.footer-disclaimer {
    color: #5d677a;
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 800px;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-sublink {
    color: #8c96ab;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-sublink:hover {
    color: #ffffff;
}

/* ==========================================================================
   Responsive Rules for Contact, FAQ, and Footer
   ========================================================================== */
@media (max-width: 1100px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    .footer-col.col-brand {
        grid-column: span 2;
        max-width: 100%;
    }
    .footer-brand-desc {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .contact-section, .faq-section {
        padding: 7rem 1.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .contact-info {
        align-items: flex-start;
        text-align: left;
    }
    
    .contact-info .section-title {
        font-size: 3rem;
    }
    
    .contact-details {
        align-items: flex-start;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
    }
    
    .contact-ctas {
        justify-content: center;
        width: 100%;
    }
    
    .contact-map {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
    .faq-section .section-title {
        font-size: 3rem;
        margin-bottom: 3.5rem;
    }
}

@media (max-width: 768px) {
    .contact-section, .faq-section {
        padding: 5rem 1.25rem;
    }

    .contact-info .section-title, .faq-section .section-title {
        font-size: 2.3rem;
    }
    
    .contact-ctas {
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
    }
    
    .btn-contact-primary, .btn-contact-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .faq-header {
        padding: 1.75rem 1.5rem;
    }
    
    .faq-header span:first-child {
        font-size: 1.05rem;
        line-height: 1.4;
    }
    
    .faq-answer-inner {
        padding: 0 1.5rem 1.75rem 1.5rem;
    }
    
    .faq-answer-inner p {
        font-size: 0.95rem;
    }

    .footer-section {
        padding: 5rem 1.25rem 2rem 1.25rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    
    .footer-col.col-brand {
        grid-column: span 1;
        align-items: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo-svg {
        width: 28px;
    }
    
    .footer-col h4 {
        margin-bottom: 1.5rem;
    }
    
    .footer-badges-grid {
        margin: 0 auto;
        width: 100%;
    }
    
    .footer-bottom {
        padding-top: 2rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==========================================================================
   Scroll Reveal System — Clenia-style blur-to-focus entrance
   Elements start blurred + shifted down, then sharpen and rise on scroll.
   ========================================================================== */

/* Base reveal: slides up + fades in + de-blurs */
.reveal {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(14px);
    transition:
        opacity   0.5s cubic-bezier(0.16, 1, 0.3, 1),
        filter    0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.revealed {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
}

/* Fade-only reveal (for large containers / wrappers) */
.reveal-fade {
    opacity: 0;
    filter: blur(3px);
    transition:
        opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        filter  0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}
.reveal-fade.revealed {
    opacity: 1;
    filter: blur(0px);
}

/* Scale + blur reveal (for cards, images) */
.reveal-scale {
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.97) translateY(12px);
    transition:
        opacity   0.5s cubic-bezier(0.16, 1, 0.3, 1),
        filter    0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-scale.revealed {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1) translateY(0);
}

/* Blur-only heading reveal — the signature Clenia big-text effect */
.reveal-blur {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(0.8rem);
    transition:
        opacity   0.55s cubic-bezier(0.16, 1, 0.3, 1),
        filter    0.55s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-blur.revealed {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
}

/* Staggered entry animation delays */
.delay-1 { transition-delay: 0.06s; }
.delay-2 { transition-delay: 0.12s; }
.delay-3 { transition-delay: 0.18s; }
.delay-4 { transition-delay: 0.24s; }
.delay-5 { transition-delay: 0.30s; }
.delay-6 { transition-delay: 0.36s; }
.delay-7 { transition-delay: 0.42s; }

/* Floating WhatsApp Button */
.btn-whatsapp-floating {
    position: fixed;
    bottom: calc(2.5rem + env(safe-area-inset-bottom));
    right: 2.5rem;
    width: 85px;
    height: 85px;
    z-index: 999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: whatsapp-pulse 2s infinite;
}

.btn-whatsapp-floating img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.btn-whatsapp-floating:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 10px 25px rgba(37, 211, 102, 0.1), 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile responsive alignment */
@media (max-width: 768px) {
    .btn-whatsapp-floating {
        bottom: calc(1.5rem + env(safe-area-inset-bottom));
        right: 1.5rem;
        width: 75px;
        height: 75px;
    }
}

/* Prevent line wrapping between the last word and arrow icon */
.nobr {
    white-space: nowrap;
    display: inline;
}

/* ==========================================
   Light Mode Hero & Child Page Styles
   ========================================== */

/* Light mode override for header */
header.header--light .nav-link {
    color: rgba(15, 23, 42, 0.75);
}
header.header--light .nav-link:hover {
    color: #0f172a;
    text-shadow: 0 0 10px rgba(15, 23, 42, 0.05);
}
header.header--light .logo circle {
    stroke: #0f172a !important;
}
header.header--light .logo path {
    fill: #0f172a !important;
}
header.header--light .logo text {
    fill: #0f172a !important;
}
header.header--light .btn-secondary-link {
    color: #0f172a;
}
header.header--light .btn-secondary-link:hover {
    color: #1e293b;
}
header.header--light .btn-glass-sm {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.15);
    color: #0f172a;
}
header.header--light .btn-glass-sm:hover {
    background: rgba(15, 23, 42, 0.1);
}
header.header--light .hamburger-btn span {
    background-color: #0f172a;
}
header.header--light.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

/* Light mode hero */
.hero-b--light {
    background-image: none !important;
    background-color: #ffffff !important;
    position: relative;
    overflow: hidden;
    padding-top: 100px; /* Clear fixed header (65px logo + 2rem padding ≈ 97px) */
    height: auto;
    min-height: 100svh;
}
.hero-b--light::before {
    display: none !important; /* Hide homepage dark gradient overlay */
}

.hero-bg-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Uniform vertical gradient blending light blue at the top to white at the bottom across the entire width of the hero */
    background: linear-gradient(to bottom, #d2e1f0 0%, #e8f1fa 50%, #ffffff 100%);
    z-index: 1;
}

.hero-bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.hero-light-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.45;
    animation: lightBlobPulse 10s infinite alternate ease-in-out;
    will-change: transform;
}

.blob-teal {
    width: 450px;
    height: 450px;
    background-color: #a5f3fc;
    right: 12%;
    top: 8%;
}

.blob-blue {
    width: 500px;
    height: 500px;
    background-color: #bfdbfe;
    right: -8%;
    bottom: 8%;
    animation-delay: -3s;
}

.blob-brand-slate {
    width: 400px;
    height: 400px;
    background-color: #53667d; /* Soft brand slate blue glow directly behind the doctor card */
    left: 4%;
    top: 15%;
    opacity: 0.6;
    animation-delay: -5s;
}

.blob-cyan {
    width: 480px;
    height: 480px;
    background-color: #c7d2fe; /* Light indigo/blue behind the title */
    left: 18%;
    top: 40%;
    opacity: 0.45;
    animation-delay: -7s;
}

@keyframes lightBlobPulse {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.15); }
}

.hero-overlay--light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient coming from the bottom center (50% 100%), rising up to 500px high (lowered by 100px) to clear the runner's thigh and hip, while maintaining strong opacity behind the text paragraph. */
    background: 
        radial-gradient(1000px 500px at 50% 100%, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.95) 55%, rgba(255, 255, 255, 0.82) 75%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(to top, #ffffff 0px, rgba(255, 255, 255, 0) 100px) !important;
    z-index: 3;
    pointer-events: none;
}

.hero-bg-cutout {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('Assets/erasebg-transformed.webp') !important;
    background-size: auto 82% !important; /* Beautifully sized cutout */
    background-position: right 5% bottom !important; /* Aligned to the right, not cut off */
    background-repeat: no-repeat !important;
    z-index: 2; /* Moved behind the overlay (3) to allow readability overlays to work on top of the image */
    pointer-events: none;
}

.hero-b--light .hero-b-title {
    color: #0f172a;
    font-size: clamp(3.2rem, 9.6vh, 6.5rem);
}
.hero-b--light .hero-title-subtitle {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(1.8rem, 4.8vh, 3.2rem);
    margin-top: clamp(0.4rem, 1.1vh, 0.75rem);
}
.hero-b--light .hero-rating-clean {
    color: #334155;
}
.hero-b--light .doctoralia-rating-logo {
    filter: none;
    opacity: 0.85;
}
.hero-b--light .hero-b-desc {
    color: #0f172a;
    font-weight: 500;
}

/* Light Mode CTA button override */
.hero-b--light .btn-fitflow {
    background-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}
.hero-b--light .btn-fitflow:hover {
    background-color: #1e293b;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.22);
}
.hero-b--light .btn-fitflow-circle {
    background-color: #3b82f6;
    color: #ffffff;
}
.hero-b--light .btn-fitflow:hover .btn-fitflow-circle {
    background-color: #2563eb;
}

/* Premium Doctor Card on Hero (Frosted Glassmorphism Effect) */
.hero-dr-card {
    background: rgba(255, 255, 255, 0.28) !important; /* High transparency for frosted effect */
    backdrop-filter: blur(20px) !important; /* Strong frosted blur */
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important; /* Reflective white glass border */
    border-radius: 24px;
    padding: clamp(0.75rem, 1.85vh, 1.25rem);
    box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.05) !important; /* Softer, realistic shadow */
    width: 100%;
    max-width: clamp(220px, 34vh, 370px);
    margin-bottom: clamp(1rem, 3.35vh, 2.25rem);
    display: flex;
    flex-direction: column;
    gap: clamp(0.6rem, 1.7vh, 1.15rem);
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.05s;
}
.hero-dr-image-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1.15;
    background-color: #f1f5f9;
}
.hero-dr-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%; /* Center nicely on face */
    display: block;
    transition: transform 0.5s ease;
}
.hero-dr-card:hover .hero-dr-card-img {
    transform: scale(1.03);
}
.hero-dr-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}
.dr-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.dr-card-specialty {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
    line-height: 1.2;
}
.hero-dr-card .hero-rating-clean {
    margin-top: 0.5rem;
    margin-bottom: 0;
    gap: 0.6rem;
    align-items: center;
}
.hero-dr-card .hero-rating-clean .stars {
    font-size: 0.95rem;
}
.hero-dr-card .rating-text {
    font-size: 0.85rem;
    color: #334155;
    font-weight: 600;
}
.hero-dr-card .doctoralia-rating-logo {
    height: 15px;
    filter: none;
    opacity: 0.95;
}

/* Mobile responsive fixes */
@media (max-width: 1024px) {
    .hero-b--light {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        background-image: none !important;
        align-items: center;
    }
    .hero-bg-cutout {
        background-size: auto 55% !important;
        background-position: center bottom !important;
        opacity: 0.9;
    }
    .hero-b--light .hero-b-bottom {
        grid-template-columns: 1fr;
        gap: 3rem;
        align-items: center;
        text-align: center;
    }
    .hero-b--light .hero-b-container {
        padding-bottom: 2rem;
    }
    .hero-b--light .hero-b-left,
    .hero-b--light .hero-b-right {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .hero-b--light .hero-b-desc {
        display: none !important;
    }
    .hero-b--light .hero-rating-clean {
        justify-content: center;
    }
    .hero-dr-card {
        margin-left: auto;
        margin-right: auto;
        padding: 1rem;
        max-width: 290px;
        margin-bottom: 1.75rem;
    }
    .hero-overlay--light {
        background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0.96) 50%, rgba(255, 255, 255, 0.8) 100%) !important;
    }
}

/* ==========================================================================
   Sticky Scroll Section (Common knee injuries)
   ========================================================================== */
.sticky-conditions-section {
    position: relative;
    width: 100%;
    height: 400vh; /* 4 slides, 100vh of scroll per slide */
    background-color: #0c121b;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Background image slides */
.sticky-bg-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.sticky-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-bg-slide.active {
    opacity: 1;
}

.sticky-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 18, 27, 0.6) 0%, rgba(12, 18, 27, 0.8) 100%);
    z-index: 2;
}

/* Layout container */
.sticky-content-container {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    align-items: stretch;
}

.sticky-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    width: 100%;
    gap: 6rem;
    align-items: stretch;
}

.sticky-left-nav {
    display: flex;
    flex-direction: column;
    text-align: left;
    align-self: center;
}

.sticky-nav-supportive-text {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.85rem, 1.56vh, 1.05rem);
    line-height: 1.65;
    color: #bcc2d3;
    max-width: 480px;
    margin: 0 0 clamp(1rem, 3.35vh, 2.25rem) 0;
    opacity: 0.85;
}

.sticky-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2.6vh, 1.75rem);
}

.sticky-nav-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-nav-item:hover {
    opacity: 0.7;
}

.sticky-nav-item.active {
    opacity: 1;
}

.sticky-nav-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #60a5fa;
}

.sticky-nav-text {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.35rem, 3.15vh, 2.1rem);
    font-weight: 600;
    color: #ffffff;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-nav-item.active .sticky-nav-text {
    transform: translateX(12px);
    background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Right Content styling */
.sticky-right-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.75rem, 3.35vh, 2.25rem);
    width: 100%;
    align-self: end;
    padding-bottom: clamp(2rem, 10.4vh, 7rem);
}

/* Pill shape dots indicator */
.sticky-dots-nav {
    display: flex;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.55rem 1.15rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sticky-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sticky-dot.active {
    background-color: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Description cards stack */
.sticky-cards-stack {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
}

.sticky-desc-card {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 100%;
    height: auto;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: clamp(1.25rem, 3.7vh, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: clamp(0.4rem, 1.1vh, 0.75rem);
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.sticky-desc-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.card-num {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #60a5fa;
    letter-spacing: 0.05em;
}

.card-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.1rem, 2.37vh, 1.6rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
}

.card-text {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.82rem, 1.51vh, 1.02rem);
    line-height: 1.6;
    color: #bcc2d3;
}

/* Mobile-only image container */
.mobile-card-image {
    display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .sticky-conditions-section {
        height: auto !important;
        padding: 5rem 0;
    }

    .sticky-wrapper {
        position: relative;
        height: auto;
        overflow: visible;
    }

    .sticky-bg-slides {
        display: none;
    }

    .sticky-content-container {
        padding: 0 1.5rem;
    }

    .sticky-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .sticky-nav-list, 
    .sticky-dots-nav {
        display: none;
    }

    .sticky-left-nav {
        align-self: stretch;
    }

    .sticky-cards-stack {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .sticky-desc-card {
        position: relative;
        opacity: 1;
        transform: none !important;
        pointer-events: all;
        height: auto;
        background: rgba(22, 32, 48, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.06);
        padding: 1.75rem;
        box-shadow: none;
    }

    .mobile-card-image {
        display: block;
        width: 100%;
        height: 220px;
        border-radius: 14px;
        background-size: cover;
        background-position: center;
        margin-bottom: 1.25rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* ==========================================
   Dropdown Navigation Styles
   ========================================== */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.dropdown-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    stroke-width: 2.5px;
}

.nav-item-dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(12, 18, 27, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    min-width: 250px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dropdown-group + .dropdown-group {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

header.header--light .dropdown-group + .dropdown-group {
    border-top-color: rgba(22, 32, 48, 0.08);
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 0;
    width: 100%;
    height: 1.5rem;
    background: transparent;
}

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

.dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dropdown-parent-link {
    display: block;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-parent-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #60a5fa;
}

.dropdown-submenu {
    padding-left: 0.75rem;
    border-left: 1.5px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-child-link {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-child-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Light mode support for Dropdown */
header.header--light .nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

header.header--light .dropdown-parent-link {
    color: #0f172a;
}

header.header--light .dropdown-parent-link:hover {
    background: rgba(15, 23, 42, 0.04);
    color: #2563eb;
}

header.header--light .dropdown-submenu {
    border-left-color: rgba(15, 23, 42, 0.08);
}

header.header--light .dropdown-child-link {
    color: rgba(15, 23, 42, 0.65);
}

header.header--light .dropdown-child-link:hover {
    background: rgba(15, 23, 42, 0.03);
    color: #0f172a;
}

/* ==========================================
   Mobile Dropdown Navigation
   ========================================== */
.mobile-nav-dropdown {
    width: 100%;
    text-align: center;
}

.mobile-nav-dropdown-btn {
    background: none;
    border: none;
    font-family: 'Syne', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.6rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    transition: color 0.2s;
}

.mobile-nav-dropdown-btn:hover {
    color: #ffffff;
}

.mobile-dropdown-chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.mobile-nav-dropdown-content {
    max-height: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    width: 100%;
}

.mobile-nav-dropdown-content.open {
    max-height: 400px;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.mobile-nav-dropdown-links-inner {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-dropdown-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
    display: block;
}

.mobile-nav-dropdown-link.parent-link {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.mobile-nav-dropdown-link.child-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.mobile-nav-dropdown-link:hover {
    color: #ffffff;
}

/* ==========================================
   Breadcrumbs Navigation
   ========================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.breadcrumbs .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.35);
}

.breadcrumbs .breadcrumb-current {
    color: #ffffff;
}

/* Light mode overrides for breadcrumbs */
.light-theme-page .breadcrumbs a {
    color: rgba(15, 23, 42, 0.55);
}

.light-theme-page .breadcrumbs a:hover {
    color: #0f172a;
}

.light-theme-page .breadcrumbs .breadcrumb-separator {
    color: rgba(15, 23, 42, 0.3);
}

.light-theme-page .breadcrumbs .breadcrumb-current {
    color: #0f172a;
    font-weight: 600;
}

/* ==========================================================================
   MOBILE PERFORMANCE OVERRIDES
   Strip GPU-expensive effects on phones (blur, backdrop-filter, blob animations)
   ========================================================================== */
@media (max-width: 768px) {
    /* Disable animated blobs entirely — they run filter:blur(140px) in a 10s loop */
    .hero-bg-blobs,
    .hero-light-blob {
        display: none !important;
    }

    /* Disable the blob pulse animation on hub page too */
    .hub-blob {
        display: none !important;
    }

    /* Simplify fadeInUp to avoid animating blur() on every reveal element */
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(14px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Strip backdrop-filter from all glass elements — iOS renders each layer separately */
    header.scrolled,
    .mobile-menu,
    .btn-glass-sm,
    .hero-dr-card,
    .artr-col-img-label,
    .review-card,
    .glass-card,
    .dr-showcase-container .glass-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Pause marquee when off-screen via will-change removal */
    .reviews-track {
        will-change: auto;
    }

    /* Reduce reveal blur values to 0 — iOS doesn't need them */
    .reveal, .reveal-fade, .reveal-scale, .reveal-blur {
        filter: none !important;
    }
    .reveal.is-visible, .reveal-fade.is-visible, .reveal-scale.is-visible, .reveal-blur.is-visible {
        filter: none !important;
    }
}



