/* =============================================
   Buscador Hero — hero-search.css
   Cargado en todas las páginas via enqueue.php
   ============================================= */

.hero-search-wrapper {
    display: flex;
    justify-content: center;
    padding: 12px 24px;
}

.hero-search-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 8px 8px 8px 20px;
    box-shadow: 0 8px 32px rgba(0, 80, 200, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 720px;
}

.hero-search-select {
    flex: 0 0 auto;
    padding: 10px 36px 10px 4px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #555555;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%230055CC' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 80px;
    max-width: 160px;
}

.hero-search-divider {
    width: 1px;
    height: 28px;
    margin: 0 16px;
    background: #e0e6ef;
    flex-shrink: 0;
}

/* CORRECCIÓN: el input tenía background: #90add5 !important (color azul visible).
   Se restaura a transparent para heredar el fondo blanco del form. */
.hero-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #1a1a2e;
    background: transparent;
    padding: 10px 0;
}

.hero-search-input::placeholder {
    color: #8a95a3;
    font-weight: 400;
}

.hero-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #193A67;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 12px;
}

.hero-search-btn:hover {
    background: #112C4F;
}

.hero-search-btn:active {
    transform: scale(0.98);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 600px) {
    .hero-search-form {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 12px;
    }

    .hero-search-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .hero-search-select,
    .hero-search-input {
        padding: 10px 4px;
        max-width: 100%;
    }

    .hero-search-btn {
        justify-content: center;
        margin-left: 0;
        padding: 14px;
    }
}
