@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.montserrat-regular {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;  
}

/* Variables de color (puedes ajustarlas al inicio del archivo) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body::-webkit-scrollbar {
    width: 10px;
    background: linear-gradient(#f5cc1736, #edd41a3d);
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #272d60, #272d60);
    border-radius: 10px;
    border: 1px solid #07419f;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding: 0;
}

.bold-1 { font-weight: 100; }
.bold-2 { font-weight: 200; }
.bold-3 { font-weight: 300; }
.bold-4 { font-weight: 400; }
.bold-5 { font-weight: 500; }
.bold-6 { font-weight: 600; }
.bold-7 { font-weight: 700; }
.bold-8 { font-weight: 800; }
.bold-9 { font-weight: 900; }

.fs-10 { font-size: 10px; }
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; }
.fs-17 { font-size: 17px; }
.fs-18 { font-size: 18px; }
.fs-19 { font-size: 19px; }
.fs-21 { font-size: 21px; }
.fs-22 { font-size: 22px; }
.fs-23 { font-size: 23px; }
.fs-24 { font-size: 24px; }
.fs-25 { font-size: 25px; }
.fs-26 { font-size: 26px; }
.fs-27 { font-size: 27px; }
.fs-28 { font-size: 28px; }
.fs-29 { font-size: 29px; }
.fs-30 { font-size: 30px; }

.w-100 { width: 100%; }
.w-90 { width: 90%; }
.w-80 { width: 80%; }
.w-70 { width: 70%; }
.w-60 { width: 60%; }
.w-50 { width: 50%; }
.w-40 { width: 40%; }
.w-30 { width: 30%; }
.w-20 { width: 20%; }
.w-10 { width: 10%; }
.w-7 { width: 7%; }

.img-banner-main {
    margin-top: -1px;
}

.navbar {
    position: fixed;
    top: 0px;
    right: 0px;
    width: auto;
    height: 7vh;
    border-bottom-left-radius: 50px;
    background: linear-gradient(45deg, #283a87ed, #272d60);
}

main {
    margin-top: -30px;
}

.contenedor-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: center;
}

.logos {
    margin-top: -6vh;
}

.contenido-center {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.quienes-somos {
    background: #0089bf;
    color: white;
    padding: 40px;
    width: 99%;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -5vh;
    box-shadow: -1px 7px 0px 0px #015779;
}

.que-queremos {
    background: #ffffff;
    color: #000000;
    padding: 30px;
    width: 75%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -2vh;
    box-shadow: 0px 1px 20px 0px black;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 140px;
    border-top-left-radius: 140px;
}

.que-hemos-logrado {
    margin-bottom: 40vh;
    position: relative;
}

.carrusel-curvo-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 400px; /* Aumentamos la altura para la curva */
    perspective: 1000px;
    margin-top: -40rem;
}

.fondo-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: -1;
}

/* Opcional: cambia el color del texto cuando el fondo aparece */


.menu ul {
    display: flex;
    color: #fff;
    justify-content: space-around;
    background: #263782;
    list-style: none;
    width: 875px;
    position: fixed;
    right: 0px;
    padding: 24px;
    border-radius: 0 0 0 12px;
    font-size: 18px;
    z-index: 2;
}

.menu ul li a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.menu ul li:not(:last-child) a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #007bff;
    z-index: -1;
    transition: width 0.4s;
}


.menu ul li a:hover::after {
    width: 100%;
}

/* Opcional: cambia el color del texto cuando el fondo aparece */
.menu ul li:not(:last-child) a:hover {
    color: #007bff;
    border-bottom: none;
    transition: color 0.4s;
}

.menu ul li .contactanos {
    background: #f5cc17;
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.4s;
    margin-right: -22px;
}

.menu ul li .contactanos:hover {
    background: #357abd;
    color: #fff;
    transform: scaleY(1.2);
}

.menu ul li:not(:last-child) a:hover {
    color: #007bff;
    border-bottom: none;
    transition: color 0.4s;
}

.menu ul li .contactanos {
    background: #f5cc17;
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.4s;
}

.menu ul li .contactanos:hover {
    background: #008cc1;
    color: #fff;
        transform: scaleY(1.2);
}


header #hero{
    background: url(assets/banners/banner-main.png);
    height: 100vh;
    background-size: cover;
    padding: 0 0 180px;
}

.titulo-servicios {
    font-size: 39px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    position: absolute;
    top: 40%;
}

.subtitulo-servicios {
    font-size: 37px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.subtitulo-servicios1{
    font-size: 39px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    position: absolute;
    top: 155%;
}

/* .subrayado-amarillo {
    color: yellow;
} */

.titulo-central {
    margin-top: 50px;
    color: yellow;
    font-weight: 600;
    text-align: center;
}

.carousel-servicios {
    position: relative;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.texto-inferior {
    margin-top: 22%;
    font-size: 23px;
    color: #fff;
    background-color: #00000029;
    border-radius: 12px;
    padding: 20px;
    font-weight: 500;
    position: absolute;
    right: 20px;
}


main .nuestrosservicios{
    background: url('assets/banners/DashBoard FE- Nuestros Serv.png');
    height: 130vh;
    background-size: cover;
    padding: 0 0 180px; 
    width: 100%;
}

.nuestrosservicios {
    background: url('assets/banners/DashBoard FE- Nuestros Serv.png');
    background-size: cover;
    background-position: center;
    padding: 0 0 60px 0;
    position: relative;
    min-height: 130vh;
}

.lado-izquierdo-servicios {
    color: #fff;
    padding: 40px 30px 0 60px;
    position: relative;
}

/* .titulo-servicios {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 30px;
} */

.iconos-premios {
    margin-top: 40px;
}

.premios-titulo {
    font-size: 1.7rem;
    font-weight: 700;
    color: #ecd51a;
    display: block;
    margin-bottom: 20px;
}

/* --------- ICONOS CAROUSEL --------- */
#carousel_servicios {
    position: absolute;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.servicio-item {
    position: absolute;
    width: 94px;
    height: 77px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.5s ease;
    z-index: 1;
    margin-top: 67px;
    margin-left: 56px;
}

.servicio-item img {
    width: 98%;
    height: auto;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.servicio-item.active img {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
    transform: scale(1.2);
    opacity: 1;
}

.flechas {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* .flecha {
    font-size: 30px;
    user-select: none;
    margin: 0 15px;
    cursor: pointer;
    color: white;
} */

.active {
    transform: scale(1.5);
}

/* --------- COLUMNA DERECHA --------- */
.lado-derecho-servicios {
    padding: 60px 40px 0 40px;
    color: #fff;
    position: relative;
}

.titulo-fidelizacion {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.subrayado-amarillo {
    color: #ecd51a;
    font-style: italic;
}

.recuadro-descripcion, #panel_info {
    background: rgb(0 0 0 / 12%);
    border: 2px solid #fff;
    border-radius: 18px;
    padding: 24px 28px 0 28px;
    margin-bottom: 30px;
    box-shadow: 0 0 18px #0002;
    color: #fff;
    font-size: 1.1rem;
    backdrop-filter: blur(3px);
    min-height: auto;
    width: 100%;
    max-width: 545px;
    margin-top: 3%;
    right: 6%;
    position: absolute;
}

/* .texto-inferior {
    margin-top: 30px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
} */



.lo-que-hacemos h2 {
    font-family: 'KnaufHead', sans-serif;
    font-size: 40px;
    color: #0088be;
    font-weight: bold;
}

.lo-que-hacemos p {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    color: #333;
    font-weight: 700;
    line-height: 1.4;
}

.loquehacemos{
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -132px;
    margin-left: -143px;
    justify-content: space-around;
}

.circle-container {
    position: relative;
    width: 266px;
    height: 266px;
    margin: 0 auto;
}

.circle-container img {
    position: absolute;
    top: 0;
    right: 20px;
    z-index: -1;
    width: 266px;
    height: 260px;
    margin-right: 12px;
}

.circle-container h3 {
    color: #fff;
    font-weight: 600;
    position: absolute;
    top: 32%;
    left: 34%;
    transform: translateX(-50%);
    font-size: 62px;
    text-align: center;
}

.circle-container small {
    color: #fff;
    font-weight: 500;
    position: absolute;
    top: 54%;
    left: 39%;
    transform: translateX(-50%);
    font-size: 32px;
}

.circle-description {
    font-weight: 600;
    font-size: 22px;
    text-align: center;
    margin-top: 40px;
}



footer {
    background: #263782;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    color: white;
    padding: 20px 5%;
    gap: 20px;
}

.contenedor-mid {
    display: flex;
    flex-direction: column;
    align-content: center;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}


/* --------- UTILIDADES --------- */
.bold-6 { font-weight: 600; }
.bold-9 { font-weight: 900; }
.fs-26 { font-size: 26px; }
.fs-21 { font-size: 21px; }
.fs-16 { font-size: 16px; }
.w-7 { width: 7%; }
.w-10 { width: 10%; }
.w-80 { width: 80%; }

/* Nuestro Alcance */

.NuestroAlcance {
    background: url('assets/fondos/fondo_nuestro_alcance2.png') ;
    background-size: cover;
    background-position: center;
    padding: 0 0 60px 0;
    position: relative;
    min-height: 130vh;
    margin-top: -8%;  
    margin-bottom: -9%;
}

.alcance-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.mapa-continente {
    position: relative;
    width: 100%;
    max-width: 660px;
    aspect-ratio: 6 / 5;
    margin: 0 auto;
    height: auto;
}

.svg-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 23%;
}


.continente-svg {
    width: 100%;
    height: auto;
    display: block;
}

.pais-svg {
    position: absolute;
    width: auto;
    height: auto;
    max-width: 70px;
    cursor: pointer;
    transition: transform 0.4s ease, z-index 0.4s ease;
    z-index: 2;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
    opacity: 0.9;
}

.pais-svg.zoom {
    transform: scale(2.2) translate(-10px, -10px);
    z-index: 10;
    filter: drop-shadow(0 0 12px #f5cb17);
    opacity: 1;
}

.pais-svg:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px #36c3f7);
}


.alcance-info {
    background: #273a7a;
    color: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 500px;
    min-width: 320px;
    box-shadow: 0 4px 24px #0001;
    margin-top: 12%;

}

.alcance-info h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    border-bottom: 2px solid #36c3f7;
    display: inline-block;
    padding-bottom: 4px;
}

.paises-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn-pais {
    background: #3247a8;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-pais.active, .btn-pais:hover {
    background: #36c3f7;
    font-weight: bold;
}

/* Mapa base */
.css-map-wrapper {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 6/5;
    background: linear-gradient(145deg, #ffffff, #e6ecf5);
    border-radius: 36px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.css-map {
    width: 90%;
    height: 90%;
    position: relative;
    margin: 0 auto;
}

/* Continente América Latina (forma aproximada) */
.continente {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    z-index: 1;
  /* Forma aproximada de América Latina */
    clip-path: polygon(
    15% 10%, 25% 7%, 35% 12%, 40% 18%, 43% 25%, 45% 32%, 48% 38%, 50% 45%, 52% 55%, 54% 65%, 56% 80%, 54% 90%, 50% 95%, 45% 90%, 43% 80%, 40% 70%, 38% 60%, 36% 50%, 34% 40%, 30% 30%, 25% 20%, 20% 15%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* Países como puntos o bloques */
.pais {
    position: absolute;
    min-width: 40px;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f5cc17;
    color: #273a7a;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 8px #0002;
    cursor: pointer;
    opacity: 0.95;
    transition: transform 0.2s, background 0.2s;
    z-index: 2;
    user-select: none;
    }
.pais:hover {
    background: #36c3f7;
    color: #fff;
    transform: scale(1.15);
    z-index: 10;
}

/* Posiciones aproximadas sobre el "continente" */
.mexico         { top: 13%; left: 22%; }
.guatemala      { top: 19%; left: 27%; }
.el-salvador    { top: 22%; left: 29%; }
.honduras       { top: 25%; left: 31%; }
.nicaragua      { top: 29%; left: 33%; }
.costa-rica     { top: 34%; left: 35%; }
.panama         { top: 38%; left: 37%; }
.colombia       { top: 28%; left: 44%; }
.ecuador        { top: 36%; left: 43%; }
.peru           { top: 50%; left: 44%; }
.chile          { top: 80%; left: 48%; }

/* Animación de entrada */
.pais {
  animation: fadeInPais 1s;
}
@keyframes fadeInPais {
    from { opacity: 0; transform: scale(0.8);}
    to   { opacity: 0.95; transform: scale(1);}
}

.svg-map-latam svg {
    max-width: 100%;
    height: auto;
    display: block;
}
.svg-map-latam path {
    transition: filter 0.2s, fill 0.2s;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px #0002);
}
.svg-map-latam path:hover {
    filter: drop-shadow(0 0 8px #f5cc17);
    fill: #273a7a;
}

/* Cuadro pequeño abajo a la izquierda */
.info-pais-seleccionado {
    position: absolute;
    left: 171px;
    bottom: 239px;
    background: #fff;
    color: #273a7a;
    border-radius: 14px 14px;
    box-shadow: 0 2px 12px #0002;
    padding: 14px 22px 14px 18px;
    min-width: 120px;
    min-height: 54px;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
}
.info-pais-seleccionado img {
    width: 38px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #eee;
    margin-left: 8px;
}

/* Esquina superior derecha de .alcance-container */
.info-pais-seleccionado img {
    margin-left: auto;
}

/* Botón país seleccionado */
.btn-pais.selected {
    background: #f5cc17 !important;
    color: #273a7a !important;
    border: 2px solid #273a7a;
    font-weight: bold;
    box-shadow: 0 2px 8px #f5cc1766;
    transform: scale(1.08);
}

.cuadro-pais-derecha {
    position: absolute;
    right: 40px;
    bottom: 40px;
    background: #fff;
    color: #273a7a;
    border-radius: 14px 14px;
    box-shadow: 0 2px 12px #0002;
    padding: 14px 22px;
    min-width: 120px;
    min-height: 54px;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.nombre-pais-mapa {
    position: absolute;
    background: #fff;
    color: #273a7a;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 1rem;
    box-shadow: 0 2px 8px #0001;
    pointer-events: auto; /* Permite clic */
    cursor: pointer;      /* Mano al pasar */
    z-index: 10;
    white-space: nowrap;
    opacity: 0.95;
    border: 2px solid #f5cc17;
    transition: background 0.2s, color 0.2s;
}
.nombre-pais-mapa.selected {
    background: #f5cc17;
    color: #273a7a;
    border: 2px solid #273a7a;
}

/* Ajusta estos valores según tu mapa */
.nombre-colombia { left: 41%; top: 42%; }
.nombre-costarica { left: 29%; top: 32%; }
.nombre-chile { left: 47%; top: 82%; }
.nombre-ecuador { left: 38%; top: 54%; }
.nombre-elsalvador { left: 23%; top: 28%; }
.nombre-guatemala { left: 20%; top: 24%; }
.nombre-honduras { left: 25%; top: 30%; }
.nombre-mexico { left: 10%; top: 12%; }
.nombre-nicaragua { left: 27%; top: 36%; }
.nombre-panama { left: 32%; top: 38%; }
.nombre-peru { left: 43%; top: 65%; }
.nombre-republicadominicana { left: 62%; top: 24%; }

.marcador-bandera {
    position: absolute;
    z-index: 20;
    width: 80px;
    height: 120px;
    transform: translate(-50%, -100%);
    transition: transform 0.3s cubic-bezier(.68,-0.55,.27,1.55), filter 0.2s;
    filter: drop-shadow(0 2px 8px #0003);
    cursor: pointer;
    animation: marcadorPop 0.5s;
}
.marcador-bandera img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.marcador-bandera.active {
    transform: translate(-50%, -110%) scale(1.2);
    filter: drop-shadow(0 0 12px #f5cc17);
}

@keyframes marcadorPop {
    0% { transform: translate(-50%, -100%) scale(0.7);}
    80% { transform: translate(-50%, -110%) scale(1.25);}
    100% { transform: translate(-50%, -110%) scale(1);}
}

/********************* nuestra experiencia *************************/

#NuestaExperiencia {
    background-image: url(assets/fondos/BG-22.png);
    background-size: cover;
    background-position: center;
    padding: 70px 0;/*  115px inicial  */
    margin-top: 0%;
}
.img-fluid {
    max-width: 82% !important;
    height: auto !important;
}

#NuestaExperiencia::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.experiencia-titulo {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 50px !important;
    position: relative;
    z-index: 1;
    left: 0%; 
    margin-top: -2%;
}

.cliente-img {
    border-radius: 10px;
    transition: all 0.3s ease;
    /* background: #fff; */
    padding: 0px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); */
    height: 144px;
    object-fit: contain;
}

.cliente-img:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Carrusel móvil */
.carousel-item {
    padding: 20px 40px;
    text-align: center;
}

.carousel-item img {
    max-height: 150px;
    width: auto;
    margin: 0 auto;
    padding: 15px;
    border-radius: 10px;
}

.carousel-control-prev, 
.carousel-control-next {
    width: 40px;
}

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

.counter-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-top: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}            

.counter-label {
    font-size: 1.2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {

    #NuestaExperiencia {
        background-image: url(assets/fondos/BG-22.png);
        background-size: cover;
        background-position: center;
        padding: 115px 0;
        margin-top: -32%;
    }
    .experiencia-titulo {
        font-size: 2.2rem;
    }
    
    .cliente-img {
        height: 100px;
        padding: 12px;
    }
    
    .counter {
        font-size: 2.8rem;
    }
}

/*+++++++++++++++++++++ Estilos de modal  ++++++++++++++++++++++++++*/

/* Estilos básicos para el modal (se ampliarán en el CSS general) */
.modal {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    /* Se mantiene en su lugar incluso al hacer scroll */
    z-index: 1;
    /* Se asegura de que esté por encima de otros elementos */
    left: 0;
    top: 0;
    width: 100%;
    /* Ancho completo */
    height: 100%;
    /* Altura completa */
    overflow: auto;
    /* Habilita el scroll si el contenido es muy largo */
    background-color: rgba(0, 0, 0, 0.4);
    /* Fondo oscuro semitransparente */
}

.modal-content {
    background-color: #fefefe;
    margin: 7% auto;
    /* 15% desde la parte superior y centrado horizontalmente */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Puedes ajustar el ancho del modal */
    border-radius: 8px;
    position: relative;
}

.cerrar-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.cerrar-modal:hover,
.cerrar-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* Estilos generales del modal */
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    /* Ajusta la posición vertical */
    padding: 30px;
    border: 1px solid #ccc;
    width: 80%;
    max-width: 600px;
    /* Ancho máximo para que no se vea demasiado grande en pantallas amplias */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

/* Animación de entrada del modal */
@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 10%;
        opacity: 1
    }
}

/* Estilo del botón de cerrar */
.cerrar-modal {
    color: #aaa;
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cerrar-modal:hover,
.cerrar-modal:focus {
    color: #333;
    text-decoration: none;
}

/* Estilos del encabezado del formulario */
.modal-content h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.modal-content p {
    color: #555;
    text-align: center;
    margin-bottom: 25px;
    font-size: 16px;
}

/* Estilos de los grupos de formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: calc(100% - 22px);
    /* Ancho completo menos el padding y el borde */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Estilo del textarea */
.form-group textarea {
    resize: vertical;
    /* Permite al usuario ajustar la altura */
}

/* Estilo del botón de enviar */
.btn-enviar {
    background-color: #263782;
    /* Un verde para el envío */
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    display: block;
    /* Para que ocupe todo el ancho disponible */
    width: 100%;
}

.btn-enviar:hover {
    background-color: #008cc1;
}

.cliente-img {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s, transform 0.5s;
}
.cliente-img.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer mejorado */
.footer-principal {
    background: #263782;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 5% 20px 5%;
    gap: 30px;
}
.footer-col {
    flex: 1 1 250px;
    min-width: 220px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-certificados {
    align-items: flex-start;
}
.footer-meta-img {
    width: 180px;
    margin-bottom: 18px;
}
.footer-linea {
    width: 90%;
    max-width: 220px;
    margin-top: 18px;
}
.footer-redes {
    align-items: flex-start;
}
.footer-social {
    display: flex;
    gap: 18px;
    margin-top: 10px;
}
.footer-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.2s;
}
.footer-icon:hover {
    transform: scale(1.15);
}
.footer-contacto {
    align-items: flex-start;
}
.footer-logo {
    width: 160px;
    margin-top: 24px;
}
@media (max-width: 900px) {
    .footer-principal {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .footer-col {
        align-items: center;
        min-width: 0;
    }
    .footer-linea, .footer-meta-img, .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Footer personalizado según imagen */
.footer-principal-custom {
    background: #263782;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 4px 1% 20px 0%;
    gap: 0;
}
.footer-col-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-width: 200px;
    text-align: center;
    justify-content: flex-start;
}
.footer-col-custom-redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-width: 200px;
    text-align: center;
    justify-content: flex-start;
}
.footer-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: -4px;
    margin-top: 6%;
}
.footer-title-redes{
    font-size: 26px;
    font-weight: 700;
    margin-bottom: -4px;
    margin-top: 12%;
}
.footer-meta-img-custom {
    width: 160px;
    margin-bottom: -4px;
    border-radius: 16px;
    padding: 10px 0;
}
.footer-social-custom {
    display: flex;
    gap: 22px;
    margin-top: 18px;
    justify-content: center;
}
.footer-icon-custom {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.2s;
}
.footer-icon-custom:hover {
    transform: scale(1.15);
}
.footer-contacto-custom {
    align-items: center;
    font-size: 18px;
    font-weight: 400;
    gap: 4px;
    margin-top: 0;
}
.footer-contacto-ciudad {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: -7px;
    margin-top: 4%;
}
.footer-contacto-dir,
.footer-contacto-tel,
.footer-contacto-mail-label,
.footer-contacto-mail {
    margin-bottom: -6px;
    display: block;
}
.footer-contacto-mail-label {
    margin-top: 5px;
    font-weight: 600;
}
.footer-contacto-mail {
    font-size: 17px;
}
.footer-logo-custom {
    align-items: flex-end;
    justify-content: flex-end;
}
.footer-logo-custom img {
    width: 350px;
    max-width: 100%;
    margin-top: 9%;
}

@media (max-width: 1100px) {
    .footer-principal-custom {
        flex-wrap: wrap;
        gap: 30px;
        padding: 30px 2% 20px 2%;
    }
    .footer-logo-custom img {
        width: 180px;
    }
}
@media (max-width: 800px) {
    .footer-principal-custom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
    }
    .footer-col-custom {
        align-items: center;
        min-width: 0;
    }
    .footer-logo-custom img {
        margin: 0 auto;
    }
}

/* Menú superior responsive */
@media (max-width: 991px) {
    .menu ul {
        width: 100vw;
        font-size: 16px;
        padding: 14px 0;
        flex-wrap: wrap;
        position: static;
        border-radius: 0;
        justify-content: center;
    }
    .menu ul li {
        margin: 0 8px;
    }
}
@media (max-width: 991px) {
    #fondo_nuestros_servicios .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Reordenar elementos */
    .titulo-servicios {
        margin-top: 6%;
        order: 1;
        font-size: 32px;
    }

    .subtitulo-servicios {

        order: 2;
    }

    .col-6.col-md-6.order-1 {
        order: 3; /* Carrusel */
        margin-left: 0 !important;
    }

    .col-6.col-md-6.order-2 {
        order: 4; /* Panel de información */
    }

    .col-12.col-md-12.text-center {
        order: 5; /* Texto inferior */
    }

    /* Asegurar que todos ocupen el ancho completo */
    .col-6, .col-md-6, .col-12, .col-md-12 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    #panel_info.recuadro-descripcion,
    .texto-inferior {
        position: static;
        margin-top: 24px;
        right: 0;
    }
}


/* Carrusel íconos servicios */
@media (max-width: 600px) {
    .servicio-item {
        position:absolute;
        width: 60px;
        height: 50px;
        margin-top: 700px;
        margin-left: 10px;
    }
    .titulo-central{
        font-size: 22px;
    }
    .subtitulo-servicios1 {
        font-size: 22px;
        margin-top: 10%;
    }
    .subtitulo-servicios-mobile{
        font-size: 22px;
        margin-top: -2% !important;
    }

    .subtitulo-servicios {
        font-size: 22px;
        margin-top: 36%
    }
}

/* Sección "Lo que hacemos" */
@media (max-width: 991px) {
    .loquehacemos {
        margin-left: 0;
        margin-right: 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    .circle-container {
        width: 180px;
        height: 180px;
    }
    .circle-container img {
        width: 180px;
        height: 180px;
        margin-right: -28%;
    }
    .circle-container h3 {
        font-size: 32px;
        left: 50%;
        top: 35%;
    }
    .circle-container small {
        font-size: 18px;
        left: 50%;
        top: 60%;
    }
    .circle-description {
        font-size: 16px;
        margin-top: 18px;
    }
}

/* Mapa y lista de países */
@media (max-width: 991px) {
    .alcance-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .alcance-info {
        margin-top: 0;
        min-width: 0;
        width: 95vw;
        max-width: 100vw;
        padding: 18px 8px;
    }
    .mapa-continente {
        max-width: 98vw;
        margin-bottom: 17%;
}

/* Imagen por defecto (escritorio) */
.continente-svg {
    content: url("assets/nuestroalcance/Sudamerica 1.svg");
}

/* Imagen para móviles */
@media (max-width: 767px) {
    .continente-svg {
        content: url("assets/nuestroalcance/continente\ marca\ azul.svg");
    }
}


/* Sección "Nuestra Experiencia" */
@media (max-width: 991px) {
    #NuestaExperiencia .container .row {
        position: static !important;
        margin: 0 !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    #NuestaExperiencia h2 {
        position: static !important;
        text-align: center;
        margin-top: 24px;
        font-size: 28px;
    }
    .cliente-img {
        max-width: 90px;
        margin: 8px auto;
        display: block;
    }
}

@media (max-width: 767px) {
    #NuestaExperiencia .row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    #NuestaExperiencia .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 10px;
        text-align: center;
    }

    .cliente-img {
        width: 80%; /* Ajusta según el tamaño deseado */
        height: auto;
    }
}


/* Modal responsive */
@media (max-width: 600px) {
    .modal-content {
        width: 98vw !important;
        padding: 10px !important;
        max-width: 99vw !important;
    }
}

/* Footer responsive */
@media (max-width: 600px) {
    .footer-principal-custom {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 2% 10px 2%;
    }
    .footer-logo-custom img {
        width: 120px;
        margin-top: 12px;
    }
    .footer-title, .footer-title-redes {
        font-size: 18px;
    }
    .footer-contacto-custom {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .loquehacemos .col-md-2 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .circle-container {
        width: 150px;
        text-align: center;
    }
}
@media (max-width: 768px) {
    #NuestaExperiencia h2 {
        position: static !important;
        margin: 20px 0;
        text-align: center;
        font-size: 20px;
    }

    #NuestaExperiencia .row {
        position: static !important;
        margin: 0 !important;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Footer personalizado según imagen */
.footer-principal-custom {
    background: #263782;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 4px 1% 20px 0%;
    gap: 0;
}
.footer-col-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-width: 200px;
    text-align: center;
    justify-content: flex-start;
}
.footer-col-custom-redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-width: 200px;
    text-align: center;
    justify-content: flex-start;
}
.footer-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: -4px;
    margin-top: 6%;
}
.footer-title-redes{
    font-size: 26px;
    font-weight: 700;
    margin-bottom: -4px;
    margin-top: 12%;
}
.footer-meta-img-custom {
    width: 160px;
    margin-bottom: -4px;
    border-radius: 16px;
    padding: 10px 0;
}
.footer-social-custom {
    display: flex;
    gap: 22px;
    margin-top: 18px;
    justify-content: center;
}
.footer-icon-custom {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.2s;
}
.footer-icon-custom:hover {
    transform: scale(1.15);
}
.footer-contacto-custom {
    align-items: center;
    font-size: 18px;
    font-weight: 400;
    gap: 4px;
    margin-top: 0;
}
.footer-contacto-ciudad {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: -7px;
    margin-top: 4%;
}
.footer-contacto-dir,
.footer-contacto-tel,
.footer-contacto-mail-label,
.footer-contacto-mail {
    margin-bottom: -6px;
    display: block;
}
.footer-contacto-mail-label {
    margin-top: 5px;
    font-weight: 600;
}
.footer-contacto-mail {
    font-size: 17px;
}
.footer-logo-custom {
    align-items: flex-end;
    justify-content: flex-end;
}
.footer-logo-custom img {
    width: 350px;
    max-width: 100%;
    margin-top: 9%;
}

@media (max-width: 1100px) {
    .footer-principal-custom {
        flex-wrap: wrap;
        gap: 30px;
        padding: 30px 2% 20px 2%;
    }
    .footer-logo-custom img {
        width: 180px;
    }
}
@media (max-width: 800px) {
    .footer-principal-custom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
    }
    .footer-col-custom {
        align-items: center;
        min-width: 0;
    }
    .footer-logo-custom img {
        margin: 0 auto;
    }
}

/* Botón hamburguesa oculto en escritorio */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #fff;
    position: fixed;
    top: 0px;
    right: 0px;
    z-index: 1002;
    cursor: pointer;
    background: #273a7a;
    width: 26%;
}





/* Menú responsive */
@media (max-width: 991px) {

    header #hero{
            background: url(assets/banners/bg\ cel_pantalla\ cel.png);
            height: 100vh;
            background-size: cover;
            padding: 0 0 180px;
        }
    .menu ul{
        display: none;
        flex-direction: column;
        position: fixed;
        top: -1px;
        right: 0;
        width: 75vw;
        height: 100vh;
        background: #263782d1;
        padding: 60px 0 0 0;
        z-index: 70;
        border-radius: 0;
        box-shadow: -2px 0 16px #0004;
        transition: transform 0.3s;
        margin-bottom: 7%;

    }
    .menu ul.open {
        display: flex;
        justify-content: flex-start;
        align-items: flex-end;
    }
    .menu-toggle {
        display: block;
    }
    .menu ul li {
        margin: 18px 0;
        text-align: right;
        padding-right: 32px;
        margin-top: 9%;
    }
    .menu ul li .contactanos {
        margin-right: 0;
    }
}
.menu-bar-mobile {
    display: none; /* Oculto por defecto */
}

@media (max-width: 768px) {
    .menu-bar-mobile {
        width: 100%;
        background: #263782;
        padding: 10px 15px;
        position: fixed;
        z-index: 3;
    }
}

}
@media (max-width: 600px) {
    #carousel_servicios {
        position: static !important;
        min-height: unset !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100vw;
        overflow-x: auto;
    }
    #carousel_servicios .flechas {
        order: 2;
        width: 100%;
        justify-content: center;
        margin: 10px 0 0 0;
        display: none;
    }
    .servicio-item {
    position: absolute;
    width: 75px !important;
    height: 54px !important;
    display: inline-flex !important;
    margin-top: 86% !important;
    margin-left: -12% !important;
    transform: none !important;
    }
    
    @keyframes vibrar-suave {
    0% { transform: translate(0); }
    25% { transform: translate(-1px, 1px); }
    50% { transform: translate(1px, -1px); }
    75% { transform: translate(-1px, -1px); }
    100% { transform: translate(0); }
    }

    .servicio-item.active img {
        width: 100px !important;
        height: auto !important;
        animation: vibrar-suave 0.6s infinite;
    }


    #carousel_servicios {
        flex-direction: column;
    }
    #carousel_servicios .servicio-items-row {
        display: flex;
        flex-direction: row;
        width: 100vw;
        overflow-x: auto;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 10px;
    }

    .titulo-central{
    margin-top: 36%;
    color: yellow;
    font-weight: 600;
    text-align: center;
    }

    #fondo_nuestros_servicios {
        position: relative;
        overflow: visible;
        padding-bottom: 250px; /* Ajusta según el radio del semicírculo */
    }
}

.logo-mobile {
    height: 38px;
    width: auto;
}

/* Estilos para el carrusel móvil */
#carouselClientes {
    max-width: 300px;
    margin: 0 auto;
}

#carouselClientes .carousel-item img {
    height: 150px;
    object-fit: contain;
    padding: 20px;
}

#carouselClientes .carousel-control-prev,
#carouselClientes .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: #263782;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

#carouselClientes .carousel-control-prev {
    left: -20px;
}

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

/* Ocultar título en posición absoluta para móviles */
@media (max-width: 767px) {
        .experiencia-titulo {
            position: relative !important;
            top: auto !important;
            margin-bottom: 30px !important;
        }
        
        #NuestaExperiencia .container {
            padding-bottom: 30px;
        }

}

@media (max-width: 767px) {
        .experiencia-titulo {
            position: relative !important;
            top: auto !important;
            margin-bottom: 30px !important;
        }
        
        #NuestaExperiencia .container {
            padding-bottom: 30px;
        }
        .carousel-item img {
            max-height: 150px;
            width: auto;
            margin: 0 auto;
            padding: 15px;
            border-radius: 10px;
            /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); */
        }
    }
@media (max-width: 1300px){

    .servicio-item img {
        width: 89%;
        height: auto;
        transition: all 0.3s ease;
        opacity: 0.6;
    }
    .servicio-item {
        position: absolute;
        width: 75px;
        height: 77px;
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
        transition: all 0.5s ease;
        z-index: 1;
        margin-top: -10px;
        margin-left: 5px;
    }
    .titulo-servicios {
        font-size: 34px;
        color: #fff;
        font-weight: 700;
        text-align: center;
        position: absolute;
        top: 41%;
        margin-left: -25%;
    }

    .titulo-central {
        margin-top: 15px;
        color: yellow;
        font-weight: 600;
        text-align: center;
        margin-left: 0%;
    }

    .container.py-5 {
        margin-top: 2.6% !important;
    }

    #NuestaExperiencia {
        background-image: url(assets/fondos/BG-22.png) !important;
        background-size: cover !important;
        background-position: center !important;
        padding: 65px 0 !important;
        margin-top: 1% !important;
    }
}

.circle-bg {
    width: 160px;
    height: 250px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imágenes específicas para cada círculo */
.bg1 {
    background-image: url('assets/loquehacemos/DashBoard\ Formas\ Estrategicas_Mesa\ de\ trabajo\ 10.png');
    width: 80%;
}

.bg2 {
    background-image: url('assets/loquehacemos/DashBoard\ Formas\ Estrategicas_Mesa\ de\ trabajo\ 11.png');
    width: 80%;
}

.bg3 {
    background-image: url('assets/loquehacemos/DashBoard\ Formas\ Estrategicas_Mesa\ de\ trabajo\ 12.png');
    width: 80%;
}

.bg4 {
    background-image: url('assets/loquehacemos/DashBoard\ Formas\ Estrategicas_Mesa\ de\ trabajo\ 13.png');
    width: 80%;
}

.bg5 {
    background-image: url('assets/loquehacemos/DashBoard\ Formas\ Estrategicas_Mesa\ de\ trabajo\ 14.png');
    width: 80%;
}

/* Agregar al final del archivo CSS */
.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.loading {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 15px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#respuestaFormulario {
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    display: none;
}

.exito {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}