/*==============================================================
# Fundación CMD — capa propia sobre la plantilla
# 1. Paleta institucional
# 2. Logo
# 3. Remapeo de los colores fijos de la plantilla
# 4. Acentos en verde
# 5. Secciones nuevas (trayectoria, biografía, programas)
# 6. Botón flotante de WhatsApp
# (7–15 ajustes de plantilla y responsivo · 16 h1 del banner · 17 noticia · 18 contacto · 19 imágenes)
==============================================================*/

/*--------------------------------------------------------------
# 1. Paleta institucional
--------------------------------------------------------------*/
:root {
    /* Azul institucional: color dominante */
    --thm-base: #2E73B4;
    --thm-base-rgb: 46, 115, 180;

    /* Salmón: llamadas a la acción y acentos cálidos */
    --thm-primary: #FF5757;
    --thm-primary-rgb: 255, 87, 87;

    /* Verde: segundo acento, secciones y estados */
    --fcmd-verde: #A7BD36;
    --fcmd-verde-rgb: 167, 189, 54;

    /* Azules de apoyo, derivados del institucional */
    --fcmd-azul-oscuro: #245C90;
    --fcmd-azul-profundo: #1B3F63;

    /* Texto: gris azulado, más armónico con el azul que el negro puro */
    --thm-black: #1F2A37;
    --thm-black-rgb: 31, 42, 55;
    --thm-gray: #5A6472;
    --thm-gray-rgb: 90, 100, 114;
    --thm-gray-bg: #F4F7FA;
    --thm-gray-bg-rgb: 244, 247, 250;
}

/*--------------------------------------------------------------
# 2. Logo
# Los PNG se exportan a 2x; aquí se fija el tamaño de
# presentación para que se vean nítidos en pantallas retina.
# La versión clara (fcmd-logo-light.png) va sobre fondo oscuro.
--------------------------------------------------------------*/
.logo-box-style1 img {
    width: 270px;
    height: auto;
}

/* El panel lateral deja ~370px útiles */
.sidebar-info-contents .logo img {
    width: 240px;
    height: auto;
}

.footer-logo-style1 > a img {
    width: 250px;
    height: auto;
}

/* El panel del menú móvil mide 300px con 15px de padding */
.mobile-nav__content .logo-box img {
    width: 240px;
    height: auto;
}

@media only screen and (max-width: 991px) {

    .logo-box-style1 img,
    .sidebar-info-contents .logo img {
        width: 210px;
    }
}

@media only screen and (max-width: 375px) {

    .logo-box-style1 img {
        width: 180px;
    }
}
/*--------------------------------------------------------------
# 3. Remapeo de los colores fijos de la plantilla
# (dorado -> azul, coral -> salmón, teal -> verde/azul profundo)
--------------------------------------------------------------*/
.single-features-style1 .border-box {
    position: relative;
    display: block;
    width: 50px;
    height: 3px;
    margin: 0 auto;
    background: #A7BD36cc;
}
.single-causes-style1 .text-box .category {
    position: relative;
    display: inline-block;
    background: #A7BD36cc;
    border-radius: 5px;
    padding: 8px 20px 6px;
}
.single-causes-style2 .text-box .category {
    position: absolute;
    top: -80px;
    left: 0;
    border-radius: 5px;
    background: #2E73B4;
    padding: 8px 15px 6px;
}
.single-causes-style2 .progress-box .bar .bar-fill {
    background-color: #A7BD36;
    height: 14px;
    border-radius: 7px;
}
.single-causes-style2 .btns-box .btn-one::after {
    background-color: #FF5757;
}
.single-causes-style3 .progress-box .bar .bar-fill {
    background-color: #A7BD36;
    height: 10px;
    border-radius: 7px;
}
.mission-style1-single-box .icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: #A7BD36;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mission-style1-single-box .icon.bg2 {
    background: #FF5757;
}
.single-team-style1 .overlay-content {
    position: absolute;
    top: 0;
    left: 0px;
    bottom: 0;
    right: 0;
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(180deg, rgba(167, 189, 54, 0) 0%, #1B3F63 100%);
    transform: perspective(400px) rotateX(0deg) translateY(0%);
    transform-origin: center;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.62, 0.21, 0.45, 1.52);
    z-index: 1;
}
.single-events-box__text .date-box {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 140px;
    height: 115px;
    background: #A7BD36;
    border-radius: 10px;
}
.single-events-box__text .date-box.bg2 {
    background: #2E73B4;
}
.single-events-box__text .date-box.bg3 {
    background: #FF5757;
}
.single-events-box__text .meta-box .meta-info li span {
    position: relative;
    display: inline-block;
    top: 1px;
    color: #FF5757;
    font-size: 18px;
    font-weight: 600;
    padding-right: 10px;
}
.single-features-style3 .img-box .gradient-bg {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 335px;
    background: linear-gradient(180deg, rgba(46, 115, 180, 0) 0%, #2E73B4 100%);
    z-index: 1;
}
.single-features-style3 .img-box .gradient-bg.style2 {
    background: linear-gradient(180deg, rgba(167, 189, 54, 0) 0%, #1B3F63 100%);
}
.single-features-style3 .img-box .gradient-bg.style3 {
    background: linear-gradient(180deg, rgba(255, 87, 87, 0) 0%, #FF5757 100%);
}
.slogan-style2__content .btns-box .btn-one::after {
    background: #FF5757;
}
.causes-info-box-outer {
    position: relative;
    display: block;
    background: rgba(46, 115, 180, 0.06);
    padding: 40px 40px 60px;
    border-radius: 10px;
    margin: 40px 0 62px;
}
.cause-details-text-box__bottom ul li .icon {
    position: absolute;
    top: 1px;
    left: 0;
    width: 18px;
    height: 18px;
    color: #A7BD36;
}
.single-donors-box .title-box p {
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
    text-transform: capitalize;
    color: #A7BD36;
}
.sidebar-cause-post ul li .title-box .btn-box .btn-one span i {
    color: #A7BD36;
    font-size: 12px;
}
.sidebar-categories-box li a i {
    position: relative;
    top: -1px;
    display: inline-block;
    color: #A7BD36;
    font-size: 20px;
    transition: all 200ms linear;
    transition-delay: 0.1s;
}
.sidebar-categories-box li:hover a {
    color: #ffffff;
    background: #FF5757;
}
.main-slider .main-slider-content .btn-box a.right:after {
    background-color: #A7BD36;
}
.satisfied-patients-box .counting-box .counting h2 {
    color: #A7BD36;
    font-size: 32px;
    line-height: 32px;
    font-weight: 700;
    font-family: var(--thm-font);
}
.satisfied-patients-box .counting-box .counting span {
    color: #A7BD36;
    font-size: 32px;
    line-height: 32px;
    font-weight: 700;
    font-family: var(--thm-font);
}
.about-style1__content .inner-text .list-item ul li .icon span {
    position: relative;
    display: inline-block;
    color: #A7BD36;
    font-size: 30px;
}
.video-gallery-style1--style2 .icon .video-popup {
    width: 110px;
    height: 110px;
    background: #A7BD36;
    border-radius: 50%;
}
.about-style2__content .list-item ul li .icon span {
    color: #A7BD36;
    font-size: 20px;
    line-height: 20px;
    font-weight: 700;
}
.fact-counter-style1-bg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0px;
    right: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    background-color: #1B3F63;
    background-blend-mode: multiply;
    z-index: -1;
}
.single-testimonials-style1:hover .quote-box span {
    color: #A7BD36;
}
.blog-style1__text-box {
    position: relative;
    display: block;
    background: #FF5757;
    border-radius: 10px;
    padding: 40px 50px 35px;
}
.blog-style1__text-box.bg2 {
    background: #A7BD36;
}
.single-blog-style2 .img-holder .category {
    position: absolute;
    left: 45px;
    bottom: -20px;
    background: #2E73B4;
    border-radius: 5px;
    padding: 8px 20px 6px;
    z-index: 2;
}
.single-blog-style2 .title-holder .meta-box .meta-info li span {
    position: relative;
    display: inline-block;
    top: 1px;
    color: #FF5757;
    font-size: 16px;
    font-weight: 600;
    padding-right: 10px;
}
.blog-details-quote-box {
    position: relative;
    display: block;
    background: rgba(46, 115, 180, 0.06);
    border-radius: 10px;
    padding: 38px 35px 30px;
    margin-top: 35px;
    margin-bottom: 35px;
}
.blog-details-quote-box .blog-details-quote-box__inner .icon span {
    font-size: 35px;
    line-height: 35px;
    color: #A7BD36;
}
.comment-box .single-comment-box .text-holder .reply-btn a {
    position: relative;
    display: inline-block;
    padding: 7px 15px 7px;
    background: rgba(46, 115, 180, 0.15);
    border-radius: 5px;
    color: var(--thm-black);
    font-size: 14px;
    line-height: 26px;
    font-weight: 400;
    font-family: var(--thm-font);
    transition: all 200ms linear;
    transition-delay: 0.1s;
}
.comment-box .single-comment-box .text-holder .reply-btn a span {
    position: relative;
    display: inline-block;
    color: #FF5757;
    font-size: 18px;
    top: 3px;
    padding-right: 3px;
}
.single-blog-style3 .img-holder .category {
    position: absolute;
    left: 45px;
    bottom: 45px;
    background: #2E73B4;
    border-radius: 5px;
    padding: 8px 20px 6px;
    z-index: 2;
}
.single-blog-style3 .title-holder .meta-box .meta-info li span {
    position: relative;
    display: inline-block;
    top: 3px;
    color: #A7BD36;
    font-size: 20px;
    font-weight: 600;
    padding-right: 10px;
}
.single-blog-style3 .title-holder .title-box .btn-box .btn-one::before {
    background-color: #FF5757;
}
.single-blog-style3 .title-holder .title-box .btn-box .btn-one .txt i {
    color: #FF5757;
    font-size: 17px;
    -webkit-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
}
.contact-info-box-style1 .phone-number a {
    position: relative;
    display: flex;
    font-size: 24px;
    line-height: 34px;
    font-weight: 600;
    color: #A7BD36;
    background: rgba(46, 115, 180, 0.06);
    border-radius: 10px;
    padding: 25px 0 26px;
    padding-left: 40px;
    transition: all 100ms linear;
    transition-delay: 0.1s;
}
/*--------------------------------------------------------------
# 4. Acentos en verde
# El verde entra como segundo color de marca en los puntos
# donde la plantilla repetía el mismo acento una y otra vez.
--------------------------------------------------------------*/

/* Etiquetas de categoría de los programas: un color por audiencia */
.single-causes-style1 .text-box .category {
    background: var(--thm-base);
}

.single-causes-style1:nth-child(2) .text-box .category,
.owl-item:nth-child(2) .single-causes-style1 .text-box .category {
    background: var(--fcmd-verde);
}

.single-causes-style1:nth-child(3) .text-box .category,
.owl-item:nth-child(3) .single-causes-style1 .text-box .category {
    background: var(--thm-primary);
}

/* Bloques de misión / visión / valores / objetivos */
.mission-style1-single-box .icon {
    background: var(--thm-base);
}

.mission-style1-single-box .icon.bg2 {
    background: var(--fcmd-verde);
}

.mission-style1-single-box .icon.bg3 {
    background: var(--thm-primary);
}

.mission-style1-single-box .icon.bg4 {
    background: var(--fcmd-azul-profundo);
}

/* Viñetas de la franja CTA y del bloque "quiénes somos" */
.slogan-style1__right-box ul li .icon,
.about-style1__content .inner-text .list-item ul li .icon span {
    color: var(--fcmd-verde);
}

/* Tarjetas de texto de noticias */
.blog-style1__text-box {
    background: var(--thm-base);
}

.blog-style1__text-box.bg2 {
    background: var(--fcmd-verde);
}

/* Barra superior y contador: azul profundo institucional */
.main-header-style1__top {
    background-color: var(--fcmd-azul-profundo);
}

.fact-counter-style1-bg {
    background-color: var(--fcmd-azul-profundo);
}

/* Comillas de los testimonios */
.single-testimonials-style1 .quote-box span {
    color: var(--fcmd-verde);
}

/*--------------------------------------------------------------
# 5. Secciones nuevas
--------------------------------------------------------------*/

/* --- Botón secundario, contorneado --- */
.btn-one.btn-one--outline::before {
    background-color: transparent;
    border: 2px solid var(--thm-base);
}

.btn-one.btn-one--outline .txt {
    color: var(--thm-base);
}

.btn-one.btn-one--outline:hover .txt {
    color: #ffffff;
}

/* --- Sello de aval en el hero --- */
.endorsement-box {
    border-left: 4px solid var(--fcmd-verde);
    padding-left: 20px;
}

.endorsement-box .text-box p strong {
    color: var(--thm-black);
}

/* --- Viñetas de cada programa --- */
.programa-features {
    margin: 0 0 25px;
}

.programa-features ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.programa-features ul li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--thm-gray);
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 8px;
}

.programa-features ul li span {
    color: var(--fcmd-verde);
    font-size: 13px;
    line-height: 24px;
    flex-shrink: 0;
}

/* --- Testimonios sin retrato --- */
.customer-info--no-photo {
    justify-content: center;
}

.customer-info--no-photo .title-box {
    text-align: center;
    padding-left: 0;
}

.customer-info--no-photo .title-box span {
    color: var(--thm-gray);
    font-size: 14px;
}

/* --- Trayectoria: línea de tiempo --- */
.trayectoria-style1 {
    position: relative;
    display: block;
    background: var(--thm-gray-bg);
    padding: 120px 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0;
    list-style: none;
}

/* Eje central */
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: linear-gradient(180deg,
            rgba(var(--thm-base-rgb), 0) 0%,
            rgba(var(--thm-base-rgb), 0.35) 8%,
            rgba(var(--thm-base-rgb), 0.35) 92%,
            rgba(var(--thm-base-rgb), 0) 100%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 45px 40px 0;
}

.timeline-item--right {
    margin-left: 50%;
    padding: 0 0 40px 45px;
}

.timeline-item__marker {
    position: absolute;
    top: 26px;
    right: -9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--thm-base);
    z-index: 2;
}

.timeline-item--right .timeline-item__marker {
    right: auto;
    left: -9px;
}

.timeline-item--verde .timeline-item__marker {
    border-color: var(--fcmd-verde);
}

.timeline-item--salmon .timeline-item__marker {
    border-color: var(--thm-primary);
}

.timeline-item__card {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    padding: 28px 30px 24px;
    box-shadow: 0 10px 30px rgba(31, 42, 55, 0.06);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.timeline-item__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(31, 42, 55, 0.12);
}

.timeline-item__year {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: var(--thm-base);
    border-radius: 4px;
    padding: 4px 12px 3px;
    margin-bottom: 12px;
}

.timeline-item--verde .timeline-item__year {
    background: var(--fcmd-verde);
}

.timeline-item--salmon .timeline-item__year {
    background: var(--thm-primary);
}

.timeline-item__card h3 {
    color: var(--thm-black);
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    margin: 0 0 10px;
}

.timeline-item__card p {
    color: var(--thm-gray);
    font-size: 15px;
    line-height: 26px;
    margin: 0;
}

@media only screen and (max-width: 767px) {

    .trayectoria-style1 {
        padding: 80px 0;
    }

    .timeline::before {
        left: 9px;
    }

    .timeline-item,
    .timeline-item--right {
        width: 100%;
        margin-left: 0;
        padding: 0 0 30px 40px;
    }

    .timeline-item__marker,
    .timeline-item--right .timeline-item__marker {
        left: 0;
        right: auto;
        top: 22px;
    }
}

/* --- Biografía del Dr. Carlos Martínez Durán --- */
.biografia-style1 {
    position: relative;
    display: block;
    padding: 120px 0;
    background: #ffffff;
}

.biografia-style1__img {
    position: relative;
    display: block;
    max-width: 380px;
    margin: 0 auto;
}

.biografia-style1__img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    filter: grayscale(100%) contrast(1.05);
}

.biografia-style1__epitaph {
    position: relative;
    margin-top: -30px;
    margin-left: 30px;
    background: var(--fcmd-azul-profundo);
    border-radius: 10px;
    padding: 20px 25px 18px;
    box-shadow: 0 14px 34px rgba(27, 63, 99, 0.25);
}

.biografia-style1__epitaph p {
    color: #ffffff;
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    margin: 0;
}

.biografia-style1__epitaph span {
    display: block;
    color: var(--fcmd-verde);
    font-size: 14px;
    letter-spacing: 1px;
    margin-top: 4px;
}

.biografia-style1__content p {
    color: var(--thm-gray);
    font-size: 16px;
    line-height: 30px;
}

.biografia-style1__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
    padding: 25px 0;
    border-top: 1px solid rgba(31, 42, 55, 0.1);
    border-bottom: 1px solid rgba(31, 42, 55, 0.1);
    list-style: none;
}

.biografia-style1__facts li {
    color: var(--thm-black);
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
    max-width: 150px;
}

.biografia-style1__facts .num {
    display: block;
    color: var(--thm-base);
    font-size: 34px;
    line-height: 40px;
    font-weight: 800;
}

.biografia-style1__facts li:nth-child(2) .num {
    color: var(--fcmd-verde);
}

.biografia-style1__facts li:nth-child(3) .num {
    color: var(--thm-primary);
}

.biografia-style1__note {
    border-left: 3px solid var(--fcmd-verde);
    padding-left: 20px;
    font-size: 15px !important;
    line-height: 28px !important;
}

@media only screen and (max-width: 991px) {

    .biografia-style1 {
        padding: 80px 0;
    }

    .biografia-style1__content {
        margin-top: 50px;
    }
}

/* --- Aliados: marcadores tipográficos, en gris hasta el hover --- */
.partner-area .single-partner-logo-box img {
    max-width: 100%;
    height: auto;
    opacity: 0.55;
    transition: opacity 300ms ease;
}

.partner-area .single-partner-logo-box:hover img {
    opacity: 1;
}

/*--------------------------------------------------------------
# 6. Botón flotante de WhatsApp
# (7–15 ajustes de plantilla y responsivo · 16 h1 del banner · 17 noticia · 18 contacto · 19 imágenes)
--------------------------------------------------------------*/
.wa-float {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.wa-float:hover,
.wa-float:focus {
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

@media only screen and (max-width: 575px) {

    .wa-float {
        left: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

/*--------------------------------------------------------------
# 7. Ajustes de la plantilla para castellano y para la marca
--------------------------------------------------------------*/

/* La plantilla capitaliza cada palabra, algo correcto en inglés
   pero incorrecto en castellano ("Docentes Diplomados En 2019"). */
.sec-title h2,
.sec-title .sub-title h4,
.banner-style1__content .sec-title h2,
.single-features-style1 .text h3,
.single-causes-style1 .text-box h3 a,
.mission-style1-single-box .text h3,
.single-fact-counter .title h6,
.single-testimonials-style1 .customer-info .title-box h3,
.blog-style1__text-box .title-box h3 a,
.single-blog-style1 .title-box h3 a,
.single-footer-widget .title h3,
.footer-widget-links ul li a,
.newsletter-style1 .inner-title h3,
.side-content-newsletter-box h3,
.sidebar-contact-info h3,
.blog-style1__text-box .category h6,
.single-causes-style1 .text-box .category h6,
.btn-one .txt {
    text-transform: none;
}

/* Las etiquetas de categoría sí van en versalitas */
.single-causes-style1 .text-box .category h6,
.blog-style1__text-box .category h6 {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/*--------------------------------------------------------------
# 8. Cabecera: el menú en castellano es más ancho que el original
--------------------------------------------------------------*/
@media (min-width: 1200px) {

    .main-menu__wrapper-inner {
        flex-wrap: nowrap;
    }

    .logo-box-style1 img {
        width: 235px;
    }

    .main-menu .main-menu__list > li > a,
    .stricky-header .main-menu__list > li > a {
        font-size: 14px;
        white-space: nowrap;
    }

    .main-menu .main-menu__list > li + li,
    .stricky-header .main-menu__list > li + li {
        margin-left: 24px;
    }

    .header-btn-style1 .btn-one {
        padding-left: 26px;
        padding-right: 26px;
    }
}

@media (min-width: 1500px) {

    .logo-box-style1 img {
        width: 265px;
    }

    .main-menu .main-menu__list > li > a,
    .stricky-header .main-menu__list > li > a {
        font-size: 15px;
    }

    .main-menu .main-menu__list > li + li,
    .stricky-header .main-menu__list > li + li {
        margin-left: 32px;
    }
}

/*--------------------------------------------------------------
# 9. Correcciones puntuales
--------------------------------------------------------------*/

/* Los dos botones del hero necesitan separación */
.banner-style1__btns-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.banner-style1__btns-box .left-btn {
    margin: 0;
}

/* Tarjetas de programa a la misma altura dentro del carrusel */
.causes-style1-carousel .owl-stage {
    display: flex;
}

.causes-style1-carousel .owl-item {
    display: flex;
    height: auto;
}

.causes-style1-carousel .single-causes-style1 {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.causes-style1-carousel .single-causes-style1 .text-box {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.causes-style1-carousel .single-causes-style1 .btns-box {
    margin-top: auto;
}

/* Footer: fondo azul muy oscuro en lugar del gris de la plantilla */
.footer-area {
    background: var(--fcmd-azul-profundo);
}

/* El widget de identificación legal ya no lleva enlace: el color
   estaba puesto sobre <a>, así que el texto quedaba ilegible. */
.single-tweets-box .text .title h5 {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    line-height: 26px;
}

.single-tweets-box .text .bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 22px;
}

/* Aliados: son marcadores tipográficos, sin marco de tarjeta */
.partner-area .single-partner-logo-box {
    border: none;
}

/* Los iconos de los diferenciadores llevan un círculo crema de la
   plantilla; lo pasamos a un azul muy claro de la marca. */
.single-features-style1 .icon .icon-bg img {
    filter: hue-rotate(175deg) saturate(0.55) brightness(1.06);
}

/*--------------------------------------------------------------
# 10. Jerarquía de color en botones y títulos
# El azul es el color institucional y manda en la página.
# El salmón se reserva para los dos puntos de conversión:
# el botón fijo de la cabecera y la franja de llamada a la acción.
--------------------------------------------------------------*/

/* Por defecto, botón azul */
.btn-one:after {
    background-color: var(--thm-base);
}

/* El hero abre con el color institucional, no con el de acción */
.banner-style1__btns-box .left-btn a:after {
    background-color: var(--thm-base);
}

/* Puntos de conversión en salmón */
.header-btn-style1 .btn-one:after,
.slogan-content-box .btns-box .btn-one:after {
    background-color: var(--thm-primary);
}

/* Botón secundario contorneado.
   Va con la misma especificidad que la regla del hero
   (.banner-style1__btns-box .left-btn a:after), que si no la gana. */
.btn-one.btn-one--outline:after,
.banner-style1__btns-box .left-btn a.btn-one--outline:after {
    background-color: transparent;
    border: 2px solid var(--thm-base);
    border-radius: 5px;
}

.btn-one.btn-one--outline:before {
    background: var(--thm-base);
}

.btn-one.btn-one--outline .txt,
.btn-one.btn-one--outline i {
    color: var(--thm-base);
    transition: color 400ms ease;
}

.btn-one.btn-one--outline:hover .txt,
.btn-one.btn-one--outline:hover i {
    color: #ffffff;
}

/* Antetítulos: azul sobre subrayado verde, en lugar de salmón */
.sec-title .sub-title h4 {
    color: var(--thm-base);
}

.sec-title .sub-title h4:before {
    background: rgba(var(--fcmd-verde-rgb), 0.35);
}

/* Sobre fondo oscuro el antetítulo va en blanco */
.slogan-content-box .sec-title .sub-title h4 {
    color: #ffffff;
}

/* El menú tampoco debe capitalizar palabra por palabra */
.main-menu .main-menu__list > li > a,
.stricky-header .main-menu__list > li > a,
.mobile-nav__container .main-menu__list li a {
    text-transform: none;
}

/*--------------------------------------------------------------
# 11. Franja de llamada a la acción y aliados
--------------------------------------------------------------*/

/* El antetítulo de la franja tiene su propia regla con capitalize */
.slogan-content-box .sec-title .sub-title h4 {
    text-transform: none;
}

/* La imagen de fondo se mezcla en multiply: con el azul profundo
   la franja queda dentro de la paleta en vez de gris. */
.slogan-style1-bg {
    background-color: var(--fcmd-azul-profundo);
}

/* Aliados: legibles sin competir con el resto de la página */
.partner-area .single-partner-logo-box img {
    opacity: 0.75;
}

/* Segundo teléfono del pie */
.footer-widget-contact-info .phone-number p a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
}

.footer-widget-contact-info .phone-number p a:hover {
    color: #ffffff;
}

/* Las dos ilustraciones sueltas de la plantilla (una bolsa amarilla
   y dos figuras infantiles) no corresponden al tono institucional. */
.slogan-style1__shape-1,
.slogan-style1__shape-2 {
    display: none;
}

/* La esquina decorativa ya viene recoloreada en el PNG */
.slogan-style1__right-box-shape img {
    filter: none;
}

/*--------------------------------------------------------------
# 12. Tarjetas de programa
--------------------------------------------------------------*/

/* Al pasar .text-box a columna flexible, la etiqueta de categoría
   se estiraba a todo el ancho. */
.causes-style1-carousel .single-causes-style1 .text-box .category {
    align-self: flex-start;
}

/* El botón de cada programa lleva el azul institucional; el salmón
   queda reservado para la cabecera y la franja de conversión. */
.single-causes-style1 .text-box .btns-box a:after {
    background-color: var(--thm-base);
}

/*--------------------------------------------------------------
# 13. Tipografía en móvil
# La plantilla deja de reducir los titulares en 767px: por debajo
# de ~430px el hero se sale de la pantalla. Añadimos los escalones
# que faltan y una red de seguridad contra el desbordamiento.
--------------------------------------------------------------*/
html,
body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

@media only screen and (max-width: 575px) {

    .banner-style1__content .sec-title h2 {
        font-size: 38px;
        line-height: 1.15em;
    }

    .banner-style1__content .sec-title p {
        font-size: 18px;
        line-height: 28px;
    }

    .sec-title h2,
    .slogan-content-box .sec-title h2 {
        font-size: 34px;
        line-height: 1.2em;
    }

    .sec-title .sub-title h4,
    .slogan-content-box .sec-title .sub-title h4 {
        font-size: 15px;
        line-height: 22px;
    }

    .sec-title .sub-title .big-title {
        font-size: 64px;
        line-height: 60px;
    }

    .biografia-style1__content .sec-title h2 {
        font-size: 30px;
    }

    /* En pantallas angostas el botón se ajusta a su texto */
    .banner-style1__btns-box .btn-one {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media only screen and (max-width: 420px) {

    .banner-style1__content .sec-title h2 {
        font-size: 32px;
    }

    .sec-title h2,
    .slogan-content-box .sec-title h2 {
        font-size: 28px;
    }
}

/* Los datos de la biografía no caben en una fila en móvil */
.biografia-style1__facts {
    flex-wrap: wrap;
}

@media only screen and (max-width: 575px) {

    .biografia-style1__facts {
        gap: 20px 24px;
    }

    .biografia-style1__facts li {
        max-width: 45%;
    }
}

/* Las columnas col-xl-* no tienen ancho por debajo de 1200px, así que
   los elementos flexibles se quedan en su ancho mínimo de contenido
   (las fotos del hero miden 340px cada una) y empujan la página a lo
   ancho. min-width:0 les permite encogerse. */
@media only screen and (max-width: 991px) {

    .row > [class*="col-"] {
        min-width: 0;
        max-width: 100%;
    }

    .banner-style1__img .masonry-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/*--------------------------------------------------------------
# 14. Sección de contacto
--------------------------------------------------------------*/

/* La hoja de la plantilla solo estiliza input[type=text|email];
   el campo de teléfono y el desplegable se quedaban sin formato. */
.contact-form form input[type="tel"],
.contact-form form select {
    position: relative;
    display: block;
    width: 100%;
    height: 75px;
    background: #ffffff;
    border: 1px solid #D9D9D9;
    border-radius: 10px;
    color: var(--thm-gray);
    font-size: 17px;
    font-family: var(--thm-font);
    padding: 0 30px;
    outline: none;
    transition: all 500ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form form select {
    background-image:
        linear-gradient(45deg, transparent 50%, var(--thm-gray) 50%),
        linear-gradient(135deg, var(--thm-gray) 50%, transparent 50%);
    background-position: calc(100% - 24px) 34px, calc(100% - 18px) 34px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 50px;
}

.contact-form form input[type="tel"]:focus,
.contact-form form select:focus {
    border-color: var(--thm-base);
}

/* El teléfono destacado va en el azul institucional */
.contact-info-box-style1 .phone-number a {
    color: var(--thm-base);
}

.contact-info-box-style1 .phone-number a:hover {
    color: var(--fcmd-azul-profundo);
}

/* Rótulos del bloque de contacto, sin capitalizar palabra por palabra */
.contact-info-box-style1 .phone-number h3,
.contact-info-box-style1 .contact-info-1 li h4,
.main-contact-form-area .sec-title h2 {
    text-transform: none;
}

.main-contact-form-area {
    padding-bottom: 120px;
}

@media only screen and (max-width: 991px) {

    .main-contact-form-area .contact-form {
        margin-top: 50px;
    }
}

/*--------------------------------------------------------------
# 15. Responsivo
# La plantilla solo define anchos de columna en col-xl-* (≥1200px),
# así que entre 576 y 1199px casi todo caía a una sola columna y la
# página se volvía kilométrica. Aquí se recupera la retícula.
--------------------------------------------------------------*/

/* --- Botones ---
   .btn-one lleva line-height: 66px para centrar una sola línea. En
   cuanto el texto se parte en dos, ese valor se convierte en un
   hueco de 66px entre renglones. Convertimos .txt en inline-flex
   para que gestione su propio interlineado. */
.btn-one .txt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
}

/* El icono acompaña al texto; no debe caer a su propia línea */
.btn-one .txt i {
    flex: 0 0 auto;
    padding-right: 0;
}

@media only screen and (max-width: 767px) {

    /* Ambos botones del hero al mismo ancho: si no, uno ocupa toda
       la línea y el otro queda centrado y suelto */
    .banner-style1__btns-box .left-btn,
    .banner-style1__btns-box .left-btn .btn-one {
        width: 100%;
    }

    .about-style1__content .btns-box .btn-one,
    .trayectoria-style1__btns .btn-one,
    .slogan-content-box .btns-box .btn-one {
        width: 100%;
    }

    /* Con dos renglones el botón necesita alto por padding,
       no por line-height */
    .btn-one {
        line-height: 1.4;
        padding-top: 20px;
        padding-bottom: 18px;
    }
}

/* --- Cabecera en tableta ---
   Entre 768 y 1199px convivían el menú hamburguesa y el botón
   circular del panel lateral: dos accesos al mismo tipo de menú. */
@media only screen and (max-width: 1199px) {

    .side-content-button {
        display: none;
    }
}

/* --- Diferenciadores ---
   A tres columnas en tableta cada bloque quedaba en una franja de
   ~215px y el texto se partía en líneas de dos palabras. En ese
   rango pasan a filas horizontales: icono a la izquierda, texto a
   la derecha. Ocupa menos alto y se lee mucho mejor. */
@media only screen and (min-width: 768px) and (max-width: 1199px) {

    .features-style1 .col-xl-4 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: left;
    }

    /* Rejilla de dos columnas: el icono ocupa las dos filas y a su
       derecha quedan el filete y el texto, uno debajo del otro. */
    .single-features-style1 {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 30px;
        align-items: start;
        margin-bottom: 40px;
    }

    .single-features-style1 .icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin: 0;
    }

    .single-features-style1 .border-box {
        grid-column: 2;
        grid-row: 1;
        margin: 10px 0 16px;
    }

    .single-features-style1 .text {
        grid-column: 2;
        grid-row: 2;
    }

    .single-features-style1 .text h3,
    .single-features-style1 .text p {
        text-align: left;
    }

    .single-features-style1 .text h3 {
        margin-bottom: 8px;
    }

    .single-features-style1 .text p {
        max-width: 620px;
    }
}

/* --- Contadores: en fila desde móvil grande --- */
@media only screen and (min-width: 576px) and (max-width: 1199px) {

    .fact-counter-style1 .col-xl-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media only screen and (max-width: 575px) {

    .fact-counter-style1 .single-fact-counter {
        margin-bottom: 30px;
    }
}

/* --- Misión, visión, valores y objetivos: 2 columnas en tableta --- */
@media only screen and (min-width: 576px) and (max-width: 1199px) {

    .mission-style1__content-box .col-xl-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* --- Formulario de contacto: dos campos por fila en tableta --- */
@media only screen and (min-width: 576px) and (max-width: 1199px) {

    .contact-form form .col-xl-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* --- Espaciado vertical ---
   La plantilla usa 150px de padding en cada sección y no lo reduce
   por debajo de 1200px: en un móvil la página medía más de 24.000px.
   Estos escalones la dejan en una longitud razonable. */
@media only screen and (max-width: 1199px) {

    .features-style1,
    .about-style1,
    .causes-style1,
    .mission-style1,
    .slogan-style1,
    .trayectoria-style1,
    .testimonials-style1,
    .biografia-style1,
    .blog-style1,
    .partner-area,
    .main-contact-form-area {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .fact-counter-style1 {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

@media only screen and (max-width: 767px) {

    .features-style1,
    .about-style1,
    .causes-style1,
    .mission-style1,
    .slogan-style1,
    .trayectoria-style1,
    .testimonials-style1,
    .biografia-style1,
    .blog-style1,
    .partner-area,
    .main-contact-form-area {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .fact-counter-style1 {
        padding-top: 50px;
        padding-bottom: 20px;
    }

    /* La segunda imagen decorativa de "quiénes somos" solo añade
       scroll en móvil; la principal ya cumple su función. */
    .about-style1__img .outer {
        display: none;
    }

    .trayectoria-style1 .timeline {
        margin-bottom: 35px;
    }

    .timeline-item,
    .timeline-item--right {
        padding-bottom: 22px;
    }
}

/* --- Recortes adicionales de alto en móvil --- */
@media only screen and (max-width: 767px) {

    .timeline-item__card {
        padding: 22px 22px 20px;
    }

    .timeline-item__card h3 {
        font-size: 18px;
        line-height: 25px;
    }

    .timeline-item__card p {
        font-size: 14px;
        line-height: 24px;
    }
}


/* La imagen de la sección de principios solo aporta cuando va al
   lado del contenido (≥1200px). Por debajo ocupa el ancho completo
   sin aportar información, así que se oculta. */
@media only screen and (max-width: 1199px) {

    .mission-style1__img {
        display: none;
    }

    .mission-style1__content-box {
        margin-top: 0;
    }
}


/*--------------------------------------------------------------
# 16. Título del banner como <h1>
# La plantilla lo marcaba como <h2> y la portada no tenía <h1>.
# Estas reglas reproducen las de .sec-title h2 para el banner,
# con los mismos cortes de responsive.css y del bloque 13.
--------------------------------------------------------------*/
.banner-style1__content .sec-title h1 {
    color: var(--thm-black);
    font-size: 70px;
    line-height: 1.2em;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    margin: 0;
}

@media only screen and (max-width: 1199px) {

    .banner-style1__content .sec-title h1 {
        font-size: 50px;
    }

    .banner-style1__content .sec-title h1 br {
        display: none;
    }
}

@media only screen and (max-width: 575px) {

    .banner-style1__content .sec-title h1 {
        font-size: 38px;
        line-height: 1.15em;
    }
}

@media only screen and (max-width: 420px) {

    .banner-style1__content .sec-title h1 {
        font-size: 32px;
    }
}


/*--------------------------------------------------------------
# 17. Página de noticia (galería)
--------------------------------------------------------------*/
.noticia-cabecera {
    position: relative;
    background: linear-gradient(135deg, var(--fcmd-azul-profundo) 0%, var(--fcmd-azul-oscuro) 100%);
    padding: 70px 0 64px;
}

.noticia-cabecera__inner {
    max-width: 1040px;
}

.noticia-cabecera__migas ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.noticia-cabecera__migas li {
    color: var(--fcmd-verde);
}

.noticia-cabecera__migas li + li::before {
    content: "/";
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.45);
}

.noticia-cabecera__migas a {
    color: rgba(255, 255, 255, 0.8);
}

.noticia-cabecera__migas a:hover {
    color: #ffffff;
}

.noticia-cabecera h1 {
    margin: 0;
    color: #ffffff;
    font-size: 44px;
    line-height: 1.25em;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
}

.noticia {
    position: relative;
    display: block;
    background: #ffffff;
    padding: 60px 0 110px;
}

.noticia-principal {
    margin: 0 0 24px;
}

.noticia-principal__foto,
.noticia-galeria__foto {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: var(--thm-gray-bg);
}

.noticia-principal__foto img,
.noticia-galeria__foto img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 600ms ease;
}

.noticia-principal__foto:hover img,
.noticia-galeria__foto:hover img {
    transform: scale(1.03);
}

.noticia-galeria {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

/* 5 fotos: dos grandes arriba y tres abajo */
.noticia-galeria__foto {
    grid-column: span 2;
}

.noticia-galeria__foto:nth-child(-n+2) {
    grid-column: span 3;
}

.noticia-pie {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(var(--thm-black-rgb), 0.1);
}

.noticia-compartir {
    display: flex;
    align-items: center;
    gap: 12px;
}

.noticia-compartir span {
    color: var(--thm-gray);
    font-size: 15px;
    font-weight: 600;
}

.noticia-compartir a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--thm-base);
    color: #ffffff;
    font-size: 18px;
    transition: background 300ms ease;
}

.noticia-compartir a:hover {
    background: var(--fcmd-verde);
    color: #ffffff;
}

@media only screen and (max-width: 1199px) {

    .noticia-cabecera h1 {
        font-size: 36px;
    }
}

@media only screen and (max-width: 991px) {

    .noticia-galeria {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .noticia-galeria__foto,
    .noticia-galeria__foto:nth-child(-n+2) {
        grid-column: span 1;
    }

    /* la quinta queda sola: ocupa la fila entera */
    .noticia-galeria__foto:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .noticia-principal {
        margin-bottom: 18px;
    }
}

@media only screen and (max-width: 767px) {

    .noticia-cabecera {
        padding: 48px 0 44px;
    }

    .noticia-cabecera h1 {
        font-size: 27px;
        line-height: 1.3em;
    }

    .noticia {
        padding: 30px 0 70px;
    }
}

@media only screen and (max-width: 575px) {

    .noticia-galeria {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .noticia-galeria__foto:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .noticia-principal {
        margin-bottom: 12px;
    }

    .noticia-principal__foto,
    .noticia-galeria__foto {
        border-radius: 6px;
    }

    .noticia-cabecera h1 {
        font-size: 23px;
    }

    .noticia-pie {
        flex-direction: column;
        align-items: stretch;
        margin-top: 36px;
        padding-top: 30px;
    }

    .noticia-compartir {
        justify-content: center;
    }
}


/*--------------------------------------------------------------
# 18. Contacto tras quitar Aliados
# Biografía y Contacto quedaron seguidas y ambas en blanco: el
# fondo gris claro marca el cambio de sección.
--------------------------------------------------------------*/
.main-contact-form-area {
    background-color: var(--thm-gray-bg);
}


/*--------------------------------------------------------------
# 19. Imágenes con width/height (SEO: evita saltos de maquetación)
# Los atributos solo reservan la proporción; cualquier regla de la
# plantilla sigue mandando (especificidad cero con :where).
--------------------------------------------------------------*/
:where(img[width][height]) {
    height: auto;
}
