:root {
    /* Paleta de Colores (Blancos y Rosas Clásicos) */
    --bg-light: #FFF5F7; /* Fondo muy claro tirando a rosa/blanco */
    --pink-primary: #FFB6C1; /* Rosa clásico claro */
    --pink-pastel: #FFE4E1; /* Rosa pastel/bruma */
    --pink-hot: #FF69B4; /* Rosa un poco más vivo para contrastes */
    --text-dark: #5C4044; /* Marrón oscuro / rosa oscuro para el texto (Mejor legibilidad y elegancia) */
    --white: #FFFFFF;
}

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

body {
    background-color: var(--white);
    color: var(--text-dark);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 900;
    letter-spacing: -0.04em;
}

/* ---------------------- SCROLL DIVE ---------------------- */
.scroll-dive-container {
    position: relative;
    width: 100%;
    /* Se hace alto para que el usuario tarde varios scrolls en pasar toda la animación */
    height: 300vh; 
}

canvas {
    position: sticky; /* Sticky mantiene la imagen fija mientras se scrollea el contenedor */
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: var(--white);
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 8vh; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    animation: bounce 2s infinite;
    z-index: 10;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.8);
}

.arrow-down {
    width: 15px;
    height: 15px;
    border-right: 2px solid var(--text-dark);
    border-bottom: 2px solid var(--text-dark);
    transform: rotate(45deg);
    margin-top: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* ---------------------- INTRO SECTION (Fondo Blanco) ---------------------- */
.intro-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white);
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
}

.intro-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.intro-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    animation: floatHeart 4s ease-in-out infinite;
}

@keyframes floatHeart {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
    100% { transform: translateY(0px) scale(1); }
}

.intro-text-wrapper {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-title {
    font-size: 4rem;
    color: var(--pink-hot);
    line-height: 0.95;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(255,105,180,0.15);
}

.subtitle {
    font-size: 1.4rem;
    max-width: 600px;
    line-height: 1.5;
    font-weight: 500;
}

/* ---------------------- COLLAGE FOTOS AMIGAS ---------------------- */
.collage-section {
    padding: 4rem 1rem;
    background-color: var(--white);
    position: relative;
    z-index: 2;
}

.collage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.collage-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.collage-item:nth-child(odd) {
    transform: rotate(-1.5deg);
}
.collage-item:nth-child(even) {
    transform: rotate(1.5deg);
}

/* Hover/active para interacción táctil */
.collage-item:active {
    transform: scale(1.03) rotate(0deg) !important;
    box-shadow: 0 12px 30px rgba(255, 105, 180, 0.3);
    z-index: 5;
}

/* Foto ocupa todo el espacio */
.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.collage-item:active img {
    transform: scale(1.05);
}

/* Variante alta: ocupa 2 filas */
.collage-item--tall {
    grid-row: span 2;
}

/* Variante ancha: ocupa 2 columnas */
.collage-item--wide {
    grid-column: span 2;
}

/* Borde decorativo rosa sutil */
.collage-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 2px solid rgba(255, 182, 193, 0.3);
    pointer-events: none;
}

/* ---------------------- BABY CAROUSEL ---------------------- */
.baby-carousel-section {
    padding: 4rem 1rem;
    background-color: var(--white);
    position: relative;
    z-index: 2;
}

.baby-carousel {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.15);
}

.baby-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.baby-slide {
    min-width: 100%;
    position: relative;
}

.baby-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 70vh;
}

/* Botones prev/next */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    border: none;
    color: var(--text-dark);
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.9);
    background: rgba(255, 255, 255, 0.9);
}

.carousel-btn--prev { left: 10px; }
.carousel-btn--next { right: 10px; }

/* Dots indicadores */
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background: var(--pink-hot);
    transform: scale(1.3);
}


/* ---------------------- VIDEOS AMIGAS ---------------------- */
.videos-section {
    padding: 5rem 1.5rem;
    background-color: var(--white);
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    line-height: 1.1;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.video-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid var(--pink-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto al tocar una tarjeta de vídeo en móvil */
.video-card:active {
    transform: scale(0.97);
    box-shadow: 0 5px 15px rgba(255,105,180,0.2);
}

.video-card video {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
    outline: none;
    background-color: var(--bg-light);
}

.video-card p {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ---------------------- FINAL VIDEO (NOVIO) ---------------------- */
.final-video-section {
    padding: 4rem 1.5rem;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}


.final-title {
    font-size: 3.5rem;
    color: var(--pink-hot);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.video-wrapper video {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.final-text {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.6;
}

/* ---------------------- ANIMACIONES DE SCROLL ---------------------- */
/* Clases base para Intersection Observer */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Clase que se añade al aparecer en viewport */
.show {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes de animación de entrada desde los lados */
.hidden.slide-left {
    opacity: 0;
    transform: translateX(-60px);
}
.hidden.slide-right {
    opacity: 0;
    transform: translateX(60px);
}
.show.slide-left,
.show.slide-right {
    opacity: 1;
    transform: translateX(0);
}

/* ---------------------- LIGHTBOX MODAL ---------------------- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.85);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Cursor pointer en las fotos del collage */
.collage-item {
    cursor: pointer;
}

/* ---------------------- PARTÍCULAS FLOTANTES ---------------------- */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    background: transparent;
}

/* ---------------------- FINAL CARD ANIMACIÓN DE PULSO ---------------------- */
.final-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 20px 40px rgba(255,105,180,0.15);
    text-align: center;
    width: 100%;
    max-width: 500px;
    border: 2px solid var(--pink-primary);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 20px 40px rgba(255,105,180,0.15); }
    50% { box-shadow: 0 20px 60px rgba(255,105,180,0.35); }
    100% { box-shadow: 0 20px 40px rgba(255,105,180,0.15); }
}

/* ---------------------- MEDIA QUERIES OTRAS PANTALLAS (Desktop/Tablet) ---------------------- */
@media (min-width: 768px) {
    .intro-content {
        flex-direction: row-reverse; /* El texto a un lado, imagen al otro */
    }
    .intro-text-wrapper {
        text-align: left;
    }
    .intro-image {
        max-width: 500px;
    }
    
    .collage-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 260px;
        gap: 12px;
    }
    .main-title {
        font-size: 6.5rem;
    }
    .section-title {
        font-size: 4.5rem;
    }
}
