/* Reset total */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

/* 1. BASE: Fondo negro para que no parpadee en blanco */
html, body {
    width: 100%;
    height: 100%;
    background-color: #000; 
    overflow: hidden; 
}

/* 2. VIDEO: Capa base */
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    z-index: 0; /* Capa base */
    object-fit: cover;
    display: block !important;
    background: none !important; /* Evita que el 404 pinte un cuadro negro antes de tiempo */
}

/* 3. CONTENEDOR PRINCIPAL */
.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
    background: transparent;
}

/* 4. CAJA DE CRISTAL (Para Index y Resultados) */
.glass-box {
    background-color: rgba(0, 0, 0, 0.8) !important;
    padding: 25px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 5. INPUT Y BOTÓN */
input {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    margin-bottom: 12px;
    background-color: #fff;
    color: #333;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase !important; 
}

button {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background-color: #d90429;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}

button:hover {
    background-color: #ef233c;
}

/* 6. DISEÑO DE RESULTADOS (Arregla el recuadro feo) */
#resultadoContenedor {
    margin-top: 15px;
    width: 100%;
    text-align: left; /* Información alineada a la izquierda */
}

/* Cada fila de información (Nombre, Dominio, etc) */
.data-field {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    border-left: 4px solid #d90429; /* Línea roja decorativa */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-field span {
    font-size: 0.9rem;
    color: #ccc;
}

.data-field strong {
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
}

/* 7. ACCESO ADMIN */
.admin-access {
    position: fixed;
    bottom: 25px;
    width: 100%;
    text-align: center;
    z-index: 20;
}

.admin-access a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Mobile */
@media (max-width: 480px) {
    .container { justify-content: flex-start; padding-top: 50px; }
    .logo { width: 120px; margin-bottom: 20px; }
    .glass-box { padding: 20px; }
}

/* Estilo para los bloques de historial (servicios viejos) */
.modo-historial {
    background-color: #f8f9fa !important; /* Gris muy clarito */
    border-left: 5px solid #6c757d !important; /* Barra gris lateral */
    border-bottom: 1px solid #dee2e6;
    opacity: 0.85;
    margin-bottom: 15px;
    padding: 15px;
}

/* Estilo para resaltar un nuevo ingreso */
.nuevo-ingreso {
    background-color: #ffffff !important;
    border-left: 5px solid #28a745 !important; /* Barra verde para lo nuevo */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    padding: 20px;
}

/* Encabezados de cada bloque */
.header-servicio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #ccc;
    font-size: 0.9em;
    color: #444;
}

/* El área de texto de observaciones */
.srv-obs {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    background-color: #fff;
    resize: vertical;
    min-height: 50px;
    color: #333;
}

/* Etiqueta de Vencido/Vigente */
.tag-vencido { color: #d32f2f; font-weight: bold; }
.tag-vigente { color: #2e7d32; font-weight: bold; }