/* ==========================================================================
   DRA. SANDRA LUZ — PROFESSIONAL & WARM DESIGN SYSTEM
   Clean · Elegant · Cheerful · Premium Medical
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Primary palette — sophisticated yet warm */
    --primary: #1a1a2e;
    --primary-light: #2d2d5e;
    --accent: #e8578a;          /* Warm pink from logo */
    --accent-hover: #d44577;
    --sky: #38bdf8;             /* Sky blue from logo */
    --sun: #f59e0b;             /* Amber from logo */
    --mint: #10b981;

    /* Neutrals */
    --bg: #fafafa;
    --bg-alt: #f4f1ed;
    --white: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;

    /* System */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.07);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.09);
    --ease: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka', sans-serif;
    color: var(--primary);
    font-weight: 600;
    margin: 0 0 0.5em;
    line-height: 1.2;
}

p {
    margin: 0 0 1em;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; transition: var(--ease); }
img { max-width: 100%; height: auto; }
svg { max-width: 100%; height: auto; }

/* Utility */
.section-label {
    display: inline-block;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 20px;
    color: var(--primary);
}

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

/* ==========================================================================
   NAVBAR — Clean, minimal, no frame on logo
   ========================================================================== */
.site-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: var(--ease);
}

.site-navbar.scrolled {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--ease);
}

.nav-logo:hover { opacity: 0.95; }

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

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

.logo-name {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.05rem, 3vw, 1.25rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.15;
}

.logo-sub {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(0.65rem, 1.8vw, 0.72rem);
    font-weight: 700;
    color: #258aee;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}

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

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

.nav-contact {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-phone {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.nav-phone svg { width: 16px; height: 16px; }
.nav-phone:hover { color: var(--accent); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--ease);
}

.nav-cta svg { width: 14px; height: 14px; }
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,87,138,0.3); }

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text);
    cursor: pointer;
}

/* ==========================================================================
   HERO — Elegant gradient with subtle floating circles
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 92vh;
    background: linear-gradient(160deg, #fdf2f8 0%, #eff6ff 40%, #fffbeb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 140px 24px 100px;
}

/* Ambient floating colorful blobs behind the hero content */
.hero-section::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: clamp(250px, 40vw, 450px);
    height: clamp(250px, 40vw, 450px);
    background: radial-gradient(circle, rgba(232, 87, 138, 0.22) 0%, rgba(232, 87, 138, 0) 70%);
    filter: blur(40px);
    z-index: 3;
    pointer-events: none;
    animation: ambientFloat1 16s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 10%;
    width: clamp(300px, 45vw, 500px);
    height: clamp(300px, 45vw, 500px);
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(245, 158, 11, 0.15) 45%, rgba(56, 189, 248, 0) 70%);
    filter: blur(50px);
    z-index: 3;
    pointer-events: none;
    animation: ambientFloat2 20s ease-in-out infinite alternate;
}

@keyframes ambientFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 20px) scale(1.1); }
}

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

.hero-grid-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(232,87,138,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(56,189,248,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.inner-heart-wall { display: none; }

/* ==========================================================================
   DANDELION ANIMATION & CENTERED HERO
   ========================================================================== */

/* Video de fondo y overlays */
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

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

.hero-video-overlay {
    position: absolute;
    inset: 0;
    /* Soft white fade ONLY at the very bottom to transition into the white section, leaving the video 100% colorful */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.3) 100%);
    z-index: 2;
}

/* Seguro contra caché de estrellas antiguas (las oculta de inmediato si main.js viejo se ejecuta) */
.star-particle, .star-oscillator, .star-particle svg {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* Contenedor de burbujas de jabón */
.dandelion-particle-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 15;
    overflow: hidden;
    transform: translateZ(0);
}

/* Burbuja de jabón individual — diseño hiperrealista tridimensional */
.bubble-particle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0) 70%
    );
    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Sombras internas múltiples para simular la iridiscencia del jabón */
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.5),
        inset 3px 0 15px rgba(232, 87, 138, 0.4),   /* Rosa (var(--accent)) */
        inset -3px 0 15px rgba(56, 189, 248, 0.4),  /* Azul (var(--sky)) */
        inset 0 3px 15px rgba(245, 158, 11, 0.3),   /* Amarillo (var(--sun)) */
        0 4px 8px rgba(0, 0, 0, 0.04);
    animation-name: floatBubble;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    z-index: 15;
    transform: translateZ(0);
    will-change: transform, opacity;
}

/* Reflejo de luz primario en la burbuja */
.bubble-particle::before {
    content: '';
    position: absolute;
    top: 12%;
    left: 15%;
    width: 25%;
    height: 25%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.9) 0%, transparent 80%);
    border-radius: 50%;
    transform: rotate(-30deg);
}

/* Reflejo de luz secundario sutil en el lado opuesto */
.bubble-particle::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 15%;
    width: 15%;
    height: 10%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.5) 0%, transparent 80%);
    border-radius: 50%;
    transform: rotate(20deg);
}

/* Variantes de color iridiscente reforzadas */
.bubble-particle.bubble-blue {
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.5),
        inset 4px 0 16px rgba(56, 189, 248, 0.55),   /* Azul cielo */
        inset -4px 0 16px rgba(139, 92, 246, 0.45),  /* Violeta */
        0 4px 8px rgba(0, 0, 0, 0.04);
}

.bubble-particle.bubble-pink {
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.5),
        inset 4px 0 16px rgba(244, 63, 94, 0.55),    /* Rosa Intenso */
        inset -4px 0 16px rgba(245, 158, 11, 0.45),  /* Amarillo Oro */
        0 4px 8px rgba(0, 0, 0, 0.04);
}

.bubble-particle.bubble-green {
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.5),
        inset 4px 0 16px rgba(52, 211, 153, 0.55),   /* Verde Esmeralda */
        inset -4px 0 16px rgba(56, 189, 248, 0.45),  /* Azul cielo */
        0 4px 8px rgba(0, 0, 0, 0.04);
}

/* Oscilador de burbuja — movimiento ondulante y natural */
.bubble-wobble {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: bubbleWobble 4s ease-in-out infinite alternate;
}

@keyframes bubbleWobble {
    0% { transform: translateX(-8px) scaleX(0.97) scaleY(1.03); }
    50% { transform: translateX(4px) scaleX(1.02) scaleY(0.98); }
    100% { transform: translateX(8px) scaleX(0.98) scaleY(1.02); }
}

@keyframes floatBubble {
    0% {
        transform: translate3d(0, 0, 0) scale(0);
        opacity: 0;
    }
    8% {
        opacity: 0.8;
        transform: translate3d(5px, -2vh, 0) scale(var(--start-scale, 1));
    }
    50% {
        opacity: 0.75;
    }
    80% {
        opacity: 0.5;
    }
    100% {
        transform: translate3d(var(--target-x, 60vw), var(--target-y, -40vh), 0) scale(0.2);
        opacity: 0;
    }
}

.ecg-line-real { display: none; }
.ecg-scanner { display: none; }

/* Estructura del contenido centrado (Removida la tarjeta de vidrio para visibilidad total del video) */
.hero-content.centered-hero {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.15;
    font-weight: 700;
    text-shadow: 
        0 2px 12px rgba(255, 255, 255, 0.95),
        0 0 25px rgba(255, 255, 255, 0.5);
}

/* Beautiful color gradient helper for titles (Restored original vibrant colors) */
.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #258aee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    text-shadow: none !important; /* CRITICAL: Prevent inherited text-shadow from showing through transparent text fill */
}

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: #0f172a; /* Dark slate for high contrast */
    font-weight: 700; /* Bolder font weight for crisp visibility */
    margin-bottom: 40px;
    line-height: 1.5;
    text-shadow: 
        0 2px 12px rgba(255, 255, 255, 0.95),
        0 0 25px rgba(255, 255, 255, 0.5);
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 138, 238, 0.1); /* Soft light blue background */
    color: #1d4ed8; /* Blue text */
    padding: 6px 16px;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 138, 238, 0.15);
    box-shadow: none;
    transition: var(--ease);
}

.hero-badge-pill:hover {
    transform: translateY(-1px);
    color: var(--accent);
}

.hero-badge-pill svg {
    color: var(--accent); /* Pink map pin for color pop */
    flex-shrink: 0;
}

/* Botones y acciones */
.hero-actions-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    width: 100%;
}

.btn-outline-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 15px 35px;
    border-radius: var(--radius-full);
    transition: var(--ease);
    text-decoration: none;
    cursor: pointer;
}

.btn-outline-hero:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Fila de confianza */
.hero-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.98rem;
    font-weight: 700; /* Bold text for readability */
    color: #1e293b; /* Dark slate blue text */
    background: transparent; /* Remove button background */
    padding: 0;
    border: none;
    box-shadow: none;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85); /* Readability over background video */
    transition: var(--ease);
}

.trust-pill:hover {
    transform: translateY(-1px);
}

.trust-pill svg {
    width: 16px;
    height: 16px;
    color: #10b981; /* High contrast mint green checkmark */
    flex-shrink: 0;
}

/* Botón de acción con efecto de pulso */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 6px 24px rgba(232,87,138,0.25), 0 0 0 0 rgba(232, 87, 138, 0.45);
    }
    70% {
        box-shadow: 0 6px 24px rgba(232,87,138,0.25), 0 0 0 15px rgba(232, 87, 138, 0);
    }
    100% {
        box-shadow: 0 6px 24px rgba(232,87,138,0.25), 0 0 0 0 rgba(232, 87, 138, 0);
    }
}

.btn-pulse {
    animation: buttonPulse 2.5s infinite;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    box-shadow: 0 6px 24px rgba(232,87,138,0.25);
    transition: var(--ease);
}

.hero-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(232,87,138,0.35);
}

.hero-cta svg { width: 20px; height: 20px; }

/* Wave divider */
.wave-divider { line-height: 0; margin-top: -2px; }
.wave-divider svg { display: block; width: 100%; height: 60px; }

/* ==========================================================================
   AUTHORITY — Clean photo + info, no polaroid, no stickers
   ========================================================================== */
.authority-section {
    padding: 100px 24px;
    background: var(--white);
}

.authority-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.authority-photo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.authority-photo {
    border-radius: var(--radius);
    max-width: 380px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transition: var(--ease);
}

.authority-photo-wrapper:hover .authority-photo {
    transform: translateY(-4px);
    box-shadow: 0 24px 56px rgba(0,0,0,0.12);
}

.authority-badge {
    position: absolute;
    bottom: -16px; left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--accent);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.authority-badge svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }

.authority-specialty {
    color: var(--sky);
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 16px;
    display: block;
}

.authority-text {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Cedulas — Clean minimal cards, no folder tabs */
.cedulas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.cedula-item {
    background: var(--bg);
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--ease);
}

.cedula-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xs);
}

.cedula-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.cedula-number {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 600;
}

/* Trust badge */
.trust-badges { margin-top: 24px; margin-bottom: 24px; }

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--ease);
}

.trust-badge > svg { width: 20px; height: 20px; flex-shrink: 0; }
.trust-badge:hover { border-color: var(--sun); box-shadow: var(--shadow-xs); }

.trust-badge-num {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

.trust-badge-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
    color: var(--sun);
    font-size: 0.8rem;
}

.trust-badge-stars svg { width: 12px; height: 12px; fill: currentColor; }
.trust-badge-stars span { margin-left: 4px; font-size: 0.8rem; color: var(--text-light); font-weight: 700; }

/* ==========================================================================
   BOOKING — Clean 2-column with contact cards + widget
   ========================================================================== */
.booking-section {
    padding: 100px 24px;
    background: var(--bg-alt);
}

.booking-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.booking-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: var(--ease);
    border: 1px solid var(--border);
}

.booking-contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: transparent;
}

.booking-icon {
    width: 48px; height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(232,87,138,0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.booking-contact-item:nth-child(2) .booking-icon { background: rgba(56,189,248,0.08); color: var(--sky); }
.booking-contact-item:nth-child(3) .booking-icon { background: rgba(245,158,11,0.08); color: var(--sun); }

.booking-text strong {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.booking-text span, .booking-text a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.booking-widget-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.booking-widget-wrapper::after { display: none; }

/* ==========================================================================
   EXPERIENCE + ACCORDION + GALLERY — Open, unboxed, premium
   ========================================================================== */
.experience-section {
    padding: 100px 24px;
    background: var(--white);
}

.experience-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

/* Accordion — Open style, no boxes */
.exp-category {
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
    border: none;
    border-bottom: 1px solid var(--border);
    transition: var(--ease);
}

.exp-category:last-child { border-bottom: none; }

.exp-category.active {
    border-color: var(--border);
}

.exp-category-title {
    padding: 22px 0;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    font-weight: 600;
    transition: var(--ease);
}

.exp-category-title:hover { color: var(--accent); }



.exp-chevron {
    transition: var(--ease);
    opacity: 0.4;
}

.exp-category.active .exp-chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--accent);
}

.exp-list-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.exp-category.active .exp-list-wrapper { max-height: 600px; }

/* --- Vertical Timeline for Trayectoria Profesional --- */
.timeline-container {
    padding: 10px 10px 10px 24px;
    position: relative;
    border-left: 2px solid rgba(232, 87, 138, 0.15); /* Pink theme line */
    margin-left: 14px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    display: flex;
    position: relative;
    padding-left: 20px;
    align-items: flex-start;
}

.timeline-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    position: absolute;
    left: -15px; /* Centered on the line */
    z-index: 2;
    transition: var(--ease);
    box-shadow: var(--shadow-xs);
}

.timeline-item:hover .timeline-icon {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(232, 87, 138, 0.25);
}

.timeline-icon.teach {
    border-color: #258aee;
    color: #258aee;
}

.timeline-item:hover .timeline-icon.teach {
    background: #258aee;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(37, 138, 238, 0.25);
}

.timeline-content {
    display: flex;
    flex-direction: column;
    padding-top: 2px;
}

.timeline-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 3px 0;
    line-height: 1.2;
}

.timeline-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* --- Category Header Icons --- */
.category-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--ease);
}

/* 1st Category: Trayectoria (Pink) */
.exp-category:nth-child(1) .category-header-icon {
    background: rgba(232, 87, 138, 0.08);
    color: var(--accent);
    border-color: rgba(232, 87, 138, 0.15);
}
.exp-category:nth-child(1).active .category-header-icon {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(232, 87, 138, 0.2);
}

/* 2nd Category: Especialidad (Blue) */
.exp-category:nth-child(2) .category-header-icon {
    background: rgba(37, 138, 238, 0.08);
    color: #258aee;
    border-color: rgba(37, 138, 238, 0.15);
}
.exp-category:nth-child(2).active .category-header-icon {
    background: #258aee;
    color: var(--white);
    border-color: #258aee;
    box-shadow: 0 4px 12px rgba(37, 138, 238, 0.2);
}

/* 3rd Category: Padecimientos (Amber) */
.exp-category:nth-child(3) .category-header-icon {
    background: rgba(245, 158, 11, 0.08);
    color: var(--sun);
    border-color: rgba(245, 158, 11, 0.15);
}
.exp-category:nth-child(3).active .category-header-icon {
    background: var(--sun);
    color: var(--white);
    border-color: var(--sun);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.category-header-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    margin-right: 0 !important;
    color: currentColor !important;
}

/* Accordion customization */
.exp-category-title {
    padding: 16px 0;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
    font-weight: 600;
    transition: var(--ease);
}

.exp-chevron {
    margin-left: auto;
    transition: var(--ease);
    opacity: 0.4;
}

/* --- Grid Pills for Specialties & Conditions --- */
.grid-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 0 16px 0;
}

.pill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fdfdfd;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    transition: var(--ease);
    box-shadow: 0 2px 6px rgba(0,0,0,0.01);
}

.pill-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pill-full {
    grid-column: span 2;
}

/* Study theme colors */
.study-theme .pill-item {
    border-left: 3px solid #258aee;
}
.study-theme .pill-item svg {
    color: #258aee;
}
.study-theme .pill-item:hover {
    border-color: #258aee;
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 138, 238, 0.08);
}

/* Conditions theme colors */
.padecimientos-theme .pill-item {
    border-left: 3px solid var(--accent);
}
.padecimientos-theme .pill-item svg {
    color: var(--accent);
}
.padecimientos-theme .pill-item:hover {
    border-color: var(--accent);
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 87, 138, 0.08);
}

/* --- Gallery Layout (Symmetric Squares) --- */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--ease);
    position: relative;
    cursor: zoom-in; /* Indicates it can be expanded */
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Prioritizes faces/heads! */
    transition: transform 0.5s ease;
}

/* Hover effects */
.gallery-item::after {
    content: '🔍 Ampliar';
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: transparent;
}

/* --- Premium Lightbox Modal --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.95);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

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

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--white);
    font-size: 2.8rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--ease);
    opacity: 0.7;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ==========================================================================
   TESTIMONIALS — Clean cards, soft shadows
   ========================================================================== */
.testimonials-section {
    padding: 100px 24px;
    background: var(--bg-alt);
}

.testimonials-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.google-rating-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
}

.google-logo { width: 24px; height: 24px; }

.google-rating-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.google-stars {
    display: flex;
    gap: 2px;
    color: var(--sun);
    margin-top: 2px;
}

.google-stars svg { width: 14px; height: 14px; fill: currentColor; }

.testimonials-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    transition: var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.testimonial-google-mark {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.testimonial-google-mark img { width: 14px; height: 14px; }

.testimonial-stars {
    display: flex;
    gap: 3px;
    color: var(--sun);
    margin-bottom: 14px;
}

.testimonial-stars svg { width: 16px; height: 16px; fill: currentColor; }

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--sky));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-card:nth-child(2n) .testimonial-avatar {
    background: linear-gradient(135deg, var(--sky), var(--mint));
}

.testimonial-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

.testimonial-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.testimonials-btn-wrapper { text-align: center; margin-top: 40px; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent;
    transition: var(--ease);
}

.btn-outline svg { width: 16px; height: 16px; }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   BLOG — Clean cards
   ========================================================================== */
.blog-section {
    padding: 100px 24px;
    background: var(--white);
}

.blog-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: var(--ease);
}

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

.blog-card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

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

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

.blog-card-title {
    font-size: 1.15rem;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 10px;
}

.blog-card-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.blog-card-link {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: var(--accent);
    font-size: 0.9rem;
}

.blog-card:hover .blog-card-link { color: var(--accent-hover); }
.blog-btn-wrapper { text-align: center; margin-top: 40px; }

/* ==========================================================================
   BLOG PAGE (blog.php)
   ========================================================================== */
.blog-page-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 140px 24px 80px;
    text-align: center;
    color: #fff;
    position: relative;
}

.blog-page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(232,87,138,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.blog-page-hero-inner { max-width: 800px; margin: 0 auto; }
.blog-page-title { font-size: clamp(2rem, 4vw, 3rem); color: #fff; }
.blog-page-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto 24px; }

.blog-hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.blog-hero-badges span {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-page-container { max-width: 1100px; margin: 0 auto; padding: 60px 24px; }

.blog-featured-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 50px;
    border: 1px solid var(--border);
    transition: var(--ease);
}

.blog-featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-featured-img-wrap { position: relative; height: 380px; }
.blog-featured-img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured-placeholder { display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--bg); }
.blog-featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-title { font-size: 1.6rem; color: var(--primary); line-height: 1.2; margin-bottom: 16px; }
.blog-featured-excerpt { font-size: 1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }

.blog-featured-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-readmore { font-family: 'Fredoka', sans-serif; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

.blog-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.blog-page-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--ease);
}

.blog-page-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.blog-page-card-img-wrap { height: 200px; }
.blog-page-card-img { width: 100%; height: 100%; object-fit: cover; }
.blog-page-placeholder { display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: var(--bg); height: 100%; }
.blog-page-card-body { padding: 24px; }

.blog-page-card-meta {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-page-card-title { font-size: 1.15rem; color: var(--primary); line-height: 1.3; margin-bottom: 10px; }
.blog-page-card-excerpt { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 16px; }
.blog-page-card-cta { font-family: 'Fredoka', sans-serif; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* CTA bar */
.blog-page-cta {
    margin-top: 50px;
    background: linear-gradient(135deg, var(--accent), var(--sky));
    border-radius: var(--radius);
    padding: 40px;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.blog-page-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.blog-page-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.blog-page-cta p { color: rgba(255,255,255,0.9); font-size: 1rem; margin: 0; }

.art-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--primary);
    padding: 14px 30px;
    border-radius: var(--radius-full);
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--ease);
}

.art-cta-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ==========================================================================
   ARTICLE PAGE (articulo.php)
   ========================================================================== */
.art-hero {
    height: 45vh; min-height: 350px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 60px 24px;
    overflow: hidden;
}

.art-hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.art-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,46,0.85) 0%, rgba(26,26,46,0.2) 100%); }

.art-hero-content {
    position: relative; z-index: 10;
    max-width: 800px; margin: 0 auto; width: 100%; color: #fff;
}

.art-hero-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: #fff; margin-bottom: 16px; }
.art-meta { display: flex; gap: 20px; font-size: 0.9rem; color: rgba(255,255,255,0.75); font-weight: 600; }
.art-meta span { display: flex; align-items: center; gap: 6px; }

.art-layout {
    max-width: 1100px; margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 50px;
}

.art-main {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
}

.art-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin-bottom: 32px;
}

.art-body { font-size: 1.05rem; line-height: 1.8; color: var(--text-muted); }
.art-body h2, .art-body h3 { margin-top: 1.5em; color: var(--primary); }
.art-body p { margin-bottom: 1.4em; }
.art-body ul, .art-body ol { margin-bottom: 1.4em; padding-left: 20px; }
.art-body li { margin-bottom: 6px; }

.art-footer-cta {
    margin: 50px 0 30px;
    background: linear-gradient(135deg, var(--sky), var(--primary-light));
    border-radius: var(--radius);
    padding: 32px;
    color: #fff;
}

.art-footer-cta-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.art-footer-cta-text h3 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.art-footer-cta-text p { color: rgba(255,255,255,0.85); margin: 0; }
.art-back-link { display: inline-flex; align-items: center; gap: 6px; font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--accent); margin-top: 16px; }

/* Sidebar */
.art-sidebar { display: flex; flex-direction: column; gap: 30px; }

.sidebar-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.sidebar-title {
    font-size: 1.1rem;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-posts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.sidebar-post-link { display: flex; gap: 12px; align-items: center; }
.sidebar-post-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.sidebar-post-placeholder { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--bg); border-radius: 8px; flex-shrink: 0; }
.sidebar-post-info { display: flex; flex-direction: column; }
.sidebar-post-title { font-weight: 700; font-size: 0.88rem; color: var(--primary); line-height: 1.3; }
.sidebar-post-date { font-size: 0.75rem; color: var(--text-light); margin-top: 3px; }

.sidebar-doctor { text-align: center; }
.sidebar-doctor-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.sidebar-doctor-name { font-size: 1.1rem; color: var(--primary); margin-bottom: 4px; }
.sidebar-doctor-specialty { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 16px; }

.sidebar-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-full);
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

.sidebar-wa-btn svg { width: 16px; height: 16px; }
.sidebar-wa-btn:hover { background: var(--accent-hover); }

.sidebar-cedula-item { margin-bottom: 10px; }
.sidebar-cedula-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--text-light); }
.sidebar-cedula-num { font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--primary); font-size: 0.95rem; }

/* ==========================================================================
   TESTIMONIOS PAGE (testimonios.php)
   ========================================================================== */
.test-page-hero {
    background: linear-gradient(135deg, var(--sky), var(--primary-light));
    padding: 140px 24px 80px;
    text-align: center;
    color: #fff;
}

.test-page-hero-inner { max-width: 800px; margin: 0 auto; }
.test-page-title { font-size: clamp(2rem, 4vw, 3rem); color: #fff; }
.test-page-subtitle { font-size: 1.1rem; color: rgba(255, 255, 255, 0.85); max-width: 600px; margin: 10px auto 0; line-height: 1.6; }

.test-page-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.test-stat-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 12px 24px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.test-stat-num { font-family: 'Fredoka', sans-serif; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.test-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.75); font-weight: 600; }
.test-hero-stars { display: flex; gap: 3px; color: var(--sun); }
.test-hero-stars svg { width: 16px; height: 16px; fill: currentColor; }

.test-page-container { max-width: 1100px; margin: 0 auto; padding: 60px 24px; }
.test-pagination-info { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; text-align: center; }

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

/* Pagination */
.test-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 50px;
}

.test-page-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--ease);
}

.test-page-btn:hover:not(.test-page-btn--disabled) { border-color: var(--accent); color: var(--accent); }
.test-page-btn--active { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; }
.test-page-btn--disabled { opacity: 0.3; cursor: not-allowed; }
.test-page-ellipsis { font-family: 'Fredoka', sans-serif; font-size: 1.2rem; color: var(--text-light); padding: 0 6px; }

.test-bottom-cta {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    margin-top: 60px;
}

.test-bottom-cta h3 { font-size: 1.4rem; color: var(--primary); }
.test-bottom-cta p { font-size: 1rem; color: var(--text-muted); margin-bottom: 24px; }

.test-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 14px 30px;
    border-radius: var(--radius-full);
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    transition: var(--ease);
}

.test-cta-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ==========================================================================
   FORM (resenas.php)
   ========================================================================== */
#sicoc-opiniones-form label {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

#sicoc-opiniones-form input[type="text"],
#sicoc-opiniones-form textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    outline: none;
    background: var(--bg);
    transition: var(--ease);
}

#sicoc-opiniones-form input[type="text"]:focus,
#sicoc-opiniones-form textarea:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232,87,138,0.08);
}

#star-rating {
    display: flex;
    gap: 6px;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    color: var(--sun);
}

/* ==========================================================================
   FOOTER — Dark, professional
   ========================================================================== */
.site-footer {
    background: #111029;
    color: #fff;
    padding: 80px 24px 32px;
    position: relative;
}

.site-footer::before { display: none; }

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col-title {
    color: #fff;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-loc-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--ease);
}

.footer-loc-card:hover { background: rgba(255,255,255,0.08); border-color: var(--sky); transform: translateY(-2px); }
.footer-loc-icon { font-size: 1.4rem; }
.footer-loc-name { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1rem; color: #fff; margin-bottom: 3px; }
.footer-loc-addr { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.4; }

.footer-prices { width: 100%; border-collapse: collapse; }
.footer-prices td { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.92rem; font-weight: 600; }
.footer-prices tr td:last-child { text-align: right; font-family: 'Fredoka', sans-serif; color: var(--sun); font-size: 1.05rem; }

.footer-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 24px;
    transition: var(--ease);
}

.footer-wa-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-wa-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.3); }

.footer-sched h4 { color: var(--sky); font-size: 0.9rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.footer-sched p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0 0 8px; line-height: 1.5; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

.footer-cedulas-text {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    margin-top: 8px;
    font-family: 'Fredoka', sans-serif;
}

/* ==========================================================================
   MAP MODALS
   ========================================================================== */
.map-modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(17,16,41,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: var(--ease);
}

.map-modal-overlay.active { opacity: 1; pointer-events: auto; }

.map-modal {
    background: var(--white);
    width: 100%; max-width: 600px;
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: var(--ease);
}

.map-modal-overlay.active .map-modal { transform: scale(1); }

.map-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    border: none;
    background: var(--bg);
    color: var(--text);
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--ease);
}

.map-modal-close:hover { background: var(--accent); color: #fff; }
.map-modal-title { font-family: 'Fredoka', sans-serif; font-size: 1.2rem; color: var(--primary); margin-bottom: 4px; font-weight: 600; }
.map-modal-addr { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.map-modal iframe { width: 100%; height: 300px; border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* ==========================================================================
   FLOATING BUTTONS
   ========================================================================== */
.float-social {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 999;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--ease);
}

.float-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.float-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(37,211,102,0.5); }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.dr-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .nav-links { display: none; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        padding: 24px;
        box-shadow: var(--shadow-md);
        gap: 16px;
        z-index: 99;
    }

    .nav-hamburger { display: block; }

    .authority-container,
    .booking-container,
    .experience-container { grid-template-columns: 1fr; gap: 40px; }

    .cedulas-grid { grid-template-columns: repeat(3, 1fr); }

    .blog-featured-card { grid-template-columns: 1fr; }
    .blog-featured-img-wrap { height: 240px; }
    .art-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-contact { display: none; }
    .hero-section {
        padding-top: 80px;
        min-height: 80vh;
        overflow: visible !important; /* FIX iOS Safari: overflow:hidden kills animated children */
        display: flex;
        align-items: flex-end; /* Align card to the bottom of the section to prevent covering faces */
        padding-bottom: 45px;
    }
    .hero-content.centered-hero {
        padding: 20px;
        border-radius: 20px;
        margin: 0 16px;
        background: rgba(255, 255, 255, 0.65); /* More transparent so video shows through nicely */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.45);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
        width: calc(100% - 32px); /* Guarantee mobile scaling */
    }
    .hero-badge-pill {
        display: none !important; /* Hide badge pill on mobile to simplify layout */
    }
    .hero-subtitle {
        display: none !important; /* Hide long paragraph on mobile to save vertical space */
    }
    /* Hide ambient blur blobs on mobile — filter:blur on pseudo-elements
       creates broken stacking contexts in WebKit that clip siblings */
    .hero-section::before,
    .hero-section::after {
        display: none !important;
    }
    /* Let the particle container clip itself instead of relying on parent */
    .dandelion-particle-container {
        overflow: hidden;
        clip-path: inset(0); /* Reliable clipping that doesn't interfere with transforms */
    }
    .hero-title { 
        font-size: clamp(1.7rem, 6.2vw, 2.4rem); 
        text-shadow: none !important; /* No text shadow needed inside the white card */
        margin-bottom: 14px;
    }
    .bubble-particle {
        box-shadow: none !important;
    }
    .bubble-wobble {
        animation: none !important;
    }
    .cedulas-grid { grid-template-columns: 1fr; }

    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .grid-pills {
        grid-template-columns: 1fr;
    }

    .pill-full {
        grid-column: span 1;
    }

    .timeline-container {
        border-left-width: 2px;
    }
    .site-footer { padding-top: 50px; }
    .booking-container { gap: 30px; }
}

@media (max-width: 480px) {
    .hero-cta { padding: 14px 28px; font-size: 0.95rem; }
    .section-title { font-size: 1.6rem; }
    .gallery-masonry {
        grid-template-columns: 1fr;
    }
}