:root {
    --primary: #ff4d6d;
    --secondary: #7209b7;
    --accent: #4cc9f0;
    --dark: #1a1a1a;
    --light: #fff5f7;
    --white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============ LOADER ============ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader-content {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--primary);
    font-weight: 700;
}

/* ============ FLORES FLOTANTES DE FONDO ============ */
.flowers-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.flower {
    position: absolute;
    opacity: 0.18;
    animation: floatFlower linear infinite;
}

.flower svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Posición y tamaño de cada flor */
.flower-1 { width: 120px; height: 120px; top: 5%; left: 3%; animation-duration: 18s; animation-delay: 0s; }
.flower-2 { width: 90px;  height: 90px;  top: 15%; right: 5%; animation-duration: 22s; animation-delay: -5s; }
.flower-3 { width: 100px; height: 100px; top: 40%; left: 1%; animation-duration: 25s; animation-delay: -10s; }
.flower-4 { width: 80px;  height: 80px;  top: 60%; right: 3%; animation-duration: 20s; animation-delay: -3s; }
.flower-5 { width: 110px; height: 110px; top: 75%; left: 8%; animation-duration: 28s; animation-delay: -8s; }
.flower-6 { width: 95px;  height: 95px;  top: 85%; right: 8%; animation-duration: 16s; animation-delay: -2s; }
.flower-7 { width: 130px; height: 130px; top: 30%; right: 12%; animation-duration: 30s; animation-delay: -15s; }
.flower-8 { width: 85px;  height: 85px;  top: 55%; left: 20%; animation-duration: 24s; animation-delay: -7s; }

@keyframes floatFlower {
    0%   { transform: translateY(0px) rotate(0deg); }
    25%  { transform: translateY(-20px) rotate(90deg); }
    50%  { transform: translateY(-10px) rotate(180deg); }
    75%  { transform: translateY(-25px) rotate(270deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at center, #fff5f7 0%, #ffe4ec 60%, #ffd6e8 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
}

/* Flores emoji alrededor del título */
.hero-flowers {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.hero-flower {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    display: inline-block;
    animation: floatEmoji 3s ease-in-out infinite;
}

.hf-1 { animation-delay: 0s; }
.hf-2 { animation-delay: 0.3s; }
.hf-3 { animation-delay: 0.6s; }
.hf-4 { animation-delay: 0.9s; }
.hf-5 { animation-delay: 1.2s; }

@keyframes floatEmoji {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.pre-title {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    color: var(--secondary);
    opacity: 0;
    transform: translateY(20px);
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 9vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.main-title span {
    color: var(--primary);
    font-style: italic;
}

.hero-date {
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    color: #888;
}

.primary-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 8px 30px rgba(255, 77, 109, 0.4);
}

.primary-btn:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(114, 9, 183, 0.4);
}

.primary-btn:active {
    transform: scale(0.96);
}

/* Floating Shapes */
.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: 1;
}

.shape-1 {
    width: 350px;
    height: 350px;
    background: var(--primary);
    top: -120px;
    left: -120px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -80px;
    right: -80px;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    top: 45%;
    left: 65%;
}

/* ============ MESSAGE SECTION ============ */
.message-section {
    padding: 5rem 2rem 6rem;
    display: flex;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, #ffe4ec 0%, #fdf2f8 30%, #fdf4ff 100%);
    overflow: hidden;
}

/* Flores decorativas en bordes de la sección */
.section-flowers {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.sf {
    position: absolute;
    font-size: clamp(2rem, 5vw, 3.5rem);
    opacity: 0.25;
    animation: floatEmoji 4s ease-in-out infinite;
}

.sf-1 { top: 5%;  left: 2%;  animation-delay: 0s; }
.sf-2 { top: 10%; right: 3%; animation-delay: 1s; }
.sf-3 { bottom: 8%; left: 4%; animation-delay: 1.5s; }
.sf-4 { bottom: 5%; right: 2%; animation-delay: 0.5s; }

.card {
    max-width: 620px;
    width: 100%;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow:
        0 20px 60px rgba(255, 77, 109, 0.15),
        0 4px 20px rgba(114, 9, 183, 0.08);
    border-radius: 24px;
    border: 1px solid rgba(255, 182, 193, 0.4);
    position: relative;
    z-index: 2;
    /* Visible por defecto — no depende del botón */
    opacity: 1;
    transform: translateY(0);
    animation: cardEntrance 1s ease 0.5s both;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2rem);
    margin-bottom: 1rem;
    color: var(--dark);
}

.message-text {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.9;
    color: #555;
    margin-bottom: 1.5rem;
}

.flower-row {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 4px;
    animation: floatEmoji 3s ease-in-out infinite;
}

.signature {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--primary);
    text-align: right;
}

/* ============ FOOTER ============ */
footer {
    padding: 2.5rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, #fdf4ff 0%, #fdf2f8 100%);
}

.footer-flowers {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 4px;
}

footer p {
    font-size: 0.9rem;
    color: #999;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }

    .hero-flowers {
        gap: 0.3rem;
    }

    .flower-row {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    /* Reducir flores de fondo en móvil para performance */
    .flower-3,
    .flower-5,
    .flower-7,
    .flower-8 {
        display: none;
    }
}

@media (max-width: 480px) {
    .message-section {
        padding: 3rem 1rem 4rem;
    }

    .card {
        padding: 1.8rem 1.2rem;
    }
}
