/**
 * Páginas internas de modaltrade.com.pe: la franja con foto de arriba,
 * Servicios, los formularios (Contacto y Cotización), Noticias y la página no
 * encontrada (la de twentytwentyone). Medidas de producción (05/11/2026).
 */

/* ── Franja con foto (antes, un carrusel de una sola diapositiva) ───── */

.mt-franja { position: relative; display: flex; align-items: center; justify-content: center; height: 200px; padding: 50px; background: #833ca3; overflow: hidden; }
.mt-franja__fondo { position: absolute; inset: 0; background-size: cover; background-position: 50%; }
.mt-franja::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .59); }
.mt-franja__dentro { position: relative; z-index: 1; max-width: 100%; text-align: center; }
.mt-franja__titulo { font-family: var(--mt-roboto); font-size: 35px; font-weight: 700; line-height: 1; color: #fff; }

/* La de Noticias: más alta, velo negro al 60 % y título de 40 px. */
.mt-franja--noticias { height: auto; min-height: 250px; padding: 0; background: none; }
.mt-franja--noticias::after { background: rgba(0, 0, 0, .6); }
.mt-franja--noticias .mt-franja__dentro { width: 100%; padding: 10px 0; }
.mt-franja--noticias .mt-franja__titulo { font-size: 40px; font-weight: 600; }

@media (max-width: 767px) {
    /* El carrusel de Elementor achicaba su título en celular. */
    .mt-franja:not(.mt-franja--noticias) .mt-franja__titulo { margin-bottom: 15px; font-size: 23px; }
}

/* ── Contenido de las internas ───────────────────────────────────────── */

.mt-interior { padding: 50px 20px 100px; background: #fff; }
.mt-interior__dentro { max-width: var(--mt-caja); margin: 0 auto; padding: 10px; }

.mt-servicios > * + * { margin-top: 20px; }
.mt-servicios__titulo { font-family: var(--mt-roboto); font-size: 25px; font-weight: 600; line-height: 1; color: var(--mt-rojo); }
.mt-servicios__texto { font-family: var(--mt-roboto); font-size: 15px; line-height: 1.7; color: var(--mt-gris); text-align: justify; }

/* ── Formularios (el de Elementor con las etiquetas arriba) ──────────── */

.mdt-form { font-family: var(--mt-roboto); }
.mdt-form__campos { display: flex; flex-wrap: wrap; margin: 0 -5px -10px; }
.mdt-form__campo { width: 100%; margin-bottom: 10px; padding: 0 5px; }
.mdt-form__campo--mitad { width: 50%; }
/* En Elementor el área de texto era «inline» y dejaba 1 px debajo. */
.mdt-form__campo--enviar { padding-top: 1px; }
.mdt-form__campo--tercio { width: 33.333%; }
.mdt-form__etiqueta { display: block; margin-bottom: 10px; font-size: 18px; line-height: 1.7; color: var(--mt-gris); }
.mdt-form input[type="text"],
.mdt-form input[type="tel"],
.mdt-form input[type="number"],
.mdt-form input[type="email"] {
    display: block;
    width: 100%;
    /* twentytwentyone: 2 px a cada lado. */
    max-width: calc(100% - 4px);
    margin: 0 2px;
    padding: 10px;
    border: 1px solid #69727d;
    border-radius: 0;
    background: #fff;
    font-size: 15px;
    line-height: 1.7;
    color: var(--mt-gris);
}
.mdt-form textarea {
    display: block;
    width: 100%;
    padding: 5px 14px;
    border: 1px solid #69727d;
    border-radius: 3px;
    background: #fff;
    font-size: 15px;
    line-height: 1.4;
    color: var(--mt-gris);
    resize: vertical;
}
.mdt-form__lista { position: relative; }
.mdt-form__lista::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 11px;
    height: 11px;
    background: currentColor;
    color: var(--mt-gris);
    transform: translateY(-50%);
    pointer-events: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 571.4 571.4'%3E%3Cpath d='M571 393Q571 407 561 418L311 668Q300 679 286 679T261 668L11 418Q0 407 0 393T11 368 36 357H536Q550 357 561 368T571 393Z' transform='translate(0 -285.7)'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 571.4 571.4'%3E%3Cpath d='M571 393Q571 407 561 418L311 668Q300 679 286 679T261 668L11 418Q0 407 0 393T11 368 36 357H536Q550 357 561 368T571 393Z' transform='translate(0 -285.7)'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mdt-form select {
    display: block;
    width: 100%;
    padding: 5px 20px 5px 14px;
    border: 1px solid #69727d;
    border-radius: 3px;
    background: #fff;
    font-size: 20px;
    line-height: 1.7;
    color: var(--mt-gris);
    -webkit-appearance: none;
    appearance: none;
}
.mdt-form input:focus, .mdt-form textarea:focus, .mdt-form select:focus { outline: 1px solid var(--mt-gris); outline-offset: 0; }
.mdt-form__boton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 0 24px;
    border: 0;
    border-radius: 3px;
    background: #FF0000;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: filter .3s;
}
.mdt-form__boton:hover { filter: brightness(.95); }
.mdt-form__aviso { margin-top: 20px; font-size: 15px; line-height: 1.5; color: #5cb85c; }
.mdt-form__aviso[data-tipo="error"] { color: #d9534f; }
.mdt-cebo { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 767px) {
    .mdt-form__campo--mitad, .mdt-form__campo--tercio { width: 100%; }
}

/* ── Noticias ────────────────────────────────────────────────────────── */

.mt-noticias { padding: 50px 0; }
.mt-noticias__dentro { display: flex; max-width: var(--mt-caja); margin: 0 auto; }
.mt-noticias__lista { width: 66.666%; padding: 10px; }
/* En columna flex: así la caja de categorías vacía conserva su espacio (como el widget de Elementor). */
.mt-noticias__columna { display: flex; flex-direction: column; width: 33.333%; padding: 10px; }
.mt-noticias__columna > * + * { margin-top: 20px; }
.mt-noticias__vacio { font-size: 20px; line-height: 1.7; }
.mt-noticias__titulo { font-family: var(--mt-roboto); font-size: 25px; font-weight: 600; line-height: 1; color: var(--mt-rojo); }

.mt-buscar { display: flex; height: 50px; background: #f1f2f3; }
.mt-buscar input {
    flex: 1;
    min-width: 0;
    padding: 0 16.667px;
    border: 0;
    background: none;
    font-family: var(--mt-roboto);
    font-size: 15px;
    color: var(--mt-gris);
}
.mt-buscar input::placeholder { color: #7a7a7a; opacity: .6; }
.mt-buscar button { flex: none; display: flex; align-items: center; justify-content: center; width: 50px; padding: 0; border: 0; background: #FF6868; color: #fff; cursor: pointer; }
.mt-buscar button svg { width: 16px; height: 16px; fill: currentColor; }

.mt-categorias ul { margin: 0; padding: 0; list-style: none; font-family: var(--mt-roboto); font-size: 18px; }
.mt-facebook { height: 500px; overflow: hidden; }
.mt-facebook iframe { display: block; width: 100%; max-width: 360px; height: 500px; border: 0; }

.mt-entrada + .mt-entrada { margin-top: 40px; }
.mt-entrada__foto { display: block; margin-bottom: 15px; }
.mt-entrada__titulo { font-family: var(--mt-roboto); font-size: 25px; font-weight: 600; line-height: 1.2; color: var(--mt-rojo); }
.mt-entrada__fecha { margin-top: 8px; font-family: var(--mt-roboto); font-size: 13px; color: var(--mt-gris); }
.mt-entrada__resumen { margin-top: 10px; font-family: var(--mt-roboto); font-size: 15px; line-height: 1.7; color: var(--mt-gris); }
.mt-entrada__mas { display: inline-block; margin-top: 10px; font-family: var(--mt-roboto); font-size: 14px; font-weight: 600; color: var(--mt-rojo); }
.mt-paginas { margin-top: 40px; font-family: var(--mt-roboto); font-size: 15px; }
.mt-paginas .page-numbers { margin-right: 10px; }
.mt-entrada-sola .mt-entrada__fecha { margin: 0 0 20px; }

@media (max-width: 767px) {
    .mt-noticias__dentro { flex-wrap: wrap; }
    .mt-noticias__lista, .mt-noticias__columna { width: 100%; }
}

/* ── Página no encontrada (la de twentytwentyone) ────────────────────── */

.mt-404 { padding: 0 max(50px, calc((100% - 1080px) / 2)); }
.mt-404__cabeza { max-width: 1080px; margin: 0 auto 0; padding-bottom: 60px; border-bottom: 3px solid var(--mt-texto); }
.mt-404__titulo { font-size: 96px; font-weight: 300; line-height: 1.1; }
.mt-404__cuerpo { max-width: 610px; margin: 0 auto; }
.mt-404__texto { margin-bottom: 20px; }
.mt-404__buscar label { display: block; font-size: 18px; font-weight: 500; line-height: 1.7; }
.mt-404__fila { display: flex; flex-wrap: wrap; align-items: stretch; }
.mt-404__buscar input[type="search"] {
    flex: 1 1 auto;
    width: auto;
    max-width: calc(100% - 4px);
    margin: 10px 30px 0 2px;
    padding: 10px;
    border: 3px solid var(--mt-texto);
    border-radius: 0;
    background: #fff;
    font-size: 20px;
    line-height: 1.7;
}
.mt-404__buscar input[type="submit"] {
    margin-top: 10px;
    padding: 15px 30px;
    border: 3px solid var(--mt-texto);
    border-radius: 0;
    background: var(--mt-texto);
    color: #d1e4dd;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
}

@media (max-width: 651px) {
    .mt-404__titulo { font-size: 64px; }
    .mt-404__cuerpo { max-width: none; }
}
@media (max-width: 481px) {
    .mt-404 { padding: 0 15px; }
    .mt-404__buscar input[type="search"] { flex-basis: 100%; margin-right: 0; }
    .mt-404__buscar input[type="submit"] { margin-left: 10px; }
}

/* 404: salida a la portada (11/11/2026). */
.mt-404__salida { margin: 30px 0 0; }
.mt-404__boton {
    display: inline-block; padding: 14px 28px; border-radius: 4px; background: var(--mt-rojo); color: #fff;
    font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: .5px; text-decoration: none; transition: filter .2s;
}
.mt-404__boton:hover, .mt-404__boton:focus { color: #fff; filter: brightness(.9); }
.mt-404 { padding-bottom: 80px; }
