:root {
    --primary: #6366f1;
    --secondary: #a855f7;
    --background: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Fondo Dinámico Animado */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.25), transparent 50%),
                radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.25), transparent 50%);
    animation: backgroundShift 15s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Tarjeta Estilo Glassmorphism */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: floatIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(30px);
    opacity: 0;
}

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

/* Imagen de Perfil */
.profile-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.profile-image-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
                linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
    position: relative;
    z-index: 2;
}

/* Efecto de "Pulso" detrás de la foto para indicar que está "vivo" */
.pulse-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: 1;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Tipografía */
.title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 300;
}

/* Sección del Temporizador */
.timer-section {
    margin-bottom: 32px;
}

.timer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

#countdown {
    font-weight: 600;
    color: var(--primary);
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 100%;
    transform-origin: left;
    /* La animación dura los 50 segundos del temporizador */
    animation: progressShrink 50s linear forwards;
}

@keyframes progressShrink {
    0% { width: 100%; }
    100% { width: 0%; }
}

/* Botón de Acción */
.action-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.action-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.action-button:hover svg {
    transform: translateX(4px);
}
/* Firma en el Footer (Link integrado) */
.site-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.site-footer a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}
