/* Importación de fuente para un estilo más institucional */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap');

:root { 
    --azul-epre: #130c9c; 
    --verde-epre: #429e92;
    --bg-gris: #f4f7f6; 
}

body { 
    background-color: var(--bg-gris); 
    font-family: 'Montserrat', 'Segoe UI', Tahoma, sans-serif; 
    color: #333; 
    margin: 0;
}

/* --- HEADER ACTUALIZADO --- */
.main-header { 
    background: white; 
    padding: 10px 40px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 3px solid var(--verde-epre); /* Detalle visual acorde al sitio */
}

.header-logo { 
    height: 60px; 
    width: auto; 
}

/* Estilos para el Reloj */
.header-clock {
    text-align: right;
    font-family: 'Montserrat', sans-serif;
}

#time { 
    font-size: 1.4rem; 
    font-weight: 700; 
    color: var(--azul-epre); 
    display: block; 
    line-height: 1;
}

#date { 
    font-size: 0.85rem; 
    color: #666; 
    text-transform: capitalize; 
}

/* --- CONTENEDOR Y TÍTULO --- */
.content-wrapper { 
    max-width: 1100px; 
    margin: 30px auto; 
    padding: 20px; 
}

/* Título centrado y con letra profesional */
.title-box {
    border: 2px solid #429e92;
    padding: 30px;
    border-radius: 12px;
    background: white;
    display: flex; /* Activa flexbox */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    min-height: 120px;
    margin-bottom: 30px;
}

.title-box h1 {
    color: #130c9c !important; /* Azul solicitado */
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

/* --- SECCIÓN DE BÚSQUEDA --- */
.search-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.search-card h4 {
    font-weight: 700;
    color: #444;
    margin-bottom: 25px;
}

.btn-buscar {
    background-color: var(--verde-epre);
    border: none;
    color: white;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-buscar:hover { 
    background-color: #357f75; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(66, 158, 146, 0.3);
    color: white; 
}

/* --- RESULTADOS Y NOTAS --- */
 
#searchResult {
    display: none;
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
}

/* Estado Éxito */
.result-success {
    background-color: #e7f3f2;
    border-color: #429e92;
    color: #0c544b;
    border-left-color: #429e92;
}

/* Estado No Encontrado (Elegante) */
.result-not-found {
    background-color: #fff4e5;
    border: 1px solid #ffe2b3;
    color: #664d03;
    border-left: 5px solid #ffca2c;
    padding: 15px;
}

/* Animación de carga */
.spinner-border-sm {
    margin-right: 8px;
}

.img-simulador {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.img-simulador:hover {
    transform: scale(1.02);
}

.note-box {
    background: #ffffff;
    border-left: 5px solid var(--azul-epre);
    padding: 20px;
    font-size: 0.9rem;
    margin-top: 35px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}