/* ============================================
   POSTAL VIVA - ESTILOS DE AUTENTICACIÓN
   ============================================ */

.auth-body {
    background: linear-gradient(135deg, var(--crema) 0%, #E8D5B7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-logo {
    display: block;
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo img {
    height: 60px;
    width: auto;
}

.auth-card {
    background: white;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
}

.auth-card h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    letter-spacing: 2px;
    color: var(--rojo-postal);
    text-align: center;
    margin-bottom: 8px;
    line-height: 1;
}

.auth-sub {
    text-align: center;
    color: var(--gris-texto);
    font-size: 15px;
    margin-bottom: 32px;
}

.campo {
    margin-bottom: 20px;
}

.campo label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--negro-suave);
    margin-bottom: 8px;
}

.campo .opcional {
    font-weight: 400;
    color: var(--gris-texto);
    font-size: 12px;
}

.campo input[type="text"],
.campo input[type="email"],
.campo input[type="password"],
.campo input[type="tel"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E8D5B7;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--negro-suave);
    background: #FDF9F3;
    transition: all 0.3s;
}

.campo input:focus {
    outline: none;
    border-color: var(--rojo-postal);
    background: white;
    box-shadow: 0 0 0 4px rgba(199, 62, 58, 0.1);
}

.campo-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.campo-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--rojo-postal);
    cursor: pointer;
    flex-shrink: 0;
}

.campo-checkbox label {
    font-size: 13px;
    color: var(--gris-texto);
    line-height: 1.5;
    cursor: pointer;
}

.campo-checkbox a {
    color: var(--rojo-postal);
    text-decoration: none;
    font-weight: 600;
}

.campo-checkbox a:hover {
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    padding: 16px 24px;
    background: var(--rojo-postal);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(199, 62, 58, 0.3);
}

.btn-auth:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(199, 62, 58, 0.4);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-mensaje {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.auth-mensaje.error {
    display: block;
    background: #FDECEA;
    color: #C73E3A;
    border: 1px solid #F5C6C2;
}

.auth-mensaje.exito {
    display: block;
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--gris-texto);
    margin-top: 20px;
}

.auth-footer a {
    color: var(--rojo-postal);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.link-pequeno {
    font-size: 13px;
    opacity: 0.8;
}

.auth-volver {
    text-align: center;
    margin-top: 24px;
}

.auth-volver a {
    color: var(--gris-texto);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.auth-volver a:hover {
    color: var(--rojo-postal);
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-body {
    background: var(--crema);
    min-height: 100vh;
}

.dash-nav {
    background: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.dash-logo img {
    height: 45px;
    width: auto;
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dash-user span {
    color: var(--gris-texto);
    font-size: 15px;
}

.btn-salir {
    background: transparent;
    color: var(--rojo-postal);
    border: 2px solid var(--rojo-postal);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-salir:hover {
    background: var(--rojo-postal);
    color: white;
}

.dashboard-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

.bienvenida {
    margin-bottom: 48px;
}

.bienvenida h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: 2px;
    color: var(--rojo-postal);
    margin-bottom: 8px;
}

.bienvenida p {
    color: var(--gris-texto);
    font-size: 17px;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.dash-card {
    background: white;
    padding: 32px 28px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.3s;
}

.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.dash-card.destacado {
    background: linear-gradient(135deg, var(--rojo-postal), var(--morado));
    color: white;
    border: none;
}

.dash-card.destacado h3 {
    color: white;
}

.dash-icono {
    font-size: 48px;
    margin-bottom: 16px;
}

.dash-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--rojo-postal);
    margin-bottom: 12px;
}

.dash-card p {
    color: var(--gris-texto);
    font-size: 15px;
    margin-bottom: 20px;
}

.dash-card.destacado p {
    color: white;
    opacity: 0.95;
}

.creditos-numero {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 72px !important;
    color: white !important;
    line-height: 1;
    margin: 16px 0 !important;
}

.creditos-texto {
    font-size: 14px !important;
}

.dash-card .btn-principal,
.dash-card .btn-secundario {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 32px 24px;
    }
    
    .auth-card h1 {
        font-size: 36px;
    }
    
    .dash-nav {
        padding: 16px 20px;
    }
    
    .dash-user span {
        display: none;
    }
    
    .dashboard-container {
        padding: 40px 20px;
    }
}