/* dr-fernando-zorrilla/css/style.css — PREMIUM OVERHAUL */

:root {
    --primary: #2C6268;
    --primary-dark: #0B1919;
    --accent: #F5D494;
    --accent-dark: #8A5F18;
    --text-color: #3a3a3a;
    --text-light: #6b6b6b;
    --bg-light: #f7f5f1;
    --bg-white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --section-spacing: 7rem;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-card: 0 8px 32px rgba(0,0,0,0.06);
    --shadow-hover: 0 14px 44px rgba(0,0,0,0.10);
    --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

/* ────────── RESET ────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    background: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.25;
}

/* ════════════════ NAV ════════════════ */
.site-navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: #ffffff; /* Solid white to blend seamlessly with the logo */
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.site-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 12px 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img { height: 55px; width: auto; }

.nav-links { display: flex; gap: 2.2rem; }

.nav-links a {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }

.nav-contact { display: flex; align-items: center; gap: 1.2rem; }

.nav-phone {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.88rem;
}

.nav-cta {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 0.55rem 1.4rem;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 14px rgba(236,199,125,0.3);
}

.nav-cta:hover {
    background: var(--accent-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(110,78,27,0.3);
}

.nav-cta-pulse {
    animation: ctaPulse 2s infinite alternate;
}

@keyframes ctaPulse {
    0% {
        box-shadow: 0 4px 14px rgba(236,199,125,0.3);
    }
    100% {
        box-shadow: 0 4px 22px rgba(236,199,125,0.75);
    }
}

/* Language Selector Toggle */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    background: rgba(13, 27, 42, 0.06);
    border: 1px solid rgba(44, 98, 104, 0.15);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
    margin-right: 0.3rem;
}
.lang-toggle:hover {
    background: rgba(44, 98, 104, 0.1);
    border-color: var(--primary);
}
.lang-active {
    color: var(--primary);
}
.lang-sep {
    color: rgba(13, 27, 42, 0.25);
    margin: 0 1px;
}
.lang-inactive {
    color: rgba(13, 27, 42, 0.4);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-hamburger .bar {
    width: 24px; height: 2px;
    background: var(--primary-dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* ════════════════ HERO — "Precisión que Transforma" ════════════════ */
.hero-section {
    position: relative;
    padding: 120px 0 80px;
    background: radial-gradient(circle at right center, #111e22 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* ════════════════ HERO MASSIVE VISUAL ════════════════ */
.massive-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.massive-visual-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at 70% 50%, #111e22 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.hero-full-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-container-overlay {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text-card {
    max-width: 800px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 2rem 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    text-align: center;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(236,199,125,0.9);
    border: 1px solid rgba(236,199,125,0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
    background: rgba(236,199,125,0.06);
}

.hero-text-card h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(8,13,20,0.8), 0 4px 30px rgba(8,13,20,0.4);
}

.hero-text-card p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(8,13,20,0.8), 0 2px 20px rgba(8,13,20,0.4);
}

.hero-cta {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 8px 24px rgba(236,199,125,0.35);
    transition: var(--transition);
}

.hero-cta:hover {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

/* ════════ MASSIVE ANIMATIONS ════════ */

/* Giant Body Slimming (Bariatric) */
.giant-torso {
    transform-origin: 100px 50%;
    animation: giantSlim 6s infinite ease-in-out alternate;
}

@keyframes giantSlim {
    0% { transform: scaleX(1.1); stroke: #ecc77d; }
    100% { transform: scaleX(0.7); stroke: #88d4e0; }
}

/* Da Vinci Robotic Arms Breathing */
.da-arm.arm-1 { transform-origin: -120px 100px; animation: armSwing 5s infinite ease-in-out alternate; }
.da-arm.arm-2 { transform-origin: -50px 100px; animation: armSwing 4s infinite ease-in-out alternate-reverse; }
.da-arm.arm-3 { transform-origin: 50px 100px; animation: armSwing 6s infinite ease-in-out alternate; }
.da-arm.arm-4 { transform-origin: 120px 100px; animation: armSwing 4.5s infinite ease-in-out alternate-reverse; }

@keyframes armSwing {
    0% { transform: rotate(-3deg); }
    100% { transform: rotate(3deg); }
}
/* Plexus Tech Network */
.plexus-network circle {
    opacity: 0.5;
}

.plexus-line {
    fill: none;
    stroke: #88d4e0;
    stroke-width: 0.5;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: drawPlexus 12s linear infinite;
    opacity: 0.15;
}

.plexus-line.delay-1 { animation-delay: 2s; stroke: #ecc77d; }
.plexus-line.delay-2 { animation-delay: 4s; }
.plexus-line.delay-3 { animation-delay: 6s; stroke: #ecc77d; }
.plexus-line.delay-4 { animation-delay: 3s; opacity: 0.08; }
.plexus-line.delay-5 { animation-delay: 5s; opacity: 0.08; stroke: #ecc77d; }

@keyframes drawPlexus {
    0% { stroke-dashoffset: 800; opacity: 0; }
    10% { opacity: 0.3; }
    50% { stroke-dashoffset: 0; opacity: 0.3; }
    90% { opacity: 0; }
    100% { stroke-dashoffset: -800; opacity: 0; }
}

/* Internal System Pulse (General Surgery) */
.internal-system {
    animation: internalPulse 3s infinite alternate;
}
@keyframes internalPulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; filter: brightness(1.3); }
}

.wave-divider {
    position: absolute;
    bottom: -1px; left: 0; width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.slimming-btn {
    animation: slimmingBtn 6s infinite ease-in-out alternate;
    white-space: nowrap; /* Prevent text from wrapping when button shrinks */
    overflow: hidden;
}

@keyframes slimmingBtn {
    0% { 
        padding-left: 3.5rem; 
        padding-right: 3.5rem; 
        background: #f7d58b; /* Lighter when wider */
    }
    100% { 
        padding-left: 1.5rem; 
        padding-right: 1.5rem; 
        background: var(--accent); /* Darker/tighter when slim */
    }
}

/* ════════════════ AUTORIDAD ════════════════ */
.authority-section {
    padding: var(--section-spacing) 0;
}

.authority-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 4.5rem;
    align-items: start;
}

.authority-img-col { position: relative; }

.authority-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    aspect-ratio: 3/4;
    object-fit: cover;
}

.expert-badge {
    position: absolute;
    bottom: -20px; right: -20px;
    background: linear-gradient(135deg, #f7d58b, #ecc77d, #d4a750);
    color: var(--primary-dark);
    border-radius: 50%;
    text-align: center;
    width: 130px; height: 130px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 0 0 6px white, 0 10px 30px rgba(0,0,0,0.15);
    border: 2px dashed rgba(255, 255, 255, 0.7);
    line-height: 1.2;
    z-index: 10;
}

.seal-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.expert-badge span {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.authority-text-col h2 {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
}

.specialty-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.bio-text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cedulas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.cedula-item {
    background: var(--bg-light);
    padding: 0.9rem 1.3rem;
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: var(--transition);
}

.cedula-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-card);
}

.cedula-item strong {
    display: block;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.cedula-item span {
    font-size: 0.82rem;
    color: var(--text-light);
}

.google-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    padding: 0.7rem 1.2rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 50px;
    font-size: 0.85rem;
}

.google-trust-badge .stars {
    color: #fbbc05;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.btn-blue-outline {
    display: inline-block;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-blue-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52,78,84,0.25);
}

/* ════════════════ PRENSA ════════════════ */
.press-section {
    padding: var(--section-spacing) 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header .label {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.section-header h2 {
    font-size: 2rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* ════════════════ PADECIMIENTOS ════════════════ */
.conditions-section {
    padding: var(--section-spacing) 0;
    background: var(--primary-dark);
}

.conditions-section .section-header h2 {
    color: white;
}

.conditions-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en PC (2 filas de 4) */
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 992px) {
    .conditions-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en Tablet */
    }
}

@media (max-width: 768px) {
    .conditions-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.2rem;
        padding: 1rem 1.5rem 2.5rem;
        margin-left: -1.5rem; /* Permite desplazamiento full-bleed */
        margin-right: -1.5rem;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .conditions-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .conditions-grid .condition-card {
        flex: 0 0 82%; /* Ocupa el 82% permitiendo ver el inicio de la siguiente */
        scroll-snap-align: center;
        margin-bottom: 0;
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    }
}

/* Indicadores de Carrusel para Móvil */
.carousel-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--accent); /* Color dorado */
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(236, 199, 125, 0.5);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .carousel-dots {
        display: flex;
    }
}

.condition-card {
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.condition-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.condition-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.condition-card:hover::after {
    transform: scaleX(1);
}

a.condition-card {
    text-decoration: none;
    display: block;
}

.cond-img-wrapper {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, #1a2c30 0%, #0d1313 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: var(--transition);
}

.condition-card:hover .cond-img-wrapper {
    transform: scale(1.1) rotate(3deg);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(245, 212, 148, 0.3);
}

.cond-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.condition-card:hover .cond-img {
    transform: scale(1.08);
}

.cond-icon {
    width: 65px;
    height: 65px;
    background: rgba(245, 212, 148, 0.15); /* Accent with opacity */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--accent);
    transition: var(--transition);
}

.condition-card:hover .cond-icon {
    background: var(--accent);
    color: var(--primary-dark);
    transform: scale(1.1) rotate(5deg);
}

.cond-icon svg {
    width: 28px;
    height: 28px;
}

.condition-card h3 {
    font-size: 1.15rem;
    color: white;
    margin-bottom: 0.8rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.condition-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* ════════════════ PRENSA ════════════════ */
.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.press-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: block;
    transition: var(--transition);
}

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

.press-card:hover img {
    transform: scale(1.05);
}

.press-img-wrapper {
    height: 240px;
    overflow: hidden;
    background: var(--primary-dark);
}

.press-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.press-placeholder-img {
    height: 240px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.press-placeholder-img svg {
    width: 54px; height: 54px;
    opacity: 0.4;
}

.press-card-body { padding: 1.5rem; }

.press-card-source {
    color: var(--accent-dark);
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.press-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.press-card-readmore {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.82rem;
}

/* ════════════════ EXPERIENCIA + GALERÍA ════════════════ */
.experience-section {
    padding: var(--section-spacing) 0;
}

.exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.premium-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 12px;
}
.premium-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 3px;
    background: var(--accent);
}

.accordion {
    margin-bottom: 1.2rem;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: var(--transition);
}

.accordion[open] {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: transparent;
    border-left: 4px solid var(--accent);
}

.accordion summary {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-dark);
    font-family: var(--font-body);
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: transparent;
}

.accordion summary:hover { color: var(--primary); }

.accordion summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--accent-dark);
    font-weight: 300;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #eaeaea;
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
    background: #fafafa;
}

.accordion[open] summary::after {
    content: '−';
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
    transform: rotate(180deg);
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.accordion-content ul { padding-left: 0.5rem; list-style: none; }

.accordion-content li {
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.4rem;
}

.accordion-content li::before {
    content: '✓';
    color: var(--accent-dark);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.9rem;
}

/* ════════════════ MASONRY GALERÍA PREMIUM ════════════════ */
.masonry-grid {
    column-count: 2;
    column-gap: 1.2rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.2rem;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    position: relative;
}

.masonry-item img {
    width: 100%;
    border-radius: var(--radius-lg);
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.95) contrast(1.05);
}

.masonry-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.1);
}

.masonry-item img:hover {
    transform: scale(1.015);
    box-shadow: var(--shadow-hover);
}

/* ════════════════ BLOG ════════════════ */
.blog-section {
    padding: var(--section-spacing) 0;
}

.blog-section .section-header {
    margin-bottom: 2.5rem;
}

.blog-section .section-header h2 {
    font-size: 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

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

.blog-body { padding: 1.5rem; }

.blog-img {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
}

.blog-date {
    font-size: 0.78rem;
    color: var(--accent-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card h3 {
    margin: 0.5rem 0 0.8rem;
    font-size: 1.1rem;
    line-height: 1.35;
}

.blog-card p {
    color: var(--text-light);
    font-size: 0.88rem;
}

.blog-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
}

.blog-link:hover { color: var(--accent-dark); }

/* ════════════════ TESTIMONIOS ════════════════ */
.testimonials-section {
    padding: var(--section-spacing) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    padding: 2rem;
    transition: var(--transition);
    border-top: 3px solid var(--accent);
}

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

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.test-header strong { font-size: 0.95rem; }
.test-header .stars { color: #fbbc05; font-size: 0.95rem; letter-spacing: 2px; }

.testimonial-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.7;
}

.google-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
}

.google-badge-large .stars {
    color: #fbbc05;
    font-size: 1.3rem;
    letter-spacing: 3px;
}

/* ════════════════ BUTTONS ════════════════ */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.8rem;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13,19,19,0.25);
}

/* ════════════════ FOOTER ════════════════ */
.site-footer {
    background: var(--primary-dark);
    color: white;
    padding: var(--section-spacing) 0 0;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: var(--accent);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-col p {
    color: #A9B9C9;
    margin-bottom: 0.8rem;
    line-height: 1.75;
    font-size: 0.9rem;
}

.footer-col a { color: #ddd; }
.footer-col a:hover { color: var(--accent); }

.horarios { font-size: 0.88rem; }

.btn-map {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.45rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
    font-family: var(--font-body);
}

.btn-map:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.price-table {
    width: 100%;
    color: #A9B9C9;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.price-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.price-table td:last-child {
    text-align: right;
    color: white;
    font-weight: 700;
}

.footer-bottom {
    text-align: center;
    padding: 1.8rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}

.footer-bottom p { color: #8a9aac; }

.cedulas-footer {
    font-size: 0.75rem;
    color: #6b7a8a;
    margin-top: 0.4rem;
}

/* ════════════════ MODALES ════════════════ */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
}

.modal-content {
    background: #fff;
    margin: 6% auto;
    padding: 20px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 780px;
    position: relative;
}

.close {
    color: #999;
    position: absolute;
    right: 18px; top: 10px;
    font-size: 26px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover { color: var(--primary-dark); }

/* ════════════════ FLOTANTES ════════════════ */
.float-wa {
    position: fixed;
    bottom: 28px; right: 28px;
    background: #25D366;
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(37,211,102,0.4);
    z-index: 1000;
    transition: var(--transition);
}

.float-wa:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

/* ════════════════ ANIMATIONS ════════════════ */
.dr-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.dr-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════ RESPONSIVE ════════════════ */
@media(max-width: 1024px) {
    :root { --section-spacing: 5rem; }

    .authority-grid, .exp-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .authority-img { max-width: 420px; margin: 0 auto; }

    .hero-text-col h1 { font-size: 2.8rem; }
}

@media(max-width: 768px) {
    :root { --section-spacing: 4rem; }

    .nav-links, .nav-contact {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: white;
        position: absolute;
        top: 68px; left: 0;
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        border-top: 1px solid #eee;
    }

    .nav-links.active, .nav-contact.active { display: flex; }
    .nav-hamburger { display: flex; }

    /* Hero mobile: massive layout fix */
    .massive-hero {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 80px; /* Space for navbar */
        padding-bottom: 2rem;
        min-height: 100vh;
        min-height: 100dvh; /* dynamic viewport height for mobile browsers */
    }

    .massive-visual-bg {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    /* Precisely center the SVG focal point on mobile by shifting the groups from X=680 to X=500 */
    .anim-giant-body {
        transform: translate(220px, 150px) scale(2.8) !important;
    }
    
    .da-vinci-robot {
        transform: translate(500px, -20px) !important;
    }

    .massive-particles {
        transform: translateX(-180px) !important;
    }

    .hero-container-overlay {
        padding: 0 1.5rem;
        margin-top: 0;
    }

    .hero-text-card {
        padding: 2rem 1rem;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        text-align: center;
        margin: 0 auto;
    }

    /* Mobile hero logo: ensure it stays visible and large enough */
    .hero-logo-img {
        min-width: 280px !important;
        max-width: 85vw !important;
        width: 85vw !important;
    }

    .hero-text-card h1 { font-size: 2.2rem; }
    .hero-label { font-size: 0.7rem; letter-spacing: 2px; padding: 0.4rem 1.2rem; }
    .hero-text-card p { font-size: 0.95rem; margin-bottom: 1.5rem; }

    .authority-text-col h2 { font-size: 1.8rem; }

    .section-header h2 { font-size: 1.7rem; }

    .masonry-grid { column-count: 2; }

    .container { padding: 0 1.2rem; }

    .blog-featured { grid-template-columns: 1fr !important; }
    .article-grid { grid-template-columns: 1fr !important; }
}

@media(max-width: 480px) {
    .hero-text-col h1 { font-size: 2rem; }
    .masonry-grid { column-count: 1; }
    .press-grid { grid-template-columns: 1fr; }
}

/* ════════════════ PROCEDIMIENTOS PREMIUM ════════════════ */
.procedures-hero {
    position: relative;
    padding: 180px 0 120px;
    background: radial-gradient(circle at left center, #111e22 0%, var(--primary-dark) 100%);
    text-align: center;
    color: white;
}

.procedures-hero h1 {
    color: white;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.procedures-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Category styling */
.category-header {
    text-align: center;
    margin-bottom: 4rem;
}

.category-pre {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.6rem;
}

.category-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.category-line {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.category-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Grid of procedures */
.procedures-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 3rem;
}

.proc-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    scroll-margin-top: 100px; /* Offset para evitar solapamiento con navbar fija */
}

.proc-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(245,212,148,0.15);
}

.proc-item.alt-row .proc-img-col {
    order: 2;
}

.proc-img-wrapper {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: radial-gradient(circle, #1a2c30 0%, #0d1313 100%);
    border: 1px solid rgba(255,255,255,0.05);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.proc-item:hover .proc-img {
    transform: scale(1.05);
}

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

.proc-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-dark);
    background: rgba(245, 212, 148, 0.18);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.proc-text-col h3 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--primary-dark);
}

.proc-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.proc-benefits {
    margin-bottom: 2rem;
}

.proc-benefits h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.proc-benefits ul {
    list-style: none;
    padding-left: 0;
}

.proc-benefits li {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.6rem;
    line-height: 1.5;
}

.proc-benefits li::before {
    content: '✓';
    color: var(--accent-dark);
    font-weight: bold;
    position: absolute;
    left: 0; top: 0;
    font-size: 1rem;
}

.proc-cta {
    align-self: flex-start;
    font-size: 0.82rem;
    padding: 0.75rem 1.8rem;
}

/* Responsive Overrides for Procedures */
@media (max-width: 992px) {
    .proc-item {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem;
    }
    
    .proc-item.alt-row .proc-img-col {
        order: 0; /* Put image first on tablet/mobile */
    }
    
    .proc-img-wrapper {
        aspect-ratio: 4/3;
    }
    
    .procedures-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 576px) {
    .procedures-hero h1 {
        font-size: 2.2rem;
    }
    
    .procedures-hero p {
        font-size: 0.95rem;
    }
    
    .category-header h2 {
        font-size: 1.8rem;
    }
    
    .proc-text-col h3 {
        font-size: 1.6rem;
    }
    
    .proc-img-wrapper {
        aspect-ratio: 1/1;
    }
}

/* ════════════════ PREMIUM CLINICAL LIGHTBOX ════════════════ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000; /* Superar navbar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(10, 20, 24, 0.94); /* Fondo ultra oscuro translúcido */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 75vh;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); /* Rebote suave premium */
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 36px;
    font-weight: 300;
    transition: var(--transition);
    cursor: pointer;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lightbox-close:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(245, 212, 148, 0.3);
    transform: rotate(90deg);
}

#lightbox-caption {
    margin: 1rem auto 2rem;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

/* Cambiar cursor a zoom para fotos */
.proc-img {
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
        font-size: 30px;
    }
    .lightbox-content {
        max-width: 95%;
        max-height: 65vh;
    }
    #lightbox-caption {
        font-size: 1.2rem;
    }
}

/* ════════════════ NAV BAR QUIZ CTA BUTTON ════════════════ */
.nav-quiz-btn {
    background: transparent;
    color: var(--accent) !important;
    border: 2px solid var(--accent);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(236, 199, 125, 0.1);
    animation: goldPulse 3s infinite alternate;
}

.nav-quiz-btn:hover {
    background: var(--accent);
    color: var(--primary-dark) !important;
    box-shadow: 0 0 15px rgba(236, 199, 125, 0.4);
    transform: translateY(-2px);
}

@keyframes goldPulse {
    0% {
        box-shadow: 0 0 8px rgba(236, 199, 125, 0.15);
        border-color: rgba(236, 199, 125, 0.6);
    }
    100% {
        box-shadow: 0 0 18px rgba(236, 199, 125, 0.45);
        border-color: rgba(236, 199, 125, 1);
    }
}

@media (max-width: 768px) {
    .nav-contact .nav-quiz-btn {
        margin-bottom: 0.8rem;
        width: 100%;
        max-width: 280px;
    }
    .lang-toggle {
        margin-left: auto;
        margin-right: 1.2rem;
    }
}

/* ════════════════ CUESTIONARIO CLÍNICO ════════════════ */
.hidden {
    display: none !important;
}

.quiz-section {
    padding: calc(var(--section-spacing) + 2rem) 0;
    background: linear-gradient(135deg, #050d0f 0%, #0c1b1f 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.quiz-container {
    max-width: 960px;
}

.quiz-header {
    margin-bottom: 3.5rem;
}

.quiz-header .label {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.quiz-header h2 {
    color: white;
    font-size: 2.8rem;
    margin: 0.5rem 0 1rem;
}

.quiz-header p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Quiz Card Glassmorphic Design */
.quiz-card {
    background: rgba(26, 44, 48, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

/* Steps Progress Bar */
.quiz-steps-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
    width: 110px;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0d1a1d;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    margin-bottom: 0.8rem;
    font-family: var(--font-header);
}

.step-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    text-align: center;
}

.quiz-step-line {
    flex-grow: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 24px; /* Alinear con la altura de los círculos */
    z-index: 1;
    transition: all 0.4s ease;
}

.quiz-step-item.active .step-circle {
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(26, 110, 122, 0.3);
    background: var(--primary);
}

.quiz-step-item.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.quiz-step-item.completed .step-circle {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}

.quiz-step-item.completed .step-label {
    color: var(--accent);
}

/* Quiz Pages Grid/Row */
.quiz-page {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.quiz-page.hidden {
    display: none;
}

.quiz-row {
    display: flex;
    gap: 3.5rem;
}

.quiz-col {
    flex: 1;
}

/* Form Styles */
.form-group {
    margin-bottom: 2.2rem;
    position: relative;
}

.field-title {
    display: block;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}

.field-title .required {
    color: var(--accent);
    margin-left: 3px;
}

/* Custom Radio Groups */
.custom-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.radio-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-button {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-right: 12px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
    background: #0d1a1d;
}

.radio-label input:checked ~ .radio-button {
    border-color: var(--primary);
}

.radio-button::after {
    content: '';
    position: absolute;
    display: none;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    transition: all 0.3s ease;
}

.radio-label input:checked ~ .radio-button::after {
    display: block;
    transform: translate(-50%, -50%) scale(1);
}

.radio-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.radio-label input:checked ~ .radio-text {
    color: white;
    font-weight: 600;
}

/* Inputs wrapper & elements */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    background: rgba(13, 26, 29, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.2rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(26, 110, 122, 0.25);
    background: rgba(13, 26, 29, 0.9);
}

.input-wrapper input.error {
    border-color: #e71d36 !important;
    box-shadow: 0 0 10px rgba(231, 29, 54, 0.25) !important;
}

.input-unit {
    position: absolute;
    right: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
}

.inputs-row {
    display: flex;
    gap: 1rem;
}

.inputs-row .input-wrapper {
    flex: 1;
}

.error-msg {
    color: #e71d36;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
    font-weight: 500;
}

/* Real-time BMI Display Box */
.live-bmi-panel {
    background: rgba(13, 26, 29, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    margin-top: 2rem;
    text-align: center;
}

.live-bmi-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.live-bmi-value {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    font-family: var(--font-header);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.live-bmi-status {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.2rem;
    transition: color 0.3s ease;
}

.live-bmi-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.bmi-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.5s ease, background-color 0.5s ease;
}

/* Step 2 Diseases Grid */
.step-title {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 3rem;
}

.diseases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.checkbox-card {
    background: rgba(13, 26, 29, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
}

.checkbox-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-box {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-right: 14px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
    background: #0d1a1d;
    flex-shrink: 0;
}

.checkbox-card input:checked ~ .checkbox-box {
    border-color: var(--accent);
    background: var(--accent);
}

.checkbox-box::after {
    content: '';
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid var(--primary-dark);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-card input:checked ~ .checkbox-box::after {
    display: block;
}

.checkbox-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.checkbox-card input:checked ~ .checkbox-label {
    color: white;
    font-weight: 600;
}

.checkbox-card:hover {
    background: rgba(13, 26, 29, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.checkbox-card input:checked ~ .checkbox-card {
    border-color: var(--accent);
}

.card-none {
    grid-column: span 2;
    border-color: rgba(136, 212, 224, 0.15);
    background: rgba(136, 212, 224, 0.03);
}

.card-none input:checked ~ .checkbox-box {
    border-color: var(--primary);
    background: var(--primary);
}

.card-none input:checked ~ .checkbox-box::after {
    border-color: white;
}

/* Conditional Field Styling */
.conditional-input {
    margin-top: 1.8rem;
    padding: 1.5rem;
    background: rgba(13, 26, 29, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    animation: slideDown 0.35s ease forwards;
}

.conditional-input input {
    width: 100%;
    background: rgba(13, 26, 29, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.2rem;
    color: white;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.conditional-input input:focus {
    border-color: var(--primary);
}

/* Step Navigation Buttons */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
}

.quiz-btn {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.quiz-btn-prev {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.quiz-btn-prev:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.quiz-btn-next {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(26, 110, 122, 0.25);
}

.quiz-btn-next:hover {
    background: #1e7d8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 110, 122, 0.4);
}

/* Step 3: Result & Conversion Panels */
.result-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
}

.result-card {
    background: rgba(13, 26, 29, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    position: relative;
}

.result-badge-container {
    position: absolute;
    top: -15px;
    left: 2.5rem;
}

.result-badge {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.result-main-grid {
    display: flex;
    gap: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.result-bmi-box {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.res-bmi-lbl {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
}

.res-bmi-val {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-header);
    margin: 0.3rem 0;
    line-height: 1;
}

.res-bmi-cat {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-details-box {
    flex-grow: 1;
}

.result-details-box h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.result-details-box ul {
    list-style: none;
    padding: 0; margin: 0;
}

.result-details-box li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 0.4rem;
}

.result-details-box li strong {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-right: 5px;
}

.result-diseases-box {
    margin-bottom: 2rem;
}

.result-diseases-box h5 {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.res-diseases-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.res-disease-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
}

.result-divider {
    border: none;
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 2rem 0;
}

.result-recommendation h4 {
    color: var(--accent);
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.result-recommendation p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

/* WhatsApp Conversion Card */
.conversion-panel {
    display: flex;
    align-items: center;
}

.whatsapp-card {
    background: rgba(26, 44, 48, 0.6);
    border: 2px solid rgba(46, 196, 182, 0.15);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    width: 100%;
}

.whatsapp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: #2ec4b6;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.wa-icon-glow {
    width: 66px;
    height: 66px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.8rem;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.4);
    animation: waPulse 2s infinite alternate;
}

.wa-svg-icon {
    width: 36px;
    height: 36px;
}

.whatsapp-card h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-header);
}

.whatsapp-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2.2rem;
}

.quiz-btn-wa {
    background: #25D366;
    color: white;
    border: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    font-size: 1.05rem;
    font-weight: 700;
    width: 100%;
    max-width: 320px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.quiz-btn-wa:hover {
    background: #20ba59;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.wa-disclaimer {
    display: block;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
    line-height: 1.4;
}

/* Animations */
@keyframes waPulse {
    0% {
        box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
        transform: scale(1.05);
    }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles for Quiz */
@media (max-width: 992px) {
    .result-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .quiz-section {
        padding: 5rem 0;
    }
    
    .quiz-card {
        padding: 2rem 1.5rem;
    }

    .quiz-steps-progress {
        margin-bottom: 3rem;
    }
    
    .quiz-step-item {
        width: 70px;
    }

    .step-circle {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .step-label {
        font-size: 0.72rem;
    }

    .quiz-step-line {
        margin-bottom: 20px;
    }

    .quiz-row {
        flex-direction: column;
        gap: 2rem;
    }

    .diseases-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .card-none {
        grid-column: span 1;
    }

    .result-main-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .result-bmi-box {
        min-width: unset;
        width: 100%;
    }

    .quiz-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   SECCIONES INTERNAS: TESTIMONIOS, BLOG Y ARTÍCULOS (OVERHAUL)
   ========================================================================== */

/* 1. HERO GLOBAL PARA PÁGINAS INTERNAS */
.internal-hero {
    position: relative;
    background: #0B1919; /* Dark Forest Teal matches --primary-dark */
    color: #ffffff;
    padding: 8rem 1rem 6rem;
    text-align: center;
    overflow: hidden;
}

.internal-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -30%;
    width: 80%; height: 150%;
    background: radial-gradient(circle, rgba(44, 98, 104, 0.15) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.internal-hero::after {
    content: '';
    position: absolute;
    bottom: -50%; right: -30%;
    width: 80%; height: 150%;
    background: radial-gradient(circle, rgba(245, 212, 94, 0.06) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.internal-hero-container {
    position: relative;
    z-index: 5;
    max-width: 800px;
    margin: 0 auto;
}

.internal-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.internal-hero p {
    font-size: 1.05rem;
    color: #A9B9C9;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* 2. RATING SUMMARY PARA TESTIMONIOS */
.test-stats-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 2.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 1rem;
}

.test-stats-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent); /* Gold */
}

.test-stats-info {
    text-align: left;
}

.test-stats-info .stars {
    color: #fbbc05;
    font-size: 1.2rem;
    letter-spacing: 2px;
    display: block;
}

.test-stats-info span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3. PREMIUM TESTIMONIAL CARDS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2.2rem;
    transition: var(--transition);
    border-top: 4px solid var(--accent);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 5rem;
    font-family: var(--font-heading);
    color: rgba(44, 98, 104, 0.06);
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--primary);
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.test-header strong {
    font-size: 1.05rem;
    color: var(--primary-dark);
    font-family: var(--font-body);
}

.test-header .stars {
    color: #fbbc05;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.testimonial-card p {
    color: var(--text-color);
    font-size: 0.92rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.test-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-light);
    border-top: 1px solid #f0edf8;
    padding-top: 1rem;
    margin-top: auto;
}

.test-verified-icon {
    color: #4CAF50;
    width: 14px;
    height: 14px;
}

/* 4. PREMIUM BLOG STYLING */
.blog-featured {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0;
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 4rem;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.blog-featured:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.blog-featured .blog-img {
    position: relative;
    overflow: hidden;
}

.blog-featured .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-featured:hover .blog-img img {
    transform: scale(1.04);
}

.blog-featured .blog-content {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-white);
}

.blog-tag {
    align-self: flex-start;
    background: rgba(44, 98, 104, 0.08);
    color: var(--primary);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.blog-featured h2 {
    font-size: 2.1rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-featured p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

.blog-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.blog-card .blog-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.04);
}

.blog-card .blog-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin: 0.8rem 0;
    line-height: 1.4;
    color: var(--primary-dark);
}

.blog-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* 5. ARTICLE CONTENT STYLING */
.article-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 4rem;
}

.article-content {
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.02);
}

.art-lead {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    line-height: 1.6;
}

.art-body {
    font-size: 1rem;
    line-height: 1.9;
    color: #4a4a4a;
}

.art-body p {
    margin-bottom: 1.8rem;
}

.art-body h2, .art-body h3 {
    margin: 2.5rem 0 1rem;
}

.art-body ul {
    margin: 1rem 0 2rem 1.5rem;
    list-style: disc;
}

.art-body li {
    margin-bottom: 0.6rem;
}

.doctor-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.02);
    position: sticky;
    top: 100px;
}

.doctor-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--bg-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.doctor-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
    color: var(--primary-dark);
}

.doctor-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Responsive adjustments for internals */
@media (max-width: 992px) {
    .blog-featured {
        grid-template-columns: 1fr;
    }
    .blog-featured .blog-img {
        height: 250px;
    }
    .article-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .doctor-card {
        position: relative;
        top: 0;
    }
}
@media (max-width: 768px) {
    .internal-hero h1 {
        font-size: 2.2rem;
    }
    .test-stats-card {
        flex-direction: column;
        gap: 0.5rem;
        border-radius: 20px;
        padding: 1.2rem;
    }
    .article-content {
        padding: 2rem 1.5rem;
    }
}


