/*
 * Hero de la home master.
 * Bloque centrado con marketing, buscador dual y estadísticas globales.
 * Tonos corporativos: rojo principal, gris secundario.
 */

.hero-master {
    position: relative;
    color: #fff;
    padding: 130px 0 72px;
    overflow: hidden;
    font-family: 'Roboto', system-ui, sans-serif;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Capa oscura sobre la foto, al estilo del slider legacy. */
.hero-master__bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 0;
}

.hero-master__inner {
    position: relative;
    z-index: 1;
    max-width: 980px;
    text-align: center;
}

.hero-master__eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 4px 14px;
    background: #c8102e;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-master__title {
    margin: 0 0 14px;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
}

.hero-master__subtitle {
    margin: 0 auto 36px;
    max-width: 720px;
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

/* Tabs */
.hero-master__tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 18px;
}

.hero-master__tab {
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.78);
    padding: 8px 20px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.hero-master__tab.is-active {
    background: #fff;
    color: #c8102e;
}

/* Form */
.hero-master__form {
    display: grid;
    gap: 8px;
    align-items: end;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.hero-master__form.is-hidden {
    display: none;
}

/* Tab "Movimiento de carga": una sola fila con 5 campos + botón. */
.hero-master__form[data-tab-panel="carga"] {
    grid-template-columns: 0.7fr 1fr 0.7fr 1fr 1fr auto;
}

.hero-master__form[data-tab-panel="servicios"] {
    grid-template-columns: 1fr auto;
}

.hero-master__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-master__field--full { grid-column: 1 / -1; }

.hero-master__field span {
    color: #5b6770;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-left: 12px;
}

.hero-master__field input,
.hero-master__field select {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    font-size: 15px;
    color: #1a1a1a;
    background: #fafafa;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

.hero-master__field input:focus,
.hero-master__field select:focus {
    border-color: #c8102e;
    background: #fff;
}

.hero-master__cta {
    background: #c8102e;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 14px 28px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
}

.hero-master__cta:hover { background: #a30c25; }
.hero-master__cta:active { transform: translateY(1px); }


/* Sugeridos */
.hero-master__suggested {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
    margin: 18px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-master__suggested span { color: rgba(255, 255, 255, 0.7); }

.hero-master__suggested a {
    color: #fff;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 999px;
    background: #c8102e;
    transition: background 0.15s;
}

.hero-master__suggested a:hover { background: #a30c25; }

/* Estadísticas */
.hero-master__stats {
    list-style: none;
    padding: 0;
    margin: 44px auto 0;
    max-width: 640px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.hero-master__stats li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #c8102e 0%, #8a0a1f 100%);
    box-shadow: 0 6px 18px rgba(138, 10, 31, 0.22);
}

.hero-master__stats strong {
    font-size: 28px;
    font-weight: 700;
}

.hero-master__stats span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .hero-master { padding: 110px 0 44px; }
    .hero-master__suggested { display: none; }
    /* En responsivo los selects auxiliares "Ir a sección" y "Cambiar de país"
       del buscador del home no se muestran (son redundantes con el menú). */
    .hero-master .buscador__nav-pickers { display: none; }
    .hero-master__title { font-size: 28px; }
    .hero-master__subtitle { font-size: 15px; }
    .hero-master__form,
    .hero-master__form[data-tab-panel="carga"],
    .hero-master__form[data-tab-panel="servicios"] {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }
    .hero-master__form[data-tab-panel="carga"] > * { grid-area: auto; }
    .hero-master__cta { padding: 14px 18px; }
    .hero-master__stats { grid-template-columns: 1fr; }
    .hero-master__stats li { padding: 16px 18px; }
    .hero-master__stats strong { font-size: 30px; }
    .hero-master__stats span { font-size: 16px; }
}
