/* Estilos personalizados de Viba-Web */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-size: 1.4rem;
}

.card {
    border-radius: 12px;
}

.btn-primary {
    border-radius: 8px;
    font-weight: 500;
}

.form-control, .form-select {
    border-radius: 8px;
}

/* Para móviles */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Ocultar los spinners de los campos numéricos */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ============================================================
   CONTADOR FLOTANTE DE RESERVA (fixed, fuera del main)
   ============================================================ */
.contador-flotante {
    position: fixed;
    top: 75px;
    right: 15px;
    z-index: 1050;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 0.75rem;
    font-weight: 600;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contador-flotante .tiempo {
    background: #dc3545;
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 52px;
    text-align: center;
    letter-spacing: 0.5px;
}

.contador-flotante.urgente {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.contador-flotante.urgente .tiempo {
    animation: pulso 1s infinite;
}

@keyframes pulso {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* En móvil, se hace más pequeño */
@media (max-width: 576px) {
    .contador-flotante {
        top: 70px;
        right: 8px;
        padding: 5px 8px;
        font-size: 0.7rem;
        gap: 4px;
    }
    .contador-flotante .tiempo {
        font-size: 0.8rem;
        padding: 2px 6px;
        min-width: 45px;
    }
    .contador-flotante .etiqueta {
        display: none; /* En móvil, solo se ve el tiempo */
    }
}

/* ============================================================ */
/* HERO PERSONALIZADO - EXPRESOS MÉRIDA                          */
/* Colores oficiales: #0F75BB, #26AAE1, #5BC9EA, #EFC227        */
/* ============================================================ */

.hero-merida {
    background: linear-gradient(135deg, #0F75BB 0%, #26AAE1 50%, #5BC9EA 100%);
    padding: 30px 0 50px 0;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    margin: 15px 20px;
    border-radius: 20px;
}

/* Wave superior */
.hero-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 40%);
}

/* Wave inferior */
.hero-wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: #ffffff;
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

/* Logo en el hero - COMPACTO */
.hero-logo {
    max-width: 150px;
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.98);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
}

/* Título del hero */
.hero-titulo {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Subtítulo del hero */
.hero-subtitulo {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    opacity: 0.95;
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: 0;
}

/* Íconos de los 3 pilares */
.pilar-icono {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 15px rgba(15, 117, 187, 0.3);
}

/* Responsive: en celular */
@media (max-width: 767px) {
    .hero-merida {
        padding: 25px 0 40px 0;
        min-height: 180px;
        margin: 10px 10px;
    }
    
    .hero-logo {
        max-width: 120px;
        max-height: 80px;
        margin-bottom: 15px;
    }
    
    .hero-titulo {
        font-size: 1.1rem;
    }
    
    .hero-subtitulo {
        font-size: 0.85rem;
    }
    
    .pilar-icono {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
}

/* ⭐ BOTÓN PREMIUM MULTI-EMPRESA (Estilo Banesco) */
.btn-login-premium {
    background-color: #ffffff;
    color: #333333;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    max-width: 400px;
    margin: 0 auto;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-login-premium:hover, .btn-login-premium:active {
    background-color: #f8f9fa;
    color: #0F75BB;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

@media (max-width: 767px) {
    .btn-login-premium {
        width: 100%;
    }
}

