/**
 * Marco de modaltrade.com.pe: cabecera (franja roja con el menú de arriba,
 * barra blanca con logo, menú principal y selector de idioma; las dos quedan
 * pegadas arriba al bajar), menú desplegable en celular, pie (franja roja de
 * tres columnas y franja negra) y WhatsApp. Más las listas con icono y los
 * iconos de redes, que copian a los de Elementor.
 * Medidas de producción (05/11/2026). Puntos de quiebre: tablet ≤ 1024,
 * celular ≤ 767.
 */

/* ── Cabecera ────────────────────────────────────────────────────────── */

/* Antes, «sticky» de Elementor en las dos franjas: pegadas arriba al bajar. */
.mt-cab { position: sticky; top: 0; z-index: 100; }
.admin-bar .mt-cab { top: 32px; }
@media (max-width: 782px) { .admin-bar .mt-cab { top: 46px; } }

.mt-cab__dentro { max-width: var(--mt-caja); margin: 0 auto; }

.mt-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }
.mt-menu > li { position: relative; display: flex; }
/* Separador entre ítems: raya de 15 px (Elementor, «divider»). */
.mt-menu > li:not(:last-child)::after { content: ""; align-self: center; height: 15px; border-left: 1px solid #000; }
.mt-menu__enlace {
    display: block;
    padding: 13px 10px;
    font-family: var(--mt-roboto);
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
    transition: color .4s;
}

/* Franja roja */
.mt-cab__arriba { background: var(--mt-rojo); }
.mt-cab__nav-arriba .mt-menu > li:not(:last-child)::after { border-left-color: #fff; }
.mt-cab__nav-arriba .mt-menu__enlace { font-size: 13px; color: #fff; }

/* Barra blanca */
.mt-cab__barra { position: relative; background: #fff; padding: 0 10px; }
.mt-cab__fila { display: flex; min-height: 100px; padding: 10px 0; }
.mt-cab__logo { width: 30%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
/* Como el widget de imagen de Elementor: la imagen en su renglón (de ahí su lugar exacto en tablet). */
.mt-cab__logo a { display: inline-block; }
.mt-cab__logo img { width: 100%; max-width: 223px; height: auto; vertical-align: middle; }
.mt-cab__der { width: 70%; display: flex; justify-content: flex-end; align-items: center; }
.mt-cab__nav .mt-menu__enlace { font-size: 14px; color: #949494; }
.mt-cab__nav .mt-menu__enlace:hover,
.mt-cab__nav .mt-menu__enlace:focus,
.mt-cab__nav .es-activo > .mt-menu__enlace { color: var(--mt-rojo); }

/* Botón del menú (solo celular): el de Elementor, gris claro con tres rayas. */
.mt-cab__boton {
    display: none;
    margin-left: auto;
    padding: .25em;
    border: 0;
    border-radius: 3px;
    background: rgba(0, 0, 0, .05);
    color: #33373d;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.mt-cab__boton svg { display: block; width: 1em; height: 1em; fill: currentColor; }
.mt-cab__boton .mt-cab__boton-cerrar,
.mt-cab__boton.es-abierto .mt-cab__boton-abrir { display: none; }
.mt-cab__boton.es-abierto .mt-cab__boton-cerrar { display: block; }

/* Desplegable (celular): debajo de la barra, a lo ancho. */
.mt-desplegable { position: absolute; top: calc(100% - 3px); left: 0; right: 0; z-index: 10; background: #fff; box-shadow: 0 4px 6px rgba(0, 0, 0, .08); }
.mt-desplegable[hidden] { display: none; }
.mt-desplegable .mt-menu { display: block; }
.mt-desplegable .mt-menu > li { display: block; }
.mt-desplegable .mt-menu > li::after { display: none; }
.mt-desplegable .mt-menu__enlace { padding: 15px 20px; font-size: 14px; color: #33373d; text-align: center; white-space: normal; }
.mt-desplegable .mt-menu__enlace:hover,
.mt-desplegable .mt-menu__enlace:focus { background: #FF0000; color: #fff; }

/* Selector de idioma (Polylang + Elementor) */
.mt-cab__idioma { flex: 0 1 auto; min-width: 0; padding-bottom: 5px; }
.mt-idioma { position: relative; font-family: var(--mt-roboto); font-weight: 600; }
.mt-idioma a { display: block; color: #7a7a7a; background: #fff; white-space: nowrap; }
.mt-idioma__actual { cursor: pointer; }
.mt-idioma__actual a { display: inline-block; }
.mt-idioma__bandera { display: inline-block; vertical-align: middle; line-height: 10px; }
.mt-idioma__bandera img { display: inline-block; width: 20px; height: 15px; vertical-align: middle; }
.mt-idioma__codigo { display: inline-block; padding-left: 10px; }
/* El triángulo era un icono de Font Awesome que el sitio no cargaba: queda solo su hueco. */
.mt-idioma__flecha { display: inline-block; height: 24px; padding-left: 10px; vertical-align: middle; }
.mt-idioma__lista {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: none;
}
.mt-idioma.abierto .mt-idioma__lista { display: block; }
.mt-idioma__lista a { line-height: normal; }
.mt-idioma a:hover, .mt-idioma a:focus-visible { background: #d9d9d9; }

@media (max-width: 1024px) {
    .mt-cab__logo { width: 20%; }
    .mt-cab__der { width: 80%; }
}
@media (max-width: 767px) {
    .mt-cab__fila { flex-wrap: wrap; }
    .mt-cab__logo { width: 65%; }
    .mt-cab__der { width: 35%; flex-wrap: wrap; }
    .mt-cab__nav { display: none; }
    .mt-cab__boton { display: flex; }
}

/* ── Listas con icono (las «icon list» de Elementor) ─────────────────── */

.mt-lista { margin: 0; padding: 0; list-style: none; font-family: var(--mt-roboto); }
.mt-lista__item,
.mt-lista__item > a { display: flex; align-items: center; }
.mt-lista__icono { display: flex; flex: none; }
.mt-lista__icono svg { display: block; width: var(--icono, 14px); height: var(--icono, 14px); margin-right: calc(var(--icono, 14px) * .25); fill: currentColor; }
.mt-lista__texto { align-self: center; padding-left: 5px; }

/* Puntos (pie, columnas 1 y 2) */
.mt-lista--puntos { --icono: 5px; font-size: 14px; line-height: 1.7; color: #fff; }
/* Datos (pie, columna 3): un poco más grandes y separados. */
.mt-lista--datos { font-size: 15px; line-height: 1.7; color: #fff; }
.mt-lista--datos .mt-lista__item:not(:last-child) { padding-bottom: 3.5px; }
.mt-lista--datos .mt-lista__item:not(:first-child) { margin-top: 3.5px; }
/* Vistos rojos (Nosotros) */
.mt-lista--vistos { font-size: 15px; line-height: 1.7; color: #54595F; }
.mt-lista--vistos .mt-lista__icono { color: #FF0000; }

/* ── Redes (los «social icons» de Elementor) ─────────────────────────── */

.mt-redes { display: flex; flex-wrap: wrap; gap: 5px; }
.mt-redes__icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10%;
    background: #69727d;
    color: #fff;
    transition: opacity .3s;
}
.mt-redes__icono svg { width: 15px; height: 15px; fill: currentColor; }
a.mt-redes__icono:hover { opacity: .9; }
.mt-redes__icono--facebook { background: #3b5998; }
.mt-redes__icono--twitter { background: #1da1f2; }
.mt-redes__icono--youtube { background: #cd201f; }

/* ── Pie ─────────────────────────────────────────────────────────────── */

.mt-pie__franja { padding: 80px 0; background: var(--mt-rojo); }
.mt-pie__dentro { display: flex; max-width: var(--mt-caja); margin: 0 auto; }
.mt-pie__col { width: 33.333%; padding: 10px; }
.mt-pie__col > * + * { margin-top: 10px; }
.mt-pie__titulo { font-family: var(--mt-roboto); font-size: 18px; font-weight: 700; line-height: 1; color: #fff; }
.mt-pie__copy { padding: 10px 0; background: #000; }
.mt-pie__copy p { max-width: var(--mt-caja); margin: 0 auto; font-family: var(--mt-roboto); font-size: 13px; line-height: 1.7; color: #fff; text-align: center; }

@media (max-width: 767px) {
    .mt-pie__dentro { flex-wrap: wrap; }
    .mt-pie__col { width: 100%; }
    .mt-pie__col + .mt-pie__col { margin-top: 20px; }
    .mt-pie__titulo { text-align: center; }
    .mt-pie__col--1 .mt-lista__item, .mt-pie__col--2 .mt-lista__item,
    .mt-pie__col--1 .mt-lista__item > a, .mt-pie__col--2 .mt-lista__item > a { justify-content: center; }
    .mt-pie .mt-redes { justify-content: center; }
}

/* ── WhatsApp ────────────────────────────────────────────────────────── */

.mt-wa {
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 99999999;
    display: block;
    width: 50px;
    height: 50px;
    line-height: 0;
}
.mt-wa__icono { display: block; width: 50px; height: 50px; }
