/* Paleta Liver: Azul Principal #0076D6 | Azul Celeste #00B0F0 | Gris Fondo #F2F5F8 */

body {
    background-color: #F2F5F8;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    color: #2C3E50;
    margin: 0;
    display: block;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 10px 0;
}

.container {
    background: #ffffff;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 600px;
    width: 90%;
    border-top: 8px solid #00B0F0; /* Barra superior celeste */
    margin: 0 auto;
}

.header-logo-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    margin-bottom: 30px;
}

/* Estilos específicos para cada tipo de logo */
.logo-cuadrado {
    height: 80px;
    width: auto;
    margin: 0 auto 40px;
    display: block;
    image-rendering: -webkit-optimize-contrast; /* Para Chrome/Safari */
    image-rendering: crisp-edges;               /* Para Firefox */
}

.logo-rectangular {
    width: 180px; /* Ancho ideal para el formato largo */
    height: auto;
    margin: 0 auto 30px;
    display: block;
    image-rendering: -webkit-optimize-contrast; /* Máxima nitidez */
    image-rendering: crisp-edges;
    backface-visibility: hidden; /* Evita micro-parpadeos al escalar */
}

/* Mantenemos la clase base por si necesitas estilos compartidos */
.liver-logo {
    transition: transform 0.3s ease;
}


h1 {
    color: #2C3E50;
    font-size: 1.6rem;
    margin: 0;
    font-weight: 700;
}

.subtitle {
    color: #7F8C8D;
    margin-top: 5px;
    font-size: 0.9rem;
    font-weight: 400;
}

.drop-zone {
    width: 100%;
    height: 200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #00B0F0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FBFCFD;
    box-sizing: border-box;
    margin-bottom: 25px;
}

.drop-zone--over {
    background-color: #F0F8FF !important;
    border-color: #0076D6 !important;
    border-style: solid !important;
}

.drop-zone:hover {
    background: #F0F8FF;
    border-color: #0076D6;
}

.drop-zone__icon {
    font-size: 50px;
    color: #2C3E50;
    margin-bottom: 10px;
}

.drop-zone__prompt {
    font-weight: 500;
    color: #2C3E50;
    font-size: 0.95rem;
}

.drop-zone__input {
    display: none; /* Oculta el input de elegir archivo feo del navegador */
}

.btn-enviar {
    width: 100%;
    background: linear-gradient(to right, #00B0F0, #0076D6);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-enviar:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 176, 240, 0.3);
}

/* Estilos para el Spinner de Carga */
#loading-screen {
    padding: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #00B0F0; /* Color celeste Liver */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Clase para ocultar elementos */
.hidden {
    display: none !important;
}

/* Estilo para el recuadro de la placa (Azul Liver) */
.placa-box {
    background-color: #00B0F0; /* Azul Principal Liver */
    color: white;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #00B0F0; /* Sutil borde celeste */
    text-align: center;
}

.placa-box strong {
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-left: 5px;
}

/* Opcional: Estilo para el enlace de volver */
a[href='index.html'] {
    display: inline-block;
    margin-top: 25px;
    color: #0076D6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

a[href='index.html']:hover {
    color: #00B0F0;
}


/* Contenedor donde aparecerán los cuadros apilados */
#contenedor-alertas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
    text-align: left;
}

/* El cuadro de alerta naranja */
.alerta-tecnica {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFF9F2; /* Naranja muy suave */
    border-left: 6px solid #FF9800; /* Muro de acero naranja */
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    animation: slideIn 0.3s ease-out;
}

.alerta-mensaje {
    color: #855600;
    font-size: 14px;
    font-weight: 500;
    padding-right: 10px;
    text-align: left;
}

.alerta-etiqueta {
    background-color: #FF9800;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 11px;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Estilo final para el botón de reinicio */
.btn-reinicio {
    display: block;             /* Permite usar margin auto para centrar */
    margin: 30px auto 0;        /* 30px arriba, auto a los lados (centra), 0 abajo */
    background: #00B0F0;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-reinicio:hover {
    transform: scale(1.05);     /* Efecto visual de pulsación */
    box-shadow: 0 6px 20px rgba(0, 118, 214, 0.3);
    background-color: #0076D6;
}

#loading-text {
    animation: pulseText 2s infinite;
    margin-top: 15px;
}

@keyframes pulseText {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}