
/* =========================================================
   ECOSUR NETWORK — USER.CSS
   Joomla 6.2 | Cassiopeia Extended
   ========================================================= */


/* =========================================================
   1. COLORES INSTITUCIONALES Y TIPOGRAFÍA
   ========================================================= */

:root {
    --ecosur-green-dark: #194734;
    --ecosur-green: #8EB55C;
    --ecosur-green-hover: #497E36;
    --ecosur-footer-green: #8EB55C;
    --ecosur-text: #194734;
    --ecosur-background: #FFFFFF;
    --ecosur-border: #E5E5E5;
}

body,
body *,
button,
input,
select,
textarea {
    font-family: Helvetica, Arial, sans-serif !important;
}


/* =========================================================
   2. ENCABEZADO: LOGO IZQUIERDA Y MENÚ DERECHA
   ========================================================= */

@media (min-width: 992px) {

    body.com_content.view-article
    header.container-header .container-topbar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: calc(100% - 40px) !important;
        max-width: 1140px !important;
        margin: 0 auto !important;
        padding: 32px 0 26px !important;
        gap: 20px !important;
        box-sizing: border-box !important;
    }

    body.com_content.view-article
    header.container-header #mod-custom114 {
        order: 1 !important;
        flex: 0 0 150px !important;
        width: 150px !important;
        max-width: 150px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.com_content.view-article
    header.container-header #mod-custom114 img {
        display: block !important;
        width: 150px !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
    }

    body.com_content.view-article
    header.container-header .container-topbar > ul.mod-menu {
        order: 2 !important;
        display: flex !important;
        flex: 0 1 auto !important;
        justify-content: flex-end !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}


/* =========================================================
   3. ENCABEZADO: TABLET Y CELULAR
   ========================================================= */

@media (max-width: 991.98px) {

    body.com_content.view-article
    header.container-header .container-topbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 24px 20px 18px !important;
        box-sizing: border-box !important;
    }

    body.com_content.view-article
    header.container-header #mod-custom114 {
        order: 1 !important;
        width: 150px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    body.com_content.view-article
    header.container-header #mod-custom114 img {
        display: block !important;
        width: 150px !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    body.com_content.view-article
    header.container-header .container-topbar > ul.mod-menu {
        order: 2 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}


/* =========================================================
   4. BOTÓN DEL BUSCADOR DE RECURSOS
   ========================================================= */

#mod-finder-searchform button,
#mod-finder-searchform button.btn-primary,
#mod-finder-searchform .btn {
    background-color: var(--ecosur-green) !important;
    background-image: none !important;
    border-color: var(--ecosur-green) !important;
    color: #FFFFFF !important;
}

#mod-finder-searchform button:hover,
#mod-finder-searchform button.btn-primary:hover,
#mod-finder-searchform .btn:hover {
    background-color: var(--ecosur-green-hover) !important;
    background-image: none !important;
    border-color: var(--ecosur-green-hover) !important;
    color: #FFFFFF !important;
}


/* =========================================================
   5. ESTRUCTURA GENERAL DE LOS ARTÍCULOS
   ========================================================= */

.ecosur-article {
    color: var(--ecosur-text);
    background: #FFFFFF;
    padding: 28px 0 40px;
}

.ecosur-article__container {
    width: min(100% - 40px, 1140px);
    margin: 0 auto;
}

.ecosur-article__header {
    margin-bottom: 30px;
}


/* =========================================================
   6. CATEGORÍA DEL ARTÍCULO
   ========================================================= */

.ecosur-article__category {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 13px;
    background: #EDF4E7;
    color: var(--ecosur-green-dark);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================================================
   7. TÍTULO Y LÍNEA DECORATIVA
   ========================================================= */

.ecosur-article__title {
    max-width: 950px;
    margin: 0;
    color: var(--ecosur-green-dark);
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.2;
    font-weight: 700;
}

.ecosur-article__accent {
    width: 62px;
    height: 4px;
    margin-top: 20px;
    background: var(--ecosur-green);
}


/* =========================================================
   8. METADATOS DEL ARTÍCULO
   ========================================================= */

.ecosur-article__details {
    margin-top: 16px;
    color: var(--ecosur-green-dark);
    font-size: 14px;
    line-height: 1.7;
}

.ecosur-article .article-info {
    margin-top: 10px !important;
    margin-bottom: 18px !important;
}

.ecosur-article .article-info,
.ecosur-article .article-info dd,
.ecosur-article .article-info dt,
.ecosur-article .article-info span,
.ecosur-article .article-info a,
.ecosur-article .com-content-article__info,
.ecosur-article .com-content-article__info a {
    color: var(--ecosur-green-dark) !important;
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

.ecosur-article .article-info li,
.ecosur-article .article-info dd {
    margin-bottom: 5px !important;
}

.ecosur-article .article-info a,
.ecosur-article .com-content-article__info a {
    text-decoration: underline !important;
    text-decoration-color: var(--ecosur-green) !important;
    text-underline-offset: 3px;
    font-weight: 600 !important;
}

.ecosur-article .article-info a:hover,
.ecosur-article .com-content-article__info a:hover {
    color: var(--ecosur-green-hover) !important;
}

.ecosur-article .article-info [class^="icon-"],
.ecosur-article .article-info [class*=" icon-"] {
    color: var(--ecosur-green-hover) !important;
    opacity: 1 !important;
}

.ecosur-article .article-info .article-info-term {
    color: var(--ecosur-green-dark) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
}


/* =========================================================
   9. CONTENIDO DEL ARTÍCULO
   ========================================================= */

.ecosur-article__body {
    color: var(--ecosur-green-dark);
    font-size: 17px;
    line-height: 1.85;
}

.ecosur-article__body p {
    color: var(--ecosur-green-dark);
    margin-bottom: 20px;
}

.ecosur-article__body h2,
.ecosur-article__body h3,
.ecosur-article__body h4 {
    margin: 34px 0 14px;
    color: var(--ecosur-green-dark);
    line-height: 1.3;
}

.ecosur-article__body h2 {
    font-size: 30px;
}

.ecosur-article__body h3 {
    font-size: 23px;
}

.ecosur-article__body h4 {
    font-size: 19px;
}

.ecosur-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.ecosur-article__body a {
    color: var(--ecosur-green-dark) !important;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--ecosur-green);
    text-underline-offset: 3px;
}

.ecosur-article__body a:hover {
    color: var(--ecosur-green-hover) !important;
}

.ecosur-article__body ul,
.ecosur-article__body ol {
    margin: 0 0 24px;
    padding-left: 25px;
}

.ecosur-article__body li {
    margin-bottom: 8px;
    color: var(--ecosur-green-dark);
}

.ecosur-article__body blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    border-left: 4px solid var(--ecosur-green);
    background: #F5F8F1;
    color: var(--ecosur-green-dark);
}

.ecosur-article__body table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
}

.ecosur-article__body th,
.ecosur-article__body td {
    padding: 12px;
    border: 1px solid #DFE5DB;
    text-align: left;
    color: var(--ecosur-green-dark);
}

.ecosur-article__body th {
    background: #EDF4E7;
    font-weight: 700;
}

.ecosur-article .com-content-article__body {
    margin-top: 22px;
}


/* =========================================================
   10. FRANJA VERDE A TODO LO ANCHO
   ========================================================= */

body.com_content.view-article header.container-header {
    border-bottom: 1px solid var(--ecosur-border);
}

body.com_content.view-article .ecosur-article {
    position: relative;
}

body.com_content.view-article .ecosur-article::before {
    content: "";
    display: block;
    width: 100vw;
    max-width: 100vw;
    height: 12px;
    background-color: var(--ecosur-green);
    margin: 0 0 26px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}


/* =========================================================
   11. FOOTER ECOSUR
   Fondo verde y altura reducida
   Menú izquierda | Copyright derecha
   ========================================================= */

body .container-footer {
    display: block;
    width: 100% !important;
    max-width: none !important;
    background: #8EB55C !important;
    background-image: none !important;
    color: #FFFFFF !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    font-family: Helvetica, Arial, sans-serif !important;
}

body .container-footer .grid-child,
body .container-footer .footer,
body .container-footer .mod-custom,
body .container-footer .mod-custom > div {
    background: transparent !important;
    color: #FFFFFF !important;
}

body .container-footer .mod-custom {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Franja exterior compacta */

.ecosur-footer,
footer.ecosur-footer {
    display: block;
    width: 100%;
    max-width: none;
    background: #8EB55C !important;
    background-image: none !important;
    color: #FFFFFF !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    font-family: Helvetica, Arial, sans-serif !important;
    box-sizing: border-box;
}

.ecosur-footer,
.ecosur-footer * {
    box-sizing: border-box;
}

/* Contenedor más estrecho y centrado */

.ecosur-footer__inner {
    width: calc(100% - 40px);
    max-width: 1000px;
    margin: 0 auto;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

/* Ocultar el logotipo y el nombre de marca */

.ecosur-footer__brand,
.ecosur-footer__name,
.ecosur-footer__tagline,
.ecosur-footer img {
    display: none !important;
}

/* Menú a la izquierda */

.ecosur-footer__nav {
    order: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ecosur-footer__nav a {
    color: #FFFFFF !important;
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ecosur-footer__nav a:hover {
    color: #194734 !important;
}

/* Copyright a la derecha */

.ecosur-footer__copyright {
    order: 2 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #FFFFFF !important;
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-align: right !important;
    white-space: nowrap !important;
}


/* =========================================================
   12. TABLET Y CELULAR
   ========================================================= */

@media (max-width: 767px) {

    .ecosur-article {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .ecosur-article__container {
        width: calc(100% - 30px);
    }

    .ecosur-article__title {
        font-size: 29px;
    }

    .ecosur-article__body {
        font-size: 16px;
        line-height: 1.75;
    }

    .ecosur-article__body h2 {
        font-size: 25px;
    }

    .ecosur-article__body h3 {
        font-size: 21px;
    }

    .ecosur-article__body h4 {
        font-size: 18px;
    }

    body.com_content.view-article .ecosur-article::before {
        height: 8px;
        margin-bottom: 22px;
    }

    .ecosur-article .article-info,
    .ecosur-article .article-info dd,
    .ecosur-article .article-info dt,
    .ecosur-article .article-info a {
        font-size: 14px !important;
    }

    /* Footer compacto y centrado en móvil */

    .ecosur-footer {
        padding: 10px 0 !important;
    }

    .ecosur-footer__inner {
        width: calc(100% - 30px);
        max-width: 100%;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    .ecosur-footer__nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px 14px !important;
    }

    .ecosur-footer__nav a {
        font-size: 13px !important;
    }

    .ecosur-footer__copyright {
        width: 100% !important;
        text-align: center !important;
        font-size: 13px !important;
    }
}


/* =========================================================
   FIN DEL USER.CSS — ECOSUR NETWORK
   ========================================================= */
