/* CONTENEDOR GENERAL DEL HEADER */
.search-header {
    margin-bottom: 40px;
    width: 100%;
}

/* BARRA SUPERIOR (volver) */
.search-top-bar {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

/* BOTÓN VOLVER */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    color: #2c3e50;
    font-weight: 600;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
    font-size: 14px;
}

.back-btn:hover {
    background: #1e88e5;
    color: white;
    border-color: #1e88e5;
    transform: translateY(-2px);
}

/* TÍTULO */
.search-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1f2d3d;
    text-align: center;
}

/* BARRA DE BÚSQUEDA - VERSIÓN MÁS DELGADA */
.search-bar {
    background: linear-gradient(135deg, #ffffff, #f8f9fb);
    padding: 25px; /* Reducido de 35px */
    border-radius: 16px; /* Reducido de 20px */
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); /* Sombra más suave */
    margin-bottom: 40px;
    
    display: flex;
    gap: 15px; /* Reducido de 18px */
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1100px; /* Reducido de 1200px */
    margin-left: auto;
    margin-right: auto;
}

/* INPUTS Y SELECTS - MÁS DELGADOS */
.search-bar select,
.search-bar input[type="text"] {
    flex: 1 1 180px; /* Reducido el flex-basis */
    min-width: 160px; /* Reducido de 180px */
    padding: 12px 16px; /* Reducido de 16px 20px */
    border-radius: 12px; /* Reducido de 14px */
    border: 1px solid #e4e7ec;
    font-size: 14px; /* Reducido de 16px */
    background: white;
    transition: 0.25s ease;
    height: 48px; /* Reducido de 60px */
}

.search-bar select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 35px;
}

.search-bar input[type="text"]:focus,
.search-bar select:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30,136,229,0.1);
    outline: none;
}

/* BOTÓN BUSCAR - MÁS DELGADO */
.search-bar button {
    background: #1e88e5;
    color: white;
    padding: 12px 24px; /* Reducido de 16px 32px */
    border-radius: 12px; /* Reducido de 14px */
    border: none;
    font-size: 14px; /* Reducido de 16px */
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 4px 12px rgba(30,136,229,0.25); /* Sombra más suave */
    height: 48px; /* Misma altura que los inputs - reducido de 60px */
    min-width: 120px; /* Reducido de 140px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* Reducido de 8px */
}

.search-bar button:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(21,101,192,0.3);
}

.search-bar button i {
    font-size: 15px; /* Reducido de 18px */
}

/* MEDIA QUERIES PARA RESPONSIVE */
@media (max-width: 992px) {
    .search-bar {
        padding: 22px; /* Reducido de 30px */
        gap: 12px; /* Reducido de 15px */
    }
    
    .search-bar select,
    .search-bar input[type="text"],
    .search-bar button {
        height: 46px; /* Reducido de 55px */
        padding: 10px 14px; /* Reducido de 14px 18px */
    }
}

@media (max-width: 768px) {
    .search-bar {
        padding: 20px; /* Reducido de 25px */
        gap: 10px; /* Reducido de 12px */
        flex-direction: column;
        border-radius: 14px; /* Reducido para móvil */
    }

    .search-title {
        font-size: 26px; /* Reducido de 28px */
    }

    .search-bar select,
    .search-bar input[type="text"],
    .search-bar button {
        width: 100%;
        flex: none;
        height: 44px; /* Reducido de 50px */
        font-size: 14px;
    }
    
    .search-bar select {
        padding-right: 35px;
    }
    
    .search-bar button {
        min-width: auto;
        padding: 10px 20px; /* Reducido de 12px 24px */
    }
}

@media (max-width: 480px) {
    .search-bar {
        padding: 16px; /* Reducido de 20px */
        gap: 8px;
    }
    
    .search-title {
        font-size: 22px; /* Reducido de 24px */
        margin-bottom: 25px;
    }
    
    .back-btn {
        padding: 6px 12px; /* Reducido de 8px 14px */
        font-size: 13px;
    }
    
    .search-bar select,
    .search-bar input[type="text"],
    .search-bar button {
        height: 42px; /* Aún más pequeño para móviles pequeños */
        font-size: 13px;
    }
}

/* Para pantallas muy grandes - más controlado */
@media (min-width: 1400px) {
    .search-bar {
        max-width: 1200px; /* Reducido de 1300px */
        padding: 30px; /* Reducido de 40px */
    }
    
    .search-bar select,
    .search-bar input[type="text"],
    .search-bar button {
        height: 52px; /* Reducido de 65px - solo un poco más grande */
        font-size: 15px; /* Reducido de 17px */
        padding: 14px 18px; /* Reducido de 18px 22px */
    }
}