/* ==========================================================================
   SIN RECETA - CRISIS DE MEDICAMENTOS EN ESSALUD PIURA
   Diseño Editorial A1: Proporción Áurea, Espacio Negativo & Barra Oculta
   ========================================================================== */

/* --- 1. Variables & Design Tokens --- */
:root {
    --color-dark-bg: #080C14;
    --color-dark-surface: #0E1422;
    --color-dark-border: rgba(255, 255, 255, 0.07);
    
    --color-text-white: #FFFFFF;
    --color-text-body: rgba(255, 255, 255, 0.68);
    --color-text-muted: rgba(255, 255, 255, 0.42);
    
    --color-blue-dot: #38BDF8;          /* Punto celeste vivo para sección activa */
    --card-soft: #EAF6FC;

    /* Tipografía */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Estructura */
    --header-height: 54px;
    --max-width: 1400px;
}

/* --- 2. Reset & Ocultar Barra de Scroll Derecha --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scrollbar-width: none;              /* Oculta scrollbar en Firefox */
    -ms-overflow-style: none;           /* Oculta scrollbar en IE/Edge */
}

html::-webkit-scrollbar, 
body::-webkit-scrollbar {
    display: none;                      /* Oculta scrollbar en Chrome, Safari, Opera */
    width: 0;
    height: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

/* --- 3. Header Limpio, Despejado y Elegante --- */
.site-header {
    position: absolute;
    top: 24px;
    left: 50%;
    width: min(92vw, 1080px);
    height: auto;
    transform: translateX(-50%);
    background: #FFFFFF;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1000;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(14, 111, 138, 0.18);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(8, 12, 20, 0.14);
}

.site-header.scrolled {
    background: #FFFFFF;
    box-shadow: 0 16px 36px rgba(8, 12, 20, 0.2);
}

.header-container {
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Logo Sutil */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #07101A;
}

.brand-shield-icon {
    width: 20px;
    height: 20px;
    background: #0660bc;
    border: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.brand-shield-icon svg {
    width: 100%;
    height: 100%;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #0660bc;
}

/* Menú Central */
.nav-desktop {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 27px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    color: #24313A;
    transition: color 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: #0660bc;
}

.nav-link.active {
    color: #0660bc;
    font-weight: 600;
}

.dot-active {
    font-size: 1rem;
    color: var(--color-blue-dot);
    line-height: 0;
}

/* Menú Móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 26px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #07101A;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid rgba(6, 96, 188, 0.14);
    border-radius: 12px;
    box-shadow: 0 16px 28px rgba(8, 12, 20, 0.16);
    padding: 8px 16px;
    flex-direction: column;
    gap: 2px;
}

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

.mobile-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #24313A;
    padding: 11px 4px;
    border-bottom: 1px solid rgba(6, 96, 188, 0.08);
}

.mobile-link:last-child {
    border-bottom: 0;
}

.mobile-link:hover {
    color: #0660bc;
}

/* --- 4. Hero Section Cinemático & Espacioso --- */
.hero-section {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: flex-end;
    padding: 140px 48px 120px;
    overflow: hidden;
}

.hero-section::after {
    position: absolute;
    z-index: 3;
    right: -5%;
    bottom: -2px;
    left: -5%;
    height: 82px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: #FFFFFF;
    content: "";
    pointer-events: none;
}

/* Fondo con Imagen de EsSalud Piura y Gradiente Difuminado Suave */
.hero-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, 
            rgba(8, 12, 20, 0.76) 0%, 
            rgba(8, 12, 20, 0.58) 34%, 
            rgba(8, 12, 20, 0.18) 65%, 
            rgba(8, 12, 20, 0.02) 100%),
        linear-gradient(180deg, 
            rgba(8, 12, 20, 0.18) 0%, 
            transparent 25%, 
            transparent 75%, 
            rgba(8, 12, 20, 0.76) 100%),
        url('../assets/images/essalud-piura.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1.03);
    animation: heroZoomIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-bg-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 46%, rgba(56, 189, 248, 0.12), transparent 32%);
    mix-blend-mode: screen;
}

.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.13;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

@keyframes heroZoomIn {
    0% { transform: scale(1.03); opacity: 0.6; }
    100% { transform: scale(1.0); opacity: 1; }
}

.hero-container {
    position: relative;
    z-index: 2;
    width: min(92vw, 1080px);
    max-width: 1080px;
    margin: 0 auto;
}

/* Contenido Compacto y Aireado (Ocupa solo ~38% del ancho) */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 1180px;
}

.hero-headline {
    font-family: var(--font-body);
    font-size: clamp(2.7rem, 5vw, 5rem);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.065em;
    color: var(--color-text-white);
    margin-bottom: 18px;
    max-width: 700px;
}

.hero-headline em {
    display: block;
    color: #80bef9;
    font-style: normal;
}

.hero-side {
    max-width: 380px;
    padding: 0;
}

.hero-description {
    max-width: 340px;
    margin-bottom: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.42;
    color: rgba(255, 255, 255, 0.82);
    text-align: left;
}

/* Animación de Entrada Suave */
.animate-in {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeInSoft 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
@keyframes fadeInSoft {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 5. Apartados del Proyecto --- */
.content-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 56px 0;
    background: #FFFFFF;
}

#reportaje {
    --next-section-color: #F8FCFE;
    background: #FFFFFF;
    padding-top: 18px;
}

#reportaje::after {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 18px;
    border-radius: 0;
}

#podcast {
    --next-section-color: #FFFFFF;
    background: #F8FCFE;
    padding: 36px 0 40px;
}

#gamificacion {
    --next-section-color: #F8FCFE;
    background: #FFFFFF;
}

#comic {
    --next-section-color: #FFFFFF;
    background: #F8FCFE;
    padding-bottom: 36px;
}

#linea-tiempo {
    --next-section-color: #F8FCFE;
    background: #FFFFFF;
    padding: 28px 0 42px;
}

#buzon {
    --next-section-color: #F5FAFC;
    background: #F8FCFE;
}

.content-section::before,
.content-section::after {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    content: "";
}

.content-section::before {
    top: 4%;
    right: -12%;
    width: 390px;
    height: 390px;
    border-radius: 48% 52% 63% 37% / 44% 38% 62% 56%;
    background: rgba(128, 190, 249, 0.14);
    transform: rotate(18deg);
}

.content-section::after {
    bottom: -1px;
    left: -5%;
    width: 110%;
    height: 56px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: var(--next-section-color, #F8FCFE);
}

.content-section:nth-of-type(even) {
    background: inherit;
}

.content-section:nth-of-type(even)::before {
    top: auto;
    right: auto;
    bottom: 15%;
    left: -14%;
    width: 320px;
    height: 320px;
    background: rgba(6, 96, 188, 0.075);
    transform: rotate(-24deg);
}

.content-section:nth-of-type(even)::after {
    background: var(--next-section-color, #FFFFFF);
}

.section-bg-alt {
    background: inherit;
}

.section-container {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 48px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0660bc;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #07101A;
    margin-bottom: 12px;
}

.section-side-note {
    position: absolute;
    top: 4px;
    right: 48px;
    width: min(190px, 18vw);
    margin: 0;
    color: #07101A;
    font-size: 0.72rem;
    line-height: 1.45;
    text-align: right;
}

.section-heading {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
    margin-bottom: 34px;
}

.section-icon {
    grid-column: 1;
    grid-row: 1;
    display: block;
    width: 38px;
    height: 38px;
    color: #0660bc;
}

.section-icon svg {
    width: 100%;
    height: 100%;
}

.section-heading .section-tag {
    grid-column: 2;
    grid-row: 1;
    display: block;
    margin-bottom: 0;
    white-space: nowrap;
}

.section-heading .section-title {
    grid-column: 2 / -1;
    grid-row: 1;
    color: #07101A;
    margin-bottom: 0;
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 700px;
}

.reportaje-video {
    display: block;
    min-height: 0;
    overflow: visible;
    background: transparent;
}

.reportaje-media {
    position: relative;
    height: clamp(280px, 34vw, 480px);
    min-height: 0;
    overflow: hidden;
    background: #DDECF4;
}

.reportaje-media::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.42);
    content: "";
    pointer-events: none;
}

.reportaje-media img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.reportaje-video:hover .reportaje-media img {
    transform: scale(1.025);
}

.video-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    box-shadow: 0 12px 32px rgba(8, 12, 20, 0.24), inset 0 0 0 7px rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font: inherit;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.video-mark span {
    margin-left: 4px;
    font-size: 1.1rem;
    line-height: 1;
}

.reportaje-video:hover .video-mark {
    border-color: #FFFFFF;
    background: rgba(128, 190, 249, 0.42);
    box-shadow: 0 16px 38px rgba(8, 12, 20, 0.3), inset 0 0 0 7px rgba(255, 255, 255, 0.12);
    transform: translate(-50%, -50%) scale(1.06);
}

.video-mark:focus-visible {
    outline: 3px solid #80bef9;
    outline-offset: 5px;
}

.reportaje-copy {
    display: grid;
    grid-template-columns: minmax(190px, 0.65fr) minmax(0, 1.5fr) auto;
    align-items: start;
    gap: 28px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(6, 96, 188, 0.24);
}

.reportaje-copy-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.reportaje-meta {
    padding-top: 0;
    color: #0660bc;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.reportaje-copy p {
    max-width: 560px;
    color: #243746;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.45;
}

.reportaje-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0 6px;
    border-bottom: 1px solid #0660bc;
    color: #0660bc;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.reportaje-button:hover {
    color: #80bef9;
    border-color: #80bef9;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal-pending {
    opacity: 0;
    transform: translateY(28px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reportaje-video.reveal {
    transition-delay: 0.12s;
}

.content-section .section-container > .reveal:nth-child(2) {
    transition-delay: 0.12s;
}

.content-section .section-container > .reveal:nth-child(3) {
    transition-delay: 0.22s;
}

.reportaje-video .reportaje-media,
.reportaje-video .reportaje-copy {
    opacity: 1;
    transform: none;
}

.reportaje-video.reveal-pending .reportaje-media {
    opacity: 0;
    transform: translateY(24px);
}

.reportaje-video.reveal-pending .reportaje-copy {
    opacity: 0;
    transform: translateY(18px);
}

.reportaje-video.is-visible .reportaje-media {
    animation: reportajeMediaIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reportaje-video.is-visible .reportaje-copy {
    animation: reportajeCopyIn 0.7s 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes reportajeMediaIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.985);
        clip-path: inset(8% 0 0);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        clip-path: inset(0);
    }
}

@keyframes reportajeCopyIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #52616B;
    max-width: 620px;
    margin-bottom: 36px;
    font-weight: 300;
}

.section-card-placeholder {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 60px 32px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.feature-card {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--card-soft);
}

.feature-card-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    opacity: 0.72;
}

.feature-card-copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 34px;
    background: linear-gradient(transparent, rgba(5, 9, 16, 0.96));
}

.feature-card-copy p {
    max-width: 560px;
    color: #FFFFFF;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    line-height: 1.3;
}

.experience-card,
.quote-card {
    display: flex;
    align-items: center;
    min-height: 190px;
    padding: 34px;
    border-radius: 18px;
    background: #F0F7FA;
}

.experience-card strong {
    font-size: 1.4rem;
}

.experience-card span {
    color: #52616B;
}

.podcast-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(42px, 8vw, 120px);
    align-items: start;
    margin-top: 22px;
}

.podcast-player {
    margin-top: -73px;
}

.podcast-layout.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.podcast-layout.reveal-pending .podcast-chapters,
.podcast-layout.reveal-pending .podcast-player {
    opacity: 0;
}

.podcast-layout.reveal-pending .podcast-chapters {
    transform: translateX(-48px);
}

.podcast-layout.reveal-pending .podcast-player {
    transform: translateX(48px);
}

.podcast-layout.is-visible .podcast-chapters,
.podcast-layout.is-visible .podcast-player {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.podcast-layout.is-visible .podcast-player {
    transition-delay: 0.2s;
}

.podcast-intro {
    max-width: 280px;
    margin-bottom: 24px;
    color: #52616B;
    font-size: 0.92rem;
    line-height: 1.55;
}

.chapter-list {
    border-top: 1px solid rgba(6, 96, 188, 0.2);
}

.chapter-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    align-items: center;
    width: 100%;
    gap: 12px;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid rgba(6, 96, 188, 0.14);
    background: transparent;
    color: #52616B;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: color 0.25s ease, padding 0.25s ease;
}

.chapter-item:hover,
.chapter-item.is-active {
    padding-left: 10px;
    color: #0660bc;
}

.chapter-number {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.chapter-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.chapter-arrow {
    opacity: 0;
    font-size: 1rem;
    transition: opacity 0.25s ease;
}

.chapter-item:hover .chapter-arrow,
.chapter-item.is-active .chapter-arrow {
    opacity: 1;
}

.podcast-player {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    background: var(--card-soft);
    color: #FFFFFF;
}

.podcast-player-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.podcast-player-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 34, 75, 0.82), rgba(6, 96, 188, 0.28) 55%, rgba(3, 19, 40, 0.78));
    content: "";
}

.podcast-player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85);
    transition: transform 0.9s ease;
}

.podcast-player:hover .podcast-player-image img {
    transform: scale(1.04);
}

.podcast-live {
    position: absolute;
    z-index: 2;
    top: 24px;
    left: 26px;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.podcast-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(128, 190, 249, 0.7);
    border-radius: 50%;
    transform: rotate(-28deg);
}

.podcast-orbit-one {
    top: 9%;
    right: -12%;
    width: 72%;
    height: 58%;
}

.podcast-orbit-two {
    top: 17%;
    right: -7%;
    width: 58%;
    height: 44%;
    border-color: rgba(255, 255, 255, 0.34);
}

.podcast-signal {
    position: absolute;
    z-index: 2;
    top: 38%;
    right: 15%;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 72px;
}

.podcast-signal i {
    display: block;
    width: 3px;
    height: 20px;
    border-radius: 4px;
    background: #80bef9;
    animation: podcastPulse 1.2s ease-in-out infinite alternate;
}

.podcast-signal i:nth-child(2n) { height: 46px; animation-delay: 0.15s; }
.podcast-signal i:nth-child(3n) { height: 64px; animation-delay: 0.3s; }
.podcast-signal i:nth-child(4n) { height: 32px; animation-delay: 0.45s; }

@keyframes podcastPulse {
    from { transform: scaleY(0.55); opacity: 0.55; }
    to { transform: scaleY(1); opacity: 1; }
}

.podcast-player-copy {
    position: absolute;
    z-index: 3;
    right: 28px;
    bottom: 28px;
    left: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.podcast-layout.reveal-pending .podcast-chapters {
    transform: translateX(-24px);
}

.podcast-layout.reveal-pending .podcast-player {
    transform: translateX(24px);
}

.podcast-current-label {
    display: block;
    margin-bottom: 10px;
    color: #80bef9;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.podcast-current-title {
    max-width: 360px;
    margin-bottom: 8px;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.podcast-current-description {
    max-width: 330px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    line-height: 1.45;
}

.podcast-play {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: #FFFFFF;
    color: #0660bc;
    cursor: pointer;
    font-size: 0.85rem;
    transition: transform 0.25s ease, background 0.25s ease;
}

.podcast-play:hover {
    background: #80bef9;
    transform: scale(1.06);
}

.podcast-player.is-playing .podcast-orbit {
    animation: orbitSpin 8s linear infinite;
}

@keyframes orbitSpin {
    to { transform: rotate(332deg); }
}

.experience-card {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    color: #07101A;
    background: var(--card-soft);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(6, 96, 188, 0.2);
}

.gamification-preview {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    align-items: center;
    gap: 56px;
    padding: 48px 56px;
}

.gamification-preview::before {
    position: absolute;
    top: -160px;
    right: 22%;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    content: "";
}

.gamification-copy {
    position: relative;
    z-index: 2;
    max-width: 470px;
}

.experience-card .gamification-kicker,
.experience-card .gamification-note {
    display: block;
    color: #0660bc;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gamification-copy h3 {
    max-width: 440px;
    margin: 16px 0 14px;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.gamification-copy p {
    max-width: 430px;
    color: #243746;
    font-size: 1rem;
    line-height: 1.55;
}

.gamification-note {
    margin-top: 28px;
    color: #FFFFFF;
    letter-spacing: 0.08em;
}

.gamification-visual {
    position: relative;
    min-height: 230px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(128, 190, 249, 0.25), transparent 57%);
}

.gamification-orbit {
    position: absolute;
    border: 1px solid rgba(128, 190, 249, 0.75);
    border-radius: 50%;
    transform: rotate(-22deg);
}

.orbit-a {
    inset: 20% -8% 20% 8%;
}

.orbit-b {
    inset: 7% 19% 7% 19%;
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotate(42deg);
}

.gamification-route {
    position: absolute;
    top: 50%;
    right: 16%;
    left: 16%;
    border-top: 1px dashed rgba(255, 255, 255, 0.55);
    transform: rotate(-16deg);
}

.gamification-node {
    position: absolute;
    z-index: 2;
    width: 13px;
    height: 13px;
    border: 3px solid #0660bc;
    border-radius: 50%;
    background: #80bef9;
    box-shadow: 0 0 0 7px rgba(128, 190, 249, 0.18);
}

.node-a { top: 26%; left: 20%; }
.node-b { top: 47%; right: 25%; }
.node-c { bottom: 18%; left: 35%; }

.gamification-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    transform: translate(-50%, -50%);
}

.gamification-index {
    position: absolute;
    right: 28px;
    bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
}

.comic-reader {
    min-width: 0;
    margin: 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.comic-layout {
    display: block;
    margin-top: 36px;
}

.comic-intro {
    position: relative;
    z-index: 3;
    align-self: center;
    min-height: 360px;
    padding: 30px 24px 30px 28px;
}

.comic-intro::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #0660bc;
    content: "";
}

.comic-intro-label {
    display: block;
    color: #0660bc;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.comic-intro-title {
    margin: 18px 0 22px;
    color: #07101A;
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 4vw, 4.3rem);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.08em;
    text-transform: uppercase;
}

.comic-intro-title em {
    color: #0660bc;
    font-style: normal;
}

.comic-intro p {
    max-width: 250px;
    color: #243746;
    font-size: 0.95rem;
    line-height: 1.65;
}

.comic-intro-note {
    display: block;
    max-width: 220px;
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid rgba(6, 96, 188, 0.28);
    color: #52616B;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.5;
    text-transform: uppercase;
}

.comic-book-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 0.4fr) minmax(0, 1.6fr);
    align-items: center;
    gap: 44px;
    min-height: 620px;
    padding: 28px 24px 36px;
    background:
        radial-gradient(circle at 50% 45%, rgba(128, 190, 249, 0.18), transparent 34%),
        var(--card-soft);
    box-shadow: inset 0 0 0 1px rgba(6, 96, 188, 0.08);
}

.comic-book-shell::before,
.comic-book-shell::after {
    position: absolute;
    top: 18px;
    bottom: 18px;
    width: 28px;
    background: rgba(6, 96, 188, 0.08);
    content: "";
}

.comic-book-shell::before {
    left: 0;
    border-radius: 0 24px 24px 0;
}

.comic-book-shell::after {
    right: 0;
    border-radius: 24px 0 0 24px;
}

.comic-book-shell > .comic-intro,
.comic-book-shell > .comic-reader {
    min-width: 0;
}

.comic-book {
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: min(100%, 1040px);
    height: 620px;
}

.comic-page {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(8, 12, 20, 0.18);
}

.comic-page img {
    display: block;
    aspect-ratio: 3 / 4;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #FFFFFF;
}

.comic-book-fallback .comic-page {
    display: none;
    width: 100%;
    height: 100%;
}

.comic-book-fallback .comic-page:first-child {
    display: flex;
}

.comic-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 18px;
}

.comic-control {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(6, 96, 188, 0.26);
    border-radius: 50%;
    background: #FFFFFF;
    color: #0660bc;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.comic-control:hover:not(:disabled) {
    background: #0660bc;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.comic-control:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.comic-page-count {
    min-width: 110px;
    color: #52616B;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.timeline-essalud {
    height: 620px;
    margin-top: 36px;
    overflow: hidden;
    background: var(--card-soft);
    box-shadow: 0 18px 44px rgba(8, 12, 20, 0.08);
}

.timeline-essalud .tl-timeline {
    font-family: var(--font-body);
}

.timeline-essalud .tl-timeline h2,
.timeline-essalud .tl-timeline h3,
.timeline-essalud .tl-timeline h4 {
    font-family: var(--font-heading);
}

.timeline-essalud .tl-slide-content {
    max-width: 480px;
}

.timeline-essalud .tl-slide-media {
    max-height: 390px;
}

.timeline-essalud .tl-media img {
    max-height: 390px;
    object-fit: contain;
}

.timeline-essalud .tl-timenav {
    background: #F5FAFC;
    border-top: 1px solid rgba(6, 96, 188, 0.12);
}

.timeline-essalud .tl-timenav-slider {
    background: rgba(6, 96, 188, 0.06);
}

.timeline-essalud .tl-timenav-line {
    background-color: #0660bc;
}

.timeline-essalud .tl-timemarker-content-container {
    background-color: #0660bc;
}

.timeline-essalud .tl-timemarker .tl-timemarker-content {
    color: #0660bc;
}

.timeline-essalud .tl-timemarker.tl-timemarker-active .tl-timemarker-content {
    color: #0660bc;
    font-weight: 700;
}

.participation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
    grid-template-areas:
        "testimonials testimonials"
        "form platforms";
    gap: 48px;
    margin-top: 32px;
}

.testimonials-panel {
    display: contents;
}

.testimonial-carousel {
    grid-area: testimonials;
}

.testimonial-form-wrap {
    grid-area: form;
}

.platforms-panel {
    grid-area: platforms;
}

.testimonial-carousel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
    padding: 34px;
    background: var(--card-soft);
    color: #09131D;
}

.testimonial-form-wrap {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 34px;
    border: 1px solid rgba(6, 96, 188, 0.14);
    background: var(--card-soft);
}

.participation-label {
    display: block;
    margin-bottom: 18px;
    color: #0660bc;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.testimonial-form-wrap {
    display: grid;
    gap: 0;
}

.testimonial-form label {
    margin-top: 8px;
    color: #243746;
    font-size: 0.75rem;
    font-weight: 600;
}

.testimonial-form label span {
    color: #52616B;
    font-weight: 400;
}

.testimonial-form input,
.testimonial-form textarea {
    width: 100%;
    border: 1px solid rgba(6, 96, 188, 0.22);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.62);
    color: #09131D;
    font: inherit;
    font-size: 0.82rem;
    outline: none;
    padding: 10px 12px;
}

.testimonial-form textarea {
    min-height: 98px;
    resize: vertical;
}

.testimonial-form input:focus,
.testimonial-form textarea:focus {
    border-color: #0660bc;
    box-shadow: 0 0 0 3px rgba(6, 96, 188, 0.12);
}

.testimonial-form button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 11px 14px;
    border: 0;
    background: #0660bc;
    color: #FFFFFF;
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.testimonial-form button:hover {
    background: #07101A;
}

.testimonial-status {
    min-height: 20px;
    margin-top: 10px;
    color: #0660bc;
    font-size: 0.72rem;
}

.testimonial-track {
    position: relative;
    min-height: 250px;
}

.testimonial-card {
    display: none;
    min-height: 250px;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card.is-active {
    display: flex;
}

.testimonial-card p {
    max-width: 800px;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.testimonial-card span {
    display: block;
    margin-top: 26px;
    color: #365264;
    font-size: 0.85rem;
}

.testimonial-carousel-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.testimonial-arrow {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(6, 96, 188, 0.28);
    background: transparent;
    color: #0660bc;
    font-size: 1rem;
}

.testimonial-arrow:hover:not(:disabled) {
    background: #0660bc;
    color: #FFFFFF;
}

.testimonial-arrow:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.testimonial-counter {
    color: #52616B;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.platforms-panel {
    align-self: stretch;
    padding: 34px;
    border-top: 1px solid rgba(6, 96, 188, 0.22);
    background: var(--card-soft);
}

.platform-list {
    display: grid;
    gap: 12px;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(6, 96, 188, 0.14);
    color: #07101A;
    font-size: 1rem;
    font-weight: 600;
}

.platform-list svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* --- 6. Footer --- */
.site-footer {
    padding: 40px 0;
    background: #F5FAFC;
    border-top: 1px solid rgba(6, 96, 188, 0.08);
    color: #52616B;
    font-size: 0.8125rem;
    text-align: center;
}

/* --- 7. Responsive --- */
@media (max-width: 1100px) {
    .section-side-note {
        display: none;
    }
}

@media (max-width: 868px) {
    .header-container,
    .section-container {
        padding: 0 20px;
    }

    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        max-width: 100%;
    }

    .hero-copy {
        min-width: 0;
    }

    .hero-headline {
        font-size: clamp(2.6rem, 6.2vw, 4.2rem);
    }

    .hero-side {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .section-side-note {
        display: none;
    }
}

@media (max-width: 520px) {
    .content-section {
        padding: 44px 0;
    }

    #reportaje {
        padding-top: 14px;
    }

    #linea-tiempo {
        padding: 20px 0 32px;
    }

    .site-header {
        top: 14px;
        width: calc(100% - 32px);
        border-radius: 10px;
    }

    .header-container {
        min-height: 48px;
        padding: 5px 10px 5px 12px;
        gap: 12px;
    }

    .brand-logo {
        gap: 6px;
    }

    .brand-shield-icon {
        width: 18px;
        height: 18px;
        border-radius: 6px;
        padding: 4px;
    }

    .brand-name {
        font-size: 0.78rem;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .menu-toggle span {
        width: 20px;
    }

    .mobile-menu {
        top: calc(100% + 7px);
        padding: 7px 14px;
    }

    .hero-section {
        min-height: 100vh;
        align-items: flex-start;
        padding: 110px 24px 80px;
    }

    .hero-bg-media {
        background-image:
            linear-gradient(180deg,
                rgba(8, 12, 20, 0.58) 0%,
                rgba(8, 12, 20, 0.28) 38%,
                rgba(8, 12, 20, 0.18) 62%,
                rgba(8, 12, 20, 0.68) 100%),
            url('../assets/images/hero mobile.jpg');
        background-position: center center;
    }

    .hero-container {
        width: 100%;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding-top: 28px;
        text-align: center;
    }

    .hero-headline {
        font-size: clamp(2.5rem, 12vw, 3.7rem);
        margin-bottom: 0;
    }

    .hero-side,
    .hero-description {
        text-align: center;
    }

    .hero-section {
        padding-bottom: 96px;
    }

    .hero-section::after {
        height: 54px;
    }

    .content-section::after {
        height: 42px;
    }

    .feature-card {
        min-height: 330px;
    }

    .section-heading {
        grid-template-columns: auto 1fr;
        align-items: start;
    }

    .section-heading .section-tag {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 10px;
    }

    .section-heading .section-title {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 2px;
    }

    .reportaje-video {
        display: block;
    }

    .reportaje-media {
        height: 270px;
    }

    .reportaje-copy {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 20px;
    }

    .reportaje-copy p {
        max-width: 620px;
    }

    .feature-card-image img {
        height: 330px;
    }

    .feature-card-copy {
        padding: 24px;
    }

    .experience-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        padding: 26px;
    }

    .gamification-preview {
        display: grid;
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
        padding: 32px 26px;
    }

    .comic-layout {
        margin-top: 24px;
    }

    .comic-book-shell {
        grid-template-columns: 1fr;
        gap: 26px;
        min-height: 0;
        padding: 16px 12px 24px;
    }

    .comic-intro {
        min-height: 0;
        padding: 0 12px;
    }

    .comic-intro::before {
        top: 0;
        left: 12px;
        right: 12px;
        width: auto;
        height: 4px;
    }

    .comic-intro-title {
        margin-top: 22px;
    }

    .comic-intro p {
        max-width: 560px;
    }

    .comic-intro-note {
        margin-top: 18px;
    }

    .gamification-visual {
        min-height: 190px;
    }

    .podcast-layout {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-top: 20px;
    }

    .participation-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "testimonials"
            "form"
            "platforms";
        gap: 34px;
        margin-top: 24px;
    }

    .testimonials-panel {
        display: contents;
    }

    .testimonial-carousel,
    .testimonial-form-wrap,
    .platforms-panel {
        padding: 26px;
    }

    .testimonial-track,
    .testimonial-card {
        min-height: 210px;
    }

    .platforms-panel {
        padding: 0;
    }

    .podcast-intro {
        max-width: 360px;
        margin-bottom: 24px;
    }

    .podcast-player {
        min-height: 380px;
        margin-top: 0;
    }

    .podcast-player-copy {
        right: 20px;
        bottom: 20px;
        left: 20px;
    }

    .experience-card strong {
        white-space: normal;
    }

    .comic-reader {
        margin-top: 20px;
    }

    .comic-book-shell {
        min-height: 470px;
        padding: 16px 12px 24px;
    }

    .comic-book {
        height: 470px;
    }

    .timeline-essalud {
        height: 600px;
        margin-top: 24px;
    }

    .timeline-essalud .tl-slide-content {
        max-width: none;
        padding: 0 24px;
    }

    .timeline-essalud .tl-slide-media {
        max-height: 165px;
    }

    .timeline-essalud .tl-media img {
        max-height: 165px;
    }

    .timeline-essalud .tl-slide-content h2,
    .timeline-essalud .tl-slide-content h3 {
        margin: 10px 0 12px;
        font-size: 1.28rem;
        line-height: 1.12;
    }

    .timeline-essalud .tl-slide-content p {
        margin-bottom: 16px;
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .timeline-essalud .tl-timemarker-content {
        font-size: 0.7rem;
    }

    .timeline-essalud .tl-timemarker {
        min-width: 92px;
    }

    .quote-card {
        padding: 30px;
    }
}

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

    .reveal {
        transform: none;
        transition: opacity 0.35s ease;
    }

    .reveal.reveal-pending {
        transform: none;
    }

    .podcast-layout.reveal-pending .podcast-chapters,
    .podcast-layout.reveal-pending .podcast-player {
        transform: none;
    }


    .reportaje-video.reveal-pending .reportaje-media,
    .reportaje-video.reveal-pending .reportaje-copy {
        transform: none;
    }

    .reportaje-video.is-visible .reportaje-media {
        animation: reportajeReducedMediaIn 0.45s ease both;
    }

    .reportaje-video.is-visible .reportaje-copy {
        animation: reportajeReducedCopyIn 0.35s 0.08s ease both;
    }

    .reportaje-video:hover .reportaje-media img {
        transform: none;
    }
}

@keyframes reportajeReducedMediaIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes reportajeReducedCopyIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
