/* css/estilos.css - Estilo Phone Mas (verde característico) */

:root {
    --primary:        #00b140;      /* Verde principal del logo */
    --primary-dark:   #009933;      /* Verde más oscuro para hover */
    --success:        #00b140;
    --success-bg:     #e6fff0;      /* Fondo muy claro verde */
    --success-border: #66ff99;
    --error:          #ef4444;
    --error-bg:       #fef2f2;
    --error-border:   #fca5a5;
    --text-dark:      #1a1a1a;      /* Casi negro para buena lectura */
    --text-light:     #336f18;      /* Gris medio */
    --bg-start:       #00b140;      /* Inicio del gradiente */
    --bg-end:         #336f18;      /* Fin del gradiente (verde oscuro) */
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
    min-height: 100vh;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.container {
    width: 100%;
    max-width: 440px;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    padding: 2.5rem 2rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.subtitle {
    color: var(--text-light);
}

.otp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input {
    width: 100%;
    padding: 1.2rem;
    font-size: 2.2rem;
    letter-spacing: 0.9rem;
    text-align: center;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    font-family: monospace;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 177, 64, 0.18);
}

.btn {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--text-light);
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: #3a3a3a;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.alert-success {
    background: var(--success-bg);
    color: #065f46;
    border: 1px solid var(--success-border);
}

.alert-error {
    background: var(--error-bg);
    color: #991b1b;
    border: 1px solid var(--error-border);
}

.timer {
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1.1rem;
    color: var(--text-light);
}

.timer strong {
    color: var(--text-dark);
    font-size: 1.4rem;
}

.success-screen {
    text-align: center;
    padding: 2rem 0;
}

.checkmark {
    font-size: 6rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.success-screen h2 {
    color: var(--success);
    margin-bottom: 1.5rem;
}

.debug-otp {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    text-align: center;
    font-family: monospace;
    font-size: 1.6rem;
    letter-spacing: 0.4rem;
    border: 1px dashed #cbd5e1;
    color: var(--primary);
}

@media (max-width: 480px) {
    .card {
        padding: 2rem 1.4rem;
    }
    input {
        font-size: 1.9rem;
        letter-spacing: 0.7rem;
    }
}

/* Logo Phone Mas */
.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    /* Opcional: sombra suave o ajuste fino */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Si quieres centrar mejor o ajustar en móviles */
@media (max-width: 480px) {
    .logo {
        width: 140px;  /* más pequeño en móvil si es necesario */
    }
}
