/* ================================
   RESET GENERAL
================================ */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    background: #ffffff; /* FONDO BLANCO */
    color: #1f2937;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================================
   EFECTOS
================================ */
.fade-page {
    animation: fadeIn 1s ease-in;
}

.fade-box {
    animation: fadeInUp 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================
   HEADER / BANNER
================================ */
.banner {
    height: 300px;
    background: url('../img/banner.png') center center / cover no-repeat;
    position: relative;
}

.overlay {
    background: rgba(0, 0, 0, 0.40);
    height: 100%;
    text-align: center;
    padding-top: 40px;
}

.logo {
    height: 60px;
}

.banner h1 {
    margin: 20px 0 5px;
    font-size: 32px;
    color: #ffffff;
}

.banner p {
    font-size: 14px;
    color: #e5e7eb;
}

/* ================================
   CONTENEDOR PRINCIPAL
================================ */
.contenedor {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
}

/* ================================
   BUSCADOR
================================ */
.buscador {
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-icon {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-right: 10px;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.input-icon input {
    width: 100%;
    padding: 15px 15px 15px 42px;
    border-radius: 30px;
    border: 2px solid #d1d5db;
    font-size: 16px;
    outline: none;
    background: #ffffff;
}

.input-icon input:focus {
    border-color: #1f6feb;
}

.input-icon input.error {
    border-color: #ef4444;
}

button {
    border-radius: 30px;
    padding: 15px 25px;
    border: none;
    background: #1f6feb;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background: #1a5fd0;
}

.error-text {
    display: block;
    text-align: center;
    color: #ef4444;
    margin-top: 10px;
}

/* ================================
   RESULTADOS
================================ */
.resultado-box {
    background: #f3f4f6; /* GRIS CLARO */
    border-radius: 15px;
    padding: 22px;
    margin-top: 25px;
    border: 1px solid #e5e7eb;
    animation: fadeInUp 0.6s ease-in;
}

/* FILAS */
.fila {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d1d5db;
}

.fila:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* ITEMS */
.fila .item {
    width: 48%;
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.item i {
    margin-right: 8px;
    color: #1f6feb;
}

/* ================================
   FOOTER
================================ */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #374151;
}

/* ================================
   MODAL
================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: #1f2937;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 600px) {

    .buscador {
        flex-direction: column;
    }

    .input-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .fila {
        flex-direction: column;
    }

    .fila .item {
        width: 100%;
        margin-bottom: 8px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}
