/* =================================
   ALBERGUE CASA DEL RÍO AC
   ================================= */

/* FUENTES */
@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis/Metropolis-Regular.woff2') format('woff2'),
        url('../fonts/Metropolis/Metropolis-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis/Metropolis-Light.woff2') format('woff2'),
        url('../fonts/Metropolis/Metropolis-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis/Metropolis-SemiBold.woff2') format('woff2'),
        url('../fonts/Metropolis/Metropolis-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis/Metropolis-Bold.woff2') format('woff2'),
        url('../fonts/Metropolis/Metropolis-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* VARIABLES */
:root {
    /* Colores principales del branding */
    --color-azul-marino: #2B4C7E;      /* Principal - Confianza y profesionalismo */
    --color-rojo: #D64545;              /* Urgencia y acción */
    --color-naranja: #E8A04A;           /* Calidez y esperanza */
    --color-verde: #9BC25C;             /* Crecimiento y sanación */
    --color-azul-claro: #6BA3C8;        /* Serenidad y apoyo */
    --color-blanco: #FFFFFF;            /* Pureza y claridad */
    --color-gris-claro: #F5F5F5;        /* Fondos suaves */
    --color-fondo-news: #e4e9ec;        /* Fondos suaves */
    --color-texto: #333333;             /* Texto principal */

    /* Variables de la plantilla base (sobrescritas) */
    --white-color: #ffffff;
    --primary-color: #6BA3C8;           /* Azul claro del logo */
    --secondary-color: #2B4C7E;         /* Azul marino */
    --section-bg-color: #f0f8ff;
    --site-footer-bg-color: #44525d;
    --custom-btn-bg-color: #597081;
    --custom-btn-bg-hover-color: #E8A04A; /* Naranja */
    --dark-color: #000000;
    --p-color: #717275;
    --border-color: #e9eaeb;

    /* Tipografía */
    --body-font-family: 'Metropolis', sans-serif;
    --h1-font-size: 52px;
    --h2-font-size: 46px;
    --h3-font-size: 32px;
    --h4-font-size: 28px;
    --h5-font-size: 24px;
    --h6-font-size: 22px;
    --p-font-size: 16px;
    --btn-font-size: 18px;
    --copyright-font-size: 14px;

    --border-radius-large: 100px;
    --border-radius-medium: 20px;
    --border-radius-small: 10px;

    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* GLOBALES */
body {
    background-color: var(--white-color);
    font-family: var(--body-font-family);
}

/* TIPOGRAFÍA */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    letter-spacing: -1px;
}

h1 {
    font-size: var(--h1-font-size);
    font-weight: var(--font-weight-bold);
    letter-spacing: -2px;
}

h2 {
    color: var(--secondary-color);
    font-size: var(--h2-font-size);
    letter-spacing: -2px;
}

h3 {
    font-size: var(--h3-font-size);
}

h4 {
    font-size: var(--h4-font-size);
}

h5 {
    color: var(--primary-color);
    font-size: var(--h5-font-size);
}

h6 {
    font-size: var(--h6-font-size);
}

p {
    color: var(--p-color);
    font-size: var(--p-font-size);
    font-weight: var(--font-weight-light);
}

ul li {
    color: var(--p-color);
    font-size: var(--p-font-size);
    font-weight: var(--font-weight-normal);
}

a, button {
    touch-action: manipulation;
    transition: all 0.3s;
}

a {
    color: var(--p-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-color);
}

b, strong {
    font-weight: var(--font-weight-bold);
}

/* ELEMENTOS BASE */

.section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
}

.section-bg {
    background-color: var(--section-bg-color);
}

.section-overlay {
    background: rgba(0, 0, 0, 0.35);
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.section-overlay + .container {
    position: relative;
}

.custom-block-wrap {
    background: var(--white-color);
    border-radius: var(--border-radius-medium);
    position: relative;
    overflow: hidden;
    transition: all 0.5s;
}

.custom-block-wrap:hover {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
}

.custom-block-body {
    padding: 30px;
}

.custom-block-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-block .custom-btn {
    border-radius: 0;
    display: block;
}

.custom-icon {
    color: var(--secondary-color);
}

.custom-list {
    margin-bottom: 0;
    padding-left: 0;
}

.custom-list-item {
    list-style: none;
    margin-top: 10px;
    margin-bottom: 10px;
}

.custom-text-box {
    background: var(--white-color);
    border-radius: var(--border-radius-medium);
    margin-bottom: 24px;
    padding: 40px;
}

.custom-text-box-image {
    border-radius: var(--border-radius-medium);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-text-box-icon {
    background: var(--section-bg-color);
    border-radius: var(--border-radius-large);
    color: var(--secondary-color);
    font-size: var(--h6-font-size);
    text-align: center;
    display: inline-block;
    vertical-align: middle;
    width: 25px;
    height: 25px;
    line-height: 30px;
}

.custom-btn {
    background: var(--secondary-color);
    border: 2px solid transparent;
    border-radius: var(--border-radius-large);
    color: var(--white-color);
    font-size: var(--btn-font-size);
    font-weight: var(--font-weight-normal);
    line-height: normal;
    padding: 15px 25px;
}

.navbar-expand-lg .navbar-nav .nav-link.custom-btn {
    color: var(--custom-btn-bg-color);
    margin-top: 8px;
    padding: 12px 25px;
}

.custom-btn:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.custom-border-btn {
    background: transparent;
    border: 2px solid var(--custom-btn-bg-color);
    color: var(--primary-color);
}

.navbar-expand-lg .navbar-nav .nav-link.custom-btn:hover,
.custom-border-btn:hover {
    background: var(--custom-btn-bg-hover-color);
    border-color: transparent;
    color: var(--white-color);
}

/* NAVBAR */
.navbar {
    background: var(--white-color);
    z-index: 1020;
    padding-top: 0;
    padding-bottom: 0;
    transition: box-shadow 0.3s ease;
    position: sticky;
    top: 0;
    will-change: box-shadow;
}

/* Navbar Sticky - Estado compacto al hacer scroll */
.navbar.navbar-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030;
}

/* Transiciones suaves para elementos del navbar */
.navbar-brand img.logo {
    transition: max-height 0.3s ease;
    will-change: max-height;
}

.navbar-brand span {
    transition: font-size 0.3s ease;
    will-change: font-size;
}

.navbar-brand span small {
    transition: font-size 0.3s ease;
    will-change: font-size;
}

.navbar-nav .nav-link {
    transition: padding 0.3s ease;
    will-change: padding;
}

.custom-btn.custom-border-btn {
    transition: padding 0.3s ease, font-size 0.3s ease;
    will-change: padding, font-size;
}

/* Estilos cuando el navbar está en modo scrolled */
.navbar.navbar-scrolled .navbar-brand img.logo {
    max-height: 50px;
}

.navbar.navbar-scrolled .navbar-brand span {
    font-size: 1.3rem;
}

.navbar.navbar-scrolled .navbar-brand span small {
    font-size: 0.65rem;
}

.navbar.navbar-scrolled .navbar-nav .nav-link {
    padding-top: 12px;
    padding-bottom: 12px;
}

.navbar.navbar-scrolled .custom-btn.custom-border-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.navbar.navbar-scrolled .dropdown-menu {
    margin-top: 5px;
}

.navbar-brand {
    color: var(--primary-color);
    font-size: var(--h6-font-size);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-brand span {
    display: inline-block;
    vertical-align: middle;
}

.navbar-brand small {
    color: var(--secondary-color);
    display: block;
    font-size: 10px;
    line-height: normal;
    text-transform: uppercase;
}

.logo {
    width: 80px;
    height: auto;
}

.navbar-expand-lg .navbar-nav .nav-link {
    margin-right: 0;
    margin-left: 0;
    padding: 20px;
}

.navbar-nav .nav-link {
    display: inline-block;
    color: var(--p-color);
    font-size: var(--p-font-size);
    font-weight: var(--font-weight-medium);
    position: relative;
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    background: transparent;
    color: var(--primary-color);
}

/* Dropdown Menu */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    margin-top: 10px;
    background: var(--white-color);
}

.navbar-nav .dropdown-item {
    color: var(--color-azul-marino);
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar-nav .dropdown-item:hover {
    background: var(--section-bg-color);
    color: var(--color-naranja);
    padding-left: 30px;
}

.navbar-nav .dropdown-item:focus,
.navbar-nav .dropdown-item:active,
.navbar-nav .dropdown-item:visited {
    background: transparent;
    color: var(--color-azul-marino);
}

.navbar-nav .dropdown-item:active {
    background: var(--section-bg-color);
    color: var(--color-naranja);
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 8px;
    vertical-align: middle;
}

.navbar-toggler {
    border: 0;
    padding: 0;
    cursor: pointer;
    margin: 0;
    width: 30px;
    height: 35px;
    outline: none;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* Animación del menú hamburguesa */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
    transition: top 300ms 50ms ease, transform 300ms 350ms ease;
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
    transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
    background: var(--dark-color);
    transition: background 10ms 300ms ease;
    display: block;
    width: 30px;
    height: 2px;
    position: relative;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
    transition: top 300ms 350ms ease, transform 300ms 50ms ease;
    position: absolute;
    right: 0;
    left: 0;
    background: var(--dark-color);
    width: 30px;
    height: 2px;
    content: '';
}

.navbar-toggler .navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
    top: 8px;
}

/* HEADER SUPERIOR */
.site-header {
    background: linear-gradient(135deg, var(--color-azul-marino) 0%, #1e3a5f 100%);
    padding: 15px 0;
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right,
        var(--color-verde) 0%,
        var(--color-verde) 25%,
        var(--color-azul-claro) 25%,
        var(--color-azul-claro) 50%,
        var(--color-naranja) 50%,
        var(--color-naranja) 75%,
        var(--color-rojo) 75%,
        var(--color-rojo) 100%);
    z-index: 5;
}

.site-header p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--color-blanco);
}

.site-header p i {
    color: var(--color-naranja);
}

.site-header a {
    color: var(--color-blanco);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.site-header a:hover {
    color: var(--color-naranja);
}

.site-header .social-icon {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 10px;
}

.site-header .social-icon-link {
    color: var(--color-blanco);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.site-header .social-icon-link:hover {
    color: var(--color-azul-marino);
    background: var(--color-naranja);
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero-section-full-height {
    height: auto;
    max-height: calc(100vh - 140px); /* 100vh - (header 60px + navbar 80px) */
    position: relative;
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: calc(100vh - 350px); /* Ajustar para dejar espacio al texto */
    max-height: 450px;
    min-height: 350px;
    object-fit: cover;
    opacity: 1;
}

#hero-slide .carousel-item {
    height: auto;
    min-height: auto;
    max-height: calc(100vh - 140px);
}

#hero-slide .carousel-caption {
    background: var(--white-color);
    clip-path: none;
    color: var(--secondary-color);
    text-align: left;
    bottom: auto;
    right: auto;
    left: auto;
    width: 100%;
    padding: 50px;
    min-height: auto;
    z-index: 5;
    position: relative;
}

#hero-slide .carousel-indicators-wrap {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
}

#hero-slide .carousel-indicators {
    margin-right: 0;
    margin-left: 22px;
    justify-content: inherit;
}

#hero-slide .carousel-control-next,
#hero-slide .carousel-control-prev {
    opacity: 0;
    top: 250px;
    transform: translateY(-50%);
    bottom: auto;
    z-index: 10;
    transition: opacity 0.3s ease;
}

#hero-slide:hover .carousel-control-next,
#hero-slide:hover .carousel-control-prev {
    opacity: 1;
}

#hero-slide .carousel-control-next {
    right: 22px;
    left: auto;
}

#hero-slide .carousel-control-prev {
    right: auto;
    left: 22px;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
    background-color: var(--color-azul-marino);
    border-radius: var(--border-radius-large);
    background-size: 50% 50%;
    width: 60px;
    height: 60px;
}

/* Desktop - pantallas grandes */
@media screen and (min-width: 992px) {
    .carousel-image {
        height: calc(100vh - 350px);
        max-height: 500px;
        min-height: 400px;
    }

    #hero-slide .carousel-caption {
        padding: 60px 80px;
    }

    #hero-slide .carousel-caption h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    #hero-slide .carousel-caption p {
        font-size: 1.1rem;
        line-height: 1.7;
    }
}

@media screen and (max-width: 1170px) {
    .carousel-image {
        height: 500px;
        object-fit: cover;
    }
}

@media screen and (max-width: 991px) {
    .hero-section-full-height {
        height: auto;
        max-height: calc(100vh - 120px);
    }

    .carousel-image {
        opacity: 1;
        min-height: 350px;
        height: calc(100vh - 350px);
        max-height: 450px;
    }

    #hero-slide .carousel-item {
        height: auto;
        max-height: calc(100vh - 120px);
    }

    #hero-slide .carousel-caption {
        clip-path: none;
        width: 100%;
        padding: 40px 30px;
        min-height: inherit;
        position: relative;
        bottom: auto;
        right: auto;
        left: auto;
        background: var(--white-color);
    }

    #hero-slide .carousel-caption h1 {
        font-size: 2rem;
        color: var(--secondary-color);
    }

    #hero-slide .carousel-caption p {
        color: var(--p-color);
    }
}

@media screen and (max-width: 580px) {
    .hero-section-full-height,
    #hero-slide .carousel-item {
        min-height: auto;
        height: auto;
        max-height: calc(100vh - 100px);
    }

    .carousel-image {
        min-height: 300px;
        height: calc(100vh - 400px);
        max-height: 350px;
        object-fit: cover;
    }

    #hero-slide .carousel-caption {
        clip-path: none;
        width: 100%;
        padding: 25px 20px;
        min-width: inherit;
        min-height: inherit;
        text-align: left;
        position: relative;
        bottom: auto;
        right: auto;
        left: auto;
        background: var(--white-color);
    }

    #hero-slide .carousel-caption h1 {
        font-size: 1.75rem;
        margin-bottom: 15px;
        color: var(--secondary-color);
    }

    #hero-slide .carousel-caption p {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--p-color);
    }

    .carousel-control-next-icon,
    .carousel-control-prev-icon {
        width: 45px;
        height: 45px;
    }
}

@media screen and (max-width: 360px) {
    .carousel-control-next-icon,
    .carousel-control-prev-icon {
        width: 35px;
        height: 35px;
    }
}

.navbar {
    padding: 1rem 0;
    background-color: var(--color-blanco) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
}

.navbar-brand img.logo {
    max-height: 70px;
    width: auto;
}

.navbar-brand span {
    display: flex;
    flex-direction: column;
    color: var(--color-azul-marino);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
}

.navbar-brand small {
    color: var(--color-naranja);
    font-weight: 500;
    font-size: 0.7rem;
    margin-top: 2px;
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    color: var(--color-azul-marino) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--color-naranja) !important;
}

.nav-item.ms-3 .nav-link {
    padding: 0.5rem 1.5rem !important;
}

@media (max-width: 991px) {
    /* Ajustar navbar en móviles */
    .navbar {
        position: relative;
    }
    
    .navbar.navbar-scrolled {
        position: relative;
        box-shadow: none;
    }

    .navbar-brand img.logo {
        max-height: 50px;
    }

    .navbar-brand span {
        font-size: 1.3rem;
    }

    .navbar-brand span small {
        font-size: 0.7rem;
    }

    .custom-btn.custom-border-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    .navbar-nav .nav-item.ms-3 {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }

    /* Dropdown en móvil */
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        background: var(--section-bg-color);
        border-radius: 8px;
        margin-top: 5px;
        margin-bottom: 10px;
        padding: 5px 0;
    }

    .navbar-nav .dropdown-item {
        padding: 8px 20px 8px 35px;
        font-size: 0.95rem;
        background: transparent;
        color: var(--color-azul-marino);
    }

    .navbar-nav .dropdown-item:hover {
        padding-left: 40px;
        background: rgba(255, 255, 255, 0.5);
        color: var(--color-naranja);
    }

    .navbar-nav .dropdown-item:focus,
    .navbar-nav .dropdown-item:active,
    .navbar-nav .dropdown-item:visited {
        background: transparent;
        color: var(--color-azul-marino);
    }
}

/* SCROLL TO TOP BUTTON */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--color-azul-marino) 0%, #1e3a5f 100%);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--color-naranja) 0%, #e67e22 100%);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top i {
    font-size: 1.3rem;
    line-height: 1;
}

/* Ajustar posición si hay botones flotantes */
.floating-buttons ~ .scroll-to-top {
    bottom: 180px;
}

/* FLOATING BUTTONS CONTAINER */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

/* Botón de Tavadic del Rio */
.btn-women-help {
    position: relative;
    display: block;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    cursor: pointer;
}

.btn-women-help img {
    position: absolute;
    right: 7.5px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    z-index: 2;
}

/* Expansión en hover (desktop) y active (móvil/tablet) */
.btn-women-help:hover,
.btn-women-help.active {
    width: 240px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-women-help:hover img,
.btn-women-help.active img {
    transform: translateY(-50%) scale(1.05);
}

/* Tooltip del botón Albergue */
.btn-tooltip {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%) translateX(-20px);
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    margin-left: 15px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.btn-women-help:hover .btn-tooltip,
.btn-women-help.active .btn-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    transition-delay: 0.1s;
}

/* WHATSAPP FLOTANTE */
.floating-whatsapp {
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-padding {
    padding: 80px 0;
}

.section-bg {
    background-color: #f8f9fa;
}

.custom-block-wrap {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-block-wrap:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.featured-icon {
    font-size: 3rem;
    color: var(--color-azul-marino);
}

.carousel-title {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.8;
}

.carousel-name-title {
    font-weight: bold;
    color: var(--color-naranja);
}

.accordion-button:not(.collapsed) {
    background-color: var(--color-azul-marino);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--color-azul-marino);
}

.contact-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-form .form-control:focus {
    border-color: var(--color-azul-claro);
    box-shadow: 0 0 0 0.2rem rgba(107, 163, 200, 0.25);
}

.custom-btn {
    background: var(--color-azul-marino);
    border-color: var(--color-azul-marino);
    transition: all 0.3s ease;
    color: white;
}

.custom-btn:hover {
    background: var(--color-naranja);
    border-color: var(--color-naranja);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 160, 74, 0.4);
    color: white;
}

.news-section{
    background-color: var(--color-fondo-news);
}

.title-related-news{
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.2;
}

/* CTA: Llamar Ahora */
.cta-section .cta-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-rojo);
    color: #fff !important;
    border: 2px solid transparent;
    border-radius: var(--border-radius-large);
    padding: 12px 20px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(214, 69, 69, 0.25);
    transition: all 0.25s ease;
}

.cta-section .cta-call-btn i {
    font-size: 1.1rem;
}

.cta-section .cta-call-btn:hover {
    background: #c23b3b;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(214, 69, 69, 0.35);
    color: #fff !important;
}

.cta-section .cta-call-btn:focus,
.cta-section .cta-call-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(214, 69, 69, 0.35);
}

/* Same animation for 'Agenda una Cita' button inside CTA */
.cta-section .custom-btn {
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(43, 76, 126, 0.25); /* var(--color-azul-marino) */
}

.cta-section .custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(43, 76, 126, 0.35);
}

.cta-section .custom-btn:focus,
.cta-section .custom-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(43, 76, 126, 0.35);
}

@media (max-width: 768px) {
    .cta-section .cta-call-btn {
        display: block;
        width: 100%;
        text-align: center;
        margin: 10px 0 !important;
        padding: 14px 22px;
        font-size: 1.05rem;
    }
    .cta-section .custom-btn {
        width: 100%;
    }
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }

    .btn-women-help {
        width: 55px;
        height: 55px;
        border-width: 2.5px;
    }

    .btn-women-help img {
        width: 40px;
        height: 40px;
        right: 7.5px;
    }

    /* Permitir expansión en tablets con tap */
    .btn-women-help:hover,
    .btn-women-help.active {
        width: 220px;
    }

    .btn-women-help:hover img,
    .btn-women-help.active img {
        width: 38px;
        height: 38px;
        right: 10px;
    }

    .btn-women-help:hover .btn-tooltip,
    .btn-women-help.active .btn-tooltip {
        font-size: 0.85rem;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
    }

    .btn-whatsapp {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }

    .cta-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px !important;
    }

    .cta-section a {
        display: block;
        margin: 10px 0 !important;
        text-align: center;
    }

    .featured-block {
        margin-bottom: 20px;
    }

    .featured-icon {
        font-size: 2.5rem !important;
    }

    .featured-block-text {
        font-size: 0.95rem;
    }

    .custom-text-box {
        padding: 30px 20px;
    }

    .custom-text-box h3 {
        font-size: 1.5rem;
    }

    .custom-text-box h5 {
        font-size: 1.1rem;
    }

    .certification-badge {
        display: block;
        margin: 10px 0 0 0;
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .centro-evaluador-badge {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        gap: 12px;
    }

    .badge-icon {
        width: 45px;
        height: 45px;
    }

    .badge-icon i {
        font-size: 1.3rem;
    }

    .badge-title {
        font-size: 1rem;
    }

    .badge-text {
        font-size: 0.9rem;
    }

    .slogan-destacado {
        padding: 12px 15px;
        margin: 12px 0;
    }

    .slogan-text {
        font-size: 1.2rem;
    }

    .slogan-text i {
        font-size: 1rem;
        margin: 0 5px;
    }

    .counter-thumb {
        padding: 15px 10px;
    }

    .counter-number,
    .counter-number-text {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    .counter-text {
        font-size: 0.85rem !important;
        margin-top: 8px;
        line-height: 1.3;
        display: block;
    }

    .valores-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
        padding-bottom: 20px;
        width: 100%;
    }

    .valor-flip-card {
        width: 100%;
        min-width: auto;
        height: 220px;
    }

    .valor-flip-front i {
        font-size: 2.4rem !important;
    }

    .valor-flip-front span {
        font-size: 1rem !important;
    }

    .valor-flip-back h5 {
        font-size: 1.2rem !important;
    }

    .valor-flip-back p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .valor-flip-card {
        width: calc(33.333% - 10px);
        min-width: 160px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .valores-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .valor-flip-card {
        width: 100%;
        min-width: auto;
        height: 220px;
    }

    .valor-flip-front i {
        font-size: 2.2rem !important;
    }

    .valor-flip-front span {
        font-size: 0.95rem !important;
    }

    .valor-flip-back {
        padding: 24px 16px !important;
    }

    .valor-flip-back h5 {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }

    .valor-flip-back p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    /* Scroll to top en móviles */
    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }

    .scroll-to-top i {
        font-size: 1.2rem;
    }

    .floating-buttons ~ .scroll-to-top {
        bottom: 160px;
    }

    /* Certification badge en móviles pequeños */
    .certification-badge {
        display: block;
        margin: 8px 0 0 0;
        font-size: 0.7rem;
        padding: 4px 10px;
        text-align: center;
    }

    /* Centro evaluador en móviles pequeños */
    .centro-evaluador-badge {
        padding: 12px;
        gap: 10px;
        margin: 15px 0;
    }

    .badge-icon {
        width: 40px;
        height: 40px;
    }

    .badge-icon i {
        font-size: 1.1rem;
    }

    .badge-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .badge-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    /* Slogan en móviles pequeños */
    .slogan-destacado {
        padding: 10px 10px;
        margin: 10px 0;
    }

    .slogan-text {
        font-size: 1rem;
        line-height: 1.4;
    }

    .slogan-text i {
        font-size: 0.85rem;
        margin: 0 3px;
    }

    /* Contadores en móviles pequeños */
    .counter-thumb {
        padding: 12px 8px;
    }

    .counter-number,
    .counter-number-text {
        font-size: 2rem !important;
    }

    .counter-text {
        font-size: 0.75rem !important;
        margin-top: 6px;
        padding: 0 5px;
        text-align: center;
        width: 100%;
    }
}

/* Móviles extra pequeños - Centrado perfecto */
@media (max-width: 400px) {
    .certification-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
        margin: 6px auto 0;
        max-width: 90%;
    }

    .centro-evaluador-badge {
        padding: 10px;
        gap: 8px;
        margin: 12px 0;
    }

    .badge-icon {
        width: 35px;
        height: 35px;
    }

    .badge-icon i {
        font-size: 1rem;
    }

    .badge-title {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .badge-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .slogan-destacado {
        padding: 8px 8px;
        margin: 8px 0;
    }

    .slogan-text {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .slogan-text i {
        font-size: 0.75rem;
        margin: 0 2px;
    }

    .counter-thumb {
        padding: 15px 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: 100px;
        height: 100%;
    }

    .counter-number,
    .counter-number-text {
        font-size: 1.8rem !important;
        line-height: 1;
    }

    .counter-text {
        font-size: 0.7rem !important;
        margin-top: 10px;
        padding: 0 3px;
        text-align: center;
        width: 100%;
        display: block;
        line-height: 1.2;
    }

    .d-flex.justify-content-center {
        width: 100%;
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    /* Asegurar que ambas columnas tengan la misma altura */
    .row.g-3 {
        align-items: stretch;
    }

    .col-6.col-sm-6 {
        display: flex;
    }
}

/* ANIMACIONES */
.custom-text-box {
    animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.featured-block {
    animation: zoomIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.team-member-card {
    animation: fadeInScale 0.7s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.etapa-card {
    animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px) rotateY(10deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

.custom-block-wrap {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-30px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.valor-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-block:nth-child(1) { animation-delay: 0s; }
.featured-block:nth-child(2) { animation-delay: 0.1s; }
.featured-block:nth-child(3) { animation-delay: 0.2s; }
.featured-block:nth-child(4) { animation-delay: 0.3s; }

.etapa-card:nth-child(1) { animation-delay: 0s; }
.etapa-card:nth-child(2) { animation-delay: 0.1s; }
.etapa-card:nth-child(3) { animation-delay: 0.2s; }
.etapa-card:nth-child(4) { animation-delay: 0.3s; }
.etapa-card:nth-child(5) { animation-delay: 0.4s; }
.etapa-card:nth-child(6) { animation-delay: 0.5s; }

.valor-item:nth-child(1) { animation-delay: 0s; }
.valor-item:nth-child(2) { animation-delay: 0.1s; }
.valor-item:nth-child(3) { animation-delay: 0.2s; }
.valor-item:nth-child(4) { animation-delay: 0.3s; }
.valor-item:nth-child(5) { animation-delay: 0.4s; }
.valor-item:nth-child(6) { animation-delay: 0.5s; }
.valor-item:nth-child(7) { animation-delay: 0.6s; }

.team-member-card:nth-child(1) { animation-delay: 0s; }
.team-member-card:nth-child(2) { animation-delay: 0.15s; }
.team-member-card:nth-child(3) { animation-delay: 0.3s; }

.custom-block-wrap:nth-child(1) { animation-delay: 0s; }
.custom-block-wrap:nth-child(2) { animation-delay: 0.1s; }
.custom-block-wrap:nth-child(3) { animation-delay: 0.2s; }
.custom-block-wrap:nth-child(4) { animation-delay: 0.3s; }
.custom-block-wrap:nth-child(5) { animation-delay: 0.4s; }
.custom-block-wrap:nth-child(6) { animation-delay: 0.5s; }

.custom-block-image,
.about-image,
.custom-text-box-image {
    transition: transform 0.3s ease;
    height: 100%;
    object-fit: cover;
}

.custom-block-wrap:hover .custom-block-image {
    transform: scale(1.05);
}

a[href^="tel:"] {
    color: var(--color-rojo);
    font-weight: 600;
    text-decoration: none;
}

a[href^="tel:"]:hover {
    color: #C13838;
    text-decoration: underline;
}

.badge {
    background-color: var(--color-verde);
    color: white;
    padding: 0.35em 0.65em;
    border-radius: 10px;
}

/* FOOTER */
.site-footer {
    background: #1a1a1a;
    padding: 60px 0 0;
    position: relative;
}

.footer-brand {
    padding-right: 20px;
}

.footer-logo {
    max-width: 160px;
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-social-title {
    color: var(--color-naranja);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.site-footer-title {
    color: var(--color-naranja);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

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

.footer-menu-item {
    margin-bottom: 10px;
}

.footer-menu-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-menu-link:hover {
    color: var(--color-blanco);
}

.footer-certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.footer-cert-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.footer-cert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-cert-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-cert-item:hover img {
    transform: scale(1.1);
}

.footer-legal-links {
    text-align: left;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--color-blanco);
}

.footer-legal-links .separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
}

.footer-emergency {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, var(--color-rojo) 0%, #c13838 100%);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.footer-emergency:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.footer-emergency i {
    font-size: 1.5rem;
    color: white;
    margin-top: 3px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.footer-emergency strong {
    color: white;
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

.footer-emergency p {
    margin: 0;
}

.footer-emergency a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-emergency a:hover {
    text-decoration: underline;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-muted {
    color: #6c757d !important;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    line-height: 1.8;
}

.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.custom-list-item:last-child {
    border-bottom: none;
}

.bi-award,
.bi-people,
.bi-heart-pulse,
.bi-shield-check {
    color: var(--color-azul-marino) !important;
}

.bi-droplet-half,
.bi-capsule,
.bi-heart-half,
.bi-person,
.bi-house-heart,
.bi-palette,
.bi-book,
.bi-heart-pulse {
    color: var(--color-naranja) !important;
}

.bi-award-fill,
.bi-patch-check-fill,
.bi-shield-fill-check,
.bi-star-fill {
    color: var(--color-azul-marino) !important;
}


/* CTA SECTION */
.cta-section h2 {
    color: var(--color-azul-marino);
}

.cta-section a:not(.custom-btn) {
    color: var(--color-rojo);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-section a:not(.custom-btn):hover {
    color: var(--color-naranja);
}

.section-bg {
    background-color: var(--color-gris-claro);
}

h1, h2 {
    color: var(--color-azul-marino);
}

h3, h4, h5 {
    color: var(--color-texto);
}

.lead {
    color: var(--color-texto);
    opacity: 0.8;
}

.custom-text-box-icon {
    color: var(--color-verde) !important;
}

.custom-block:hover {
    border-color: var(--color-azul-claro);
}

/* CERTIFICACIÓN BADGE */
.certification-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-verde) 0%, #20c997 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    vertical-align: middle;
}

.certification-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* CENTRO EVALUADOR BADGE */
.centro-evaluador-badge {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.08) 0%, rgba(26, 58, 82, 0.08) 100%);
    border: 2px solid var(--color-naranja);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.15);
    transition: all 0.3s ease;
}

.centro-evaluador-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.25);
    border-color: var(--color-azul-marino);
}

.badge-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-naranja) 0%, #ff6b35 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(255, 140, 66, 0.3);
}

.badge-icon i {
    font-size: 1.5rem;
    color: white;
}

.badge-content {
    flex: 1;
}

.badge-title {
    color: var(--color-azul-marino);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-text {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.badge-text strong {
    color: var(--color-naranja);
    font-weight: 700;
}

/* Ajustes responsive del Centro Evaluador para <= 932px */
@media (max-width: 932px) {
    .centro-evaluador-badge {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 15px auto;
        max-width: 760px;
    }
    .badge-icon {
        width: 48px;
        height: 48px;
    }
    .badge-icon i {
        font-size: 1.4rem;
    }
    .badge-title {
        font-size: 1.05rem;
    }
    .badge-text {
        font-size: 0.95rem;
        line-height: 1.55;
    }
}

/* SLOGAN DESTACADO */
.slogan-destacado {
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.05) 0%, rgba(91, 193, 172, 0.05) 100%);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.slogan-text {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--color-azul-marino);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
    position: relative;
}

.slogan-text i {
    color: var(--color-naranja);
    font-size: 1.2rem;
    opacity: 0.7;
    margin: 0 8px;
}

/* CONTADORES */

.counter-thumb {
    margin: 20px;
    margin-bottom: 0;
}

.counter-number,
.counter-text {
    color: var(--secondary-color);
    display: block;
}

.counter-number,
.counter-number-text {
    color: var(--color-azul-marino);
    font-size: var(--h1-font-size);
    font-weight: var(--font-weight-bold);
    line-height: normal;
}

.counter-text {
    color: var(--color-naranja);
    font-size: var(--p-font-size);
    font-weight: var(--font-weight-semibold);
    margin-top: 5px;
}

.category-block-link {
    color: var(--color-azul-marino);
    transition: all 0.3s ease;
}

.category-block-link:hover {
    color: var(--color-naranja);
    background-color: rgba(232, 160, 74, 0.1);
}

.custom-btn.custom-border-btn {
    border: 2px solid var(--color-naranja);
    background: linear-gradient(135deg, var(--color-naranja) 0%, #d89040 100%);
    color: white;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(237, 125, 49, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: pulse-border 2s infinite;
}

.custom-btn.custom-border-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.custom-btn.custom-border-btn:hover::before {
    left: 100%;
}

.custom-btn.custom-border-btn:hover {
    background: linear-gradient(135deg, #d89040 0%, var(--color-naranja) 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 125, 49, 0.6);
    border-color: #d89040;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(237, 125, 49, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(237, 125, 49, 0.7), 0 0 0 4px rgba(237, 125, 49, 0.2);
    }
}

/* FEATURED BLOCKS */
.featured-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(107, 163, 200, 0.2);
}

.featured-icon {
    font-size: 3rem;
    color: var(--color-azul-marino);
    transition: all 0.3s ease;
}

.featured-block:hover .featured-icon {
    transform: scale(1.1);
}

.featured-block-text {
    color: var(--color-azul-marino);
    font-weight: 500;
}

.featured-block:hover .bi-award.featured-icon {
    color: var(--color-naranja) !important;
}

.featured-block:hover .bi-people.featured-icon {
    color: var(--color-azul-claro) !important;
}

.featured-block:hover .bi-heart-fill.featured-icon {
    color: var(--color-rojo) !important;
}

.featured-block:hover .bi-shield-check.featured-icon {
    color: var(--color-verde) !important;
}

.col-lg-3:nth-of-type(2) .featured-block:hover {
    box-shadow: 0 5px 20px rgba(232, 160, 74, 0.3);
}

.col-lg-3:nth-of-type(3) .featured-block:hover {
    box-shadow: 0 5px 20px rgba(107, 163, 200, 0.3);
}

.col-lg-3:nth-of-type(4) .featured-block:hover {
    box-shadow: 0 5px 20px rgba(214, 69, 69, 0.3);
}

.col-lg-3:nth-of-type(5) .featured-block:hover {
    box-shadow: 0 5px 20px rgba(155, 194, 92, 0.3);
}

/* VALORES */
.custom-text-box {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--color-naranja);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.custom-text-box .featured-icon {
    color: var(--color-naranja);
}

.custom-text-box h4 {
    color: var(--color-azul-marino);
    font-weight: 700;
    font-size: 1.8rem;
}

.custom-text-box > p {
    color: var(--color-texto);
    font-size: 1.1rem;
}

/* Contenedor de valores en una fila */
.valores-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
}

/* Flip Card Structure */
.valor-flip-card {
    flex: 0 0 auto;
    width: calc(14.28% - 13px); /* 100% / 7 */
    min-width: 140px;
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
}

/* Pantallas grandes - una sola fila */
@media (min-width: 1200px) {
    .valores-container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .valor-flip-card {
        width: calc(14.28% - 13px);
        min-width: 140px;
    }
}

/* Desktop estándar */
@media (min-width: 1025px) and (max-width: 1199px) {
    .valor-flip-card {
        width: calc(25% - 12px);
        min-width: 150px;
    }
}

.valor-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.valor-flip-card:hover .valor-flip-inner,
.valor-flip-card:active .valor-flip-inner,
.valor-flip-card.flipped .valor-flip-inner {
    transform: rotateY(180deg);
}

.valor-flip-front,
.valor-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.valor-flip-front {
    background: var(--white-color);
    border: 2px solid var(--border-color);
}

.valor-flip-front i {
    font-size: 2.5rem;
    color: var(--color-azul-marino);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.valor-flip-front span {
    color: var(--color-azul-marino);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.valor-flip-back {
    background: var(--color-azul-marino);
    color: white;
    transform: rotateY(180deg);
    padding: 25px 15px;
}

.valor-flip-back h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
    text-transform: uppercase;
}

.valor-flip-back p {
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

/* Colores específicos para el reverso de cada valor */
.valor-flip-card:nth-child(1) .valor-flip-back {
    background: var(--color-verde);
}

.valor-flip-card:nth-child(2) .valor-flip-back {
    background: var(--color-azul-claro);
}

.valor-flip-card:nth-child(3) .valor-flip-back {
    background: var(--color-naranja);
}

.valor-flip-card:nth-child(4) .valor-flip-back {
    background: var(--color-azul-marino);
}

.valor-flip-card:nth-child(5) .valor-flip-back {
    background: var(--color-verde);
}

.valor-flip-card:nth-child(6) .valor-flip-back {
    background: var(--color-rojo);
}

.valor-flip-card:nth-child(7) .valor-flip-back {
    background: var(--color-naranja);
}

/* EQUIPO */
.team-member-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(107, 163, 200, 0.2);
}

.team-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-azul-claro) 0%, var(--color-azul-marino) 100%);
    padding: 20px;
}

.team-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.team-member-card:hover .team-image {
    transform: scale(1.05);
    border-color: var(--color-naranja);
}

/* Minimal Info Modal */
#info-modal-overlay.info-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
}

#info-modal-overlay[aria-hidden="false"] {
    display: block;
}

.info-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.info-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: 1080px;
    max-height: calc(100vh - 80px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    padding: 22px 24px 20px;
    overflow-y: auto;
    z-index: 2;
}

.info-modal-title {
    margin: 0 0 10px 0;
    color: var(--secondary-color);
    font-size: 1.25rem;
    line-height: 1.3;
}

.info-modal-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--p-color);
}

.info-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #666;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.info-modal-close:hover {
    background: rgba(0,0,0,0.06);
    color: #000;
}

@media (max-width: 480px) {
    .info-modal {
        border-radius: 12px;
        padding: 18px 18px 16px;
    }
    .info-modal-title {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }
    .info-modal-text {
        font-size: 0.98rem;
    }
}

.team-content {
    padding: 25px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-name {
    color: var(--color-azul-marino);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.team-role {
    color: var(--color-naranja);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-description {
    color: var(--color-texto);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .team-image-wrapper {
        height: 250px;
    }

    .team-image {
        width: 180px;
        height: 180px;
    }

    .team-content {
        padding: 20px 15px;
    }
}

/* SERVICIOS */
.custom-block-wrap {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}

.custom-block-wrap:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(107, 163, 200, 0.25);
}

.custom-block-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.custom-block-wrap:hover .custom-block-image {
    transform: scale(1.05);
}

.custom-block {
    position: relative;
    background: white;
}

.custom-block-body {
    padding: 25px 20px;
}

.custom-block-body h5 {
    color: var(--color-azul-marino);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.custom-block-body h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-naranja);
    transition: width 0.3s ease;
}

.custom-block-wrap:hover .custom-block-body h5::after {
    width: 100%;
}

.custom-block-body p {
    color: var(--color-texto);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.custom-block-body .custom-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-block-body .custom-list-item {
    color: var(--color-texto);
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 0;
}

.custom-block-body .custom-list-item i {
    color: var(--color-verde);
    font-size: 1.1rem;
    margin-right: 8px;
}

#section_servicios h2 {
    color: var(--color-azul-marino);
    font-weight: 700;
}

#section_servicios .lead {
    color: var(--color-texto);
    font-size: 1.1rem;
}

/* TRATAMIENTOS */
#section_tratamientos .custom-text-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

#section_tratamientos .custom-text-box h3 {
    color: var(--color-azul-marino);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

#section_tratamientos .custom-text-box h3 i {
    color: var(--color-naranja);
}

#section_tratamientos .custom-text-box h5 {
    color: var(--color-azul-marino);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

#section_tratamientos .custom-text-box p {
    color: var(--color-texto);
    line-height: 1.7;
}

#section_tratamientos .custom-list-item i {
    color: var(--color-verde);
}

#section_tratamientos img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#section_tratamientos img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(107, 163, 200, 0.25);
}

/* TERAPIAS */
.terapia-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.terapia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--color-azul-marino), var(--color-naranja));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terapia-card:hover::before {
    opacity: 1;
}

.terapia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.terapia-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.terapia-card:hover .terapia-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.terapia-icon i {
    font-size: 2.5rem;
    color: white;
}

.terapia-icon.individual {
    background: linear-gradient(135deg, var(--color-azul-marino) 0%, #1e3a5f 100%);
}

.terapia-icon.grupal {
    background: linear-gradient(135deg, var(--color-azul-claro) 0%, #5a92b8 100%);
}

.terapia-icon.familiar {
    background: linear-gradient(135deg, var(--color-verde) 0%, #8ab050 100%);
}

.terapia-icon.ocupacional {
    background: linear-gradient(135deg, var(--color-naranja) 0%, #d89040 100%);
}

.terapia-icon.psicoeducativa {
    background: linear-gradient(135deg, var(--color-rojo) 0%, #c13838 100%);
}

.terapia-icon.holistica {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.terapia-title {
    color: var(--color-azul-marino);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.terapia-subtitle {
    color: var(--color-naranja);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
    font-style: italic;
}

.terapia-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.terapia-list li {
    color: var(--color-texto);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terapia-list li i {
    color: var(--color-verde);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .terapia-card {
        padding: 30px 25px;
    }

    .terapia-icon {
        width: 80px;
        height: 80px;
    }

    .terapia-icon i {
        font-size: 2rem;
    }

    .terapia-title {
        font-size: 1.15rem;
    }

    .terapia-subtitle {
        font-size: 0.9rem;
    }

    .terapia-list li {
        font-size: 0.9rem;
    }
}

/* FAQ */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: white;
    border: 1px solid var(--color-azul-claro);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    cursor: pointer;
    position: relative;
}

.faq-icon {
    color: var(--color-blanco);
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: var(--color-azul-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(43, 76, 126, 0.2);
    transition: all 0.3s ease;
}

.faq-item:hover .faq-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(43, 76, 126, 0.3);
}

.faq-icon i {
    font-size: 1.5rem;
    color: white;
}

.faq-question h4 {
    flex: 1;
    color: var(--color-azul-marino);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.faq-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: none;
    background: var(--color-gris-claro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-toggle i {
    font-size: 1.2rem;
    color: var(--color-azul-marino);
    transition: transform 0.3s ease;
}

.faq-toggle:hover {
    background: var(--color-naranja);
}

.faq-toggle:hover i {
    color: white;
}

.faq-item .faq-answer.show + .faq-question .faq-toggle i,
.faq-answer.show ~ .faq-question .faq-toggle i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px 0 110px;
    transition: all 0.3s ease;
}

.faq-answer.show {
    padding-bottom: 25px;
}

.faq-answer p {
    color: var(--color-texto);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

.faq-answer strong {
    color: var(--color-azul-marino);
    font-weight: 600;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 20px;
        gap: 15px;
    }

    .faq-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .faq-icon i {
        font-size: 1.25rem;
    }

    .faq-question h4 {
        font-size: 1rem;
    }

    .faq-toggle {
        width: 35px;
        height: 35px;
        min-width: 35px;
    }

    .faq-toggle i {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 20px 0 85px;
    }

    .faq-answer.show {
        padding-bottom: 20px;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }
}

/* TESTIMONIOS */
#section_testimonios {
    background: linear-gradient(135deg, var(--color-gris-claro) 0%, #e8f4f8 100%);
    position: relative;
}

#section_testimonios h2 {
    color: var(--color-azul-marino);
    font-weight: 700;
    font-size: 2.2rem;
}

#section_testimonios > .container > .row:first-child p {
    color: var(--color-texto);
    font-size: 1.1rem;
}

#testimonial-carousel {
    position: relative;
}

#testimonial-carousel .carousel-inner {
    padding-bottom: 80px;
}

.testimonial-section .carousel-caption {
    position: static;
    background: white;
    padding: 60px 50px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--color-naranja);
    text-align: left;
    max-width: 100%;
}

.testimonial-section .carousel-title {
    color: var(--color-texto);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    font-style: normal;
    margin-bottom: 30px;
    padding-left: 45px;
    position: relative;
}

.testimonial-section .carousel-title::before {
    content: '"';
    font-size: 3.5rem;
    color: var(--color-naranja);
    opacity: 0.25;
    position: absolute;
    top: -15px;
    left: 0;
    font-family: Georgia, serif;
    line-height: 1;
    font-weight: bold;
}

.testimonial-section .carousel-name {
    display: inline-block;
    background: var(--color-azul-marino);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 45px;
}

.testimonial-section .carousel-name-title {
    color: white;
    font-weight: 700;
}

#testimonial-carousel .carousel-control-prev,
#testimonial-carousel .carousel-control-next {
    position: absolute;
    bottom: 20px;
    top: auto;
    width: 55px;
    height: 55px;
    background: var(--color-azul-marino);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 5;
    border: 3px solid white;
    box-shadow: 0 5px 20px rgba(43, 76, 126, 0.3);
}

#testimonial-carousel .carousel-control-prev {
    right: 85px;
    left: auto;
}

#testimonial-carousel .carousel-control-next {
    right: 20px;
    left: auto;
}

#testimonial-carousel .carousel-control-prev:hover,
#testimonial-carousel .carousel-control-next:hover {
    background: var(--color-naranja);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 160, 74, 0.4);
}

#testimonial-carousel .carousel-control-prev-icon,
#testimonial-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100%;
}

#testimonial-carousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

#testimonial-carousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.testimonial-section .carousel-indicators {
    display: none;
}

/* CERTIFICACIONES */
#section_testimonios h3 {
    color: var(--color-azul-marino);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 10px;
}

#section_testimonios .lead {
    color: var(--color-texto);
    font-size: 1.1rem;
}

.certificacion-item {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    position: relative;
    z-index: 2;
    border: 2px solid transparent;
}

.certificacion-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.certificacion-item i {
    font-size: 4rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: block;
}

.certificacion-item:hover i {
    transform: scale(1.15) rotate(5deg);
}

.certificacion-item p {
    color: var(--color-azul-marino);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

.certificacion-item:nth-child(1) i {
    color: var(--color-naranja);
}

.certificacion-item:nth-child(1):hover {
    border-color: var(--color-naranja);
}

.certificacion-item:nth-child(2) i {
    color: var(--color-azul-claro);
}

.certificacion-item:nth-child(2):hover {
    border-color: var(--color-azul-claro);
}

.certificacion-item:nth-child(3) i {
    color: var(--color-verde);
}

.certificacion-item:nth-child(3):hover {
    border-color: var(--color-verde);
}

.certificacion-item:nth-child(4) i {
    color: var(--color-rojo);
}

.certificacion-item:nth-child(4):hover {
    border-color: var(--color-rojo);
}

/* CONTACTO */
#section_contacto h2 {
    color: var(--color-azul-marino);
    font-weight: 700;
    font-size: 2.2rem;
}

#section_contacto .lead {
    color: var(--color-texto);
    font-size: 1.1rem;
}

.contact-info-wrap {
    background: white;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    border-left: 5px solid var(--color-naranja);
}

.contact-info-wrap h3 {
    color: var(--color-azul-marino);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.contact-info h5 {
    color: var(--color-azul-marino);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
}

.contact-info h5 i {
    color: var(--color-naranja);
    font-size: 1.2rem;
}

.contact-info p {
    color: var(--color-texto);
    line-height: 1.6;
}

.contact-info a {
    color: var(--color-azul-claro);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--color-naranja);
}

.contact-info-wrap .custom-btn {
    background: var(--color-verde);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-info-wrap .custom-btn:hover {
    background: var(--color-azul-marino);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-info-wrap .custom-btn i {
    font-size: 1.2rem;
}

.contact-form {
    background: white;
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: var(--color-azul-marino);
    font-weight: 700;
    font-size: 1.5rem;
}

.contact-form p {
    color: var(--color-texto);
}

.contact-form .form-label {
    color: var(--color-azul-marino);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.contact-form .form-control:focus {
    border-color: var(--color-azul-claro);
    box-shadow: 0 0 0 0.2rem rgba(107, 163, 200, 0.25);
    outline: none;
}

.contact-form select.form-control {
    cursor: pointer;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-check-input {
    border: 2px solid #e0e0e0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.contact-form .form-check-input:checked {
    background-color: var(--color-verde);
    border-color: var(--color-verde);
}

.contact-form .form-check-label {
    color: var(--color-texto);
    margin-left: 8px;
}

.contact-form .form-check-label a {
    color: var(--color-azul-claro);
    text-decoration: underline;
}

.contact-form .form-check-label a:hover {
    color: var(--color-naranja);
}

.contact-form button[type="submit"] {
    background: var(--color-azul-marino);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-form button[type="submit"]:hover {
    background: var(--color-naranja);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(232, 160, 74, 0.4);
}

.contact-form .text-muted {
    color: #999 !important;
    font-size: 0.85rem;
}

@media (max-width: 991px) {
    .contact-info-wrap {
        margin-bottom: 30px;
    }
}

/* BLOG */
#section_blog {
    background: var(--color-gris-claro);
}

#section_blog h2 {
    color: var(--color-azul-marino);
    font-weight: 700;
    font-size: 2.2rem;
}

#section_blog .lead {
    color: var(--color-texto);
    font-size: 1.1rem;
}

.news-block {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.news-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(107, 163, 200, 0.2);
}

.news-block-top {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.news-block:hover .news-image {
    transform: scale(1.05);
}

.news-category-block {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.news-category-block .category-block-link {
    background: var(--color-naranja);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.news-category-block .category-block-link:hover {
    /*background: var(--color-azul-marino);*/
    transform: scale(1.05);
}

.news-block-info {
    padding: 25px 30px;
}

.news-block-date,
.news-block-author {
    color: var(--color-texto);
    font-size: 0.9rem;
}

.news-block-date i,
.news-block-author i {
    color: var(--color-azul-claro);
}

.news-block-title h4 {
    margin: 15px 0;
}

.news-block-title-link {
    color: var(--color-azul-marino);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-block-title-link:hover {
    color: var(--color-naranja);
}

.news-block-body p {
    color: var(--color-texto);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Article Title and Meta */
.article-title {
    color: var(--color-azul-marino);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.article-meta .badge {
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.article-meta .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(232, 160, 74, 0.3);
}

.article-meta span {
    font-size: 0.95rem;
}

.article-meta i {
    color: var(--color-azul-claro);
}

/* Article Content Styles */
.news-article-content {
    color: var(--color-texto);
    font-size: 1.05rem;
    line-height: 1.8;
}

.news-article-content p {
    margin-bottom: 1.5rem;
}

.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
    color: var(--color-azul-marino);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.news-article-content h2 {
    font-size: 1.75rem;
    border-bottom: 3px solid var(--color-naranja);
    padding-bottom: 0.5rem;
}

.news-article-content h3 {
    font-size: 1.5rem;
}

.news-article-content h4 {
    font-size: 1.25rem;
}

.news-article-content ul,
.news-article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-article-content li {
    margin-bottom: 0.5rem;
}

.news-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-article-content blockquote {
    border-left: 4px solid var(--color-naranja);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-azul-marino);
    background: rgba(232, 160, 74, 0.05);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
}

.news-article-content a {
    color: var(--color-azul-claro);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.news-article-content a:hover {
    color: var(--color-naranja);
}

.news-article-content strong {
    color: var(--color-azul-marino);
    font-weight: 700;
}

.news-article-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--color-rojo);
}

.news-article-content pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* Gallery Styles */
.gallery-item {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.gallery-item-wrapper {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-wrapper {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 82, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

#section_blog .bg-light {
    background: white !important;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--color-rojo);
}

#section_blog .bg-light h5 {
    color: var(--color-azul-marino);
    font-weight: 700;
}

#section_blog .bg-light p {
    color: var(--color-texto);
    line-height: 1.6;
}

#section_blog .bg-light .custom-btn {
    background: var(--color-rojo);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#section_blog .bg-light .custom-btn:hover {
    background: var(--color-azul-marino);
    transform: translateY(-2px);
}

.category-block {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.category-block h5 {
    color: var(--color-azul-marino);
    font-weight: 700;
    margin-bottom: 20px;
}

.category-block .category-block-link {
    background: transparent;
    color: var(--color-azul-marino);
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.category-block .category-block-link:hover {
    background: var(--color-azul-claro);
    color: white;
    border-color: var(--color-azul-claro);
    transform: translateX(5px);
}

.category-block .category-block-link.active {
    background: var(--color-azul-marino);
    color: white;
    border-color: var(--color-azul-marino);
    font-weight: 600;
}

.category-block .category-block-link.active .badge {
    background: var(--color-naranja);
}

.category-block .badge {
    background: var(--color-naranja);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background: white;
    color: var(--color-azul-marino);
    font-weight: 600;
    padding: 15px 20px;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: var(--color-azul-marino);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    filter: brightness(0) saturate(100%) invert(21%) sepia(28%) saturate(1574%) hue-rotate(183deg) brightness(95%) contrast(88%);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    background: white;
    color: var(--color-texto);
    padding: 20px;
    line-height: 1.7;
}

.site-footer-bottom {
    background: #2c4c7e;
    padding: 20px 0;
    margin-top: 50px;
}

.site-footer-bottom .copyright-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.site-footer-bottom .copyright-text a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin-bottom: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer-bottom .copyright-text a:hover {
    color: var(--color-blanco);
    text-decoration: underline;
}

.site-footer-bottom .copyright-text strong {
    color: var(--color-blanco);
    font-weight: 600;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.footer-tagline i {
    color: var(--color-rojo);
    margin-right: 5px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
}

.footer-social .social-icon {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 10px;
}

.footer-social .social-icon-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.footer-social .social-icon-link:hover {
    color: var(--color-blanco);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.certifications-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--color-gris-claro);
    border-left: 5px solid var(--color-naranja);
}

.certifications-title {
    color: var(--color-azul-marino);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.certifications-title i {
    color: var(--color-verde);
    font-size: 1.8rem;
}

.certification-description {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.certification-description strong {
    color: var(--color-naranja);
    font-weight: 700;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
}

.certification-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: var(--color-gris-claro);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--color-verde);
    background: white;
}

.certification-logo {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 10px;
    overflow: hidden;
    position: relative;
}

.certification-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.certification-item:hover .certification-logo img {
    filter: grayscale(0%);
    transform: scale(1.3);
}

.certification-name {
    color: var(--color-azul-marino);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.3;
}

@media (max-width: 991px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .certifications-section {
        padding: 30px 20px;
    }

    .certification-logo {
        height: 100px;
    }
}

@media (max-width: 576px) {
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .certification-logo {
        height: 80px;
    }

    .certifications-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 991px) {
    .site-footer {
        padding: 50px 0 0;
    }

    .footer-brand {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .footer-certifications-grid {
        margin-top: 20px;
    }

    .site-footer-bottom {
        margin-top: 40px;
        padding: 18px 0;
    }

    .footer-tagline {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding: 40px 0 0;
    }

    .footer-logo {
        max-width: 140px;
    }

    .footer-description {
        font-size: 0.85rem;
    }

    .footer-social .social-icon {
        justify-content: flex-start;
    }

    .footer-social .social-icon-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .site-footer-title {
        font-size: 0.8rem;
    }

    .footer-menu-link {
        font-size: 0.85rem;
    }

    .footer-certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .footer-cert-item {
        height: 90px;
        padding: 15px;
    }

    .footer-legal-links {
        font-size: 0.8rem;
    }

    .site-footer-bottom {
        padding: 15px 0;
    }

    .copyright-text,
    .footer-tagline {
        font-size: 0.8rem;
    }
}

/* ETAPAS */
.etapa-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: visible;
    animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 5px solid var(--color-azul-marino);
}

.etapa-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(43, 76, 126, 0.2);
    border-left-width: 8px;
}

.etapa-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.etapa-number {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.etapa-card:hover .etapa-number {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.etapa-number span {
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.etapa-header-text {
    flex: 1;
    text-align: left;
}

.etapa-label {
    display: block;
    color: var(--color-naranja);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.etapa-title {
    color: var(--color-azul-marino);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.3;
}

.etapa-description {
    color: var(--color-texto);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .etapa-card {
        padding: 30px 25px;
    }

    .etapa-header {
        gap: 15px;
    }

    .etapa-number {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .etapa-number span {
        font-size: 1.75rem;
    }

    .etapa-label {
        font-size: 0.75rem;
    }

    .etapa-title {
        font-size: 1rem;
    }

    .etapa-description {
        font-size: 0.95rem;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Compensar altura del navbar fijo */
}

.text-primary,
.bg-primary,
.btn-primary {
    color: var(--color-azul-claro) !important;
    background-color: var(--color-azul-claro) !important;
    border-color: var(--color-azul-claro) !important;
}

a {
    color: var(--color-azul-marino);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-naranja);
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 0;
    }

    .site-header .col-lg-8 {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
    }

    .site-header p {
        font-size: 0.85rem;
    }

    .site-header .social-icon-link {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

.hero-section .carousel-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: auto;
    width: 60%;
    min-height: 200px;
    padding: 3rem 3rem 3rem 4rem;
    background: rgba(255, 255, 255, 0.98);
    text-align: right;
    z-index: 10;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.hero-section .carousel-caption h1 {
    color: var(--color-azul-marino);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: none;
    line-height: 1.2;
}

.hero-section .carousel-caption p {
    color: var(--color-texto);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0;
    text-shadow: none;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .hero-section .carousel-caption {
        width: 70%;
        padding: 2rem 2rem 2rem 3rem;
        min-height: 180px;
    }

    .hero-section .carousel-caption h1 {
        font-size: 2rem;
    }

    .hero-section .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section .carousel-caption {
        width: 80%;
        padding: 2rem 1.5rem 2rem 2.5rem;
        min-height: 160px;
        clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    .hero-section .carousel-caption h1 {
        font-size: 1.75rem;
    }

    .hero-section .carousel-caption p {
        font-size: 0.95rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-meta {
        gap: 2 !important;
    }
}

@media (max-width: 576px) {
    .hero-section .carousel-caption {
        width: 90%;
        padding: 1.5rem 1.5rem 1.5rem 2rem;
        min-height: 140px;
        clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    .hero-section .carousel-caption h1 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .hero-section .carousel-caption p {
        font-size: 0.85rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-meta span {
        font-size: 0.85rem;
    }

    .article-meta .badge {
        font-size: 0.8rem;
    }
}

.carousel-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(0.9);
}

/* TIRAS DECORATIVAS */
.color-stripe-top {
    position: relative;
}

.color-stripe-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right,
        var(--color-verde) 0%,
        var(--color-verde) 25%,
        var(--color-azul-claro) 25%,
        var(--color-azul-claro) 50%,
        var(--color-naranja) 50%,
        var(--color-naranja) 75%,
        var(--color-rojo) 75%,
        var(--color-rojo) 100%);
    z-index: 5;
}

.color-stripe-bottom {
    position: relative;
}

.color-stripe-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right,
        var(--color-verde) 0%,
        var(--color-verde) 25%,
        var(--color-azul-claro) 25%,
        var(--color-azul-claro) 50%,
        var(--color-naranja) 50%,
        var(--color-naranja) 75%,
        var(--color-rojo) 75%,
        var(--color-rojo) 100%);
    z-index: 5;
}

@media (max-width: 576px) {
    /* Floating buttons - tamaños más pequeños */
    .btn-women-help {
        width: 50px;
        height: 50px;
        border-width: 2px;
        padding-right: 5px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        user-select: none;
        -webkit-user-select: none;
    }

    .btn-women-help img {
        width: 36px;
        height: 36px;
        pointer-events: none;
    }

    /* Permitir expansión con tap en móviles */
    .btn-women-help {
        padding: 0;
    }
    
    .btn-women-help img {
        right: 7px;
    }
    
    .btn-women-help.active {
        width: 200px;
    }

    .btn-women-help.active img {
        width: 34px;
        height: 34px;
        right: 8px;
    }

    .btn-women-help.active .btn-tooltip {
        font-size: 0.75rem;
        left: 8px;
        right: 42px;
        top: 50%;
        transform: translateY(-50%);
        white-space: normal;
        line-height: 1.2;
        pointer-events: none;
        text-align: left;
    }

    .btn-women-help:hover:not(.active) {
        width: 50px;
        height: 50px;
    }

    .btn-women-help:hover:not(.active) .btn-tooltip {
        opacity: 0;
    }

    .btn-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }

    .floating-buttons {
        gap: 10px;
    }

    .floating-buttons ~ .scroll-to-top {
        bottom: 140px;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    h4 {
        font-size: 1.1rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    .custom-block-wrap {
        margin-bottom: 20px;
    }

    .custom-block-image {
        height: 200px;
    }

    .custom-block h5 {
        font-size: 1.1rem;
    }

    .valor-item {
        padding: 15px 10px !important;
    }

    .valor-item i {
        font-size: 1.5rem !important;
    }

    .valor-item strong {
        font-size: 0.85rem !important;
    }

    .news-block-title h4 {
        font-size: 1.1rem;
    }

    .news-block-body p {
        font-size: 0.9rem;
    }

    .carousel-title {
        font-size: 1.1rem !important;
    }

    .carousel-name {
        font-size: 0.85rem !important;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 0.95rem;
    }

    .contact-form label {
        font-size: 0.9rem;
    }

    .custom-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .custom-text-box-image {
        margin-bottom: 20px;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .mt-5 {
        margin-top: 2rem !important;
    }
}

@media (max-width: 400px) {
    .navbar-brand span {
        font-size: 1rem !important;
    }

    .navbar-brand span small {
        font-size: 0.6rem !important;
    }

    .custom-btn.custom-border-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .featured-icon {
        font-size: 2rem !important;
    }

    .featured-block-text {
        font-size: 0.85rem !important;
    }

    .counter-number {
        font-size: 2rem !important;
    }

    .counter-text {
        font-size: 0.8rem !important;
    }

    .terapia-icon {
        width: 70px !important;
        height: 70px !important;
    }

    .terapia-icon i {
        font-size: 2rem !important;
    }

    .terapia-title {
        font-size: 1.1rem !important;
    }

    .etapa-number {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }

    .etapa-title {
        font-size: 1rem !important;
    }

    .footer-logo {
        max-width: 120px !important;
    }

    .footer-description {
        font-size: 0.8rem !important;
    }

    .site-footer-title {
        font-size: 0.75rem !important;
    }

    .footer-menu-link {
        font-size: 0.8rem !important;
    }

    .footer-cert-item {
        height: 70px !important;
        padding: 12px !important;
    }
}
