:root {
    --primary: #ff2a6d;
    --secondary: #ff758c;
    --accent: #ffd700;
    --bg-gradient: radial-gradient(circle at center, #1b022c 0%, #090114 100%);
    --card-glass: rgba(255, 255, 255, 0.07);
    --border-glass: rgba(255, 42, 109, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-gradient);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Lienzo de corazones flotantes dinámicos */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* GRAN CORAZÓN DE FONDO QUE GRITA AMOR */
.giant-heart-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: min(65vw, 65vh);
    color: rgba(255, 42, 109, 0.08);
    z-index: 0;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 0 50px rgba(255, 42, 109, 0.2));
    animation: pulseHeart 4s ease-in-out infinite;
}

@keyframes pulseHeart {
    0%, 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 30px rgba(255, 42, 109, 0.2)); }
    50% { transform: translate(-50%, -50%) scale(1.05); filter: drop-shadow(0 0 70px rgba(255, 42, 109, 0.4)); }
}

.main-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Encabezado */
header {
    text-align: center;
    animation: fadeInDown 1.2s ease;
}

.dedication-tag {
    font-family: 'Cinzel', serif;
    letter-spacing: 5px;
    font-size: 0.95rem;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 117, 140, 0.5);
}

h1.hero-title {
    font-family: 'Caveat', cursive;
    font-size: 5.2rem;
    color: #ffffff !important;
    text-shadow: 0 0 30px rgba(255, 42, 109, 0.9), 0 0 60px rgba(255, 42, 109, 0.4);
    line-height: 1.1;
    margin-bottom: 5px;
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--accent) !important;
    letter-spacing: 4px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* Insignia de Fecha de Novios */
.anniversary-badge {
    background: linear-gradient(135deg, rgba(255, 42, 109, 0.35), rgba(255, 117, 140, 0.15));
    border: 1px solid rgba(255, 42, 109, 0.8);
    padding: 14px 35px;
    border-radius: 50px;
    backdrop-filter: blur(12px);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 0 30px rgba(255, 42, 109, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    letter-spacing: 1px;
}

/* Contador de Amor en Vivo */
.counter-card {
    background: var(--card-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 40px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 42, 109, 0.1);
}

.counter-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.time-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 22px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 42, 109, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.time-digit {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff !important;
    text-shadow: 0 0 20px var(--primary);
}

.time-text {
    font-size: 0.8rem;
    color: #ffb3d1 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
    font-weight: 600;
}

/* Carta de Amor Profunda */
.love-letter {
    background: var(--card-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 50px;
    width: 100%;
    line-height: 2.1;
    font-size: 1.2rem;
    color: #fce4ec;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.love-letter::before {
    content: "❤️";
    font-size: 3rem;
    position: absolute;
    top: -20px;
    left: 45px;
    background: var(--bg-gradient);
    padding: 0 15px;
}

.love-letter p {
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
}

/* Tarjetas de Razones */
.features-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 35px 30px;
    transition: all 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 42, 109, 0.15);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(255, 42, 109, 0.35);
}

.feature-emoji {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* Botón Mágico Principal */
.love-btn {
    background: linear-gradient(45deg, #ff2a6d, #ff758c);
    color: white;
    border: none;
    padding: 20px 55px;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 35px rgba(255, 42, 109, 0.5);
    transition: all 0.3s ease;
    letter-spacing: 1.5px;
}

.love-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 50px rgba(255, 42, 109, 0.8);
}

/* Modal Sorpresa Romántico */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 1, 20, 0.94);
    backdrop-filter: blur(15px);
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-box {
    background: linear-gradient(135deg, #2b0642, #11021d);
    border: 2px solid var(--primary);
    border-radius: 35px;
    padding: 50px;
    max-width: 650px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 70px rgba(255, 42, 109, 0.7);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-heading {
    font-family: 'Caveat', cursive;
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 117, 140, 0.6);
}

.modal-body-text {
    font-size: 1.2rem;
    line-height: 2;
    color: #f3e5f5;
}

footer {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    z-index: 2;
    letter-spacing: 1px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    h1.hero-title { font-size: 3.8rem; }
    .counter-grid { grid-template-columns: repeat(2, 1fr); }
    .love-letter { padding: 35px; }
    .modal-box { padding: 30px; }
}