/* ==========================================================================
   Estilos Principales para Acortador Monetizado (Moderno, Responsivo y Rápido)
   ========================================================================== */

:root {
    --bg-main: #090d16;
    --bg-card: #131b2e;
    --bg-card-border: #22304d;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #0284c7;
    --accent-blue-hover: #0369a1;
    --accent-glow: rgba(2, 132, 199, 0.35);
    --accent-green: #10b981;
    --accent-green-hover: #059669;
    --accent-green-glow: rgba(16, 185, 129, 0.4);
    --border-radius: 16px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 15px 40px;
}

.page-container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 14px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 22px;
}

.logo-text {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #38bdf8;
}

.step-indicator {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Contenedores de Anuncios */
.ad-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    border-radius: 12px;
    overflow: hidden;
}

/* Tarjeta Principal */
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.card-status-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.shield-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-status-header h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.card-status-header .subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 440px;
    line-height: 1.5;
}

/* Temporizador y Barra de Progreso */
.countdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.countdown-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, #1e2c4a 0%, #111a2e 100%);
    border: 3px solid #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.countdown-circle span#countdownNumber {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.countdown-circle .seconds-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #38bdf8;
    margin-top: 2px;
}

.progress-bar-container {
    width: 100%;
    max-width: 380px;
    height: 8px;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    border-radius: 10px;
    transition: width 1s linear;
}

/* Estado de información */
.info-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Botón de Acción */
.action-wrapper {
    width: 100%;
    max-width: 380px;
}

.btn-action {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-locked {
    background: #1e293b;
    color: #64748b;
    cursor: not-allowed;
    border: 1px solid #334155;
}

.btn-unlocked {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px var(--accent-green-glow);
    animation: pulse 2s infinite;
}

.btn-unlocked:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -5px var(--accent-green-glow);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

/* Footer */
.site-footer {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    padding-top: 10px;
}

/* Responsive */
@media (max-width: 480px) {
    .content-card {
        padding: 25px 16px;
    }
    .card-status-header h3 {
        font-size: 19px;
    }
    .countdown-circle {
        width: 80px;
        height: 80px;
    }
    .countdown-circle span#countdownNumber {
        font-size: 30px;
    }
}
