﻿/* Importación tipográfica editorial clásica */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=EB+Garamond:wght@400;500;600;700&display=swap');

/* ==================================
   VARIABLES CSS VINTAGE
=================================== */
:root {
    --bg-color: #F4EBE1;
    --text-color: #1A1A1A;
    --primary-color: #1B2E3C;
    --secondary-color: #4A3E3D;
    --accent-color: #8B2635;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'EB Garamond', serif;

    --paper-shadow: 0 18px 45px rgba(27, 46, 60, 0.08);
    --paper-border: 1px solid rgba(74, 62, 61, 0.18);
}

/* ==================================
   RESET Y BASE
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(180deg, #f7f1e8 0%, var(--bg-color) 40%, #efe5d8 100%);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

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

/* ==================================
   CONTENEDOR PRINCIPAL
=================================== */
.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==================================
   PANTALLA DE INICIO (LANDING)
=================================== */
.landing-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(20, 26, 30, 0.36), rgba(20, 26, 30, 0.58)),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 45%),
        linear-gradient(180deg, #6f7d85 0%, #2b3944 50%, #18232c 100%);
}

.landing-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    filter: brightness(0.72) contrast(1.05) saturate(0.92);
}

.landing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 26, 30, 0.18), rgba(20, 26, 30, 0.62));
    z-index: 1;
}

.landing-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 2rem;
    color: var(--bg-color);
}

.landing-title {
    font-size: clamp(3.4rem, 8vw, 6.2rem);
    margin-bottom: 1rem;
    color: #fff7ee;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.landing-subtitle {
    font-family: var(--font-body);
    font-size: 1.35rem;
    margin: 0 auto 2.5rem;
    max-width: 36rem;
    color: rgba(255, 247, 238, 0.92);
}

.landing-project {
    margin: -1.5rem auto 0.9rem;
    max-width: 42rem;
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.45;
    color: rgba(255, 247, 238, 0.9);
}

.landing-authors {
    margin: 0 auto 2.4rem;
    max-width: 42rem;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    letter-spacing: 0.04em;
    color: #fff7ee;
}

.btn-start {
    display: inline-block;
    padding: 0.95rem 2.2rem;
    border: 2px solid var(--bg-color);
    border-radius: 0;
    background: rgba(255, 247, 238, 0.08);
    color: var(--bg-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.btn-start:hover {
    background: var(--bg-color);
    color: var(--primary-color);
    border-color: var(--bg-color);
}

/* Variante de botón para contextos claros: alto contraste */
.btn-start.btn-contrast {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.btn-start.btn-contrast:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

/* ==================================
   NAVEGACIÓN
=================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 72px;
    padding: 0.9rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    background: rgba(27, 46, 60, 0.95);
    color: var(--bg-color);
    border-bottom: 1px solid rgba(244, 235, 225, 0.18);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    z-index: 100;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.main-nav.hidden {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}

.logo-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    background: linear-gradient(180deg, #f5ede2, #e7d8c7);
    border: 2px solid rgba(244, 235, 225, 0.6);
    box-shadow: inset 0 0 0 1px rgba(74, 62, 61, 0.18);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.04);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.nav-links-desktop {
    justify-self: center;
}

.nav-toggle {
    justify-self: end;
    width: 48px;
    height: 40px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(244, 235, 225, 0.35);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    border-color: rgba(244, 235, 225, 0.7);
    background: rgba(255, 247, 238, 0.08);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--bg-color);
    display: block;
    transition: all 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-popup {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1.5rem;
    min-width: 240px;
    padding: 0.75rem;
    background: rgba(244, 235, 225, 0.98);
    border: 1px solid rgba(74, 62, 61, 0.22);
    box-shadow: 0 18px 45px rgba(27, 46, 60, 0.16);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 110;
}

.nav-popup.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-popup a {
    display: block;
    padding: 0.75rem 0.85rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(74, 62, 61, 0.14);
}

.nav-popup a:last-child {
    border-bottom: none;
}

.nav-popup a:hover {
    color: var(--accent-color);
    background: rgba(139, 38, 53, 0.05);
}

/* Botón de audio en la navegación */
.audio-toggle {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    background: transparent;
    border: 1px solid rgba(244, 235, 225, 0.35);
    color: var(--bg-color);
    cursor: pointer;
    font-size: 0.95rem;
    margin-left: 0.5rem;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.audio-toggle:hover {
    background: rgba(255, 247, 238, 0.06);
}

.audio-toggle.is-playing {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.audio-toggle .audio-icon {
    display: inline-block;
    font-size: 1.05rem;
    line-height: 1;
}

.audio-toggle .audio-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0.02em;
    color: inherit;
}

.audio-hint {
    position: absolute;
    top: calc(100% + 0.9rem);
    right: 1.5rem;
    font-size: 0.82rem;
    color: rgba(244, 235, 225, 0.9);
    background: transparent;
    padding: 0.2rem 0.35rem;
}

.nav-links a {
    display: inline-block;
    padding: 0.35rem 0;
    color: var(--bg-color);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #f8dfd0;
    border-bottom-color: rgba(248, 223, 208, 0.75);
}

/* ==================================
   CONTENIDO DEL REPORTAJE LONGFORM
=================================== */
.report-content {
    position: relative;
    padding: 4rem 0 2rem;
    background:
        linear-gradient(180deg, rgba(244, 235, 225, 0.98), rgba(244, 235, 225, 0.96)),
        repeating-linear-gradient(
            90deg,
            rgba(74, 62, 61, 0.015) 0,
            rgba(74, 62, 61, 0.015) 1px,
            transparent 1px,
            transparent 18px
        );
}

.block-section {
    padding: 3rem 0 2rem;
}

.project-section {
    padding: 4.5rem 0 5rem;
    background: linear-gradient(180deg, rgba(244, 235, 225, 0.96), rgba(239, 228, 214, 0.98));
    border-top: 3px double rgba(74, 62, 61, 0.22);
}

.project-section .section-header h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}

.project-section .text-content p {
    max-width: 44rem;
}

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

.section-kicker {
    margin-bottom: 0.35rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-color);
}

/* Títulos con borde izquierdo clásico */
.section-header h2 {
    padding-left: 1rem;
    border-left: 4px solid var(--accent-color);
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    color: var(--primary-color);
}

/* Texto centrado en una sola columna elegante */
.text-content {
    max-width: 750px;
    margin: 0 auto;
}

.text-content p {
    font-size: 1.18rem;
    margin-bottom: 1.35rem;
    text-align: justify;
    text-justify: inter-word;
    color: var(--text-color);
}

.tight-before-media {
    margin-bottom: 0.4rem;
}

.stage-road {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 2rem;
    height: 110px;
    border: 1px solid rgba(74, 62, 61, 0.2);
    background: rgba(255, 251, 246, 0.9);
    box-shadow: var(--paper-shadow);
    overflow: hidden;
}

.stage-road-segment {
    position: relative;
    background-image: url('images/camino.jpg');
    background-repeat: no-repeat;
    background-size: 400% auto;
    background-position-y: center;
    filter: grayscale(1) brightness(1.42) contrast(0.88);
    opacity: 0.52;
}

.stage-road-segment:nth-child(1) {
    background-position: 0% center;
}

.stage-road-segment:nth-child(2) {
    background-position: 33.333% center;
}

.stage-road-segment:nth-child(3) {
    background-position: 66.666% center;
}

.stage-road-segment:nth-child(4) {
    background-position: 100% center;
}

.stage-road::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 251, 246, 0.08), rgba(74, 62, 61, 0.06));
}

.stage-road-1 .stage-road-segment:nth-child(4),
.stage-road-2 .stage-road-segment:nth-child(3),
.stage-road-3 .stage-road-segment:nth-child(2),
.stage-road-4 .stage-road-segment:nth-child(1) {
    filter: none;
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(139, 38, 53, 0.18);
}

.stage-road-1 .stage-road-segment:nth-child(4)::after,
.stage-road-2 .stage-road-segment:nth-child(3)::after,
.stage-road-3 .stage-road-segment:nth-child(2)::after,
.stage-road-4 .stage-road-segment:nth-child(1)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(139, 38, 53, 0.12), rgba(139, 38, 53, 0.04));
    mix-blend-mode: multiply;
}

.sector-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(74, 62, 61, 0.28);
    background: rgba(255, 251, 246, 0.88);
    color: var(--secondary-color);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
}

.sector-pill.is-active {
    background: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

.content-blocks {
    display: grid;
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

.feature-card {
    margin: 0;
}

/* Video feature styles */
.feature-video-card .video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(74,62,61,0.12);
    box-shadow: var(--paper-shadow);
}

.feature-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.media-label {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(74, 62, 61, 0.3);
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.image-frame {
    width: 100%;
}

.real-media-frame {
    border: 1px solid rgba(74, 62, 61, 0.22);
    box-shadow: var(--paper-shadow);
    background: rgba(255, 251, 246, 0.95);
}

.feature-real-image {
    width: 100%;
    height: auto;
    display: block;
}

.tall-card {
    min-height: 420px;
}

.compact-media-frame {
    height: auto;
    overflow: visible;
}

.compact-media-frame .feature-real-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.portrait-card {
    min-height: 360px;
}

.image-placeholder p,
.video-placeholder p {
    font-size: 1.3rem;
}

.quote-card {
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(74, 62, 61, 0.22);
    background: rgba(255, 251, 246, 0.94);
    box-shadow: var(--paper-shadow);
}

.quote-card blockquote {
    font-size: 1.7rem;
    line-height: 1.35;
    color: var(--primary-color);
    font-style: italic;
}

.quote-card cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--secondary-color);
}

.compact-note {
    margin-top: 1rem;
}

.before-after-demo,
.albergue-compare,
.elevation-chart,
.mini-bar-chart,
.audio-stack,
.backpack-grid {
    display: grid;
    gap: 1rem;
}

.before-after-demo {
    position: relative;
    min-height: auto;
    overflow: hidden;
    border: 1px solid rgba(74, 62, 61, 0.22);
    background: rgba(255, 251, 246, 0.92);
    box-shadow: var(--paper-shadow);
}

.image-compare {
    --position: 50%;
    touch-action: none;
    user-select: none;
}

.compare-base {
    width: 100%;
    height: auto;
    display: block;
}

.compare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.compare-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    width: 2px;
    transform: translateX(-50%);
    background: var(--bg-color);
    box-shadow: 0 0 0 1px rgba(27, 46, 60, 0.2);
    z-index: 4;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-handle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(74, 62, 61, 0.4);
    background: var(--accent-color);
    box-shadow: 0 0 0 5px rgba(255, 251, 246, 0.75);
    cursor: ew-resize;
}

.compare-handle:focus-visible,
.compare-divider:focus-visible {
    outline: 2px solid rgba(27, 46, 60, 0.4);
    outline-offset: 4px;
}

.before-after-demo.is-dragging,
.before-after-demo.is-dragging * {
    cursor: ew-resize;
}

.before-after-layer,
.before-after-slider,
.compare-range {
    display: none;
}

.before-after-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    width: 2px;
    background: var(--bg-color);
    box-shadow: 0 0 0 1px rgba(27, 46, 60, 0.15);
    transform: translateX(-50%);
    z-index: 4;
    pointer-events: none;
}

.compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
}

.media-caption {
    margin-top: 0.2rem;
    font-size: 1rem;
    color: var(--secondary-color);
    text-align: center;
}

.hotspot-map {
    position: relative;
    min-height: 460px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 251, 246, 0.95), rgba(239, 228, 214, 0.98));
}

.hotspot-dot {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 247, 238, 0.9);
    background: var(--accent-color);
    color: var(--bg-color);
    font-family: var(--font-heading);
    font-size: 1rem;
    border-radius: 50%;
    cursor: pointer;
}

.hotspot-1 { top: 28%; left: 25%; }
.hotspot-2 { top: 52%; left: 52%; }
.hotspot-3 { top: 34%; left: 73%; }

.hotspot-tooltip {
    position: absolute;
    max-width: 210px;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 251, 246, 0.98);
    border: 1px solid rgba(74, 62, 61, 0.2);
    box-shadow: 0 12px 24px rgba(27, 46, 60, 0.12);
    color: var(--text-color);
    font-size: 1rem;
}

.tooltip-1 { top: 18%; left: 12%; }
.tooltip-2 { top: 58%; left: 34%; }
.tooltip-3 { top: 17%; left: 58%; }

.chart-card {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 251, 246, 0.92);
    border: 1px solid rgba(74, 62, 61, 0.22);
    box-shadow: var(--paper-shadow);
}

.flourish-wrapper {
    margin-bottom: 1.25rem;
    padding: 0.75rem;
    border: 1px solid rgba(74, 62, 61, 0.16);
    background: rgba(255, 251, 246, 0.96);
    box-shadow: inset 0 0 0 1px rgba(244, 235, 225, 0.65);
}

.flourish-wrapper .flourish-embed {
    width: 100%;
    min-height: 340px;
}

.flourish-wrapper iframe,
.flourish-wrapper img {
    width: 100%;
    display: block;
}
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem;
    border: 1px solid rgba(74, 62, 61, 0.2);
    background: linear-gradient(180deg, rgba(255, 251, 246, 0.96), rgba(239, 228, 214, 0.96));
}

.compare-traditional {
    background-image: linear-gradient(180deg, rgba(255, 251, 246, 0.88), rgba(224, 205, 182, 0.88));
}

.compare-modern {
    background-image: linear-gradient(180deg, rgba(227, 233, 238, 0.88), rgba(187, 197, 205, 0.96));
}

.compare-panel p {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
}

.panorama-card {
    display: grid;
    gap: 1rem;
}

.panorama-viewer {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(74, 62, 61, 0.22);
    background: linear-gradient(180deg, rgba(255, 251, 246, 0.96), rgba(239, 228, 214, 0.94));
    box-shadow: var(--paper-shadow);
    touch-action: none;
    user-select: none;
    cursor: ew-resize;
}

.panorama-viewer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 46, 60, 0.02), rgba(27, 46, 60, 0.14));
    pointer-events: none;
    z-index: 2;
}

.panorama-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
    transform: translateX(calc(var(--panorama-offset, 0px) * -1));
    z-index: 1;
}

.panorama-hint {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 3;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(74, 62, 61, 0.18);
    background: rgba(255, 251, 246, 0.88);
    color: var(--secondary-color);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.panorama-viewer:focus-visible {
    outline: 2px solid rgba(27, 46, 60, 0.4);
    outline-offset: 4px;
}

.panorama-viewer.is-dragging,
.panorama-viewer.is-dragging * {
    cursor: ew-resize;
}

.audio-stack audio {
    width: 100%;
}

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

.backpack-item {
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(74, 62, 61, 0.18);
    background: rgba(255, 251, 246, 0.95);
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.elevation-chart {
    min-height: 220px;
    padding: 1rem 0 0;
}

.elevation-line {
    position: relative;
    height: 120px;
    border-left: 1px solid rgba(74, 62, 61, 0.18);
    border-bottom: 1px solid rgba(74, 62, 61, 0.18);
    background: linear-gradient(180deg, rgba(255, 251, 246, 0.5), rgba(239, 228, 214, 0.75));
}

.elevation-point {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid var(--bg-color);
}

.point-1 { left: 12%; bottom: 18%; }
.point-2 { left: 38%; bottom: 58%; }
.point-3 { left: 65%; bottom: 30%; }
.point-4 { left: 88%; bottom: 72%; }

.backpack-card {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 251, 246, 0.92);
    border: 1px solid rgba(74, 62, 61, 0.22);
    box-shadow: var(--paper-shadow);
}

/* Capitular clásica para el inicio de cada apartado */
.text-content > p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-size: 4.4rem;
    line-height: 0.8;
    padding: 0.12rem 0.35rem 0 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* ==================================
   MULTIMEDIA E INTERFAZ
=================================== */
.full-width-media {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 2.25rem;
    margin-bottom: 2.25rem;
}

.full-width-media img,
.full-width-media video,
.full-width-media iframe,
.photo-placeholder,
.video-placeholder {
    width: 100%;
    display: block;
    border: 1px solid rgba(74, 62, 61, 0.22);
    box-shadow: var(--paper-shadow);
}

/* Marcos sutiles de fotografía analógica / postal antigua */
.photo-placeholder,
.video-placeholder {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    min-height: 280px;
    padding: 4rem 1.75rem;
    text-align: center;
    color: var(--primary-color);
    background:
        linear-gradient(180deg, rgba(255, 251, 246, 0.95), rgba(239, 228, 214, 0.98));
    border-radius: 2px;
    overflow: hidden;
}

.photo-placeholder::before,
.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(74, 62, 61, 0.14);
    pointer-events: none;
}

.photo-placeholder p,
.video-placeholder p {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    margin: 0 auto;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--secondary-color);
}

.photo-placeholder {
    background-image:
        linear-gradient(180deg, rgba(255, 251, 246, 0.94), rgba(239, 228, 214, 0.98)),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 35%);
}

.video-placeholder {
    min-height: 320px;
    border-style: double;
}

/* Tarjeta editorial para elementos interactivos */
.interactive-element {
    margin: 2.5rem 0;
    padding: 1.5rem 1.75rem;
    background: rgba(255, 251, 246, 0.88);
    border: 1px solid rgba(74, 62, 61, 0.28);
    border-left: 4px solid var(--accent-color);
    border-radius: 0;
    box-shadow: 0 10px 26px rgba(27, 46, 60, 0.06);
    transition: all 0.3s ease;
}

.interactive-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(27, 46, 60, 0.1);
}

.interactive-element p {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    text-align: center;
    color: var(--primary-color);
}

/* Separadores con lenguaje de imprenta antigua */
.section-divider {
    width: min(68%, 34rem);
    margin: 3.5rem auto;
    border: none;
    border-top: 3px double var(--secondary-color);
    opacity: 0.55;
}

/* ==================================
   PIE DE PÁGINA
=================================== */
footer {
    margin-top: 2rem;
    padding: 2.5rem 0 3rem;
    background: linear-gradient(180deg, #182833, var(--primary-color));
    color: #f3e7da;
    border-top: 3px double rgba(244, 235, 225, 0.45);
    text-align: center;
}

footer p {
    font-family: var(--font-body);
    font-size: 1.05rem;
}

.footer-project {
    margin-top: 0.8rem;
    font-size: 0.98rem;
    line-height: 1.5;
    color: rgba(243, 231, 218, 0.94);
}

.footer-project a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
}

/* ==================================
   AJUSTES RESPONSIVOS
=================================== */
@media (max-width: 900px) {
    .main-nav {
        padding: 0.75rem 1rem;
        grid-template-columns: auto 1fr auto;
    }

    .nav-links {
        gap: 0.85rem 1rem;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .landing-subtitle {
        font-size: 1.15rem;
    }

    .landing-project {
        font-size: 0.95rem;
        margin-top: -1rem;
    }

    .landing-authors {
        font-size: 1rem;
    }

    .text-content p {
        font-size: 1.1rem;
    }

    .stage-sectors {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stage-road {
        height: 92px;
    }

    .content-blocks,
    .albergue-compare,
    .backpack-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .landing-title {
        font-size: 2.9rem;
    }

    .landing-project {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .landing-authors {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .landing-content {
        padding: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section-header h2 {
        padding-left: 0.8rem;
    }

    .text-content > p:first-of-type::first-letter {
        font-size: 3.6rem;
    }

    .photo-placeholder,
    .video-placeholder {
        min-height: 220px;
        padding: 3rem 1.25rem;
    }

    .nav-links {
        gap: 0.6rem 0.8rem;
    }

    .nav-links-desktop {
        display: none;
    }

    .nav-popup {
        right: 1rem;
        left: 1rem;
        min-width: auto;
    }

    .stage-sectors {
        grid-template-columns: 1fr 1fr;
    }

    .stage-road {
        height: 78px;
    }

    .hotspot-map {
        min-height: 360px;
    }

    .hotspot-tooltip {
        max-width: 160px;
        font-size: 0.95rem;
    }

    .chart-row {
        grid-template-columns: 88px 1fr;
    }

    .nav-links a {
        font-size: 0.88rem;
    }

    .nav-links-desktop {
        display: none;
    }

    .nav-popup {
        right: 1rem;
        left: 1rem;
        min-width: auto;
    }
}
