/* styles.css - Versión Colorida y Creativa */
:root {
    --color-primario: #FF7EB9;  /* Rosa suave */
    --color-secundario: #FFAC8E; /* Melocotón */
    --color-destacado: #FFE66D;  /* Amarillo claro */
    --color-fondo: #FFF3F9;      /* Rosa muy claro */
    --color-texto: #5A2A40;      /* Rosa oscuro */
    --color-detalle: #9C6FAA;     /* Lila suave */
}

body {
    margin: 0;
    font-family: 'Segoe UI', cursive;
    overflow-x: hidden;
    background: linear-gradient(135deg, 
        var(--color-fondo) 0%, 
        #FFE6EF 50%, 
        #F7F0FF 100%);
    color: var(--color-texto);
}

/* Estilos Página Inicio - Versión Mejorada */
.pagina-inicio {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.portal-animado {
    text-align: center;
    position: relative;
    z-index: 2;
}

.corazon-3d {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, 
        var(--color-primario), 
        var(--color-secundario));
    transform: scale(0) rotate(-180deg);
    transition: transform 1s;
    margin: 0 auto;
    clip-path: path('M12 4.419c-2.826-5.695-11-3.091-11 2.249 0 3.027 4.667 8.386 10.999 13.332C18.667 15.054 23 9.695 23 6.668c0-5.344-8.17-7.948-11-2.249z');
    box-shadow: 0 10px 30px rgba(255, 126, 185, 0.3);
    position: relative;
    animation: latido 2s infinite;
}

@keyframes latido {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.titulo-parpadeante {
    font-size: 3em;
    margin: 30px 0;
    text-shadow: 2px 2px 0 var(--color-destacado);
    position: relative;
    display: inline-block;
}

.titulo-parpadeante::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--color-detalle), 
        transparent);
    bottom: -10px;
    left: 0;
    animation: linea-magica 3s infinite;
}

@keyframes linea-magica {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.boton-magico {
    background: linear-gradient(45deg, 
        var(--color-primario), 
        var(--color-secundario));
    border: none;
    padding: 15px 40px;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.boton-magico::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent);
    transform: rotate(45deg);
    animation: brillo 2s infinite;
}

@keyframes brillo {
    0% { left: -50%; }
    50% { left: 150%; }
}

/* Estilos Página Historia - Versión Mejorada */
.pagina-historia {
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
}

.linea-tiempo {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px 0;
}

.linea-tiempo::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(
        to bottom, 
        var(--color-primario), 
        var(--color-detalle));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.evento {
    padding: 25px;
    position: relative;
    width: 40%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(156, 111, 170, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.evento:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(156, 111, 170, 0.3);
}

.chispa {
    width: 20px;
    height: 20px;
    background: var(--color-destacado);
    position: absolute;
    border-radius: 50%;
    top: 30px;
    right: -60px;
    z-index: 1;
    animation: palpitar 1.5s infinite;
}

@keyframes palpitar {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Añade esto al archivo styles.css */
.galeria-interactiva {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px;
    margin: 0 auto;
    max-width: 1400px;
}

.marco-foto {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transform: rotate(2deg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    background: #fff;
    box-shadow: 0 15px 35px rgba(90, 42, 64, 0.1);
    aspect-ratio: 3/4; /* Mantiene proporción 960x1280 */
}

.marco-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.marco-foto:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 25px 50px rgba(90, 42, 64, 0.2);
}

.marco-foto:hover img {
    transform: scale(1.03);
}

/* Efecto polaroid */
.marco-foto::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 0.9) 20%, 
        rgba(255, 255, 255, 0));
}

.sobre-mensaje {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 15px;
    font-size: 0.9em;
    color: var(--color-texto);
    box-shadow: 0 5px 15px rgba(90, 42, 64, 0.1);
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .galeria-interactiva {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .marco-foto {
        aspect-ratio: 9/16;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    .galeria-interactiva {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}
/* Nuevos Efectos Creativos */
.burbujas-fondo {
    position: fixed;
    width: 300vw;
    height: 300vh;
    pointer-events: none;
    z-index: 1;
}

.burbuja {
    position: absolute;
    background: rgba(255, 126, 185, 0.1);
    border-radius: 50%;
    animation: flotar-burbuja 10s infinite;
}

@keyframes flotar-burbuja {
    0% { 
        transform: translateY(100vh) scale(0.5); 
        opacity: 0;
    }
    100% { 
        opacity: 0.3;
    }
    100% { 
        transform: translateY(-100vh) scale(1.2); 
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .linea-tiempo::after { left: 40px; }
    .evento { width: 100%; left: 0 !important; }
    .chispa { display: none; }
    .titulo-parpadeante { font-size: 2em; }
}