* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 50%, #ff6b6b 100%);
    position: relative;
}

/* ========== CONTENEDOR GLOBAL DE ANIMACIONES ========== */
/* Este contenedor cubre TODA la página y está siempre presente */
.playing-cards-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* ========== ANIMACIONES DE SÍMBOLOS FLOTANTES ========== */
@keyframes float-up {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: 0.6;
    }

    95% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes float-up-2 {
    0% {
        transform: translateY(110vh) rotate(0deg) translateX(0);
        opacity: 0;
    }

    5% {
        opacity: 0.5;
    }

    50% {
        transform: translateY(50vh) rotate(180deg) translateX(100px);
    }

    95% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-20vh) rotate(360deg) translateX(0);
        opacity: 0;
    }
}

@keyframes float-up-3 {
    0% {
        transform: translateY(110vh) rotate(0deg) translateX(0);
        opacity: 0;
    }

    5% {
        opacity: 0.7;
    }

    50% {
        transform: translateY(50vh) rotate(-180deg) translateX(-80px);
    }

    95% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-20vh) rotate(-360deg) translateX(0);
        opacity: 0;
    }
}

@keyframes float-diagonal {
    0% {
        transform: translate(0, 110vh) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: 0.6;
    }

    95% {
        opacity: 0.6;
    }

    100% {
        transform: translate(200px, -20vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes float-diagonal-reverse {
    0% {
        transform: translate(0, 110vh) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: 0.5;
    }

    95% {
        opacity: 0.5;
    }

    100% {
        transform: translate(-200px, -20vh) rotate(-720deg);
        opacity: 0;
    }
}

/* ========== ESTILOS DE LOS SÍMBOLOS ========== */
.card-symbol {
    position: absolute;
    font-size: 6rem;
    font-weight: bold;
    pointer-events: none;
}

/* Corazones - Rojo intenso */
.card-symbol.heart {
    color: rgba(220, 20, 60, 0.6);
}

/* Picas - Verde oscuro (complementario) */
.card-symbol.spade {
    color: rgba(34, 139, 34, 0.6);
}

/* Diamantes - Rojo coral */
.card-symbol.diamond {
    color: rgba(255, 107, 107, 0.5);
}

/* Tréboles - Verde esmeralda (complementario) */
.card-symbol.club {
    color: rgba(46, 204, 113, 0.6);
}

/* ========== VERIFICACIÓN ========== */
.verification-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 50%, #ff6b6b 100%);
    position: relative;
    overflow: hidden;
}

.verification-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    border: 3px solid #ffd700;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wonderland-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #8b0000;
    margin-bottom: 15px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}

.btn-wonderland {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.btn-wonderland:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.6);
    color: white;
}

/* ========== MODAL ========== */
.code-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.code-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.5s ease-out;
}

.code-input {
    width: 100%;
    padding: 15px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid #8b0000;
    border-radius: 10px;
    margin-top: 20px;
    text-transform: uppercase;
}

.error-message {
    color: #dc143c;
    margin-top: 10px;
    font-weight: bold;
}

/* ========== INVITACIÓN ========== */
.invitation-page {
    background: #f8f9fa;
    position: relative;
    overflow-x: hidden;
}

/* Header con efecto degradado */
.header-section {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 50%, #ff6b6b 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.header-section::before {
    content: '🎩 🐰 🌹 ☕ 🃏';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    font-size: 3rem;
    opacity: 0.2;
    letter-spacing: 30px;
    animation: sway 5s ease-in-out infinite;
}

@keyframes sway {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(20px) rotate(2deg);
    }

    75% {
        transform: translateX(-20px) rotate(-2deg);
    }
}

.main-title {
    font-family: 'Parisienne', cursive;
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 3;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ffd700;
    }

    to {
        text-shadow: 0 0 20px #fff, 0 0 30px #ffd700, 0 0 40px #ffd700;
    }
}

.age-number {
    font-size: 8rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4);
    margin: 20px 0;
    display: inline-block;
    border: 5px solid #ffd700;
    padding: 20px 50px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 3;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Tarjeta de Invitado */
.guest-card {
    background: linear-gradient(135deg, #dc143c 0%, #228b22 100%);
    border: 4px solid #ffd700;
    border-radius: 25px;
    padding: 30px;
    margin: -50px auto 40px;
    max-width: 500px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.guest-card-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 15px;
}

.guest-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.guest-info {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
}

.guest-info p {
    font-size: 1.3rem;
    color: #333;
    margin: 10px 0;
}

.guest-info strong {
    color: #8b0000;
    font-size: 1.5rem;
}

/* Tarjetas de información */
.info-section {
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.3);
}

.card-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #dc143c, #8b0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #8b0000;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-text {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

/* Countdown */
.countdown-section {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    padding: 50px 20px;
    margin: 40px 0;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '♠ ♥ ♦ ♣';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    opacity: 0.05;
    letter-spacing: 40px;
}

.countdown-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    min-width: 120px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 3px solid #ffd700;
    animation: bounce 2s ease-in-out infinite;
}

.countdown-box:nth-child(1) {
    animation-delay: 0s;
}

.countdown-box:nth-child(2) {
    animation-delay: 0.2s;
}

.countdown-box:nth-child(3) {
    animation-delay: 0.4s;
}

.countdown-box:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.countdown-number {
    font-size: 3.5rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #8b0000;
}

.countdown-label {
    font-size: 1.2rem;
    color: #555;
    margin-top: 10px;
    font-weight: 600;
}

/* Dress Code especial */
.dress-code {
    background: linear-gradient(135deg, #dc143c 0%, #228b22 100%);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    color: white;
    margin: 40px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 4px solid #ffd700;
}

.dress-code .card-icon {
    color: #ffd700;
    -webkit-text-fill-color: #ffd700;
}

.dress-code .card-title {
    color: white;
    font-size: 2.2rem;
}

.dress-code .card-text {
    color: white;
    font-size: 1.4rem;
}

/* Quote Section */
.quote-section {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    padding: 60px 20px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.quote-text {
    font-family: 'Parisienne', cursive;
    font-size: 2.5rem;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Sección de agradecimiento */
.thanks-card {
    background: linear-gradient(135deg, #dc143c 0%, #228b22 100%);
    color: white;
    border: 4px solid #ffd700;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.thanks-card .card-icon {
    color: #ffd700;
    -webkit-text-fill-color: #ffd700;
}

.thanks-card .card-title {
    color: white;
}

/* Footer */
.footer-section {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-section strong {
    color: #ffd700;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .age-number {
        font-size: 5rem;
        padding: 15px 30px;
    }

    .countdown-box {
        min-width: 80px;
        padding: 15px;
    }

    .countdown-number {
        font-size: 2.5rem;
    }

    .card-symbol {
        font-size: 4rem;
    }
}

/* ========== DEMO ========== */
.demo-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 50%, #ff6b6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.demo-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 600px;
    border: 3px solid #ffd700;
    position: relative;
    z-index: 10;
}

.demo-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #8b0000;
    margin-bottom: 15px;
    font-weight: 700;
}

.demo-subtitle {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}