/* 
 * Tarjetas Fin de Año - Estilos Principales
 * Tema: Dark Year (Negro, Dorado, Azul Noche)
 */

:root {
    --bg-dark: #0f172a;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
    --gold: #ffd700;
    --gold-dim: #b8860b;
    --silver: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    color: var(--silver);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Utilidades --- */
.container {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--gold), #fbfb22);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

/* --- Tarjeta Visualizador --- */
.card-viewer {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,215,0,0.3);
    margin-top: 20px;
    margin-bottom: 100px; /* Espacio para publicidad/menu */
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
}

.card-body {
    padding: 25px;
    text-align: center;
}

.card-message {
    font-size: 1.2rem;
    font-style: italic;
    margin: 20px 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- Módulo de Publicidad (Glassmorphism) --- */
#ad-module {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%); /* Oculto inicialmente hacia abajo */
    width: 90%;
    max-width: 450px;
    background: rgba(30, 41, 59, 0.85); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.3); /* Borde dorado sutil */
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    z-index: 9999;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#ad-module.visible {
    transform: translateX(-50%) translateY(0);
}

.ad-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

.ad-title {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.ad-text {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #e2e8f0;
}

.ad-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.ad-close:hover {
    color: #fff;
}

/* Animaciones */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Efectos de Fondo (Partículas) --- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}
