html,
body {
    overflow-x: hidden !important;
    width: 100%;
}

body {
    padding-top: 76px;
    overflow-y: clip;
}

.modal-open {
    padding-right: 0 !important;
}

/* --- Loading general --- */
.loadable {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(0, 49, 91, 0.15), transparent 30%),
        radial-gradient(circle at bottom left, rgba(32, 102, 162, 0.12), transparent 30%),
        rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

/* CARD PRINCIPAL */
.enterprise-loader {
    position: relative;
    width: min(90%, 420px);
    padding: 45px 35px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.10),
        0 2px 12px rgba(0, 49, 91, 0.08);
    backdrop-filter: blur(20px);
    overflow: hidden;
    text-align: center;
}

/* EFECTO BRILLO */
.enterprise-loader::before {
    content: "";
    position: absolute;
    inset: -150%;
    background:
        linear-gradient(120deg,
            transparent 40%,
            rgba(255, 255, 255, 0.55) 50%,
            transparent 60%);
    animation: shine 3s linear infinite;
}

/* LOGO */
.loader-logo {
    width: 170px;
    max-width: 80%;
    position: relative;
    z-index: 2;
    margin-bottom: 28px;
    animation: floatLogo 3s ease-in-out infinite;
}

/* CÍRCULO ANIMADO */
.loader-ring {
    position: absolute;
    top: 28px;
    left: 50%;
    width: 180px;
    height: 180px;
    transform: translateX(-50%);
    border-radius: 50%;
    border:
        3px solid rgba(32, 102, 162, 0.08);
    border-top:
        3px solid #008B2D;
    animation: rotateRing 1.2s linear infinite;
}

/* CONTENIDO */
.loader-content {
    position: relative;
    z-index: 2;
}

/* TITULO */
.loader-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #008B2D;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* SUBTITULO */
.loader-subtitle {
    font-family: 'Montserrat', sans-serif;
    color: #6B7280;
    font-size: 0.95rem;
    margin-bottom: 24px;
    letter-spacing: .5px;
}

/* BARRA */
.loader-progress {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 30px;
    overflow: hidden;
}

/* ANIMACION BARRA */
.loader-progress-bar {
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(90deg,
            #008B2D,
            #003C14);
    animation: loadingBar 1.5s ease-in-out infinite;
}

/* =========================
   ANIMACIONES
========================= */

@keyframes rotateRing {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes loadingBar {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(320%);
    }
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes shine {
    0% {
        transform: rotate(25deg) translateX(-100%);
    }

    100% {
        transform: rotate(25deg) translateX(100%);
    }
}

.loadable.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: all .5s ease;
}

/****** FIN LOADING GENERAL ******/

.banner_lateral_izquierdo {
    position: fixed;
    top: 200px;
    left: 0;
    z-index: 1000;
    width: 14vw;
    max-width: 210px;
    min-width: 120px;
    height: auto;
    box-shadow: 8px 20px 30px grey;
    border-radius: 9px;
}

/* Ajuste para móviles */
@media (max-width: 576px) {
    .banner_lateral_izquierdo {
        width: 30vw;
        top: 150px;
    }
}

/* Ajuste para tablets */
@media (max-width: 992px) {
    .banner_lateral_izquierdo {
        width: 22vw;
        top: 170px;
    }
}

/* Ajuste para pantallas grandes */
@media (min-width: 1400px) {
    .banner_lateral_izquierdo {
        width: 200px;
        top: 200px;
    }
}

.banner_lateral_derecho {
    position: fixed;
    top: 200px;
    right: 0;
    z-index: 1000;
    width: 14vw;
    max-width: 210px;
    min-width: 120px;
    height: auto;
    box-shadow: -8px 20px 30px rgb(1, 109, 33);
    border-radius: 9px;
}

/* Ajuste para móviles */
@media (max-width: 576px) {
    .banner_lateral_derecho {
        width: 30vw;
        top: 150px;
    }
}

/* Ajuste para tablets */
@media (max-width: 992px) {
    .banner_lateral_derecho {
        width: 22vw;
        top: 170px;
    }
}

/* Ajuste para pantallas grandes */
@media (min-width: 1400px) {
    .banner_lateral_derecho {
        width: 200px;
        top: 200px;
    }
}

/****** BLOQUE NAVBAR ******/
.custom-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background:
        rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    border-bottom:
        1px solid rgba(0, 0, 0, .06);
    padding: 10px 24px;
}

.custom-navbar .container-fluid {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ===== ZONA LOGOS ===== */
.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
}


/* LOGO FIJO */
.logo {
    height: 58px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

/* LINEA */
.brand-divider {
    width: 1px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, .1);
}

.center-logo {
    height: 52px;
    width: auto;
    flex: 1;
    min-width: 0;
    max-width: none;
    object-fit: contain;
    object-position: left center;
}

/* MENU A LA DERECHA */
.navbar-collapse {
    flex: 0 0 auto;
}

/* NAV */
.navbar-nav {
    gap: 12px;
}

/* LINKS */
.nav_opciones,
.event-dropdown {
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    border: none;
    background: transparent;
    padding: 10px 14px;
    border-radius: 12px;
    transition: .25s;
}

.nav_opciones:hover,
.event-dropdown:hover {
    background:
        rgba(0, 139, 45, .08);
    color: #008B2D;
}

/* LOGIN */
.nav_login {
    font-weight: 700;
    color: #6b7280 !important;
}

.nav_login:hover {
    color: #008B2D !important;
}

/* BOTON */
.btn-nav-primary {
    background:
        linear-gradient(135deg,
            #008B2D,
            #006d24);
    color: white !important;
    border-radius: 14px;
    padding: 11px 18px !important;
    box-shadow:
        0 8px 20px rgba(0, 139, 45, .22);
    transition: .25s;
}

.btn-nav-primary:hover {
    transform:
        translateY(-2px);
    color: white !important;
}

/* MENUS */
.event-menu,
.lang-menu {
    border: none;
    border-radius: 16px;
    padding: 8px;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, .08);
}

.event-item,
.lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 600;
    transition: .2s;
}

.event-item:hover,
.lang-item:hover {
    background:
        rgba(0, 139, 45, .08);
    color: #008B2D;
}

.lang-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
}

.lang-icon {
    width: 18px;
    height: 18px;
    object-fit: cover;
}

/* HAMBURGUESA */
.navbar-toggler {
    border: none;
}

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

/* ===== RESPONSIVE ===== */
@media(max-width:1199px) {

    .center-logo,
    .brand-divider {
        display: none;
    }

    .logo {
        height: 44px;
    }

    .navbar-collapse {
        margin-top: 20px;
        padding: 20px;
        border-radius: 20px;
        background: white;
        box-shadow:
            0 10px 35px rgba(0, 0, 0, .08);
        flex-basis: 100%;
    }
}

/****** FIN NAVBAR ******/

.btn-preventa {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(to bottom, #008B2D, #224116);
    /* verde degradado */
    color: white;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    /* bordes redondeados */
    box-shadow: 0 5px 0 #1f3416, 0 5px 10px rgba(0, 0, 0, 0.2);
    /* sombra inferior */
    transition: all 0.2s ease;
}

.btn-preventa:hover {
    background-color: #e68900;
    /* color hover */
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.text_banner {
    font-weight: 800;
    margin-bottom: 0 !important;
}

.badge-sectors {
    width: 150px;
    height: 150px;
    margin-bottom: 50px;
}

.badge-sectors p {
    font-size: 1rem;
}

.badge-space {
    padding-inline: 10rem;
}

@media (max-width: 768px) {
    .badge-sectors {
        width: 100px;
        height: 100px;
    }

    .badge-sectors p {
        font-size: 0.8rem;
    }

    .badge-space {
        padding-inline: 5rem;
    }

    .badge-img img {
        width: 100px;
        height: 100px;
    }
}

.badges-container {
    display: contents;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

.badges-container-img {
    display: contents;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    gap: 25px;
}

.badge img {
    width: 150px;
    height: 150px;
}

.badge-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 25px;
}

.badge-img img {
    width: 150px;
    height: 150px;
}

.badge p {
    font-size: 1rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: black;
}

.badge-img p {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgb(92, 92, 92);
}

/* TEXTOS */
/* CONTENEDOR */
.titulo-container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* TÍTULO VERDE */
.titulo-verde {
    font-weight: 800 !important;
    font-size: clamp(1.4rem, 5vw, 4rem);
    color: #008B2D !important;
    line-height: 1.2;
    margin: 0 auto;
    max-width: 1600px;
    word-break: break-word;
}

/* SUBTÍTULO VERDE */
.subtitulo-verde {
    font-weight: 400 !important;
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    color: #008B2D !important;
    line-height: 1.2;
    margin: 0 auto;
    max-width: 1600px;
    word-break: break-word;
}

/* TÍTULO VERDE FUERTE */
.titulo-verde-fuerte {
    font-weight: 800 !important;
    font-size: clamp(1.4rem, 5vw, 4rem);
    color: #003C14 !important;
    line-height: 1.2;
    margin: 0 auto;
    max-width: 1600px;
    word-break: break-word;
}

/* TÍTULO NEGRO FUERTE */
.titulo-negro-fuerte {
    font-weight: 800 !important;
    font-size: clamp(1.4rem, 5vw, 2.5rem);
    color: #000000 !important;
    line-height: 1.2;
    margin: 0 auto;
    max-width: 1600px;
    word-break: break-word;
}

/* TÍTULO GRIS */
.titulo-gris {
    font-weight: 800 !important;
    font-size: clamp(1.4rem, 5vw, 4rem);
    color: #454545 !important;
    line-height: 1.2;
    margin: 0 auto;
    max-width: 1600px;
    word-break: break-word;
}

/* TÍTULO NEGRO */
.titulo-negro {
    font-weight: 800 !important;
    font-size: clamp(2rem, 8vw, 7rem);
    color: #000000 !important;
    line-height: 1;
    margin: 0 auto;
}

/* PANTALLAS CHICAS */
@media (max-width: 576px) {
    .titulo-verde {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .titulo-verde-fuerte {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .titulo-gris {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .titulo-negro {
        font-size: 2.5rem;
        line-height: 1.1;
    }
}

/* PANTALLAS MEDIANAS */
@media (min-width: 577px) and (max-width: 991px) {
    .titulo-verde {
        font-size: 2.5rem;
    }

    .titulo-verde-fuerte {
        font-size: 2.5rem;
    }

    .titulo-gris {
        font-size: 2.5rem;
    }

    .titulo-negro {
        font-size: 4.5rem;
    }
}

/* PANTALLAS GRANDES */
@media (min-width: 992px) {
    .titulo-verde {
        font-size: 4rem;
    }

    .titulo-verde-fuerte {
        font-size: 4rem;
    }

    .titulo-gris {
        font-size: 4rem;
    }

    .titulo-negro {
        font-size: 7rem;
    }
}

.texto-verde {
    line-height: .9;
    font-weight: 700 !important;
    font-size: 3rem;
    color: #008B2D !important;
}

.texto-gris {
    line-height: .9;
    font-weight: 700 !important;
    font-size: 3rem;
    color: #8E8E8E !important;
}

/* =========================
   LINEA DIVISORA
========================= */

.divider-line {
    width: 70%;
    max-width: 900px;
    height: 2px;
    background-color: #d6d6d6;
    margin: 2rem auto;
    border-radius: 10px;
    opacity: 0.9;
}

/* MOBILE */
@media (max-width: 576px) {
    .divider-line {
        width: 85%;
        margin: 1.5rem auto;
    }
}

/* TABLET */
@media (min-width: 577px) and (max-width: 991px) {
    .divider-line {
        width: 75%;
    }
}

/* PANTALLAS GRANDES */
@media (min-width: 1400px) {
    .divider-line {
        width: 60%;
    }
}

/* ICONOS */
.footer-icons img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease;
}

.footer-icons img:hover {
    transform: scale(1.08);
}

.footer-icon-item {
    text-align: center;
    margin-bottom: 5px;
}

.footer-icon-item p {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.texto-azul-icon {
    line-height: .9;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    color: #3E6485 !important;
}

.texto-azulbajo-icon {
    line-height: .9;
    font-weight: 700 !important;
    font-size: 3rem;
    color: #3E6485 !important;
}

/* IMAGEN CON TEXTO SUPERPUESTO */
.image-container {
    position: relative;
    width: 100%;
}

/* IMAGEN */
.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* TEXTO SUPERPUESTO */
.overlay-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(1.2rem, 6vw, 4rem);
    padding-left: 8%;
    padding-right: 8%;
    line-height: 1.1;
    pointer-events: none;
}

/* =========================
   IMAGEN CON 5 FOTOS
========================= */

.banner-top {
    width: 100%;
    padding-inline: 1rem;
}

.banner-top img {
    width: 100%;
    max-width: 1400px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* MOBILE */
@media (max-width: 576px) {
    .banner-top {
        margin-top: 1rem !important;
        padding-inline: 0.5rem;
    }

    .banner-top img {
        max-width: 100%;
    }
}

/* TABLET */
@media (min-width: 577px) and (max-width: 991px) {
    .banner-top img {
        max-width: 95%;
    }
}

/* DESKTOP */
@media (min-width: 992px) {
    .banner-top img {
        max-width: 1400px;
    }
}

/* =========================
   BOTÓN RESPONSIVO
========================= */

.btn-registro {
    display: inline-block;
    padding: 18px 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2vw, 2.1rem);
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff;
    background: #003C14;
    border-radius: 60px;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(1, 50, 15, 0.35);
    transition: all 0.25s ease-in-out;
    text-decoration: none !important;
    text-align: center;
    max-width: 95%;
    white-space: normal;
}

/* MOBILE */
@media (max-width: 576px) {
    .btn-registro {
        width: 90%;
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 18px;
    }
}

/* TABLET */
@media (min-width: 577px) and (max-width: 991px) {
    .btn-registro {
        padding: 16px 35px;
        font-size: 1.4rem;
    }
}

/* DESKTOP */
@media (min-width: 992px) {
    .btn-registro {
        padding: 18px 50px;
        font-size: 2rem;
    }
}

.btn-registro:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 35px rgba(0, 49, 91, 0.55);
    color: #ffffff;
    background: linear-gradient(135deg, #008B2D 0%, #198754 100%);
}

.btn-registro:active {
    transform: scale(0.97);
}

/* ANIMACIÓN AL BAJAR */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all .6s ease-out;
}

.fade-in-section.appear {
    opacity: 1;
    transform: translateY(0);
}

/* BOTONES DE CAROUSEL */
.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev {
    left: 5px;
}

.carousel-control-next {
    right: 5px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    padding: 18px;
}

/* ===== TABLET (md ≥768px) ===== */
@media (min-width: 768px) {
    .carousel-control-prev {
        left: -20px;
    }

    .carousel-control-next {
        right: -20px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 24px;
    }
}

/* ===== DESKTOP (lg ≥992px) ===== */
@media (min-width: 992px) {
    .carousel-control-prev {
        left: -50px;
    }

    .carousel-control-next {
        right: -50px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 30px;
    }
}

/* =========================
   BLOQUE BENEFICIOS
========================= */

.beneficios-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-inline: 1rem;
}

/* ITEMS */
.beneficio-item {
    flex: 1;
    text-align: center;
}

.beneficio-item p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.3rem, 2vw, 2.5rem);
    line-height: 1.15;
    color: #000000;
}

.beneficio-item span {
    color: #6e737c;
}

/* LINEA DIVISORA */
.beneficio-divider {
    width: 2px;
    height: 90px;
    background-color: #d1d5db;
    border-radius: 10px;
    flex-shrink: 0;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 767px) {

    .beneficios-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .beneficio-divider {
        width: 70%;
        height: 2px;
    }

    .beneficio-item p {
        font-size: 1.5rem;
    }
}

/* =========================
   TABLET
========================= */
@media (min-width: 768px) and (max-width: 991px) {

    .beneficios-wrapper {
        gap: 1.5rem;
    }

    .beneficio-item p {
        font-size: 1.8rem;
    }

    .beneficio-divider {
        height: 70px;
    }
}

/* =========================
   DESKTOP GRANDE
========================= */
@media (min-width: 1400px) {

    .beneficio-item p {
        font-size: 2.7rem;
    }

    .beneficio-divider {
        height: 110px;
    }
}

/* =========================
   CONTACTOS
========================= */

.contactos-container {
    max-width: 1400px;
}

/* CARD */
.contact-card {
    border-radius: 14px;
    background: #f8f9fa;
    transition: all 0.25s ease;
    padding: 1rem;
    min-height: auto;
    max-width: 260px;
    margin: 0 auto;
}

.contact-card:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* NOMBRE */
.contact-card p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* LINKS */
.contact-card a {
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    margin-bottom: 0.3rem;
    word-break: break-word;
}

/* ICONOS */
.contact-card i {
    font-size: 0.9rem;
}

/* COLORES */
.green-name p {
    color: #198754;
}

.red-name p {
    color: #dc3545;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 576px) {
    .contact-card {
        max-width: 100%;
        padding: 1rem;
    }

    .contact-card p {
        font-size: 1rem;
    }

    .contact-card a {
        font-size: 0.85rem;
    }
}

/* =========================
   TABLET
========================= */
@media (min-width: 577px) and (max-width: 991px) {

    .contact-card {
        max-width: 240px;
    }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 1200px) {

    .contact-card {
        max-width: 230px;
        padding: 0.9rem;
    }

    .contact-card p {
        font-size: 0.95rem;
    }

    .contact-card a {
        font-size: 0.78rem;
    }
}

#registrate {
    background-color: #008B2D;
    color: white;
    position: fixed;
    inset-block-end: 20px;
    inset-inline-end: 65px;
    border-radius: 16px;
    font-size: 25px;
}

#ir-arriba {
    background-color: #C01C05;
    color: white;
    position: fixed;
    inset-block-end: 20px;
    inset-inline-end: 20px;
    border-radius: 16px;
    font-size: 25px;
}

/* ESTILOS PARA EL COLLAPSE EN MÓVIL */
@media (max-width: 991px) {

    /* Collapse en columna */
    #mainNavbar {
        padding-top: 15px;
        padding-bottom: 10px;
    }

    #mainNavbar .navbar-nav {
        width: 100%;
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center;
        /* centrar todo */
    }

    /* Enlaces */
    #mainNavbar .nav-link {
        padding: 10px 0;
        font-size: 18px;
        width: 100%;
    }

    /* Botones de idioma */
    #mainNavbar .lang-option {
        width: 100%;
        padding: 8px 12px;
        font-size: 16px;
        border-radius: 6px;
        border: 1px solid #ddd;
        background: #f8f8f8;
        display: flex;
        justify-content: center;
        gap: 8px;
    }
}

/* ======== MODALES ======== */
.custom-modal {
    z-index: 10000;
}

.custom-modal .modal-dialog {
    padding: 1rem;
    margin: auto;
}

/* MODAL COMPACTO */
.modal-compact .modal-dialog {
    max-width: 720px;
}

/* MODAL AMPLIO */
.modal-wide .modal-dialog {
    max-width: 1200px;
}

/* ======== CONTENEDOR MODAL ======== */
.custom-modal-content {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.08);
    max-height: 92vh;
}

/* ======== HEADER MODAL ======== */
.custom-modal-header {
    border: none;
    padding: 1rem 1rem 0;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

/* BOTON CERRAR */
.custom-close {
    background-size: 14px;
    opacity: 1;
    transition: all 0.3s ease;
    filter: brightness(0.5);
}

.custom-close:hover {
    transform: rotate(90deg) scale(1.1);
    filter: brightness(0.2);
}

/* ======== BODY MODAL ======== */
.custom-modal-body {
    padding: 0 1rem 1rem;
    overflow: hidden;
}

/* ======== CAROUSEL ======== */
.custom-carousel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
}

/* ======== IMAGENES ======== */
.custom-carousel-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    object-fit: contain;
    max-height: 78vh;
}

/* ======== CONTROLES ======== */
.custom-control {
    width: 50px;
    height: 50px;
    top: 60%;
    transform: translateY(-50%);
    background-color: transparent !important;
    border: none;
    box-shadow: none;
    opacity: 0.35;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

/* HOVER */
.custom-control:hover {
    opacity: 0.85;
    transform: translateY(-50%) scale(1.05);
    background-color: transparent !important;
}

/* POSICIONES */
.carousel-control-prev.custom-control {
    left: 15px;
}

.carousel-control-next.custom-control {
    right: 15px;
}

/* ICONOS */
.custom-control .carousel-control-prev-icon,
.custom-control .carousel-control-next-icon {
    width: 1.3rem;
    height: 1.3rem;
    filter:
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)) brightness(1.4);
}

/* ======== INDICADORES ======== */
.custom-indicators {
    margin-bottom: 0.8rem;
}

.custom-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50%;
    border: none !important;
    margin: 0 5px !important;
    background-color: rgba(255, 255, 255, 0.35) !important;
    transition: all 0.3s ease;
}

/* HOVER */
.custom-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.7) !important;
}

/* ======== PANTALLAS CHICAS ======== */
@media (max-width: 576px) {
    .custom-modal .modal-dialog {
        margin: 0.5rem;
        padding: 0;
    }

    .modal-compact .modal-dialog,
    .modal-wide .modal-dialog {
        max-width: 100%;
    }

    .custom-modal-content {
        border-radius: 18px;
        max-height: 95vh;
    }

    .custom-modal-header {
        padding: 0.8rem 0.8rem 0;
    }

    .custom-modal-body {
        padding: 0 0.5rem 0.8rem;
    }

    .custom-carousel {
        border-radius: 14px;
    }

    .custom-carousel-img {
        border-radius: 12px;
        max-height: 58vh;
    }

    .custom-control {
        width: 38px;
        height: 38px;
    }

    .carousel-control-prev.custom-control {
        left: 8px;
    }

    .carousel-control-next.custom-control {
        right: 8px;
    }

    .custom-indicators button {
        width: 8px !important;
        height: 8px !important;
    }

    .custom-indicators .active {
        width: 22px !important;
    }
}

/* ======== PANTALLAS MEDIANAS ======== */
@media (max-width: 991px) {

    .modal-compact .modal-dialog,
    .modal-wide .modal-dialog {
        max-width: 95%;
    }

    .custom-modal-content {
        max-height: 90vh;
    }

    .custom-carousel-img {
        max-height: 65vh;
        object-fit: contain;
    }

    .custom-control {
        width: 42px;
        height: 42px;
    }

    .custom-control .carousel-control-prev-icon,
    .custom-control .carousel-control-next-icon {
        width: 1rem;
        height: 1rem;
    }
}

/* ======== PANTALLAS GRANDES ======== */
@media (min-width: 1400px) {
    .modal-wide .modal-dialog {
        max-width: 1280px;
    }

    .modal-compact .modal-dialog {
        max-width: 760px;
    }

    .custom-carousel-img {
        max-height: 82vh;
    }
}

/* ============== MODAL MAPA ============== */
.custom-map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
}

/* IMAGEN */
.custom-map-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    object-fit: contain;
    max-height: 78vh;
    transition: transform 0.4s ease;
}

/* TABLETS */
@media (max-width: 991px) {
    .custom-map-img {
        max-height: 65vh;
    }
}

/* CELULARES */
@media (max-width: 576px) {
    .custom-map-container {
        border-radius: 14px;
    }

    .custom-map-img {
        border-radius: 12px;
        max-height: 58vh;
    }
}

.modal-backdrop.show {
    z-index: 20000 !important;
}

.custom-modal {
    z-index: 20001 !important;
}

/* ==========================
   CARDS EXPANSION STRATEGY
========================== */

.strategy-card {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: .3s ease;
    max-width: 520px;
    margin: auto;
}

.strategy-card:hover {
    transform: translateY(-5px);
}

.strategy-header {
    color: #fff;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    padding: 14px;
    font-size: clamp(1.2rem, 2vw, 2rem);
}

.bg-green {
    background: #009933;
}

.bg-dark-green {
    background: #005d1e;
}

.strategy-body {
    padding: clamp(20px, 3vw, 35px);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.strategy-title {
    color: #009933;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 2.5vw, 2.4rem);
}

.strategy-title.dark {
    color: #005d1e;
}

.strategy-subtitle {
    color: #555;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.strategy-list {
    flex: 1;
    padding-left: 20px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: clamp(.95rem, 1.2vw, 1.1rem);
}

.strategy-list li {
    margin-bottom: 6px;
}

.strategy-btn {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: auto;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: clamp(.9rem, 1.5vw, 1.15rem);
    transition: .3s;
}

.strategy-btn:hover {
    color: #fff;
    transform: scale(1.03);
}

.btn-green {
    background: linear-gradient(180deg, #00a83a, #007c2b);
}

.btn-dark-green {
    background: linear-gradient(180deg, #006c24, #004517);
}

/* ==========================
   POWERED BY
========================== */

.powered-by-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.powered-by-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #4b5563;
    font-size: clamp(1rem, 2vw, 1.8rem);
    line-height: 1;
}

.powered-by-logo {
    width: auto;
    height: clamp(35px, 5vw, 80px);
    object-fit: contain;
}

/* CELULARES */
@media (max-width:576px) {
    .powered-by-container {
        gap: 8px;
    }
    .powered-by-logo {
        height: 35px;
    }
}

/* TABLETS */
@media (min-width:577px) and (max-width:991px) {
    .powered-by-logo {
        height: 50px;
    }
}

/* DESKTOP */
@media (min-width:992px) {
    .powered-by-logo {
        height: 70px;
    }
}

/* ==========================
   WHY MEXICO
========================== */

.why-mexico-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0rem 1rem;
    text-align: center;
}

.why-mexico-slogan h2 {
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 4.5rem);
}

.why-mexico-slogan span:first-child {
    color: #00b140;
}

.why-mexico-slogan span:last-child {
    color: #005d1e;
}

.why-mexico-slogan .dark-green {
    color: #005d1e;
    margin-top: .4rem;
}

.why-divider {
    width: 100%;
    height: 1px;
    background: #d9d9d9;
    margin: 4rem auto;
}

.why-title {
    color: #005d1e;
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(2rem, 4vw, 4rem);
    margin-bottom: 3rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.why-item {
    padding: 0 1.5rem;
    text-align: left;
    font-size: clamp(1rem, 1.5vw, 2rem);
    color: #3d3d3d;
    line-height: 1.3;
    min-height: 130px;
    display: flex;
    align-items: flex-start;
    border-right: 1px solid #d9d9d9;
}

.why-item:last-child {
    border-right: none;
}

.why-contact {
    margin-top: 4rem;
}

.why-contact-label {
    color: #777;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: .5rem;
}

.why-contact-info {
    color: #555;
    font-size: clamp(1.1rem, 1.8vw, 2rem);
    margin: 0;
}

.why-contact-info strong {
    font-size: clamp(1.5rem, 2vw, 2.5rem);
}

.contact-phone::before {
    content: " | ";
}

.contact-email::before {
    content: " | ";
}

/* ==========================
   TABLET
========================== */

@media (max-width:991px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .why-item {
        border-right: none;
        border-left: 3px solid #d9d9d9;
        min-height: auto;
        padding-left: 1rem;
    }
}

/* ==========================
   MOBILE
========================== */

@media (max-width:576px) {
    .why-mexico-section {
        padding: 3rem 1rem;
    }
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .why-item {
        text-align: center;
        border-left: none;
        border-bottom: 1px solid #d9d9d9;
        padding: 0 0 20px 0;
        justify-content: center;
    }
    .why-item:last-child {
        border-bottom: none;
    }
    .why-contact-info {
        line-height: 1.8;
    }
    .contact-name,
    .contact-phone,
    .contact-email {
        display: block;
        width: 100%;
    }
    .contact-phone::before,
    .contact-email::before {
        content: "";
    }
    .contact-phone,
    .contact-email {
        margin-top: 5px;
    }
}