:root {
    --bg-dark: #0f080a;
    --bg-card: rgba(30, 16, 21, 0.72);
    --bg-card-hover: rgba(45, 22, 30, 0.88);
    --primary-crimson: #c8233c;
    --primary-rose: #ff5e7e;
    --accent-gold: #e6c17a;
    --accent-gold-soft: rgba(230, 193, 122, 0.25);
    --text-light: #fdf8f5;
    --text-muted: #d4bfc4;
    --border-glass: rgba(230, 193, 122, 0.22);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-script: 'Great Vibes', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    background: radial-gradient(circle at 50% 0%, #2b0f18 0%, #0f080a 55%, #090406 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Canvas de Efectos Ambientales */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* Barra de Navegación y Controles de Ambiente */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(15, 8, 10, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.nav-logo {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--accent-gold);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(230, 193, 122, 0.3);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

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

.ambient-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-glass);
}

.mode-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mode-btn.active, .mode-btn:hover {
    background: linear-gradient(135deg, var(--primary-crimson), #961629);
    color: #fff;
    box-shadow: 0 2px 12px rgba(200, 35, 60, 0.45);
}

/* Contenedor Principal */
main {
    position: relative;
    z-index: 2;
}

section {
    padding: 6rem 6%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
    padding-top: 7.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgba(200, 35, 60, 0.18);
    border: 1px solid rgba(255, 94, 126, 0.35);
    color: var(--primary-rose);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5.5vw, 5.2rem);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 1.2rem;
    background: linear-gradient(to right, #ffffff, #f5d7a1, #ff9eb2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span.amp {
    font-family: var(--font-script);
    color: var(--primary-crimson);
    -webkit-text-fill-color: var(--primary-rose);
    font-weight: 400;
    padding: 0 0.3rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-crimson), #8f1124);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(200, 35, 60, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(200, 35, 60, 0.55);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(230, 193, 122, 0.14);
    transform: translateY(-3px);
}

/* Marco de Foto Principal */
.hero-photo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-glow {
    position: absolute;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(200, 35, 60, 0.45) 0%, rgba(230, 193, 122, 0.15) 50%, transparent 75%);
    filter: blur(35px);
    z-index: 0;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.06); opacity: 1; }
}

.polaroid-frame {
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
    padding: 1.1rem 1.1rem 3.4rem 1.1rem;
    border-radius: 24px;
    border: 1px solid rgba(230, 193, 122, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    backdrop-filter: blur(20px);
    transform: rotate(1.5deg);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    max-width: 430px;
    width: 100%;
}

.polaroid-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.polaroid-frame img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.polaroid-caption {
    position: absolute;
    bottom: 0.85rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: var(--font-script);
    font-size: 1.85rem;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

.floating-badge {
    position: absolute;
    bottom: -1.2rem;
    left: -1.5rem;
    z-index: 3;
    background: rgba(22, 11, 15, 0.92);
    border: 1px solid var(--border-glass);
    padding: 0.85rem 1.2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

.floating-badge .icon {
    font-size: 1.6rem;
}

.floating-badge .text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-gold);
}

.floating-badge .text span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Contador de Tiempo en Vivo */
.counter-section {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 600;
    color: var(--text-light);
}

.counter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.counter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), var(--primary-crimson), transparent);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.counter-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 1.5rem 0.8rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold-soft);
}

.counter-number {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.counter-total-days {
    margin-top: 2rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.counter-total-days strong {
    color: var(--primary-rose);
    font-weight: 600;
}

/* Línea de Tiempo de Aventuras */
.timeline {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-gold), var(--primary-crimson), var(--accent-gold), transparent);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.5rem 2.8rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 2.4rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a0d12;
    border: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(230, 193, 122, 0.4);
    z-index: 3;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -22px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -22px;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 22px;
    padding: 2rem;
    backdrop-filter: blur(14px);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(230, 193, 122, 0.45);
}

.timeline-date {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-rose);
    background: rgba(200, 35, 60, 0.16);
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}

.timeline-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--accent-gold);
    margin-bottom: 0.7rem;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.timeline-action-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-light);
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.timeline-action-btn:hover {
    background: var(--primary-crimson);
    border-color: var(--primary-crimson);
}

/* Tarjetas de Aventuras Interactivas */
.adventures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.adventure-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.4rem 1.8rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.adventure-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.55);
}

.adventure-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(200, 35, 60, 0.25), rgba(230, 193, 122, 0.15));
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.adventure-card h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.adventure-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.96rem;
    margin-bottom: 1.5rem;
}

.adventure-tag {
    font-size: 0.78rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Sección Carta de Amor */
.letter-section {
    max-width: 820px;
    margin: 0 auto;
}

.letter-paper {
    background: linear-gradient(165deg, rgba(38, 18, 25, 0.9), rgba(20, 10, 14, 0.95));
    border: 1px solid rgba(230, 193, 122, 0.35);
    border-radius: 28px;
    padding: 4rem 3.5rem;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65);
    position: relative;
}

.letter-paper::after {
    content: '❝';
    position: absolute;
    top: 1.5rem;
    right: 2.5rem;
    font-family: var(--font-serif);
    font-size: 6rem;
    color: rgba(230, 193, 122, 0.08);
    line-height: 1;
    pointer-events: none;
}

.letter-greeting {
    font-family: var(--font-script);
    font-size: 2.8rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.letter-body p {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    line-height: 1.85;
    color: #f3e6e9;
    margin-bottom: 1.4rem;
}

.letter-signature {
    margin-top: 2.5rem;
    text-align: right;
}

.letter-signature span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.letter-signature strong {
    font-family: var(--font-script);
    font-size: 2.6rem;
    color: var(--primary-rose);
    font-weight: 400;
}

/* Imágenes dentro de la Línea de Tiempo y Aventuras */
.timeline-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(230, 193, 122, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    transition: transform 0.4s ease;
}

.timeline-content:hover .timeline-photo {
    transform: scale(1.02);
}

/* Galería de Destinos Especiales (Algarrobo y Westgate Las Vegas) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 22px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.6);
}

.gallery-img-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-card:hover .gallery-img-wrap img {
    transform: scale(1.07);
}

.gallery-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 8, 10, 0.82);
    border: 1px solid var(--border-glass);
    color: var(--accent-gold);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.gallery-info {
    padding: 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-info h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.gallery-info p {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

/* ==========================================================================
   ESCENA RETRO PIXEL ART: CAMINANDO JUNTOS BAJO FUEGOS ARTIFICIALES
   ========================================================================== */
.retro-section {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.retro-arcade-frame {
    background: linear-gradient(180deg, #160912 0%, #0b0408 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 26px;
    padding: 1.5rem;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.75), 0 0 35px rgba(200, 35, 60, 0.25);
    position: relative;
    overflow: hidden;
}

.retro-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.6rem 1rem 1.2rem 1rem;
    border-bottom: 1px dashed rgba(230, 193, 122, 0.3);
    margin-bottom: 1rem;
}

.retro-pixel-badge {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 0.85rem;
    color: #ff8da6;
    background: rgba(200, 35, 60, 0.2);
    border: 1px solid rgba(255, 141, 166, 0.45);
    padding: 0.35rem 0.9rem;
    border-radius: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.retro-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.retro-btn {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 0.82rem;
    background: linear-gradient(135deg, #d42848, #8e1329);
    color: #fff;
    border: 1px solid var(--accent-gold);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 0 #590a18;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.retro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #590a18;
}

.retro-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #590a18;
}

.retro-btn.alt {
    background: linear-gradient(135deg, #2d1b4e, #180c2e);
    box-shadow: 0 4px 0 #0c0518;
}

.retro-canvas-container {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(230, 193, 122, 0.35);
    background: #07030d;
    cursor: pointer;
}

#retro-walk-canvas {
    width: 100%;
    height: 410px;
    display: block;
    image-rendering: pixelated;
}

/* Efecto sutil de líneas CRT retro */
.crt-scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.22) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

.retro-hint {
    text-align: center;
    margin-top: 0.95rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: var(--accent-gold);
}

/* Tarjeta Especial Retro: Beso en nuestro Škoda Yeti 2016 Gris */
.retro-yeti-showcase {
    margin-top: 2.5rem;
    background: linear-gradient(150deg, #170a14 0%, #0d050a 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 26px;
    padding: 1.5rem;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.75), 0 0 30px rgba(230, 193, 122, 0.18);
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 2rem;
    align-items: center;
}

.retro-yeti-img-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(230, 193, 122, 0.45);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.retro-yeti-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.retro-yeti-showcase:hover .retro-yeti-img-wrap img {
    transform: scale(1.03);
}

.retro-yeti-content {
    padding: 0.5rem 0.8rem;
}

.retro-yeti-content h3 {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    color: var(--accent-gold);
    margin: 0.8rem 0;
    line-height: 1.2;
}

.retro-yeti-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

/* ==========================================================================
   ÁLBUM DE RECUERDOS REALES (FOTOS DE DAMARY Y VÍCTOR)
   ========================================================================== */
.memories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.6rem;
    margin-bottom: 3.5rem;
}

.memory-polaroid {
    grid-column: span 2;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(230, 193, 122, 0.35);
    border-radius: 22px;
    padding: 0.9rem 0.9rem 1.4rem 0.9rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.memory-polaroid.featured {
    grid-column: span 3;
}

.memory-polaroid.full-span {
    grid-column: span 6;
}

.memory-polaroid:hover {
    transform: translateY(-8px) rotate(0deg) !important;
    border-color: var(--accent-gold);
    box-shadow: 0 24px 55px rgba(200, 35, 60, 0.35);
}

.memory-img-box {
    width: 100%;
    height: 330px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.1rem;
    background: #12080c;
}

.memory-polaroid.featured .memory-img-box,
.memory-polaroid.full-span .memory-img-box {
    height: 390px;
}

.memory-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.6s ease;
}

.memory-polaroid:hover .memory-img-box img {
    transform: scale(1.06);
}

.memory-date-pill {
    position: absolute;
    bottom: 0.8rem;
    right: 0.8rem;
    background: rgba(15, 8, 10, 0.85);
    color: var(--accent-gold);
    border: 1px solid var(--border-glass);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.memory-caption h3 {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    color: var(--accent-gold);
    margin-bottom: 0.4rem;
}

.memory-caption p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    padding: 3.5rem 5%;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

footer .heart-pulse {
    display: inline-block;
    color: var(--primary-crimson);
    animation: heartBeat 1.4s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.18); }
}

/* ==========================================================================
   ADAPTACIÓN COMPLETA PARA CELULARES Y TABLETS (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 960px) {
    section {
        padding: 4rem 5%;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8.5rem;
        gap: 2.5rem;
        min-height: auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.05rem;
    }

    .hero-actions {
        justify-content: center;
    }

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

    .adventures-grid,
    .gallery-grid,
    .memories-grid,
    .retro-yeti-showcase {
        grid-template-columns: 1fr;
    }

    .memory-polaroid,
    .memory-polaroid.featured,
    .memory-polaroid.full-span {
        grid-column: span 1 !important;
        transform: none !important;
    }

    .timeline::before {
        left: 22px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 3.8rem;
        padding-right: 0;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 0;
        right: auto;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    /* Barra superior compacta y centrada en celulares */
    .navbar {
        flex-direction: column;
        padding: 0.75rem 4%;
        gap: 0.55rem;
    }

    .nav-logo {
        font-size: 1.65rem;
    }

    .ambient-controls {
        width: 100%;
        justify-content: center;
        padding: 0.3rem 0.4rem;
        gap: 0.25rem;
        overflow-x: auto;
    }

    .mode-btn {
        font-size: 0.74rem;
        padding: 0.32rem 0.6rem;
        white-space: nowrap;
    }

    /* Secciones más cómodas en pantalla vertical */
    section {
        padding: 3.2rem 4.5%;
    }

    .hero {
        padding-top: 7.8rem;
        gap: 2rem;
    }

    .hero-badge {
        font-size: 0.74rem;
        padding: 0.4rem 0.9rem;
    }

    .hero-title {
        font-size: 2.65rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.4rem;
        font-size: 0.95rem;
    }

    .polaroid-frame {
        transform: rotate(0deg);
        padding: 0.8rem 0.8rem 2.8rem 0.8rem;
        max-width: 100%;
    }

    .polaroid-caption {
        font-size: 1.55rem;
        bottom: 0.65rem;
    }

    .floating-badge {
        position: relative;
        left: auto;
        bottom: auto;
        margin: -1rem auto 0 auto;
        width: fit-content;
    }

    .hero-photo-wrapper {
        flex-direction: column;
    }

    /* Contador de Tiempo en 2 columnas */
    .counter-card {
        padding: 2rem 1.1rem;
        border-radius: 22px;
    }

    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .counter-item {
        padding: 1.1rem 0.5rem;
        border-radius: 16px;
    }

    .counter-number {
        font-size: 2rem;
    }

    .counter-label {
        font-size: 0.72rem;
    }

    /* Escena Retro 16-bit y Škoda Yeti adaptados a celular */
    .retro-arcade-frame,
    .retro-yeti-showcase {
        padding: 1rem;
        border-radius: 20px;
    }

    .retro-header-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 0.4rem 0.2rem 1rem 0.2rem;
    }

    .retro-pixel-badge {
        font-size: 0.72rem;
        text-align: center;
        display: block;
    }

    .retro-controls {
        flex-direction: column;
        width: 100%;
    }

    .retro-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.65rem 0.8rem;
    }

    #retro-walk-canvas {
        height: 235px;
    }

    .retro-hint {
        font-size: 0.76rem;
        line-height: 1.45;
    }

    .retro-yeti-content {
        padding: 0.2rem;
        text-align: center;
    }

    .retro-yeti-content h3 {
        font-size: 1.65rem;
    }

    /* Álbum de Fotos en Celular */
    .memories-grid {
        gap: 1.25rem;
    }

    .memory-img-box,
    .memory-polaroid.featured .memory-img-box,
    .memory-polaroid.full-span .memory-img-box {
        height: 270px;
    }

    .memory-caption h3 {
        font-size: 1.38rem;
    }

    /* Línea de tiempo en celular */
    .timeline::before {
        left: 16px;
    }

    .timeline-item {
        padding-left: 3rem;
        padding-bottom: 1.2rem;
    }

    .timeline-dot {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        left: -2px !important;
    }

    .timeline-content {
        padding: 1.35rem;
        border-radius: 18px;
    }

    .timeline-photo {
        height: 180px;
    }

    .timeline-title {
        font-size: 1.45rem;
    }

    /* Carta de amor en celular */
    .letter-paper {
        padding: 2.2rem 1.35rem;
        border-radius: 22px;
    }

    .letter-greeting {
        font-size: 2.2rem;
    }

    .letter-body p {
        font-size: 1.15rem;
        line-height: 1.75;
    }

    .letter-signature strong {
        font-size: 2.2rem;
    }
}

