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

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Poppins:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

:root {
    /* Colores románticos */
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #ffa0bd;
    --dark-pink: #be3a5f;
    --light-pink: #ffe5ec;
    --cream: #fff8f0;
    --gold: #d4af37;
    --dark: #2d1b2e;
    --text-dark: #3d2534;
    --text-light: #6b5466;

    /* Gradientes */
    --gradient-romantic: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-love: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    --gradient-soft: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);

    /* Sombras */
    --shadow-sm: 0 2px 10px rgba(255, 107, 157, 0.1);
    --shadow-md: 0 4px 20px rgba(255, 107, 157, 0.2);
    --shadow-lg: 0 10px 40px rgba(255, 107, 157, 0.3);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* Transiciones */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* ===========================
   PARTÍCULAS DE FONDO
   =========================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    background-image:
        radial-gradient(circle at 20% 50%, var(--primary-color) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, var(--secondary-color) 1px, transparent 1px),
        radial-gradient(circle at 40% 20%, var(--accent-color) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 60px 60px;
    animation: particlesFloat 20s linear infinite;
}

@keyframes particlesFloat {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 50px 50px, -80px 80px, 60px -60px;
    }
}

/* ===========================
   NAVEGACIÓN
   =========================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    background: var(--gradient-love);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-smooth);
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-love);
    transition: width 0.4s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-romantic);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    z-index: 1;
    color: white;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.95;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

/* ===========================
   CONTENEDORES Y SECCIONES
   =========================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-love);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    text-align: center;
    margin-bottom: 5rem;
    background: var(--gradient-love);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    position: relative;
}

.main-title::after {
    content: '❤';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    25% {
        transform: translateX(-50%) scale(1.2);
    }

    50% {
        transform: translateX(-50%) scale(1);
    }
}

/* ===========================
   SECCIÓN NOSOTROS
   =========================== */
.section-nosotros {
    background: linear-gradient(180deg, var(--cream) 0%, var(--light-pink) 100%);
}

.intro-text {
    text-align: center;
    margin-bottom: 5rem;
}

.intro-text p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 300;
}

.personas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.persona-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    position: relative;
}

.persona-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.persona-card[data-persona="enrique"] .persona-image::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.persona-card[data-persona="alicia"] .persona-image::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.persona-image {
    position: relative;
    height: 550px;
    /* Aumentado de 400px a 550px para mostrar las imágenes completas */
    overflow: hidden;
}

.persona-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.2;
    transition: var(--transition-smooth);
}

.persona-card:hover .persona-image::before {
    opacity: 0.1;
}

.persona-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Cambiado de cover a contain para mostrar la imagen completa */
    background: white;
    /* Fondo blanco para las áreas vacías */
    transition: var(--transition-smooth);
}

.persona-card:hover .persona-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.persona-info {
    padding: 2.5rem;
}

.persona-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-pink);
}

.persona-info p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

.subtitle-intro {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 3rem;
}

/* ===========================
   SECCIÓN INICIO
   =========================== */
.section-inicio {
    background: white;
}

.inicio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.inicio-image {
    grid-column: 1 / -1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    height: 400px;
}

.inicio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.inicio-image:hover img {
    transform: scale(1.05);
}

.inicio-text {
    background: var(--gradient-soft);
    padding: 3rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inicio-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.inicio-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
}

.inicio-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.inicio-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* ===========================
   SECCIÓN HISTORIA
   =========================== */
.section-historia {
    background: linear-gradient(180deg, var(--light-pink) 0%, var(--cream) 100%);
}

/* Año Section */
.year-section {
    margin-bottom: 8rem;
    position: relative;
}

.year-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.year-header::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 100%;
    width: 2px;
    height: calc(100% + 4rem);
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    opacity: 0.3;
}

.year-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    background: var(--gradient-love);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    position: relative;
    flex-shrink: 0;
}

.year-number::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--gradient-love);
    border-radius: 2px;
}

.year-description {
    flex: 1;
}

.year-description p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-light);
    line-height: 1.8;
}

.year-description strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Tarjetas de meses */
.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    padding-left: 2rem;
}

.month-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-bounce);
    position: relative;
}

.month-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-love);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.month-card:hover::before {
    transform: scaleX(1);
}

.month-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 107, 157, 0.3);
}

.month-image {
    position: relative;
    height: 400px;
    /* Aumentado de 320px a 400px para mejor visualización */
    overflow: hidden;
    background: var(--gradient-romantic);
}

.month-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.month-card:hover .month-image img {
    transform: scale(1.15) rotate(2deg);
}

.month-content {
    padding: 2rem;
    position: relative;
}

.month-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-pink);
    position: relative;
    display: inline-block;
}

.month-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-love);
    transition: width 0.4s ease;
}

.month-card:hover .month-content h3::after {
    width: 100%;
}

.month-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Tarjeta especial para el último mes */
.month-card.highlight {
    background: var(--gradient-sunset);
    border: 3px solid var(--gold);
    animation: glowPulse 3s infinite;
}

.month-card.highlight .month-content {
    color: white;
}

.month-card.highlight .month-content h3 {
    color: white;
}

.month-card.highlight .month-content p {
    color: rgba(255, 255, 255, 0.95);
}

.heart-icon {
    font-size: 3rem;
    text-align: center;
    margin-top: 1rem;
    animation: heartBeat 1.5s infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    }

    50% {
        box-shadow: 0 0 50px rgba(212, 175, 55, 0.8);
    }
}

/* ===========================
   FOOTER
   =========================== */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-date {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    opacity: 0.8;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }

    .personas-grid {
        grid-template-columns: 1fr;
    }

    .inicio-content {
        grid-template-columns: 1fr;
    }

    .year-header {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .year-header::before {
        display: none;
    }

    .months-grid {
        padding-left: 0;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

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

    .months-grid {
        grid-template-columns: 1fr;
    }

    .month-image {
        height: 350px;
        /* Aumentado de 280px a 350px para móviles */
    }

    .persona-image {
        height: 450px;
        /* Ajustado para mostrar imágenes completas en móviles */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .year-number {
        font-size: 4rem;
    }

    .month-content {
        padding: 1.5rem;
    }

    .inicio-text {
        padding: 2rem;
    }
}

/* ===========================
   ANIMACIONES ADICIONALES
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Efectos de hover especiales */
.month-card::after {
    content: '❤';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0;
    transform: scale(0) rotate(-45deg);
    transition: var(--transition-bounce);
}

.month-card:hover::after {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}