/* ------------ GENERAL -------------- */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f3f6fa;
    color: #333;
}

h1, h2 {
    font-weight: 700;
}

button {
    background: #0078d4;
    color: white;
    border: none;
    padding: 12px 22px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}
button:hover {
    background: #005a9e;
}

/* ------------ HEADER -------------- */

.header {
    background: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid 2px #ddd;
}

.logos-left img,
.logo-right img {
    height: 55px;
    margin-right: 10px;
}

/* ------------ INDEX PAGE -------------- */

.main-box {
    max-width: 450px;
    background: white;
    margin: 60px auto;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}


.main-box input {
    width: 80%;
    max-width: 320px;
    padding: 12px;
    font-size: 17px;
    margin: 15px auto 18px auto;  /* CENTRA + AGREGA SEPARACIÓN */
    border: 1px solid #ccc;
    border-radius: 6px;
    display: block; /* NECESARIO PARA CENTRAR */
}


.mensaje-error {
    color: red;
    font-weight: bold;
    margin-top: 12px;
}

/* ------------ RESULTS PAGE -------------- */

.main-results {
    max-width: 900px;
    margin: 35px auto;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Tablas */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th {
    background: #D6D6D4;
    color: black;
    padding: 10px;
    text-align: left;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* ------------ FOOTER -------------- */

.footer {
    margin-top: 50px;
    text-align: center;
    padding: 15px;
    background: #eaeaea;
    color: #444;
}


/* Mantener footer abajo */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* empuja el footer hacia abajo */
}



/* ==== RESPONSIVE HEADER PARA CELULARES (APLICA A AMBAS PÁGINAS) ==== */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .logos-left, 
    .logo-right {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .logos-left img,
    .logo-right img {
        margin: 0 8px;
        max-width: 90px; /* evita desbordes */
        height: auto;
    }
}

/* ===== BOTÓN CERRAR SESIÓN ===== */
.barra-superior {
  display: flex;
  justify-content: flex-end;   /* ✅ derecha */
  align-items: flex-start;     /* ✅ arriba */
  margin-bottom: 15px;
}

.btn-cerrar {
  background-color: #0078d4;
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-cerrar:hover {
  background-color: #005a9e;
}