/**
 * Imudesa: cabecera (franja roja, logo, menú de PowerPack con fondo rojo al
 * pasar el mouse, selector de idioma), panel rojo del menú en tablet y celular,
 * pie gris, y las piezas de cada página (franjas, títulos, separadores,
 * botones, formularios). La base es Hello Elementor 3.4.6 (assets/vendor/hello).
 * Medidas de producción (06/11/2026). Puntos de quiebre: tablet ≤ 1024, celular ≤ 767.
 */

:root {
    --imd-rojo: #E1251B;
    --imd-gris: #EDEDED;
    --imd-texto: #333333;
    --imd-open: "Open Sans", sans-serif;
    --imd-caja: 1140px;
}

body { overflow-x: hidden; }
/* Enlaces: los del kit de Elementor (texto gris oscuro, rojo al pasar el mouse, Open Sans). */
a { color: var(--imd-texto); font-family: var(--imd-open); font-weight: 400; }
a:hover, a:active { color: var(--imd-rojo); }
.imd-contenido { display: block; }
.imd-contenido p { margin-block-start: 0; margin-block-end: .9rem; }

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

.imd-cab { position: relative; z-index: 50; }
.imd-cab__barra { height: 10px; background: var(--imd-rojo); }
.imd-cab__fila { background: #fff; padding: 0 10px; }
.imd-cab__dentro {
    max-width: var(--imd-caja);
    min-height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.imd-cab__logo { width: 20%; flex: none; display: flex; line-height: 24px; text-align: center; }
.imd-cab__logo a { display: inline-block; }
.imd-cab__logo img { display: block; width: 170px; height: auto; }
.imd-cab__derecha { width: 80%; display: flex; justify-content: flex-end; align-items: center; gap: 20px; }

/* Menú principal (escritorio) */
.imd-cab__nav .imd-menu { display: flex; margin: 0; padding: 0; list-style: none; }
.imd-menu li { position: relative; list-style: none; }
.imd-cab__nav .imd-menu > li > .imd-menu__enlace {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 10px 8px;
    font-family: var(--imd-open);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.82;
    text-transform: uppercase;
    color: var(--imd-texto);
    white-space: nowrap;
    transition: color .3s;
}
/* Puntero «fondo» de PowerPack: el rojo aparece detrás del texto. */
.imd-cab__nav .imd-menu > li > .imd-menu__enlace::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--imd-rojo);
    opacity: 0;
    transition: opacity .3s;
}
.imd-cab__nav .imd-menu > li > .imd-menu__enlace:hover,
.imd-cab__nav .imd-menu > li:focus-within > .imd-menu__enlace,
.imd-cab__nav .imd-menu > li.es-activo > .imd-menu__enlace { color: #fff; }
.imd-cab__nav .imd-menu > li > .imd-menu__enlace:hover::before,
.imd-cab__nav .imd-menu > li:focus-within > .imd-menu__enlace::before,
.imd-cab__nav .imd-menu > li.es-activo > .imd-menu__enlace::before { opacity: 1; }

.imd-flecha { display: inline-flex; padding-left: 10px; font-size: 15px; line-height: 0; }
.imd-flecha svg { width: 1em; height: 1em; fill: currentColor; }

.imd-cab__nav .imd-sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 200px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border-bottom: 2px solid var(--imd-rojo);
    display: none;
}
.imd-cab__nav li:hover > .imd-sub,
.imd-cab__nav li:focus-within > .imd-sub { display: block; }
.imd-cab__nav .imd-sub .imd-menu__enlace {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 13px 20px;
    font-family: var(--imd-open);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.82;
    text-transform: uppercase;
    color: #494c4f;
    white-space: nowrap;
}
.imd-cab__nav .imd-sub .imd-menu__enlace:hover,
.imd-cab__nav .imd-sub .imd-menu__enlace:focus-visible,
.imd-cab__nav .imd-sub li.es-activo > .imd-menu__enlace { color: #fff; background: var(--imd-rojo); }

/* Tres rayas (tablet y celular) */
.imd-cab__boton {
    display: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    cursor: pointer;
}
.imd-cab__boton:hover, .imd-cab__boton:focus { background: #fff; }
.imd-hamburguesa { position: relative; display: block; width: 30px; height: 30px; }
.imd-hamburguesa__linea,
.imd-hamburguesa__linea::before,
.imd-hamburguesa__linea::after {
    position: absolute;
    left: 0;
    width: 30px;
    height: 4px;
    background: var(--imd-texto);
    transition: background-color .2s;
}
.imd-hamburguesa__linea { top: 13px; }
.imd-hamburguesa__linea::before, .imd-hamburguesa__linea::after { content: ""; }
.imd-hamburguesa__linea::before { top: -10px; }
.imd-hamburguesa__linea::after { top: 10px; }
.imd-cab__boton:hover .imd-hamburguesa__linea,
.imd-cab__boton:hover .imd-hamburguesa__linea::before,
.imd-cab__boton:hover .imd-hamburguesa__linea::after { background: var(--imd-rojo); }

/* Panel rojo que entra por la derecha */
.imd-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    width: 300px;
    padding-top: 60px;
    background: var(--imd-rojo);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s;
}
.imd-panel[hidden] { display: block; visibility: hidden; }
.imd-panel.abierto { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .1); }   /* la página de atrás se oscurece un poco, como con PowerPack */
.imd-panel .imd-menu { display: block; margin: 0; padding: 0; list-style: none; }
.imd-panel .imd-menu__enlace {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 20px;
    font-family: var(--imd-open);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.82;
    text-transform: uppercase;
    color: #fff;
}
.imd-panel .imd-flecha { align-items: center; height: 28px; padding-left: 10px; font-size: 25px; }
.imd-panel .imd-sub { display: none; margin: 0; padding: 0; list-style: none; background: var(--imd-rojo); }
.imd-panel li.abierto > .imd-sub { display: block; }
.imd-panel .imd-sub .imd-menu__enlace { font-size: 11.05px; line-height: 1.82; background: var(--imd-rojo); }
.imd-panel__cerrar {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}
.imd-panel__cerrar::before, .imd-panel__cerrar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    width: 2px;
    height: 30px;
    background: #fff;
}
.imd-panel__cerrar::before { transform: rotate(45deg); }
.imd-panel__cerrar::after { transform: rotate(-45deg); }
.imd-panel__cerrar:hover, .imd-panel__cerrar:focus { background: transparent; }

@media (min-width: 1025px) {
    .imd-panel { display: none; }
}
@media (max-width: 1024px) {
    .imd-cab__nav { display: none; }
    .imd-cab__boton { display: block; margin-left: auto; }
    .imd-cab__logo { width: 40%; }
    .imd-cab__derecha { width: 60%; }
}
@media (max-width: 767px) {
    .imd-cab__dentro { min-height: 80px; }
    .imd-cab__logo { width: 45%; }
    .imd-cab__logo img { width: 140px; }
    .imd-cab__derecha { width: 55%; }
}

/* Selector de idioma (el de Polylang + Elementor) */
.imd-cab__idioma { flex: none; }
.imd-idioma { position: relative; font-family: var(--imd-open); font-size: 16px; line-height: 1.5; text-align: left; }
.imd-idioma a { display: block; color: var(--imd-texto); background: #fff; white-space: nowrap; }
.imd-idioma a:hover, .imd-idioma a:focus { color: var(--imd-rojo); background: #d9d9d9; }
.imd-idioma__actual { cursor: pointer; }
.imd-idioma__bandera { display: inline-block; width: 20px; height: 15px; vertical-align: middle; line-height: 8px; }
.imd-idioma__bandera img { display: block; width: 20px; height: 15px; }
.imd-idioma__codigo { display: inline-block; padding-left: 10px; vertical-align: middle; }
.imd-idioma__flecha { display: inline-block; padding-left: 10px; font-style: normal; }
.imd-idioma__lista {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    margin: 0;
    padding: 0;
    list-style: none;
    display: none;
}
.imd-idioma.abierto .imd-idioma__lista { display: block; }

/* ── Pie: la franja gris ─────────────────────────────────────────────── */

.imd-pie { display: block; height: 20px; background: var(--imd-texto); }

/* ── Piezas de las páginas ───────────────────────────────────────────── */

/* Franja de arriba de las páginas internas */
.imd-franja {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 250px;
    padding: 0 20px;
    background: var(--imd-texto);
    text-align: center;
}
.imd-franja__foto {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-size: cover;
    mix-blend-mode: multiply;
}
.imd-franja__titulo {
    position: relative;
    margin: 0;
    font-family: var(--imd-open);
    font-size: 60px;
    font-weight: 900;
    line-height: 1;
    color: #EDEDED;
}
.imd-franja .imd-separador { position: relative; width: 100%; }
@media (max-width: 1024px) { .imd-franja__titulo { font-size: 50px; } }
@media (max-width: 767px) { .imd-franja__titulo { font-size: 40px; } }

/* Separador (raya de 50 × 3, roja y centrada) */
.imd-separador { display: flex; justify-content: center; line-height: 0; }
.imd-separador span { display: block; width: 50px; border-top: 3px solid var(--imd-rojo); }
.imd-separador--blanco span { border-top-color: #fff; }
.imd-separador--izq { justify-content: flex-start; }

/* Títulos rojos de 30 px */
.imd-titulo {
    margin: 0;
    font-family: var(--imd-open);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    color: var(--imd-rojo);
    text-align: center;
}
.imd-titulo--blanco { color: #fff; text-align: left; }

/* Texto de párrafo */
.imd-texto { font-family: var(--imd-open); font-size: 16px; line-height: 1.5; color: var(--imd-texto); text-align: center; }

/* Botón de borde rojo */
.imd-boton-caja { display: flex; justify-content: center; }
.imd-boton {
    display: inline-flex;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid var(--imd-rojo);
    border-radius: 0;
    background: rgba(255, 255, 255, 0);
    font-family: var(--imd-open);
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    color: var(--imd-rojo);
    text-align: center;
    transition: all .3s;
}
.imd-boton:hover, .imd-boton:focus { color: #fff; background: var(--imd-rojo); border-color: var(--imd-rojo); }
a.imd-boton:not([href]) { cursor: text; color: var(--imd-rojo); }
a.imd-boton:not([href]):hover { color: var(--imd-rojo); background: rgba(255, 255, 255, 0); }

/* Formas de las franjas: el triángulo de Elementor (abajo, «invertido»). */
.imd-forma { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; pointer-events: none; }
.imd-forma svg { display: block; position: relative; left: 50%; width: calc(100% + 1.3px); height: 50px; transform: translateX(-50%); }
.imd-forma--abajo { bottom: -1px; }
.imd-forma--arriba { top: -1px; }
.imd-forma svg path { fill: #fff; }
.imd-forma--encima { z-index: 2; }

/* ── Formularios (tal cual Elementor) ────────────────────────────────── */

.imdc-cebo { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.imdc-form { font-family: var(--imd-open); }
.imdc-form__campos { display: flex; flex-wrap: wrap; margin: 0 -5px -10px; }
.imdc-form__campo { position: relative; width: 100%; padding: 0 5px; margin-bottom: 10px; }
.imdc-form__etiqueta {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.imdc-form input[type="text"], .imdc-form input[type="email"], .imdc-form textarea {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid #fff;
    border-radius: 0;
    background: #fff;
    font-family: var(--imd-open);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: #1f2124;
}
.imdc-form textarea { padding: 5px 14px; resize: vertical; }
.imdc-form__boton {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 24px;
    border: 0;
    border-radius: 3px;
    background: var(--imd-texto);
    font-family: "Lato", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
}
.imdc-form__boton:hover, .imdc-form__boton:focus { background: var(--imd-texto); color: #fff; }
.imdc-form__aviso { margin-top: 20px; font-size: 16px; }
