/* ==========================================================================
   BS3 / Higia Benchmarking — hoja de estilos propia (sin librerías externas)
   Sustituye a Bootstrap 3 + tema Canvas + Font Awesome + Google Fonts.
   Medidas y colores tomados del tema anterior (canvas/css/style.css,
   canvas/css/custom.css, colors.php?color=88bdb9, css/saima.css).
   ========================================================================== */

/* 1. Fuentes (ficheros locales en public/fonts/) ------------------------- */
/* Lato y Montserrat: SIL Open Font License 1.1 (ficheros de Fontsource, subconjunto latino) */
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/lato-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lato-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/lato-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/lato-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-latin-700-normal.woff2') format('woff2'); }

/* 2. Colores corporativos ------------------------------------------------ */
:root {
    --c-primario: #88bdb9;
    --c-cabecera: #a6bbb8;
    --c-cabecera-admin: #a6acbb;
    --c-pie: #a6bbb8;
    --c-postit: #98cabc;
    --c-postit-off: #d2d2d2;
    --c-texto: #555;
    --c-titulo: #444;
    --c-texto-pie: #505050;
    --c-gris-claro: #9c9c9c;
    --c-borde: #eee;
    --c-fondo-hover: #f5f5f5;
    --c-alerta: #d65050ad;
    --c-azul: #3e747d;
    --c-rojo: #9e253f;
    --c-verde: #c4bc2f;
    --c-pdf: #bb3030;
    --fuente-cuerpo: 'Lato', 'Segoe UI', Arial, sans-serif;
    --fuente-titulos: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    --fuente-admin: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 3. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--fuente-cuerpo);
    font-size: 14px;
    line-height: 1.5;
    color: var(--c-texto);
    background-color: #fff;
}

body.admin { font-family: var(--fuente-admin); }

a { color: var(--c-primario); text-decoration: none; }
a:hover { color: #222; }
a img { border: none; }
img { max-width: 100%; vertical-align: middle; border: 0; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--c-primario); outline-offset: 2px; }

::selection { background: var(--c-primario); color: #fff; }

h1, h2, h3, h4, h5, h6 {
    color: var(--c-titulo);
    font-family: var(--fuente-titulos);
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 30px 0;
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5, h6 { font-weight: bold; margin-bottom: 20px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

p, pre, ul, ol, dl, dd, blockquote, address, table, fieldset, form { margin-top: 0; margin-bottom: 30px; }
small { font-size: 85%; }
hr { margin: 20px 0; border: 0; border-top: 1px solid var(--c-borde); }

/* Panel de administración: reglas de css/saima.css */
body.admin h1 { padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid rgb(210, 210, 210); }
body.admin h2 { font-size: 20px; padding-bottom: 10px; margin-bottom: 15px; border-bottom: 1px solid; }
/* /cms (home.blade.php, antes layouts/cms_default): títulos sin la línea del panel */
body.admin.inicio-cms h1 { padding-bottom: 0; border-bottom: 0; }

/* 4. Utilidades ---------------------------------------------------------- */
.clearfix::after, .row::after, .container::after, .form-horizontal .form-group::after { content: ""; display: table; clear: both; }
.center, .text-center { text-align: center !important; }
.text-left, .tleft { text-align: left !important; }
.text-right, .tright { text-align: right !important; }
.justify { text-align: justify; }
.fright, .pull-right { float: right !important; }
.fleft, .pull-left { float: left !important; }
.nott { text-transform: none !important; }
.hidden, [hidden] { display: none !important; }
.nobottommargin { margin-bottom: 0 !important; }
.img-responsive { display: block; max-width: 100%; height: auto; }
.text-muted { color: #777; }
.blue { color: var(--c-azul); }
.red { color: var(--c-rojo); }
.green { color: var(--c-verde); }
.home { font-size: 20px; }
.color { color: var(--c-primario) !important; }
.bgcolor { background-color: var(--c-primario) !important; }
.beauty-font { color: var(--c-primario) !important; }
form.inline { display: inline; }
.antispam { display: none; }
.manual-pdf, .manual-pdf:focus { margin-left: 1em; color: var(--c-pdf); }
.manual-pdf:hover { color: #ff8e8e; }
.visualmente-oculto {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 767px) { .hidden-xs { display: none !important; } }

/* 5. Iconos SVG propios (public/img/iconos.svg) ------------------------- */
.icono {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    flex-shrink: 0;
}
.icono-girando { animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* 6. Rejilla (equivalente a la de Bootstrap 3) --------------------------- */
.container { margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; }
@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }
/* saima.css fijaba 1350px en el panel; aquí como máximo, sin desbordar en pantallas pequeñas */
body.admin .container { width: auto; max-width: 1350px; }

.row { margin-left: -15px; margin-right: -15px; }

[class*="col-xs-"], [class*="col-sm-"], [class*="col-md-"], [class*="col-lg-"] {
    position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px;
}

.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { float: left; }
.col-xs-1 { width: 8.33333333%; } .col-xs-2 { width: 16.66666667%; } .col-xs-3 { width: 25%; } .col-xs-4 { width: 33.33333333%; }
.col-xs-5 { width: 41.66666667%; } .col-xs-6 { width: 50%; } .col-xs-7 { width: 58.33333333%; } .col-xs-8 { width: 66.66666667%; }
.col-xs-9 { width: 75%; } .col-xs-10 { width: 83.33333333%; } .col-xs-11 { width: 91.66666667%; } .col-xs-12 { width: 100%; }

@media (min-width: 768px) {
    .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { float: left; }
    .col-sm-1 { width: 8.33333333%; } .col-sm-2 { width: 16.66666667%; } .col-sm-3 { width: 25%; } .col-sm-4 { width: 33.33333333%; }
    .col-sm-5 { width: 41.66666667%; } .col-sm-6 { width: 50%; } .col-sm-7 { width: 58.33333333%; } .col-sm-8 { width: 66.66666667%; }
    .col-sm-9 { width: 75%; } .col-sm-10 { width: 83.33333333%; } .col-sm-11 { width: 91.66666667%; } .col-sm-12 { width: 100%; }
}
@media (min-width: 992px) {
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { float: left; }
    .col-md-1 { width: 8.33333333%; } .col-md-2 { width: 16.66666667%; } .col-md-3 { width: 25%; } .col-md-4 { width: 33.33333333%; }
    .col-md-5 { width: 41.66666667%; } .col-md-6 { width: 50%; } .col-md-7 { width: 58.33333333%; } .col-md-8 { width: 66.66666667%; }
    .col-md-9 { width: 75%; } .col-md-10 { width: 83.33333333%; } .col-md-11 { width: 91.66666667%; } .col-md-12 { width: 100%; }
    .col-md-offset-1 { margin-left: 8.33333333%; } .col-md-offset-2 { margin-left: 16.66666667%; }
    .col-md-offset-3 { margin-left: 25%; } .col-md-offset-4 { margin-left: 33.33333333%; }
}
@media (min-width: 1200px) {
    .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { float: left; }
    .col-lg-1 { width: 8.33333333%; } .col-lg-2 { width: 16.66666667%; } .col-lg-3 { width: 25%; } .col-lg-4 { width: 33.33333333%; }
    .col-lg-5 { width: 41.66666667%; } .col-lg-6 { width: 50%; } .col-lg-7 { width: 58.33333333%; } .col-lg-8 { width: 66.66666667%; }
    .col-lg-9 { width: 75%; } .col-lg-10 { width: 83.33333333%; } .col-lg-11 { width: 91.66666667%; } .col-lg-12 { width: 100%; }
}

/* Columnas del tema Canvas (col_half, col_one_third...) */
.col_full, .col_half, .col_one_third, .col_two_third, .col_one_fourth, .col_three_fourth {
    display: block; position: relative; margin-right: 4%; margin-bottom: 50px; float: left;
}
.col_full { width: 100%; clear: both; float: none; margin-right: 0; }
.col_half { width: 48%; }
.col_one_third { width: 30.63%; }
.col_two_third { width: 65.33%; }
.col_one_fourth { width: 22%; }
.col_three_fourth { width: 74%; }
.col_last { margin-right: 0 !important; clear: right; }
@media (max-width: 767px) {
    .col_half, .col_one_third, .col_two_third, .col_one_fourth, .col_three_fourth { width: 100%; margin-right: 0; float: none; }
}

/* 7. Estructura general -------------------------------------------------- */
#wrapper { position: relative; background-color: #fff; animation: aparecer .6s ease both; }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }

/* 8. Barra superior ------------------------------------------------------ */
#top-bar {
    position: relative;
    border-bottom: 1px solid var(--c-borde);
    min-height: 45px; /* crece si en móvil los enlaces bajan a una segunda línea */
    line-height: 44px;
    font-size: 13px;
}
#top-bar .col_half { width: auto; margin-bottom: 0; }

.top-links { position: relative; float: left; }
.top-links ul { margin: 0; padding: 0; list-style: none; }
.top-links ul li { float: left; position: relative; height: 44px; border-left: 1px solid var(--c-borde); }
.top-links ul li:first-child, .top-links ul ul li { border-left: 0 !important; }
.top-links li > a {
    display: block;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    height: 44px;
    color: #666;
}
.top-links li > .boton-desplegable {
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    height: 44px;
    line-height: 44px;
    color: #666;
}
/* Flecha que indica que el botón abre un desplegable (idioma, usuario) */
.top-links li > .boton-desplegable::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    vertical-align: 3px;
}
.top-links li > a.bgcolor { color: #fff; }
.top-links li:hover { background-color: var(--c-borde); }
.top-links li .icono { margin-right: 3px; vertical-align: -2px; }

.top-links ul ul {
    display: none;
    position: absolute;
    z-index: 210;
    line-height: 1.5;
    background: #fff;
    top: 44px;
    left: 0;
    width: 140px;
    margin: 0;
    border-top: 1px solid var(--c-primario);
    border-bottom: 1px solid var(--c-borde);
    box-shadow: 0 0 5px -1px rgba(0, 0, 0, 0.2);
}
.fright .top-links ul ul { left: auto; right: 0; }
/* Se abre al pasar el ratón, al pulsar (.open) o al llegar con el teclado (:focus-visible).
   No se usa :focus-within porque tras un clic el botón conserva el foco y el desplegable no se cerraba. */
.top-links li:hover > ul, .top-links li:has(:focus-visible) > ul, .top-links li.open > ul { display: block; }
.top-links ul ul li { float: none; height: 36px; border-top: 1px solid #f5f5f5; border-left: 1px solid var(--c-borde) !important; }
.top-links ul ul li:first-child { border-top: none; }
.top-links ul ul li:hover { background-color: #f9f9f9; }
.top-links ul ul a { height: 36px; line-height: 36px; font-size: 12px; }
.top-links ul ul img { display: inline-block; position: relative; top: -1px; width: 16px; height: 16px; margin-right: 4px; }

/* Botón que abre un desplegable (sustituye <a href="#" data-toggle="dropdown">) */
.boton-desplegable {
    display: block;
    background: none;
    border: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

/* 9. Cabecera y menú principal ------------------------------------------ */
/* Cabecera fija: el top-bar se va con el scroll y la cabecera se queda arriba.
   Al quedar fija, bs3.js le pone .cabecera-fija y el logo se reduce un poco. */
#header {
    position: sticky;
    top: 0;
    z-index: 200;
    background-color: var(--c-cabecera);
    border-bottom: 1px solid #f5f5f5;
}
#header-wrap { position: relative; z-index: 199; background-color: var(--c-cabecera); }
#header, #header-wrap { min-height: 100px; }
#header.headerCms, #header.headerCms #header-wrap { background-color: var(--c-cabecera-admin); }

.header-centered { width: 90%; position: relative; left: 9%; }
.header-centered::after { content: ""; display: table; clear: both; }

#logo { position: relative; float: left; margin-right: 40px; line-height: 100%; }
#logo a { display: block; color: #000; }
#logo img { display: block; max-width: 100%; height: 100px; transition: height .3s ease, margin .3s ease; }
#header.cabecera-fija #logo img { height: 80px; margin: 10px 0; }

#primary-menu-trigger {
    display: none;
    position: absolute;
    top: 25px;
    right: 15px;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #444;
    font-size: 20px;
    cursor: pointer;
    z-index: 2; /* por encima de #logo, que en móvil ocupa todo el ancho */
}

#primary-menu { float: right; }
#header.headerCms #primary-menu { margin-right: 2em; }
#primary-menu ul { list-style: none; margin: 0; padding: 0; }
#primary-menu > ul { float: left; }
#primary-menu ul li { position: relative; }
#primary-menu ul > li { float: left; margin-left: 2px; }
#primary-menu > ul > li:first-child { margin-left: 0; }

#primary-menu ul li > a,
#primary-menu ul li > .boton-desplegable {
    display: block;
    line-height: 22px;
    padding: 39px 15px;
    color: #444;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--fuente-titulos);
    width: auto;
}
#primary-menu ul li:hover > a,
#primary-menu ul li:hover > .boton-desplegable,
#primary-menu ul li.current > a { color: var(--c-primario); }

/* Estilo 3 (el que usa la web): botones redondeados, el activo en color corporativo */
#primary-menu.style-3 > ul > li > a,
#primary-menu.style-3 > ul > li > .boton-desplegable {
    margin: 28px 0;
    padding-top: 11px;
    padding-bottom: 11px;
    border-radius: 2px;
}
#primary-menu.style-3 > ul > li:hover > a,
#primary-menu.style-3 > ul > li:hover > .boton-desplegable { color: #444; background-color: var(--c-fondo-hover); }
#primary-menu.style-3 > ul > li.current > a {
    color: #fff;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    background-color: var(--c-primario);
}

/* Submenús */
#primary-menu ul ul {
    display: none;
    position: absolute;
    width: 220px;
    background-color: #fff;
    box-shadow: 0 13px 42px 11px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--c-borde);
    border-top: 2px solid var(--c-primario);
    z-index: 199;
    top: 100%;
    left: 0;
    margin: 0;
}
#primary-menu ul ul ul { top: -2px; left: 218px; }
#primary-menu ul li:hover > ul,
#primary-menu ul li:has(:focus-visible) > ul,
#primary-menu ul li.open > ul { display: block; }
#primary-menu ul ul li { float: none; margin: 0; }
#primary-menu ul ul li > a,
#primary-menu ul ul li > .boton-desplegable {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 10px 15px;
    letter-spacing: 0;
    font-family: var(--fuente-cuerpo);
    transition: all .2s ease-in-out;
}
#primary-menu ul ul li:hover > a,
#primary-menu ul ul li:hover > .boton-desplegable { background-color: #f9f9f9; padding-left: 18px; color: var(--c-primario); }

/* Flecha a la derecha en las opciones de un desplegable que tienen otro nivel (p. ej. Log WS) */
#primary-menu ul ul li > .boton-desplegable { position: relative; padding-right: 28px; }
#primary-menu ul ul li > .boton-desplegable::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

/* Ajustes de custom.css para que el menú quepa en pantallas medianas */
@media (min-width: 992px) and (max-width: 1307px) {
    #primary-menu ul li > a, #primary-menu ul li > .boton-desplegable { font-size: 9px; }
}
@media (min-width: 1308px) and (max-width: 1416px) {
    #primary-menu ul li > a, #primary-menu ul li > .boton-desplegable { font-size: 11px; }
}

/* Menú en móvil y tablet */
@media (max-width: 991px) {
    .header-centered { width: 100%; left: 0; padding: 0 15px; }
    /* Como en el tema original: logo centrado y hamburguesa a la izquierda */
    #logo { float: none; margin: 0 auto; text-align: center; }
    #logo a { display: inline-block; }
    #logo img { height: 80px; margin: 10px auto; }
    #header.cabecera-fija #logo img { height: 65px; margin: 17px auto; }
    #primary-menu-trigger { display: block; left: 15px; right: auto; }
    /* En columna, la flecha de las opciones con otro nivel apunta hacia abajo */
    #primary-menu ul ul li > .boton-desplegable::after { transform: rotate(45deg); margin-top: -6px; }
    #primary-menu { float: none; clear: both; display: none; margin: 0 !important; }
    /* Con la cabecera fija, el menú abierto se desplaza por dentro si no cabe en la pantalla */
    body.menu-abierto #primary-menu { display: block; max-height: calc(100vh - 100px); overflow-y: auto; }
    #primary-menu > ul { float: none; padding-bottom: 10px; }
    #primary-menu ul > li { float: none; margin: 0; border-top: 1px solid rgba(0, 0, 0, 0.08); }
    #primary-menu ul li > a,
    #primary-menu ul li > .boton-desplegable,
    #primary-menu.style-3 > ul > li > a,
    #primary-menu.style-3 > ul > li > .boton-desplegable { margin: 0; padding: 14px 5px; border-radius: 0; }
    #primary-menu ul ul,
    #primary-menu ul ul ul {
        position: static;
        width: auto;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding-left: 15px;
    }
}
/* En pantallas táctiles (sin ratón) los submenús solo se abren al pulsar.
   Con ratón, también en columna se abren y cierran al pasar el cursor. */
@media (max-width: 991px) and (hover: none) {
    #primary-menu ul li:hover > ul { display: none; }
    #primary-menu ul li.open > ul { display: block; }
}

/* 10. Contenido ---------------------------------------------------------- */
#content { position: relative; overflow: hidden; background-color: #fff; }
#content p { line-height: 1.8; }
.content-wrap { position: relative; padding: 80px 0; }
section.margin-bottom { margin-bottom: 5%; }
.main-scaffold { position: relative; }

.heading-block { margin-bottom: 50px; }
.heading-block h1, .heading-block h2, .heading-block h3, .heading-block h4 {
    margin-bottom: 0; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #333;
}
.heading-block h1 { font-size: 32px; }
.heading-block h2 { font-size: 30px; }
.heading-block h3 { font-size: 26px; }
.heading-block h4 { font-size: 20px; }
.heading-block > span { display: block; margin-top: 10px; font-weight: 300; color: #777; }
.heading-block h1 + span { font-size: 24px; }
.heading-block h2 + span { font-size: 22px; }
.heading-block h3 + span, .heading-block h4 + span { font-size: 20px; }
.heading-block::after { content: ''; display: block; margin-top: 30px; width: 40px; border-top: 2px solid #444; }
.heading-block.nobottomborder::after { display: none; }
h4.subtitle { color: var(--c-primario); }

/* Bloques con icono */
.feature-box { position: relative; margin-top: 20px; padding: 0 0 0 80px; }
.feature-box:first-child { margin-top: 0; }
.feature-box .fbox-icon { display: block; position: absolute; width: 64px; top: 0; left: 0; }
.feature-box .fbox-icon a { display: block; color: var(--c-primario); }
.feature-box .fbox-icon .icono { width: 48px; height: 48px; }
.feature-box h3 { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0; color: #333; }
.feature-box p { margin: 8px 0 0 0; color: #999; }
/* /cms: las 3 columnas no llevan icono, sin el hueco de 80px y con el texto justificado */
body.inicio-cms .feature-box.fbox-plain { padding: 0; }
body.inicio-cms .feature-box.fbox-plain p { text-align: justify; }
.fbox-icon.about { text-align: center; margin-bottom: 20px; }
.fbox-icon.about a { color: var(--c-primario); }
.fbox-icon.about .icono { width: 60px; height: 60px; }

/* Acordeón (en la web está siempre desplegado) */
.accordion { margin-bottom: 20px; }
.acctitle {
    display: block; position: relative; margin: 0; font-weight: bold; color: #444;
    border-top: 1px dotted #ddd; padding: 10px 0 10px 20px;
}
.acctitle:first-child { border-top: none; }
.accordion-lg .acctitle { font-size: 23px; line-height: 44px; padding-left: 30px; font-weight: 400; }
.acctitle .icono { position: absolute; top: 22px; left: 0; width: 20px; height: 20px; color: var(--c-primario); }
.acc_content { position: relative; display: block; padding: 0 0 15px 20px; }
.accordion-lg .acc_content { padding: 10px 0 30px 30px; }

/* Tarjetas post-it de la home del panel */
.wall-container { width: 100%; margin: 50px auto; display: flex; flex-wrap: wrap; justify-content: center; }
.post-it {
    background: var(--c-postit);
    padding: 30px;
    font-size: 15px;
    color: #000;
    width: 200px;
    height: 105px;
    margin-right: 30px;
    box-shadow: 0 4px 6px #333;
    text-align: left; /* el contenedor .justify separaba demasiado las palabras */
}
.post-it.disabled { background: var(--c-postit-off); }
.post-it > a { color: #000 !important; text-decoration: none; }
.post-it.disabled > a { color: #7d7d7d !important; cursor: not-allowed; }

/* 11. Slider de la portada ---------------------------------------------- */
#slider { position: relative; width: 100%; overflow: hidden; }
#slider.full-screen { height: 100vh; min-height: 500px; }
#slider .swiper-container { position: relative; width: 100%; height: 100%; margin: 0; }
#slider .swiper-wrapper { display: flex; height: 100%; transition: transform .8s ease; will-change: transform; }
#slider .swiper-wrapper.sin-transicion { transition: none; }
/* Arrastre (bs3.js): mano abierta encima, puño al arrastrar; el scroll vertical en móvil sigue funcionando */
#slider.arrastrable { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
#slider.arrastrable.arrastrando { cursor: grabbing; }
.swiper-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    margin: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}
#slider .container { position: relative; height: 100%; }
.slider-caption {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    z-index: 20;
    max-width: 550px;
    font-size: 22px;
    background: #3c7e82a1;
    padding: 22px;
    font-weight: bold;
    color: #212121;
}
.slider-caption.slider-caption-right { left: auto; right: 15px; }
.slider-caption h2 {
    font-size: 64px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
    line-height: 1; margin-bottom: 30px; color: #222;
}
.slider-caption h2 span { color: var(--c-cabecera); }
.slider-caption p { margin-bottom: 10px; font-size: 20px; }
@media (max-width: 767px) {
    .slider-caption { left: 15px !important; right: 15px !important; max-width: none !important; font-size: 16px; }
    .slider-caption h2 { font-size: 32px; }
    .slider-caption p { font-size: 16px; }
}

/* 12. Animaciones al aparecer (data-animate / data-caption-animate) ----- */
html.js [data-animate]:not(.animado),
html.js .swiper-slide:not(.activo) [data-caption-animate] { opacity: 0; }
.animado, .swiper-slide.activo [data-caption-animate] { animation-duration: 1s; animation-fill-mode: both; }
[data-animate="bounceIn"].animado { animation-name: bounceIn; }
.swiper-slide.activo [data-caption-animate="flipInX"] { animation-name: flipInX; }
.swiper-slide.activo [data-caption-animate="zoomIn"] { animation-name: zoomIn; }
@keyframes bounceIn {
    0% { opacity: 0; transform: scale(.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(.9); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes flipInX {
    0% { opacity: 0; transform: perspective(400px) rotateX(90deg); }
    40% { transform: perspective(400px) rotateX(-10deg); }
    70% { transform: perspective(400px) rotateX(10deg); }
    100% { opacity: 1; transform: perspective(400px) rotateX(0deg); }
}
@keyframes zoomIn {
    0% { opacity: 0; transform: scale(.3); }
    50% { opacity: 1; }
    100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 13. Botones ------------------------------------------------------------ */
.btn {
    display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    border-radius: 4px;
    user-select: none;
    font-family: inherit;
    text-decoration: none;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn[disabled], .btn.disabled { cursor: not-allowed; opacity: .65; box-shadow: none; }
.btn-sm { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; }
.btn-lg { padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; }

.btn-default { color: #333; background-color: #fff; border-color: #ccc; }
.btn-default:hover { color: #333; background-color: #e6e6e6; border-color: #adadad; }
.btn-primary { color: #fff; background-color: #337ab7; border-color: #2e6da4; }
.btn-primary:hover { color: #fff; background-color: #286090; border-color: #204d74; }
.btn-success { color: #fff; background-color: #5cb85c; border-color: #4cae4c; }
.btn-success:hover { color: #fff; background-color: #449d44; border-color: #398439; }
.btn-info { color: #fff; background-color: #5bc0de; border-color: #46b8da; }
.btn-info:hover { color: #fff; background-color: #31b0d5; border-color: #269abc; }
.btn-warning { color: #fff; background-color: #f0ad4e; border-color: #eea236; }
.btn-warning:hover { color: #fff; background-color: #ec971f; border-color: #d58512; }
.btn-danger { color: #fff; background-color: #d9534f; border-color: #d43f3a; }
.btn-danger:hover { color: #fff; background-color: #c9302c; border-color: #ac2925; }
.btn-link { color: var(--c-primario); background: transparent; border-color: transparent; }
.btn-link:hover { color: #222; text-decoration: underline; }

.btn-contact-form { background: var(--c-primario); border: var(--c-primario); padding: 11px; margin-top: 1em; font-size: 16px; color: #fff; }
.btn-contact-form:hover { color: #fff; }
.btn-cookies { background: var(--c-primario); border: var(--c-primario); margin-top: 1em; font-size: 16px; color: #fff; }

/* 14. Formularios -------------------------------------------------------- */
label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: bold; }
input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; }
.form-group { margin-bottom: 15px; }
.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-control:focus { border-color: #66afe9; outline: 0; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6); }
.form-control[disabled], .form-control[readonly] { background-color: #eee; opacity: 1; }
.form-control[disabled] { cursor: not-allowed; }
textarea.form-control { height: auto; min-height: 100px; }
select[multiple].form-control { height: auto; }
.checkbox, .radio { position: relative; display: block; margin-top: 10px; margin-bottom: 10px; }
.checkbox label, .radio label { min-height: 20px; padding-left: 20px; margin-bottom: 0; font-weight: normal; cursor: pointer; }
.checkbox input[type="checkbox"], .radio input[type="radio"] { position: absolute; margin: 4px 0 0 -20px; }
.help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; }
.has-error .help-block, .has-error .control-label { color: #a94442; }
.has-error .form-control { border-color: #a94442; }
/* Casilla y su texto en la misma línea (centros, mantenimientos) */
.campo-check { display: flex; align-items: center; gap: 8px; }
.campo-check input[type="checkbox"] { flex-shrink: 0; margin: 0; }
.campo-check label { margin: 0; }
.form-horizontal .form-group { margin-left: -15px; margin-right: -15px; }
@media (min-width: 768px) {
    .form-horizontal .control-label { text-align: right; margin-bottom: 0; padding-top: 7px; }
}
#contact input, #contact textarea { border: 1px solid #cededd; }

/* 15. Tablas ------------------------------------------------------------- */
table { border-collapse: collapse; border-spacing: 0; background-color: transparent; }
th { text-align: left; }
.table { width: 100%; max-width: 100%; margin-bottom: 20px; }
.table > thead > tr > th, .table > tbody > tr > th, .table > tbody > tr > td, .table > tfoot > tr > td {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}
.table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #ddd; }
.table > thead:first-child > tr:first-child > th { border-top: 0; }
.table-striped > tbody > tr:nth-of-type(odd) { background-color: #f9f9f9; }
.table tr td form { margin-bottom: 0 !important; }
.deleted td { background: #f4e4e7 !important; }
.clickable_row { cursor: pointer; }
.clickable_row:hover { background-color: #99cb84; }
/* /registrations: 12 columnas dentro del margen (letra y relleno menores; los textos largos se parten) */
.table.tabla-registros { font-size: 13px; }
.table.tabla-registros > thead > tr > th { padding: 6px; white-space: nowrap; } /* cabecera en una sola línea */
.table.tabla-registros > tbody > tr > td { padding: 6px; overflow-wrap: anywhere; }

/* Tablas con ordenación/búsqueda/paginación propias (public/js/tabla.js) */
.tabla-controles { clear: both; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; padding: 10px; }
.tabla-controles .tabla-csv { background-color: var(--c-cabecera-admin); border-color: var(--c-cabecera-admin); }
.tabla-controles .tabla-csv:hover { background-color: var(--c-cabecera-admin); border-color: var(--c-cabecera-admin); filter: brightness(0.92); }
.tabla-controles label { font-weight: normal; margin: 0; }
.tabla-controles select, .tabla-controles input[type="search"] {
    display: inline-block; width: auto; height: 30px; padding: 4px 8px; margin: 0 4px;
    border: 1px solid #aaa; border-radius: 3px; background: #fff; color: #333;
}
.tabla-pie { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 20px; }
.tabla-orden {
    background: none; border: 0; padding: 0 16px 0 0; margin: 0; font: inherit; font-weight: bold;
    color: inherit; cursor: pointer; text-align: left; position: relative; width: 100%;
}
.tabla-orden::after { content: "\2195"; position: absolute; right: 0; opacity: .3; }
th[aria-sort="ascending"] .tabla-orden::after { content: "\2191"; opacity: .8; }
th[aria-sort="descending"] .tabla-orden::after { content: "\2193"; opacity: .8; }
.tabla-vacia td { text-align: center; color: #777; }

/* Validación del fichero CMBD (archivos/validate, antes <style> en la vista) */
.wrapper-wire { width: 100%; }
.progress-bar-wire {
    width: 100%; background-color: #e0e0e0; padding: 3px; border-radius: 3px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2);
}
.progress-bar-fill-wire {
    display: block; height: 14px; background-color: green; border-radius: 3px;
    transition: width 500ms ease-in-out;
}
#estado.estado-enviando { color: red; font-weight: bold; }

/* Selectores con buscador (public/js/selector.js, sustituye a Select2) */
.selector-buscar { margin-bottom: 6px; }
select.selector-simple { height: auto; }
/* Múltiple con etiquetas (aspecto de Select2) */
.selector-multiple { position: relative; max-width: 100%; }
.selector-etiquetas {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
    height: auto; min-height: 34px; padding: 3px 6px; cursor: text;
}
.selector-elegidos { display: contents; list-style: none; margin: 0; padding: 0; }
.selector-elegidos li {
    display: inline-flex; align-items: center; max-width: 100%;
    background-color: #e4e4e4; border: 1px solid #aaa; border-radius: 4px;
    padding: 0 6px 0 2px; font-size: 13px; line-height: 22px; color: #333;
}
.selector-quitar, .selector-limpiar {
    border: 0; background: none; padding: 0 4px; margin: 0;
    font-size: 16px; line-height: 1; font-weight: bold; color: #999; cursor: pointer;
}
.selector-quitar:hover, .selector-limpiar:hover { color: #333; }
.selector-limpiar { margin-left: auto; }
.selector-entrada {
    flex: 1 1 120px; min-width: 120px; height: 24px; padding: 0 2px;
    border: 0; outline: 0; background: transparent; font: inherit; color: inherit;
}
.selector-opciones {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 300;
    max-height: 220px; overflow-y: auto; margin: 0; padding: 0; list-style: none;
    background: #fff; border: 1px solid #aaa; border-top: 0; border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}
.selector-opciones li { padding: 6px 10px; cursor: pointer; }
.selector-opciones li.activa { background-color: var(--c-primario); color: #fff; }
.selector-opciones .selector-sin-resultados { color: #999; cursor: default; }

/* 16. Paginación (marcado de Laravel, Paginator::useBootstrapFour) ------- */
.pagination { display: flex; flex-wrap: wrap; padding-left: 0; list-style: none; margin: 20px 0; border-radius: 4px; }
.page-link, .pagination > li > button {
    position: relative;
    display: block;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #000 !important;
    background-color: #fff;
    border: 1px solid #ddd;
    font: inherit;
    cursor: pointer;
}
.page-item:first-child .page-link { margin-left: 0; border-radius: 4px 0 0 4px; }
.page-item:last-child .page-link { border-radius: 0 4px 4px 0; }
.page-item.active .page-link, .pagination > li.activa > button {
    z-index: 2; color: #fff !important; background-color: var(--c-primario); border-color: var(--c-primario); cursor: default;
}
.page-item.disabled .page-link, .pagination > li > button[disabled] { color: #777 !important; cursor: not-allowed; background-color: #fff; }
/* Paginador a la derecha ocupando su espacio (antes absolute: el pie lo tapaba) */
.logcmbd-paginator { display: flex; justify-content: flex-end; }

/* 17. Alertas y mensajes ------------------------------------------------- */
.alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; }
.alert p { margin-bottom: 0; }
/* saima.css: en el panel, las alertas sin variante eran naranjas (:where no suma especificidad) */
body.admin .alert:where(:not(.alert-success, .alert-info, .alert-warning, .alert-danger, .flash)) { background: orange; }
.alert-success { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; }
.alert-info { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; }
.alert-warning { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; }
.alert-danger { color: #a94442; background-color: #f2dede; border-color: #ebccd1; }
.flash.alert { background: var(--c-alerta); font-weight: bold; }
.flash.alert.success { background-color: #dff0d8; border-color: #d6e9c6; color: #3c763d; }
.close {
    float: right;
    font-size: 21px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .2;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.close:hover { opacity: .5; }

/* 18. Paneles ------------------------------------------------------------ */
.panel { margin-bottom: 20px; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); }
.panel-heading { padding: 10px 15px; color: #333; background-color: #f5f5f5; border-bottom: 1px solid #ddd; border-radius: 3px 3px 0 0; }
.panel-body { padding: 15px; }
.panel-body::after { content: ""; display: table; clear: both; }

/* 19. Ventanas modales (marcado .modal existente) ------------------------ */
body.modal-open { overflow: hidden; }
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal.in { display: block; }
.modal-dialog { position: relative; width: auto; max-width: 600px; margin: 30px auto; padding: 0 10px; }
.modal-content { position: relative; background-color: #fff; border: 1px solid rgba(0, 0, 0, .2); border-radius: 6px; box-shadow: 0 5px 15px rgba(0, 0, 0, .5); }
.modal-header { padding: 15px; border-bottom: 1px solid #e5e5e5; }
.modal-header::after { content: ""; display: table; clear: both; }
.modal-title { margin: 0; line-height: 1.42857143; }
.modal-body { position: relative; padding: 15px; }
.modal-footer { padding: 15px; text-align: right; border-top: 1px solid #e5e5e5; }

/* 20. Pie ---------------------------------------------------------------- */
#footer {
    position: relative;
    background-color: var(--c-pie);
    border-top: 5px solid rgba(0, 0, 0, 0.2);
    height: auto;
    text-align: center;
    padding-bottom: 20px;
}
#footer > .container > .title { margin-top: 3%; }
#footer a { color: var(--c-texto-pie); font-weight: bold; }
.enlace-pie { background: none; border: 0; padding: 0; font: inherit; font-weight: bold; color: var(--c-texto-pie); cursor: pointer; }
.enlace-pie:hover, #footer a:hover { color: #222; }
#footer .titleFoLogo { display: inline-block; font-weight: normal; font-size: 18px; line-height: 20px; height: 50px; color: var(--c-texto-pie); }
#footer .slogo, #footer .slogo:visited { color: var(--c-texto-pie); }
#footer .m3dad { color: var(--c-texto-pie); font-weight: bold; }
.socialFooter { color: var(--c-texto-pie); }
.socialFooter span { color: var(--c-texto-pie); font-weight: bold; }
#footer .socialFooter a { color: #fff; margin-left: 4px; }
.socialFooter .row { margin: 0; }
#footer.footer-scaffold { margin-top: 20px; }
/* Pie del panel: una fila centrada en vertical (logo izquierda, © centro, redes derecha).
   El © va el último en el HTML y se coloca en medio con order. En móvil, apilados. */
body.admin #footer > .container > .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 0;
    padding-top: 20px;
}
body.admin #footer .titleFoLogo { order: 1; flex: 1 1 0; height: auto; }
body.admin #footer .m3dad { order: 2; flex: 0 0 auto; margin: 0; }
body.admin #footer .socialFooter { order: 3; flex: 1 1 0; }
@media (max-width: 767px) {
    body.admin #footer > .container > .title { flex-direction: column; gap: 15px; }
    body.admin #footer .titleFoLogo, body.admin #footer .socialFooter { flex: none; }
}

/* 21. Ir arriba ---------------------------------------------------------- */
#gotoTop {
    display: none;
    z-index: 299;
    position: fixed;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background-color: rgba(0, 0, 0, 0.3);
    font-size: 20px;
    color: #fff;
    right: 30px;
    bottom: 30px;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color .2s linear;
}
#gotoTop.visible { display: block; }
#gotoTop:hover { background-color: var(--c-primario); }

/* 22. Banner de cookies (antes css/cookies.css) -------------------------- */
#footer-index { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999999; }
#barraaceptacion {
    display: none;
    margin: auto;
    position: relative;
    top: 0;
    height: auto;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1% 20%;
}
#barraaceptacion.visible { display: block; }
#barraaceptacion p { line-height: 20px; font-size: 12px; text-align: center; color: #fff; margin: 0; }
#barraaceptacion p a { margin-right: 5px; text-decoration: underline; cursor: pointer; }
#barraaceptacion .ok { text-decoration: none; }
@media (max-width: 767px) { #barraaceptacion { padding: 15px; } }

/* Animación de carga de página (antes data-loader-html del tema Canvas) -- */
#cargador-pagina {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    transition: opacity .6s ease, visibility .6s ease;
    /* Salvaguarda: si el JS no llega a ocultarlo, se oculta solo a los 5 s */
    animation: cargador-salvaguarda 0s linear 5s forwards;
}
#cargador-pagina.oculto { opacity: 0; visibility: hidden; }
#css3-spinner-svg-pulse { display: block; width: 550px; max-width: 90vw; height: auto; }
#css3-spinner-pulse {
    stroke-dasharray: 281;
    animation: cargador-pulso 5s infinite linear;
}
@keyframes cargador-pulso {
    from { stroke-dashoffset: 814; }
    to { stroke-dashoffset: -814; }
}
@keyframes cargador-salvaguarda {
    to { opacity: 0; visibility: hidden; }
}

/* Aviso de cookies técnicas en el login (antes <style> en session/create) */
.cookie-tech-notice {
    max-width: 480px;
    margin: 25px auto 0;
    padding: 15px 20px;
    background: #fff;
    border-left: 4px solid #88bdb9;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    font-size: 13px;
    color: #555;
    text-align: center;
}

/* 23. Formulario de contacto -------------------------------------------- */
.contact-wrapper .title h2 { text-align: center; }
.g-recaptcha iframe { margin-top: 1em; margin-left: 1em; }
.mensaje-ok, .mensaje-error { display: inline-block; padding: 10px 15px; color: #fff; }
.mensaje-ok { background: var(--c-primario); }
.mensaje-error { background: #d9534f; }
