/* ======= DR. CARLOS ROBERTO — V2 — Clon exacto del diseño original ======= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1B2A4A;
    --primary-light: #2D4A7A;
    --primary-dark: #0F1B33;
    --accent: #4A8CFF;
    --accent-soft: #6BA3FF;
    --accent-glow: rgba(74, 140, 255, 0.15);
    --bg-light: #F0F4FA;
    --bg-white: #FFFFFF;
    --text-dark: #1A1F2E;
    --text-body: #4A5568;
    --text-light: #8899AA;
    --shadow-sm: 0 2px 8px rgba(27, 42, 74, 0.06);
    --shadow-md: 0 4px 24px rgba(27, 42, 74, 0.10);
    --shadow-lg: 0 12px 48px rgba(27, 42, 74, 0.14);
    --radius: 14px;
    --radius-lg: 22px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    line-height: 1.2;
    margin: 0 0 0.5em;
}

p {
    color: var(--text-body);
    margin: 0 0 1em;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* === SCROLL REVEAL === */
.dr-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.js-ready .dr-reveal {
    opacity: 0;
    transform: translateY(30px);
}

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

/* ============================================================
   NAVBAR
   ============================================================ */
.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(27, 42, 74, 0.1);
    box-shadow: 0 2px 12px rgba(27, 42, 74, 0.07);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* Estado compacto al hacer scroll */
.site-navbar.scrolled {
    box-shadow: 0 4px 24px rgba(27, 42, 74, 0.12);
}

.site-navbar.scrolled .nav-inner {
    padding-top: 8px;
    padding-bottom: 8px;
}

.site-navbar.scrolled .nav-logo img {
    height: 46px;
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 20px;
    transition: padding 0.3s ease;
}

/* Logo — más grande */
.nav-logo img {
    height: 65px;
    width: auto;
    transition: height 0.3s ease;
    filter: brightness(1.1);
}

/* Links centrales */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

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

/* Lado derecho: teléfono + botón WhatsApp */
.nav-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-phone:hover {
    color: var(--accent);
}

/* CTA azul con animación de latido */
@keyframes navHeartbeat {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(74, 140, 255, 0.25);
        transform: scale(1);
    }

    15% {
        box-shadow: 0 6px 24px rgba(74, 140, 255, 0.55);
        transform: scale(1.06);
    }

    30% {
        box-shadow: 0 4px 16px rgba(74, 140, 255, 0.30);
        transform: scale(1.01);
    }

    45% {
        box-shadow: 0 6px 20px rgba(74, 140, 255, 0.45);
        transform: scale(1.04);
    }

    60% {
        box-shadow: 0 4px 14px rgba(74, 140, 255, 0.25);
        transform: scale(1);
    }
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    animation: navHeartbeat 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    transition: transform 0.2s;
}

.nav-cta:hover {
    animation: none;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 26px rgba(74, 140, 255, 0.5);
    color: #fff !important;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
}

/* ============================================================
   SECTION 1: HERO — INSIDE THE HEART
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% 50%, #1a0510 0%, #0d0818 40%, #050510 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 20px;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(180, 30, 30, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(140, 20, 40, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(100, 10, 30, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: tissuePulse 1.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

@keyframes tissuePulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    15% {
        opacity: 1;
        transform: scale(1.03);
    }

    30% {
        opacity: 0.6;
        transform: scale(1);
    }

    45% {
        opacity: 0.9;
        transform: scale(1.02);
    }

    60% {
        opacity: 0.5;
        transform: scale(1);
    }
}

.inner-heart-wall {
    position: absolute;
    inset: -20vh -20vw;
    background: radial-gradient(ellipse at 50% 50%, transparent 25%, rgba(80, 10, 20, 0.35) 55%, rgba(40, 5, 15, 0.7) 80%, rgba(15, 2, 8, 0.95) 100%);
    z-index: 1;
    pointer-events: none;
    animation: heartMuscleContract 1.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

@keyframes heartMuscleContract {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
        opacity: 0.6;
    }

    15% {
        transform: scale(0.92);
        filter: brightness(1.3);
        opacity: 0.95;
    }

    30% {
        transform: scale(0.98);
        filter: brightness(1.05);
        opacity: 0.7;
    }

    45% {
        transform: scale(0.94);
        filter: brightness(1.2);
        opacity: 0.85;
    }

    60% {
        transform: scale(1);
        filter: brightness(1);
        opacity: 0.6;
    }
}

.blood-flow-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
    perspective: 800px;
}

.rbc {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, rgba(255, 70, 70, 0.9) 0%, rgba(200, 25, 25, 0.75) 40%, rgba(130, 10, 10, 0.6) 100%);
    border-radius: 45% 55% 42% 58% / 55% 45% 58% 42%;
    box-shadow: inset -1px -1px 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(220, 50, 50, 0.4), 0 0 20px rgba(200, 40, 40, 0.15);
    border: 1px solid rgba(255, 90, 90, 0.1);
    opacity: 0.8;
}

.rbc::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    right: 25%;
    bottom: 25%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(60, 0, 0, 0.45) 0%, transparent 60%);
}

.wbc {
    position: absolute;
    background: radial-gradient(circle at 35% 35%, rgba(255, 240, 245, 0.85) 0%, rgba(220, 200, 210, 0.6) 50%, rgba(180, 160, 180, 0.4) 100%);
    border-radius: 50%;
    box-shadow: inset -2px -2px 8px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 200, 220, 0.25), 0 0 30px rgba(255, 180, 200, 0.1);
    filter: drop-shadow(0 0 8px rgba(255, 200, 220, 0.3));
}

.platelet {
    position: absolute;
    background: radial-gradient(circle at 40% 40%, rgba(255, 220, 230, 0.7) 0%, rgba(200, 170, 190, 0.5) 60%, rgba(160, 130, 160, 0.3) 100%);
    border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
    box-shadow: 0 0 6px rgba(255, 180, 200, 0.2);
}

@keyframes flowRBC1 {
    0% {
        transform: translate3d(-8vw, 15vh, -50px) scale(0.7) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: 0.75;
    }

    30% {
        transform: translate3d(22vw, -5vh, 80px) scale(1) rotate(55deg);
    }

    70% {
        transform: translate3d(68vw, -8vh, -30px) scale(0.85) rotate(200deg);
        opacity: 0.7;
    }

    100% {
        transform: translate3d(110vw, 0vh, -100px) scale(0.6) rotate(360deg);
        opacity: 0;
    }
}

@keyframes flowRBC2 {
    0% {
        transform: translate3d(110vw, -10vh, 40px) scale(0.6) rotate(0deg);
        opacity: 0;
    }

    8% {
        opacity: 0.7;
    }

    50% {
        transform: translate3d(50vw, -5vh, 60px) scale(1) rotate(-100deg);
    }

    100% {
        transform: translate3d(-10vw, 5vh, -80px) scale(0.5) rotate(-360deg);
        opacity: 0;
    }
}

@keyframes flowRBC3 {
    0% {
        transform: translate3d(30vw, -25vh, -60px) scale(0.5) rotate(10deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    60% {
        transform: translate3d(60vw, 35vh, -20px) scale(1.05) rotate(180deg);
    }

    100% {
        transform: translate3d(80vw, -15vh, -100px) scale(0.6) rotate(340deg);
        opacity: 0;
    }
}

@keyframes flowWBC {
    0% {
        transform: translate3d(-5vw, -15vh, 30px) scale(0.8) rotate(0deg);
        opacity: 0;
    }

    12% {
        opacity: 0.5;
    }

    50% {
        transform: translate3d(50vw, 5vh, 100px) scale(1.05) rotate(30deg);
    }

    100% {
        transform: translate3d(110vw, 15vh, -20px) scale(0.7) rotate(60deg);
        opacity: 0;
    }
}

@keyframes flowPlatelet {
    0% {
        transform: translate3d(20vw, -20vh, -30px) scale(0.8) rotate(0deg);
        opacity: 0;
    }

    15% {
        opacity: 0.55;
    }

    50% {
        transform: translate3d(55vw, 25vh, 60px) scale(1.1) rotate(180deg);
    }

    100% {
        transform: translate3d(-5vw, 8vh, -80px) scale(0.6) rotate(360deg);
        opacity: 0;
    }
}

.ecg-line-real {
    position: absolute;
    bottom: 18%;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 3;
    opacity: 0.4;
    filter: drop-shadow(0 0 8px rgba(255, 80, 80, 0.5));
    animation: ecgPulseGlow 1.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.ecg-line-real svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ecg-line-real path {
    fill: none;
    stroke: rgba(255, 80, 80, 0.7);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 2200;
    stroke-dashoffset: 2200;
    animation: ecgDraw 3.6s linear infinite;
}

@keyframes ecgDraw {
    0% {
        stroke-dashoffset: 2200;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes ecgPulseGlow {

    0%,
    100% {
        opacity: 0.25;
        filter: drop-shadow(0 0 5px rgba(255, 80, 80, 0.3));
    }

    15% {
        opacity: 0.7;
        filter: drop-shadow(0 0 15px rgba(255, 80, 80, 0.7));
    }

    45% {
        opacity: 0.6;
        filter: drop-shadow(0 0 12px rgba(255, 80, 80, 0.6));
    }
}

.ecg-scanner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 15px;
    background: linear-gradient(90deg, transparent, rgba(255, 80, 80, 0.5));
    box-shadow: 8px 0 25px rgba(255, 60, 60, 0.35);
    animation: scanLine 3.6s linear infinite;
    z-index: 4;
}

@keyframes scanLine {
    0% {
        left: 0%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    width: 100%;
    animation: heroBreath 1.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

@keyframes heroBreath {

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

    15% {
        transform: scale(1.015) translateY(-3px);
    }

    45% {
        transform: scale(1.01) translateY(-2px);
    }
}

.hero-title {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(2.2rem, 5vw, 3.8rem) !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    margin-bottom: 12px;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3), 0 2px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    line-height: 1.15;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(0.95rem, 1.8vw, 1.2rem) !important;
    color: rgba(255, 200, 210, 0.8) !important;
    -webkit-text-fill-color: rgba(255, 200, 210, 0.8) !important;
    font-weight: 300 !important;
    margin-bottom: 45px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6) !important;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 70, 70, 0.85), rgba(200, 30, 60, 0.9));
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 50, 50, 0.3), 0 0 50px rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    animation: ctaPulse 1.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 8px 30px rgba(255, 50, 50, 0.2), 0 0 40px rgba(255, 50, 50, 0.05);
    }

    15% {
        box-shadow: 0 8px 40px rgba(255, 50, 50, 0.5), 0 0 80px rgba(255, 50, 50, 0.2);
    }

    45% {
        box-shadow: 0 8px 35px rgba(255, 50, 50, 0.4), 0 0 60px rgba(255, 50, 50, 0.15);
    }
}

@keyframes ctaPulseBlue {

    0%,
    100% {
        box-shadow: 0 8px 30px rgba(38, 47, 96, 0.3), 0 0 50px rgba(38, 47, 96, 0.1);
    }

    50% {
        box-shadow: 0 8px 40px rgba(38, 47, 96, 0.5), 0 0 60px rgba(38, 47, 96, 0.2);
    }
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 50px rgba(255, 50, 50, 0.5), 0 0 100px rgba(255, 50, 50, 0.2);
    color: #FFFFFF;
    background: linear-gradient(135deg, rgba(255, 90, 90, 0.95), rgba(220, 40, 70, 1));
}

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

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 80, 80, 0.6);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 8s ease-in-out infinite;
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    20% {
        opacity: 0.25;
    }

    80% {
        opacity: 0.25;
    }

    100% {
        opacity: 0;
        transform: translateY(-20vh) scale(1);
    }
}

/* === WAVE DIVIDER === */
.wave-divider {
    position: relative;
    margin-top: -2px;
    line-height: 0;
    z-index: 10;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ============================================================
   SECTION 2: AUTHORITY
   ============================================================ */
.authority-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

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

.authority-photo-wrapper {
    position: relative;
}

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

.authority-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.authority-badge svg {
    width: 18px;
    height: 18px;
}

.authority-info h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 8px;
}

.authority-specialty {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: block;
}

.authority-text {
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.cedulas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.cedula-item {
    background: var(--bg-light);
    padding: 14px 16px;
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
}

.cedula-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.cedula-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
}

/* ── Trust Badges ── */
.trust-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    border: 1px solid rgba(27, 42, 74, 0.09);
    border-radius: 12px;
    padding: 10px 14px;
    text-decoration: none;
    flex: 1;
    min-width: 130px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent);
}

.trust-badge-num {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.trust-badge-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

.trust-badge-stars span {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-light);
    margin-left: 3px;
}

.trust-badge-sub {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 2px;
}


.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

/* ============================================================
   SECTION 3: PRESS
   ============================================================ */
.press-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

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

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

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 40px;
}

.press-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

a.press-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

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

a.press-card img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    object-position: top;
    transition: transform 0.5s ease;
}

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

.press-card-body {
    padding: 20px 24px;
}

.press-card-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.press-card-source svg {
    width: 14px;
    height: 14px;
}

.press-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.press-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 10px;
    transition: gap 0.3s ease;
}

a.press-card:hover .press-card-readmore {
    gap: 10px;
}

/* ============================================================
   SECTION 4: EXPERIENCE + MASONRY GALLERY
   ============================================================ */
.experience-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

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

.exp-category {
    margin-bottom: 0;
}

.exp-category-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-bottom: 1px solid rgba(27, 42, 74, 0.1);
    transition: all 0.3s ease;
    user-select: none;
}

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

.exp-category-title svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.exp-chevron {
    margin-left: auto;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: var(--accent);
}

.exp-category.active .exp-chevron {
    transform: rotate(180deg);
}

.exp-list-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.exp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exp-list li {
    padding: 10px 0 10px 18px;
    border-bottom: 1px solid rgba(27, 42, 74, 0.06);
    font-size: 0.92rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.exp-category.active .exp-list li {
    opacity: 1;
    transform: translateX(0);
}

.exp-list li:nth-child(1) {
    transition-delay: 0.05s;
}

.exp-list li:nth-child(2) {
    transition-delay: 0.1s;
}

.exp-list li:nth-child(3) {
    transition-delay: 0.15s;
}

.exp-list li:nth-child(4) {
    transition-delay: 0.2s;
}

.exp-list li:nth-child(5) {
    transition-delay: 0.25s;
}

.exp-list li:nth-child(6) {
    transition-delay: 0.3s;
}

.exp-list li:nth-child(7) {
    transition-delay: 0.35s;
}

.exp-list li:nth-child(8) {
    transition-delay: 0.4s;
}

.exp-list li:nth-child(9) {
    transition-delay: 0.45s;
}

.exp-list li:nth-child(10) {
    transition-delay: 0.5s;
}

.exp-list li:hover {
    padding-left: 26px;
    color: var(--primary);
}

.exp-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.logros-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
}

.logro-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(74, 140, 255, 0.06), rgba(74, 140, 255, 0.12));
    border-radius: 12px;
    border-left: 3px solid var(--accent);
    font-size: 0.92rem;
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(8px);
}

.exp-category.active .logro-badge {
    opacity: 1;
    transform: translateY(0);
}

.logro-badge:nth-child(1) {
    transition-delay: 0.1s;
}

.logro-badge:nth-child(2) {
    transition-delay: 0.2s;
}

.logro-badge:nth-child(3) {
    transition-delay: 0.3s;
}

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

/* Masonry gallery — 4 columnas, alturas fijas */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 130px;
    gap: 8px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
    display: block;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 42, 74, 0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-tall {
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
    grid-row: span 2;
}

/* ============================================================
   SECTION 5: BLOG (DYNAMIC)
   ============================================================ */
.blog-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

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

.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

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

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: block;
}

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

.blog-card-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 8px 0;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    flex: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 12px;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-card-link:hover {
    gap: 8px;
}

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

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

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

/* ============================================================
   SECTION 6: TESTIMONIALS (GOOGLE STYLED)
   ============================================================ */
.testimonials-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

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

.google-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

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

.google-rating-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.google-stars {
    display: flex;
    gap: 2px;
}

.google-stars svg {
    width: 18px;
    height: 18px;
    fill: #FBBC04;
}

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

.testimonial-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(74, 140, 255, 0.15);
}

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

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

.testimonial-stars {
    margin-bottom: 12px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: #FBBC04;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-body);
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

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

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

/* ============================================================
   BLOG PAGE — PREMIUM
   ============================================================ */

.blog-page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    padding: 120px 20px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(74, 140, 255, 0.12) 0%, transparent 70%);
}

.blog-page-hero-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.blog-page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    margin: 10px 0 16px;
    line-height: 1.2;
}

.blog-page-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    margin-bottom: 28px;
    line-height: 1.6;
}

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

.blog-hero-badges span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Container */
.blog-page-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 56px 20px 80px;
}

/* Tag genérico */
.blog-tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.blog-tag-abs {
    position: absolute;
    top: 16px;
    left: 16px;
    margin: 0;
    z-index: 2;
}

/* ── ARTÍCULO DESTACADO ── */
.blog-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 48px;
    text-decoration: none;
    background: var(--bg-white);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    min-height: 380px;
}

.blog-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(27, 42, 74, 0.18);
}

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

.blog-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.blog-featured-placeholder {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    min-height: 320px;
}

.blog-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 27, 51, 0.25) 0%, transparent 100%);
    transition: opacity 0.3s ease;
}

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

.blog-featured-card:hover .blog-featured-overlay {
    opacity: 0.5;
}

.blog-featured-body {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 14px;
}

.blog-featured-excerpt {
    color: var(--text-body);
    font-size: 0.97rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.blog-featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.83rem;
    flex-wrap: wrap;
}

.blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.88rem;
    transition: gap 0.2s;
}

.blog-featured-card:hover .blog-readmore {
    gap: 9px;
}

/* ── GRID RESTO ── */
.blog-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 56px;
}

.blog-page-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(27, 42, 74, 0.07);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-page-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 210px;
}

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

.blog-page-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

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

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

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

.blog-page-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    color: var(--primary);
    line-height: 1.35;
    margin-bottom: 10px;
}

.blog-page-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 16px;
}

.blog-page-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    transition: gap 0.2s;
}

.blog-page-card:hover .blog-page-card-cta {
    gap: 9px;
}

/* CTA inferior */
.blog-page-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-lg);
}

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

.blog-page-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    margin-bottom: 6px;
}

.blog-page-cta p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin: 0;
}

.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

/* Responsive blog page */
@media (max-width: 900px) {
    .blog-featured-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .blog-featured-img-wrap {
        height: 240px;
    }

    .blog-featured-body {
        padding: 28px 24px;
    }

    .blog-page-grid {
        grid-template-columns: 1fr;
    }

    .blog-page-cta-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   FLOATING SOCIAL BUTTONS
   ============================================================ */
.float-social {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
    overflow: hidden;
    white-space: nowrap;
}

.float-label {
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.35s ease, opacity 0.3s ease;
    opacity: 0;
    display: inline-block;
}

.float-btn:hover .float-label {
    max-width: 120px;
    opacity: 1;
}

.float-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

/* WhatsApp — verde con pulso */
@keyframes waFloat {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    }

    50% {
        box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
    }
}

.float-wa {
    background: #25D366;
    animation: waFloat 2s ease-in-out infinite;
}

.float-wa:hover {
    background: #1DAF54;
    animation: none;
    color: #fff;
}

/* Instagram — gradiente */
.float-ig {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.float-ig:hover {
    color: #fff;
    filter: brightness(1.1);
}

/* ============================================================
   TESTIMONIOS PAGE
   ============================================================ */

.test-page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 120px 20px 60px;
    text-align: center;
}

.test-page-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.test-page-hero .section-label {
    color: rgba(255, 255, 255, 0.7);
}

.test-page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    margin: 10px 0 30px;
}

.test-page-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.test-stat-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
}

.test-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.test-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.test-hero-stars {
    display: flex;
    gap: 4px;
}

/* Container */
.test-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.test-pagination-info {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

/* Grid — 3 col desktop */
.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 48px;
}

/* Paginación */
.test-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.test-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-light);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.test-page-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.test-page-btn--active {
    background: var(--primary);
    color: #fff;
    cursor: default;
}

.test-page-btn--disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.test-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-light);
    font-weight: 600;
}

/* CTA inferior */
.test-bottom-cta {
    text-align: center;
    padding: 48px 32px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.test-bottom-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.test-bottom-cta p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.test-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.test-cta-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.test-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

/* Responsive testimonios */
@media (max-width: 768px) {
    .test-grid {
        grid-template-columns: 1fr;
    }

    .test-page-stats {
        flex-direction: column;
        gap: 14px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .test-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

/* Hero banner del artículo */
.art-hero {
    position: relative;
    height: 420px;
    margin-top: 93px;
    /* compensa navbar */
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.art-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease;
}

.art-hero:hover .art-hero-img {
    transform: scale(1.04);
}

.art-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 27, 51, 0.92) 0%, rgba(15, 27, 51, 0.5) 50%, rgba(15, 27, 51, 0.2) 100%);
}

.art-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 40px 40px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.art-category {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.art-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    line-height: 1.25;
    margin: 0 0 16px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    max-width: 700px;
}

.art-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.art-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Layout: contenido + sidebar */
.art-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px 80px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

/* Artículo principal */

.art-lead {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 500;
    line-height: 1.75;
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin-bottom: 32px;
    background: var(--bg-light);
    padding: 18px 20px;
    border-radius: 0 10px 10px 0;
}

/* Tipografía del contenido del artículo */
.art-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-body);
}

.art-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-light);
}

.art-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--primary);
    margin: 28px 0 10px;
}

.art-body p {
    margin-bottom: 1.2em;
}

.art-body ul,
.art-body ol {
    padding-left: 24px;
    margin-bottom: 1.2em;
}

.art-body li {
    margin-bottom: 8px;
    color: var(--text-body);
}

.art-body img {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: var(--shadow-md);
}

.art-body strong {
    color: var(--primary);
    font-weight: 700;
}

.art-body blockquote {
    border-left: 4px solid var(--accent);
    background: var(--bg-light);
    padding: 16px 20px;
    border-radius: 0 10px 10px 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--primary);
}

/* CTA inferior */
.art-footer-cta {
    margin-top: 48px;
    padding: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.art-footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.art-footer-cta-text h3 {
    font-family: 'Playfair Display', serif;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.art-footer-cta-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.art-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.art-cta-btn:hover {
    background: #1DAF54;
    transform: translateY(-2px);
    color: #fff;
}

/* Volver */
.art-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 28px;
    transition: gap 0.2s;
}

.art-back-link:hover {
    gap: 10px;
}

/* ── SIDEBAR ── */
.art-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 110px;
}

.sidebar-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(27, 42, 74, 0.07);
}

.sidebar-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
}

.sidebar-title svg {
    color: var(--accent);
}

/* Últimas entradas */
.sidebar-posts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-post-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s;
}

.sidebar-post-link:hover {
    transform: translateX(4px);
}

.sidebar-post-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-light);
}

.sidebar-post-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.sidebar-post-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-post-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.sidebar-post-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Doctor card */
.sidebar-doctor {
    text-align: center;
    background: linear-gradient(170deg, var(--primary-dark), var(--primary));
}

.sidebar-doctor-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid rgba(74, 140, 255, 0.4);
    margin: 0 auto 14px;
    display: block;
}

.sidebar-doctor-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    margin-bottom: 6px;
    line-height: 1.3;
}

.sidebar-doctor-specialty {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 18px;
}

.sidebar-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.sidebar-wa-btn:hover {
    background: #1DAF54;
    transform: translateY(-2px);
    color: #fff;
}

/* Cédulas */
.sidebar-cedula-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-light);
}

.sidebar-cedula-item:last-child {
    border-bottom: none;
}

.sidebar-cedula-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-cedula-num {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    margin-top: 2px;
}

/* Responsive artículo */
@media (max-width: 900px) {
    .art-layout {
        grid-template-columns: 1fr;
    }

    .art-sidebar {
        position: static;
    }

    .art-hero {
        height: 300px;
        margin-top: 75px;
    }

    .art-hero-content {
        padding: 0 20px 28px;
    }

    .art-footer-cta-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */

footer.site-footer {
    padding: 60px 20px 30px;
    background: linear-gradient(180deg, #0F1B33 0%, #1B2A4A 100%);
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.footer-loc-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.footer-loc-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(74, 140, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.footer-loc-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 4px;
}

.footer-loc-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.footer-loc-addr {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-prices {
    width: 100%;
    border-collapse: collapse;
}

.footer-prices tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-prices td {
    padding: 12px 0;
    font-size: 0.95rem;
    color: #fff;
}

.footer-prices td:last-child {
    text-align: right;
    font-weight: 700;
    color: #F1C40F;
    font-size: 1.05rem;
}

.footer-wa-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.footer-wa-btn:hover {
    background: #1DAF54;
    transform: translateY(-2px);
    color: #fff;
}

.footer-wa-btn svg {
    width: 24px;
    height: 24px;
}

.footer-sched h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.footer-sched p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 4px 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.footer-cedulas-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-top: 8px;
}

/* Map modal */
.map-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.map-modal-overlay.active {
    display: flex;
}

.map-modal {
    background: #1B2A4A;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(74, 140, 255, 0.2);
    animation: modalSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.map-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.map-modal-addr {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.map-modal iframe {
    width: 100%;
    height: 350px;
    border: none;
    border-radius: 10px;
}

.map-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.map-modal-close:hover {
    background: rgba(255, 80, 80, 0.3);
    border-color: rgba(255, 80, 80, 0.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 88px;
        left: 0;
        right: 0;
        background: rgba(15, 27, 51, 0.99);
        padding: 20px 24px;
        gap: 16px;
        border-top: 1px solid rgba(74, 140, 255, 0.12);
    }

    .nav-links.open {
        display: flex;
    }

    /* Teléfono oculto en móvil para ahorrar espacio */
    .nav-phone {
        display: none;
    }

    /* CTA más compacto */
    .nav-cta {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .nav-hamburger {
        display: block;
    }

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

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

    .hero-section {
        min-height: 90vh;
        padding: 40px 20px;
    }

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

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

    .authority-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 10px;
        display: inline-flex;
    }

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

    /* Solo 1 artículo en móvil */
    .blog-card:nth-child(n+2) {
        display: none;
    }

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

    /* Footer — 1 columna, SIN overflow */
    footer.site-footer {
        padding: 40px 16px 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .footer-wa-btn {
        font-size: 1rem;
        padding: 14px 18px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}