:root {
    --bg: #fbf7ef;
    --paper: #fffdf8;
    --paper-2: #f5ead8;
    --text: #2d261c;
    --muted: #746756;
    --gold: #b88635;
    --gold-soft: #d8b56d;
    --line: rgba(184,134,53,.32);
    --shadow: 0 20px 70px rgba(72, 51, 22, .14);
    --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    background:
        radial-gradient(circle at 20% 10%, rgba(216,181,109,.18), transparent 28rem),
        radial-gradient(circle at 90% 30%, rgba(184,134,53,.10), transparent 22rem),
        var(--bg);
    color: var(--text);
    line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, 92vw); margin: 0 auto; }
.narrow { width: min(820px, 90vw); }

.nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1120px, 92vw);
    z-index: 20;
    background: rgba(255,253,248,.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(184,134,53,.18);
    border-radius: 999px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px 10px 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.nav__brand {
    text-decoration: none;
    font-weight: 700;
    color: #6f4b12;
    letter-spacing: .04em;
}
.nav__links { display: flex; gap: 6px; }
.nav__links a {
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
}
.nav__links a:hover { background: rgba(184,134,53,.12); color: var(--text); }
.nav__toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 24px;
    color: var(--gold);
}

.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(255,253,248,.96), rgba(245,234,216,.86)),
        url("../img/papa-principal.webp") center/cover;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(251,247,239,.98) 0%, rgba(251,247,239,.91) 45%, rgba(251,247,239,.65) 100%);
}
.hero__content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 46px;
    align-items: center;
    padding-top: 86px;
    padding-bottom: 54px;
}
.eyebrow, .section__label {
    color: #8a5f14;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: 13px;
    margin: 0 0 10px;
}
.hero h1 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.03;
    margin: 0;
    letter-spacing: -.035em;
}
.dates {
    color: var(--muted);
    font-size: 19px;
    margin: 16px 0 0;
}
.hero__phrase {
    font-size: clamp(20px, 2.6vw, 30px);
    line-height: 1.38;
    max-width: 720px;
    margin: 24px 0 12px;
}
.hero__subphrase {
    font-size: 18px;
    max-width: 650px;
    color: var(--muted);
    margin: 0 0 28px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    min-height: 48px;
    padding: 12px 22px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn--primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: #fff;
    box-shadow: 0 12px 30px rgba(184,134,53,.28);
}
.btn--ghost {
    border-color: var(--line);
    color: #6f4b12;
    background: rgba(255,255,255,.55);
}
.hero__portrait {
    justify-self: center;
    width: min(450px, 100%);
    padding: 14px;
    background: rgba(255,253,248,.75);
    border: 1px solid rgba(184,134,53,.22);
    border-radius: 34px;
    box-shadow: var(--shadow);
}
.hero__portrait img {
    border-radius: 24px;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.section { padding: 86px 0; }
.section-head {
    text-align: center;
    width: min(840px, 92vw);
    margin: 0 auto 38px;
}
.section h2 {
    font-size: clamp(32px, 4.2vw, 52px);
    line-height: 1.08;
    letter-spacing: -.025em;
    margin: 0 0 16px;
}
.section p { font-size: 18px; color: var(--muted); }
.story { background: linear-gradient(180deg, rgba(255,253,248,.78), rgba(245,234,216,.46)); }

.chapter, .nissan-feature {
    background: rgba(255,253,248,.9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 50px rgba(72,51,22,.08);
    padding: clamp(24px, 4vw, 42px);
    margin: 22px auto;
}
.chapter {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 26px;
    width: min(980px, 100%);
}
.chapter--warm {
    background:
        linear-gradient(135deg, rgba(255,253,248,.95), rgba(245,234,216,.72));
}
.chapter--wide { width: 100%; }
.chapter--legacy { background: rgba(255,253,248,.96); }
.chapter__num {
    font-family: Arial, sans-serif;
    font-weight: 800;
    color: #8a5f14;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 13px;
}
.chapter h3, .nissan-feature h3 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.08;
}
.chapter p, .nissan-feature p { margin: 0 0 14px; }
.chapter strong { color: #6f4b12; }

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
    margin-top: 22px;
}
.vehicle-card {
    background: #fff;
    border: 1px solid rgba(184,134,53,.22);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(72,51,22,.06);
}
.vehicle-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.vehicle-card div, .vehicle-card--text {
    padding: 18px;
}
.vehicle-card span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-family: Arial, sans-serif;
    font-weight: 800;
    color: #8a5f14;
    background: rgba(184,134,53,.12);
    margin-bottom: 10px;
}
.vehicle-card h4 {
    font-size: 24px;
    margin: 0 0 8px;
}
.vehicle-card p { font-size: 16px; margin: 0; }

.nissan-feature {
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 30px;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,253,248,.98), rgba(245,234,216,.8));
}
.nissan-feature__image img {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 14px 50px rgba(72,51,22,.12);
}
.legacy-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 18px 0 22px;
    list-style: none;
}
.legacy-list li {
    background: #fff;
    border: 1px solid rgba(184,134,53,.18);
    border-radius: 16px;
    padding: 12px 14px;
    color: #4d3f2f;
}


.legacy-story {
    width: min(1000px, 100%);
    margin: 26px auto;
    border-radius: 32px;
    padding: clamp(28px, 5vw, 56px);
    background:
        linear-gradient(135deg, rgba(255,253,248,.98), rgba(245,234,216,.74)),
        radial-gradient(circle at 80% 10%, rgba(216,181,109,.25), transparent 22rem);
    border: 1px solid var(--line);
    box-shadow: 0 18px 60px rgba(72,51,22,.10);
}
.legacy-story__header {
    text-align: center;
    margin-bottom: 28px;
}
.legacy-story h3 {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;
}
.legacy-story__content {
    width: min(820px, 100%);
    margin: 0 auto;
}
.legacy-story__lead {
    text-align: center;
    color: var(--text) !important;
    font-size: clamp(21px, 2.3vw, 28px) !important;
}
.legacy-values {
    margin: 28px 0;
    border-top: 1px solid rgba(184,134,53,.24);
    border-bottom: 1px solid rgba(184,134,53,.24);
}
.legacy-values p {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: baseline;
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid rgba(184,134,53,.16);
}
.legacy-values p:last-child {
    border-bottom: 0;
}
.legacy-values strong {
    color: #8a5f14;
    font-size: 20px;
}
.legacy-values span {
    color: var(--muted);
    font-size: 18px;
}
.legacy-story blockquote {
    margin: 30px 0 0;
    padding: 0;
    text-align: center;
    color: var(--text);
    font-size: clamp(23px, 2.7vw, 34px);
    line-height: 1.38;
    font-style: italic;
}
.legacy-story blockquote::before,
.legacy-story blockquote::after {
    content: "";
    display: block;
    width: 70px;
    height: 2px;
    margin: 18px auto;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.photo-share-card {
    margin-top: 34px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 26px;
    align-items: start;
    background:
        linear-gradient(135deg, rgba(255,253,248,.96), rgba(245,234,216,.76));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(22px, 4vw, 34px);
    box-shadow: 0 14px 50px rgba(72,51,22,.08);
}
.photo-share-card__text h3 {
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.08;
    margin: 0 0 12px;
}
.photo-form {
    background: rgba(255,253,248,.88);
    border: 1px solid rgba(184,134,53,.2);
    border-radius: 22px;
    padding: 22px;
}
.photo-form label {
    display: block;
    font-family: Arial, sans-serif;
    font-weight: 700;
    color: #544637;
    margin: 12px 0;
}
.photo-form input,
.photo-form textarea {
    width: 100%;
    margin-top: 7px;
    border: 1px solid rgba(184,134,53,.28);
    border-radius: 14px;
    padding: 12px 13px;
    font: 16px Arial, sans-serif;
    color: var(--text);
    background: #fff;
    outline: none;
}
.photo-form input[type="file"] {
    padding: 11px;
    background: #fff;
}
.photo-form input:focus,
.photo-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(184,134,53,.12);
}

@media (max-width: 940px) {
    .photo-share-card {
        grid-template-columns: 1fr;
    }
    .legacy-values p {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.video-frame {
    position: relative;
    width: min(920px, 100%);
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    background: #1d1a15;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.gallery-section {
    background: rgba(255,253,248,.72);
}
.gallery-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: -10px 0 28px;
}
.filter-btn {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.72);
    color: #6f4b12;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-weight: 700;
}
.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: #fff;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
}
.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(72,51,22,.06);
    background: var(--paper);
    padding: 0;
    cursor: zoom-in;
}
.gallery__item[hidden] { display: none; }
.gallery__item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}
.gallery__item:hover img {
    transform: scale(1.05);
    filter: saturate(1.05);
}
.gallery__item span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(45,38,28,.72);
    color: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font: 700 12px Arial, sans-serif;
}

.dedications-section {
    background: rgba(255,253,248,.7);
}
.dedications-grid {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 34px;
    align-items: start;
}
.memory-form, .memories {
    background: rgba(255,253,248,.92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 14px 50px rgba(72,51,22,.08);
}
.memory-form label {
    display: block;
    font-family: Arial, sans-serif;
    font-weight: 700;
    color: #544637;
    margin: 14px 0;
}
.memory-form input,
.memory-form textarea {
    width: 100%;
    margin-top: 7px;
    border: 1px solid rgba(184,134,53,.28);
    border-radius: 14px;
    padding: 13px 14px;
    font: 16px Arial, sans-serif;
    color: var(--text);
    background: #fff;
    outline: none;
}
.memory-form input:focus,
.memory-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(184,134,53,.12);
}
.form-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.form-help, .form-message, .char-counter {
    display: block;
    font-family: Arial, sans-serif;
    color: var(--muted);
    margin: 8px 0 16px;
}
.form-message.success { color: #2f7d52; font-weight: 700; }
.form-message.error { color: #9f2b2b; font-weight: 700; }
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
}
.memories h3 {
    margin-top: 0;
    font-size: 28px;
}
.memory-list { display: grid; gap: 14px; }
.memory-card {
    background: #fff;
    border: 1px solid rgba(184,134,53,.18);
    border-radius: 18px;
    padding: 18px;
    animation: memoryIn .45s ease both;
}
@keyframes memoryIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
.memory-card__name {
    font-weight: 800;
    color: #6f4b12;
    margin: 0 0 6px;
    font-family: Arial, sans-serif;
}
.memory-card__text {
    color: var(--text);
    font-size: 17px;
    margin: 0 0 10px;
}
.memory-card__date {
    color: var(--muted);
    font: 13px Arial, sans-serif;
}
.loading, .empty {
    color: var(--muted);
    font-style: italic;
}

.closing { text-align: center; }
.closing__quote {
    font-size: clamp(25px, 3vw, 38px) !important;
    line-height: 1.35;
    color: var(--text) !important;
}
.closing__thanks {
    color: #8a5f14 !important;
    font-weight: 700;
}
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    font-family: Arial, sans-serif;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
}
.lightbox.open { display: block; }
.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20,16,11,.86);
    backdrop-filter: blur(5px);
}
.lightbox__dialog {
    position: relative;
    width: min(1060px, 94vw);
    height: min(88vh, 820px);
    margin: 6vh auto;
    display: grid;
    place-items: center;
}
.lightbox figure {
    margin: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 12px;
}
.lightbox img {
    max-width: 100%;
    max-height: calc(88vh - 92px);
    margin: auto;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,.4);
    background: #fff;
}
.lightbox figcaption {
    color: #fff;
    text-align: center;
    font-family: Arial, sans-serif;
}
.lightbox figcaption span {
    color: #f2d38c;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}
.lightbox figcaption strong {
    display: block;
    font-size: 18px;
}
.lightbox figcaption small {
    display: block;
    opacity: .75;
    margin-top: 4px;
}
.lightbox__close,
.lightbox__nav {
    position: absolute;
    border: 0;
    color: #fff;
    background: rgba(255,255,255,.14);
    cursor: pointer;
    border-radius: 999px;
    z-index: 2;
}
.lightbox__close {
    right: 0;
    top: -42px;
    width: 42px;
    height: 42px;
    font-size: 30px;
}
.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 42px;
}
.lightbox__nav--prev { left: -10px; }
.lightbox__nav--next { right: -10px; }
.lightbox__close:hover,
.lightbox__nav:hover {
    background: rgba(184,134,53,.92);
}

.success-overlay {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    z-index: 100;
    background: rgba(45,38,28,.42);
    backdrop-filter: blur(3px);
}
.success-overlay.show { display: grid; }
.success-card {
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 30px;
    width: min(92vw, 390px);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,.22);
    animation: successPop .42s ease both;
}
.success-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: #fff;
    font: 800 38px Arial, sans-serif;
}
.success-card h3 { margin: 0 0 8px; font-size: 28px; }
.success-card p { margin: 0; color: var(--muted); font-size: 16px; }
@keyframes successPop {
    from { opacity: 0; transform: translateY(18px) scale(.94); }
    to { opacity: 1; transform: none; }
}
.confetti-piece {
    position: fixed;
    top: -14px;
    z-index: 120;
    width: 9px;
    height: 14px;
    border-radius: 3px;
    pointer-events: none;
    animation: confettiFall var(--fall-duration, 1600ms) linear forwards;
}
@keyframes confettiFall {
    0% { transform: translate3d(0, -20px, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate3d(var(--drift, 0px), 105vh, 0) rotate(720deg); opacity: 0; }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: reveal .75s ease forwards;
}
@keyframes reveal {
    to { opacity: 1; transform: none; }
}

@media (max-width: 940px) {
    .chapter, .nissan-feature { grid-template-columns: 1fr; }
    .vehicle-grid { grid-template-columns: 1fr; }
    .nissan-feature__image { order: 2; }
    .nissan-feature__text { order: 1; }
}
@media (max-width: 860px) {
    .nav { top: 10px; border-radius: 22px; align-items: flex-start; flex-wrap: wrap; }
    .nav__toggle { display: block; }
    .nav__links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 10px 0 4px;
    }
    .nav.open .nav__links { display: flex; }
    .hero__content {
        grid-template-columns: 1fr;
        padding-top: 110px;
        text-align: center;
        gap: 28px;
    }
    .hero__actions { justify-content: center; }
    .hero__subphrase { margin-left: auto; margin-right: auto; }
    .hero__portrait { width: min(360px, 92vw); }
    .hero__overlay { background: linear-gradient(180deg, rgba(251,247,239,.98), rgba(251,247,239,.82)); }
    .section { padding: 66px 0; }
    .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .dedications-grid { grid-template-columns: 1fr; }
    .lightbox__nav--prev { left: 4px; }
    .lightbox__nav--next { right: 4px; }
    .lightbox__close { right: 4px; top: -48px; }
}
@media (max-width: 480px) {
    .container { width: min(94vw, 1120px); }
    .hero__phrase { font-size: 20px; }
    .btn { width: 100%; }
    .gallery { gap: 8px; }
    .memory-form, .memories, .chapter, .nissan-feature { padding: 20px; }
    .chapter h3, .nissan-feature h3 { font-size: 29px; }
    .form-row { align-items: flex-start; flex-direction: column; gap: 0; }
    .gallery-toolbar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
    .filter-btn { white-space: nowrap; }
}


/* ===========================
   V4 - Ajustes de diseño
   =========================== */

/* Historia: eliminar sensación de columna vacía en desktop */
.chapter {
    display: block;
    width: min(1000px, 100%);
    padding: clamp(26px, 4.5vw, 48px);
}
.chapter__num {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(184, 134, 53, .10);
    border: 1px solid rgba(184, 134, 53, .18);
}
.chapter__num::after {
    content: "";
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.chapter__body {
    width: min(820px, 100%);
    margin: 0 auto;
}
.chapter--wide .chapter__body {
    width: min(980px, 100%);
}

/* Volquetes como camino visual */
.vehicle-grid {
    display: none;
}
.road-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
    padding-top: 34px;
}
.road-timeline::before {
    content: "";
    position: absolute;
    top: 57px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(184,134,53,.55), rgba(184,134,53,.55), transparent);
    border-radius: 999px;
}
.road-stage {
    position: relative;
    text-align: center;
    padding: 50px 12px 0;
}
.road-stage__marker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: #fff;
    font: 800 14px Arial, sans-serif;
    box-shadow: 0 10px 24px rgba(184,134,53,.24);
    z-index: 1;
}
.road-stage__marker--green {
    background: linear-gradient(135deg, #5e7a4d, #9aa972);
}
.road-stage__marker--red {
    background: linear-gradient(135deg, #9f2f2f, #d66a4d);
}
.road-stage__marker--white {
    background: linear-gradient(135deg, #f8f5ef, #d9c6a4);
    color: #76520f;
    border: 1px solid rgba(184,134,53,.32);
}
.road-stage h4 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.12;
}
.road-stage p {
    margin: 0;
    font-size: 16px;
    color: var(--muted);
}
.road-stage--photo img {
    width: min(190px, 100%);
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 18px;
    margin: 0 auto 14px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(72,51,22,.12);
}
.road-stage--highlight h4 {
    color: #8a5f14;
}

/* Lightbox móvil y desktop más cómodo */
.lightbox__dialog {
    height: auto;
    min-height: min(88vh, 820px);
}
.lightbox figure {
    align-content: center;
}
.lightbox figcaption {
    margin-top: 4px;
}
.lightbox img {
    max-height: calc(88vh - 130px);
}
.lightbox__close {
    right: 18px;
    top: 18px;
    width: 46px;
    height: 46px;
    font-size: 30px;
    background: rgba(255,255,255,.18);
}

/* Dedicatorias: formulario arriba y tarjetas debajo */
.dedications-grid {
    display: block;
}
.dedication-intro {
    text-align: center;
    width: min(840px, 92vw);
    margin: 0 auto 28px;
}
.memory-form--wide {
    width: min(980px, 100%);
    margin: 0 auto 38px;
}
.memory-form__grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 18px;
}
.memory-form__message textarea {
    min-height: 128px;
}
.memory-form__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.memory-form__actions .form-message {
    margin: 0;
}
.memories--grid {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.memories--grid h3 {
    text-align: center;
    font-size: clamp(28px, 3.4vw, 42px);
    margin-bottom: 22px;
}
.memory-list--masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}
.memory-card {
    display: flex;
    flex-direction: column;
}
.memory-card__date {
    display: block;
    text-align: right;
    margin-top: auto;
    padding-top: 10px;
}

/* Footer memorial */
.footer--memorial {
    position: relative;
    overflow: hidden;
    padding: 72px 0 58px;
    border-top: 0;
    background:
        radial-gradient(circle at 50% -10%, rgba(216,181,109,.18), transparent 24rem),
        linear-gradient(180deg, #3a2f23, #231d17);
    color: #f7ead0;
}
.footer__content {
    position: relative;
    text-align: center;
}
.footer__road {
    width: min(760px, 90%);
    height: 2px;
    margin: 0 auto 18px;
    background: linear-gradient(90deg, transparent, rgba(216,181,109,.65), transparent);
}
.footer__truck {
    width: min(420px, 82vw);
    margin: 0 auto 12px;
    color: rgba(216,181,109,.72);
    filter: drop-shadow(0 14px 26px rgba(0,0,0,.22));
}
.footer--memorial h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
}
.footer--memorial p {
    margin: 10px 0 4px;
    color: #ead7b1;
    font-size: 18px;
}
.footer--memorial span {
    color: rgba(247,234,208,.72);
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* Ajustes responsive V4 */
@media (max-width: 940px) {
    .road-timeline {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-top: 0;
    }
    .road-timeline::before {
        top: 0;
        bottom: 0;
        left: 24px;
        right: auto;
        width: 3px;
        height: auto;
        background: linear-gradient(180deg, transparent, rgba(184,134,53,.55), rgba(184,134,53,.55), transparent);
    }
    .road-stage {
        text-align: left;
        padding: 0 0 24px 72px;
        min-height: 72px;
    }
    .road-stage__marker {
        left: 24px;
        top: 0;
        transform: translateX(-50%);
    }
    .road-stage--photo img {
        margin: 0 0 14px;
        width: min(240px, 100%);
    }
    .memory-form__grid {
        grid-template-columns: 1fr;
    }
    .memory-list--masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 860px) {
    .lightbox__dialog {
        width: 100vw;
        min-height: 100svh;
        margin: 0;
        padding: 78px 18px 28px;
        place-items: center;
    }
    .lightbox figure {
        height: auto;
        max-height: calc(100svh - 110px);
        grid-template-rows: auto auto;
        gap: 10px;
    }
    .lightbox img {
        max-height: calc(100svh - 245px);
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
    .lightbox figcaption {
        margin-top: 0;
        padding: 0 14px;
    }
    .lightbox figcaption strong {
        font-size: 22px;
    }
    .lightbox figcaption small {
        margin-top: 2px;
    }
    .lightbox__close {
        top: 18px;
        right: 18px;
    }
    .lightbox__nav {
        width: 42px;
        height: 42px;
        font-size: 34px;
    }
    .lightbox__nav--prev { left: 12px; }
    .lightbox__nav--next { right: 12px; }
}
@media (max-width: 560px) {
    .memory-list--masonry {
        grid-template-columns: 1fr;
    }
    .chapter__body,
    .chapter--wide .chapter__body {
        width: 100%;
    }
    .chapter__num {
        font-size: 12px;
    }
    .footer--memorial {
        padding: 58px 0 48px;
    }
}


/* ===========================
   V5 - Dedicatorias + footer camino
   =========================== */

/* Formulario de dedicatorias: UX/UI más claro y sin espacios vacíos */
.dedication-intro {
    margin-bottom: 24px;
}
.memory-form--ux {
    width: min(820px, 100%);
    margin: 0 auto 44px;
    padding: clamp(22px, 4vw, 34px);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,253,248,.98), rgba(255,250,241,.92));
    border: 1px solid rgba(184,134,53,.28);
    box-shadow: 0 18px 55px rgba(72,51,22,.08);
}
.memory-form--ux label {
    margin: 0;
}
.memory-form--ux label span {
    display: block;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    font-weight: 800;
    color: #4b3e30;
}
.memory-form__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 18px;
}
.memory-form--ux input,
.memory-form--ux textarea {
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(184,134,53,.25);
}
.memory-form--ux input {
    min-height: 52px;
}
.memory-form--ux textarea {
    min-height: 150px;
    resize: vertical;
}
.memory-form__meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: 10px;
}
.memory-form__meta .form-help,
.memory-form__meta .char-counter {
    margin: 0;
}
.memory-form__actions {
    margin-top: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
}
.btn--submit {
    min-width: 190px;
}
.memory-form__actions .form-message {
    font-family: Arial, sans-serif;
    font-size: 15px;
    margin: 0;
}

/* Recuerdos: uno por fila, lectura ordenada */
.memory-list--masonry {
    width: min(980px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.memory-card {
    width: 100%;
    padding: 22px 24px;
    border-radius: 20px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(184,134,53,.20);
    box-shadow: 0 10px 30px rgba(72,51,22,.045);
}
.memory-card__name {
    font-size: 18px;
    margin-bottom: 8px;
}
.memory-card__text {
    max-width: 900px;
    font-size: 18px;
    line-height: 1.72;
}
.memory-card__date {
    text-align: right;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(184,134,53,.12);
}

/* Footer opción A: camino sobrio */
.footer--path {
    position: relative;
    overflow: hidden;
    padding: 76px 0 66px;
    border-top: 1px solid rgba(184,134,53,.22);
    background:
        radial-gradient(circle at 50% -20%, rgba(216,181,109,.16), transparent 26rem),
        linear-gradient(180deg, #4a3b2b, #2d241c);
    color: #f7ead0;
}
.footer--path .footer__content {
    position: relative;
    text-align: center;
}
.footer__path-art {
    width: min(860px, 96%);
    height: 150px;
    margin: 0 auto 8px;
    opacity: .92;
}
.footer__path-art svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.path-line {
    fill: none;
    stroke-linecap: round;
}
.path-line--soft {
    stroke: rgba(255,255,255,.12);
    stroke-width: 22;
}
.path-line--main {
    stroke: rgba(216,181,109,.82);
    stroke-width: 5;
    stroke-dasharray: 16 16;
}
.path-dot {
    stroke: rgba(247,234,208,.85);
    stroke-width: 20;
    stroke-linecap: round;
}
.path-dot--end {
    stroke: rgba(216,181,109,.95);
}
.footer__label {
    margin: 0 0 8px;
    color: rgba(247,234,208,.74);
    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.footer--path h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
}
.footer--path p:not(.footer__label) {
    width: min(720px, 92%);
    margin: 12px auto 6px;
    color: #ead7b1;
    font-size: 18px;
}
.footer--path span {
    display: inline-block;
    margin-top: 6px;
    color: rgba(247,234,208,.72);
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* Apagar estilos V4 del footer anterior si quedaron en cascada */
.footer__truck,
.footer__road {
    display: none !important;
}

@media (max-width: 720px) {
    .memory-form--ux {
        width: 100%;
    }
    .memory-form__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .memory-form__actions {
        grid-template-columns: 1fr;
    }
    .btn--submit {
        width: 100%;
    }
    .memory-card {
        padding: 18px 18px;
    }
    .memory-card__text {
        font-size: 17px;
    }
    .footer__path-art {
        height: 110px;
        margin-bottom: 14px;
    }
    .path-line--soft {
        stroke-width: 18;
    }
}


/* ===========================
   V6 - Video móvil + lightbox
   =========================== */

/* En desktop se mantiene el iframe embebido */
.video-mobile-card {
    display: none;
}

/* Algunos móviles bloquean el embed de YouTube por restricciones del video.
   En celular mostramos una tarjeta directa a YouTube para evitar el mensaje de "video no disponible". */
@media (max-width: 860px) {
    .video-frame--desktop {
        display: none;
    }

    .video-mobile-card {
        display: block;
        position: relative;
        width: min(92vw, 620px);
        margin: 0 auto;
        overflow: hidden;
        border-radius: 24px;
        border: 1px solid rgba(184,134,53,.30);
        box-shadow: 0 18px 55px rgba(72,51,22,.16);
        background: #221d17;
        text-decoration: none;
        color: #fff;
    }

    .video-mobile-card img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        opacity: .86;
    }

    .video-mobile-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.56));
    }

    .video-mobile-card__play {
        position: absolute;
        left: 50%;
        top: 46%;
        transform: translate(-50%, -50%);
        z-index: 1;
        width: 74px;
        height: 74px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: #d91f1f;
        color: #fff;
        font-size: 34px;
        padding-left: 4px;
        box-shadow: 0 14px 36px rgba(0,0,0,.28);
    }

    .video-mobile-card__label {
        position: absolute;
        z-index: 1;
        left: 18px;
        right: 18px;
        bottom: 16px;
        text-align: center;
        font: 800 16px Arial, sans-serif;
        background: rgba(0,0,0,.48);
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 999px;
        padding: 10px 14px;
        backdrop-filter: blur(8px);
    }
}

/* Lightbox: botones fuera del área de la foto, visibles y con contraste */
.lightbox__dialog {
    width: min(980px, 78vw);
}

.lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 95;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(184,134,53,.95);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 16px 42px rgba(0,0,0,.32);
    opacity: 1;
}

.lightbox__nav--prev {
    left: max(26px, calc((100vw - min(980px, 78vw)) / 2 - 86px));
}

.lightbox__nav--next {
    right: max(26px, calc((100vw - min(980px, 78vw)) / 2 - 86px));
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
    background: #d8b56d;
    color: #2d261c;
    outline: none;
}

.lightbox__close {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 96;
    background: rgba(184,134,53,.95);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
    background: #d8b56d;
    color: #2d261c;
    outline: none;
}

/* Texto del lightbox más cerca de la foto */
.lightbox figure {
    gap: 8px;
}
.lightbox figcaption {
    margin-top: 0;
}

@media (max-width: 860px) {
    .lightbox__dialog {
        width: 100vw;
    }

    .lightbox__nav {
        width: 46px;
        height: 46px;
        font-size: 34px;
        background: rgba(184,134,53,.96);
    }

    .lightbox__nav--prev {
        left: 14px;
    }

    .lightbox__nav--next {
        right: 14px;
    }

    .lightbox__close {
        top: 18px;
        right: 18px;
        width: 46px;
        height: 46px;
    }

    .lightbox figure {
        gap: 8px;
    }

    .lightbox figcaption {
        padding: 0 56px;
    }
}


/* ===========================
   V7 - Video MP4 directo
   =========================== */

/* Ocultar estilos de la solución anterior con YouTube en móvil */
.video-mobile-card {
    display: none !important;
}
.video-frame--desktop {
    display: none !important;
}

.video-player {
    width: min(920px, 100%);
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(184,134,53,.30);
    background: #1f1a14;
    box-shadow: var(--shadow);
}

.video-player video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: #1f1a14;
}

.video-note {
    width: min(920px, 100%);
    margin: 12px auto 0;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 13px !important;
    color: rgba(116,103,86,.82) !important;
}

@media (max-width: 860px) {
    .video-player {
        width: min(92vw, 620px);
        border-radius: 24px;
    }

    .video-player video {
        aspect-ratio: 16 / 9;
    }

    .video-note {
        width: min(92vw, 620px);
        font-size: 12px !important;
    }
}


/* ===========================
   V8 - Ajustes video/fotos
   =========================== */

.video-note {
    display: none !important;
}

.photo-share-after-memories {
    width: min(980px, 100%);
    margin: 42px auto 0;
}

.photo-share-after-memories .photo-share-card {
    margin-top: 0;
}

.photo-share-after-memories .photo-share-card__text h3 {
    margin-top: 0;
}

@media (max-width: 720px) {
    .photo-share-after-memories {
        margin-top: 34px;
    }
}


/* ===========================
   V9 - Volquetes actualizados
   =========================== */

.road-timeline--with-images .road-stage {
    padding-top: 56px;
}

.road-timeline--with-images .road-stage img {
    width: min(210px, 100%);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 22px;
    margin: 0 auto 14px;
    border: 1px solid rgba(184,134,53,.24);
    background: rgba(255,253,248,.86);
    box-shadow: 0 12px 32px rgba(72,51,22,.10);
    padding: 8px;
}

.road-timeline--with-images .road-stage--highlight img {
    border-color: rgba(184,134,53,.42);
    box-shadow: 0 16px 38px rgba(184,134,53,.18);
}

.nissan-feature__image {
    display: grid;
    place-items: center;
    background: rgba(255,253,248,.7);
    border-radius: 24px;
    border: 1px solid rgba(184,134,53,.20);
    padding: 24px;
}

.nissan-feature__image img {
    object-fit: contain;
    max-height: 420px;
    background: transparent;
}

@media (max-width: 940px) {
    .road-timeline--with-images .road-stage {
        padding-top: 0;
    }

    .road-timeline--with-images .road-stage img {
        width: min(220px, 72vw);
        margin: 0 0 14px;
    }
}


/* ===========================
   V10 - Nissan destacado como imagen grande
   =========================== */

/* La línea de tiempo usa los PNG de 200 px, pero la sección especial del Nissan
   vuelve a usar la imagen grande, como en la versión visual aprobada. */
.nissan-feature__image {
    display: block !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.nissan-feature__image img {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    height: auto;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 50px rgba(72,51,22,.12) !important;
    background: #eef0eb !important;
}

@media (max-width: 940px) {
    .nissan-feature__image img {
        aspect-ratio: 4 / 3;
    }
}
