/* ==========================================================================
   ZAPORTA, S.A. - Hoja de estilos unificada y responsive
   Migración estática HTML5 / CSS3 (sin DNN, sin publicidad ni popups)
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --cab-left: url("../imagenes/CabIzda01.gif");
    --cab-center: url("../imagenes/CabCentral01.gif");
    --cab-right: url("../imagenes/CabDcha01.gif");
    --sup-bg: #6666ff;
    --inf-bg: #9999ff;
    --tit-bg: #3333ff;
    --menu-bg: #6666ff;
    --nav-bg: #6666ff;
    --nav-sub-bg: #66669f;
    --pie-bg: #0000ff;
}

/* Temas por sección (fieles a los skins originales) */
body.theme-emp {
    --cab-left: url("../imagenes/CabIzda01.gif");
    --cab-center: url("../imagenes/CabCentral01.gif");
    --cab-right: url("../imagenes/CabDcha01.gif");
    --sup-bg: #6666ff;
    --inf-bg: #9999ff;
    --tit-bg: #3333ff;
    --menu-bg: #6666ff;
    --nav-bg: #6666ff;
    --nav-sub-bg: #66669f;
    --pie-bg: #0000ff;
}

body.theme-elev {
    --cab-left: url("../imagenes/CabIzda09.gif");
    --cab-center: url("../imagenes/CabCentral09.gif");
    --cab-right: url("../imagenes/CabDcha09.gif");
    --sup-bg: #333366;
    --inf-bg: #333366;
    --tit-bg: #000066;
    --menu-bg: #333366;
    --nav-bg: #003366;
    --nav-sub-bg: #666666;
    --pie-bg: #000066;
}

body.theme-end {
    --cab-left: url("../imagenes/CabIzda11.gif");
    --cab-center: url("../imagenes/CabCentral11.gif");
    --cab-right: url("../imagenes/CabDcha11.gif");
    --sup-bg: #660000;
    --inf-bg: #660000;
    --tit-bg: #330000;
    --menu-bg: #660000;
    --nav-bg: #6666ff;
    --nav-sub-bg: #66669f;
    --pie-bg: #330000;
}

body.theme-dep {
    --cab-left: url("../imagenes/CabIzda07.gif");
    --cab-center: url("../imagenes/CabCentral07.gif");
    --cab-right: url("../imagenes/CabDcha07.gif");
    --sup-bg: #336633;
    --inf-bg: #336633;
    --tit-bg: #003333;
    --menu-bg: #336633;
    --nav-bg: #003300;
    --nav-sub-bg: #666666;
    --pie-bg: #003333;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #555555;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    border: none;
}

img[width],
img[style*="width"] {
    height: auto !important;
}

a {
    color: #003366;
    text-decoration: none;
}

a:hover {
    color: #cc0000;
    text-decoration: underline;
}

/* ---------- Contenedor principal ---------- */
#contenedor {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
}

/* ---------- Cabecera ---------- */
#cabecera {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 93px;
    overflow: hidden;
}

#cabizda {
    flex: 0 0 190px;
    height: 93px;
    background-image: var(--cab-left);
    background-repeat: no-repeat;
    background-position: left top;
}

#cabcentral {
    flex: 1 1 auto;
    min-width: 0;
    height: 93px;
    background-image: var(--cab-center);
    background-repeat: repeat-x;
    background-position: left top;
}

#cabdcha {
    flex: 0 0 190px;
    height: 93px;
    background-image: var(--cab-right);
    background-repeat: no-repeat;
    background-position: right top;
}

#cabdcha.cabdcha-banner {
    flex: 0 0 auto;
    width: auto;
    max-width: 250px;
    background-image: none;
    background-color: #336633;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#cabdcha.cabdcha-banner a {
    display: block;
    line-height: 0;
}

/* ---------- Cuerpo (Sidebar + Contenido) ---------- */
#cuerpo {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    width: 100%;
    background-color: #ffffff;
}

/* ---------- Lateral Izquierdo ---------- */
#lateralizda {
    flex: 0 0 235px;
    width: 235px;
    color: #ffffff;
    background-color: var(--inf-bg);
    display: flex;
    flex-direction: column;
}

#lateralsup {
    background-color: var(--sup-bg);
    padding: 18px 14px 16px 14px;
}

.busquedaFondo {
    background: url("../imagenes/search_bg.gif") no-repeat left center;
    background-color: #ffffff;
    width: 100%;
    max-width: 207px;
    height: 23px;
    border-radius: 2px;
    overflow: hidden;
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    height: 23px;
    margin: 0;
}

.search-form input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 23px;
    border: none;
    background: transparent;
    padding: 2px 6px;
    font-size: 12px;
    color: #000000;
    outline: none;
}

.search-form button.search-btn {
    flex: 0 0 26px;
    height: 23px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.AccesoUsuarios {
    padding-top: 10px;
    font-size: 11px;
    color: #ffffff;
}

.AccesoUsuarios .login {
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
}

.AccesoUsuarios .login:hover {
    color: #000000;
    text-decoration: underline;
}

#lateralinf {
    flex: 1 1 auto;
    background-color: var(--inf-bg);
    padding-bottom: 16px;
}

#titmenu {
    background-color: var(--tit-bg);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 8px 16px 8px 24px;
    letter-spacing: 1px;
}

/* ---------- Menú Vertical ---------- */
#menulat ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menulat li {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menulat li a {
    display: block;
    background-color: var(--nav-bg);
    color: #ffffff;
    min-height: 24px;
    margin-top: 2px;
    padding: 4px 12px 4px 18px;
    font-size: 11.5px;
    line-height: 1.35;
    text-decoration: none;
}

#menulat ul ul li a {
    background-color: var(--nav-sub-bg);
    padding-left: 34px;
}

#menulat ul ul ul {
    display: none;
}

#menulat li.selected > a {
    font-weight: bold;
    box-shadow: inset 4px 0 0 #ffffff;
}

#menulat li a:hover {
    color: #000000;
    background-color: #999999;
    text-decoration: none;
}

/* ---------- Lateral Derecho ---------- */
#lateraldcha {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

/* ---------- Menú Horizontal Superior ---------- */
#menuHorizontal {
    background-color: var(--menu-bg);
    padding: 6px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.menu-toggle {
    display: none;
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 10px;
    cursor: pointer;
}

.menu-toggle:hover {
    background: #999999;
    color: #000000;
}

.menuH-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

a.menuH {
    font-family: Verdana, Sans-Serif;
    font-size: 13px;
    border: 1px solid #ffffff;
    text-decoration: none;
    display: inline-block;
    padding: 3px 14px;
    color: #ffffff;
    white-space: nowrap;
}

a.menuH.active {
    background-color: rgba(255, 255, 255, 0.18);
    font-weight: bold;
}

a.menuH:hover {
    color: #000000;
    background: #999999;
    text-decoration: none;
}

.date-wrap {
    margin-left: auto;
    text-align: right;
}

.date {
    color: #ffffff;
    font-size: 12px;
    white-space: nowrap;
}

/* ---------- Breadcrumb ---------- */
#navinfo {
    padding: 10px 20px 6px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
}

.breadcrumb_text {
    color: #4a4a4a;
    font-weight: bold;
    font-size: 13px;
}

a.breadcrumb {
    font-size: 12px;
    color: #797a7a;
    text-decoration: none;
}

a.breadcrumb:hover {
    color: #000000;
    text-decoration: underline;
}

/* ---------- Área de Contenido ---------- */
#base,
#base_izda {
    flex: 1 1 auto;
    width: 100%;
    background-color: #ffffff;
}

#contenido,
#base_izda {
    padding: 20px 26px 24px 28px;
}

.ContentPane {
    background-color: #ffffff;
}

.ContentPane::after,
.Normal::after,
.card-aside-body::after {
    content: "";
    display: table;
    clear: both;
}

.Normal {
    font-size: 12px;
    line-height: 1.55;
    color: #4a4a4a;
}

.Normal h2, .ContentPane h2 {
    font-size: 18px;
    color: #223355;
    margin: 0 0 12px 0;
}

.Normal h3, .ContentPane h3 {
    font-size: 15px;
    color: #003366;
    margin: 14px 0 8px 0;
}

.Normal h5, .ContentPane h5 {
    font-size: 13px;
    font-weight: bold;
    color: #003366;
    margin: 14px 0 6px 0;
}

.Normal h6, .ContentPane h6 {
    font-size: 12px;
    font-weight: bold;
    color: #333333;
    margin: 10px 0 4px 0;
}

.Normal ul li {
    list-style-type: square;
    margin-bottom: 4px;
}

.Normal ul li li {
    list-style-type: disc;
}

.SubHead {
    font-size: 12px;
    font-weight: bold;
    color: #003366;
}

/* Tarjeta c_DNN6_Aside modernizada con CSS puro */
.card-aside {
    width: 100%;
    border: 1px solid #c6c6c6;
    border-radius: 6px;
    background: linear-gradient(to bottom, #ebebeb, #dcdcdc);
    padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card-aside .Title {
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #c9c9c9;
    text-transform: uppercase;
}

.card-aside .Head {
    font-size: 18px;
    font-weight: normal;
    color: #333333;
}

/* Tarjeta Container-4 (Esquema LP / Penetrantes) */
.card-title-bar {
    margin-bottom: 14px;
}

.card-title-bar .title4 {
    font-size: 15px;
    font-weight: bold;
    color: #0561c3;
    font-family: Tahoma, Geneva, sans-serif;
    display: block;
    padding-bottom: 6px;
    border-bottom: 2px solid #0561c3;
    margin-bottom: 12px;
}

/* Layout de 2 columnas para END Líquidos Penetrantes */
.two-col-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 18px 24px 24px 24px;
}

#contenido_izda {
    flex: 1 1 auto;
    min-width: 0;
}

#contenido_izda #base_izda {
    padding: 0;
}

#contenido_dcha {
    flex: 0 0 220px;
    width: 220px;
}

/* Tarjeta Container-1 (Panel derecho de enlaces ARDROX) */
.card-links {
    background-color: #dad9d9;
    border: 1px solid #b8b8b8;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.card-links .title1 {
    font-size: 14px;
    font-weight: bold;
    color: #053daf;
    font-family: Tahoma, Geneva, sans-serif;
    display: block;
    margin-bottom: 6px;
}

.linklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.linkitem {
    list-style: none;
    line-height: 1.5;
    margin: 4px 0;
    padding: 0;
}

.linkitem a {
    font-size: 12px;
    color: #003366;
}

.btn-more-info {
    background: #ffffff;
    border: 1px solid #999999;
    border-radius: 3px;
    color: #333333;
    font-size: 11px;
    line-height: 1;
    padding: 1px 5px;
    margin-left: 4px;
    cursor: pointer;
}

.btn-more-info:hover {
    background: #e2e8f5;
}

.item_desc {
    line-height: 1.35;
    margin: 4px 0 6px 12px;
    font-size: 11px;
    color: #333333;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 6px;
    border-radius: 3px;
}

/* Imágenes flotantes dentro del contenido */
.Normal img[align="left"],
.fotodcha {
    margin: 4px 18px 12px 0;
}

.Normal img[align="right"] {
    margin: 4px 0 12px 18px;
}

.Normal img.fotodcha {
    float: right;
    margin: 4px 0 12px 18px;
}

/* ---------- Tablas responsive ---------- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 10px 0 16px 0;
}

.table-responsive table {
    border-collapse: collapse;
    max-width: 100%;
}

table.fTabla {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

table.fTabla th,
table.fTabla td {
    padding: 5px 8px;
    border: 1px solid #b5c0d0;
    font-size: 11.5px;
    vertical-align: middle;
}

tr.fTabla3 th,
tr.fTabla3 td {
    background-color: #dce4f0;
    color: #1e3250;
    font-weight: bold;
    text-align: center;
}

th.fTabla2 {
    background-color: #eef2f8;
    color: #1e3250;
    font-weight: bold;
}

td.fblanco,
th.fblanco {
    background-color: #ffffff;
}

/* ---------- Mapa responsive ---------- */
.map-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 62%;
    height: 0;
    overflow: hidden;
    border: 1px solid #cccccc;
    border-radius: 4px;
    margin-bottom: 8px;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Bloque En Construcción ---------- */
.empty-notice {
    padding: 28px 20px;
    text-align: center;
    background: #f7f8fa;
    border: 1px dashed #c4c9d4;
    border-radius: 6px;
    color: #555555;
}

.empty-notice h2 {
    margin-top: 0;
    color: #003366;
}

/* ---------- Pie de página ---------- */
#pie {
    background-color: var(--pie-bg);
    width: 100%;
    font-size: 11px;
    color: #ffffff;
    font-style: italic;
    padding: 7px 14px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 12px;
}

#pie a.terms {
    font-size: 11.5px;
    color: #ffffff;
    text-decoration: none;
}

#pie a.terms:hover {
    color: #ffdd88;
    text-decoration: underline;
}

/* ==========================================================================
   Media Queries (Responsive Tablet & Móvil)
   ========================================================================== */

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    #cuerpo {
        flex-direction: column;
    }

    #lateralizda {
        display: none;
        width: 100%;
        max-width: none;
        flex: none;
    }

    #lateralizda.is-open {
        display: flex;
    }

    #menuHorizontal {
        padding: 8px 12px;
    }

    .two-col-content {
        flex-direction: column;
        padding: 14px 16px;
    }

    #contenido_izda,
    #contenido_dcha {
        width: 100%;
        flex: none;
    }

    #contenido,
    #base_izda {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    #cabecera {
        height: 70px;
    }

    #cabizda {
        flex: 0 0 135px;
        height: 70px;
        background-size: auto 70px;
    }

    #cabcentral {
        height: 70px;
        background-size: auto 70px;
    }

    #cabdcha {
        display: none;
    }

    #cabdcha.cabdcha-banner {
        display: flex;
        flex: 0 0 auto;
        height: 70px;
    }

    #cabdcha.cabdcha-banner img {
        max-height: 70px;
        width: auto;
    }

    a.menuH {
        font-size: 12px;
        padding: 4px 9px;
    }

    .date-wrap {
        width: 100%;
        text-align: left;
    }

    .Normal img[align="left"],
    .Normal img[align="right"],
    .Normal img.fotodcha,
    img[align="left"],
    img[align="right"] {
        float: none !important;
        display: block;
        margin: 10px auto !important;
    }

    .card-aside {
        padding: 12px;
    }

    .card-aside .Head {
        font-size: 15px;
    }
}
