/********** Template CSS **********/


.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-medium { font-weight: 500; }



/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn { transition: .5s; font-weight: 500; }
.btn-primary, .btn-outline-primary:hover { color: var(--bs-light); }
.btn-secondary, .btn-outline-secondary:hover { color: var(--bs-dark); }
.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: normal;
}
.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

/*** Icon Box ***/
.icon-box-primary, .icon-box-light {
    position: relative;
    padding: 0 0 10px 10px;
    z-index: 1;
}
.icon-box-primary i, .icon-box-light i {
    font-size: 60px;
    line-height: 0;
}
.icon-box-primary::before, .icon-box-light::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 35px;
    left: 0;
    bottom: 0;
    border-radius: 35px;
    transition: .5s;
    z-index: -1;
}
.icon-box-primary::before { background: var(--bs-primary); }
.icon-box-light::before { background: var(--bs-light); }

/*** Navbar ***/
.sticky-top { top: -100px; transition: .5s; }
.navbar .navbar-nav .nav-link {
    margin-right: 90px;
    padding: 20px 0;
    color: white !important;
    font-size: 26px;
    font-weight: 500;
    outline: none;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #0d6efd !important;
    border-bottom: 2px solid #0d6efd;
}
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}
.btn-primary {
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13,110,253,0.08);
    background-color: #1d1c68 !important;
    color: #ffffff !important;
}

/* Barra de menú centrada, fondo azul y borde redondeado */
.menu-bar {
  background: #1d1c68; /* tu azul principal */
  border-radius: 40px;
  box-shadow: 0 2px 8px rgba(13,110,253,0.08);
  gap: 10px;
}
.menu-link {
  color: #fff !important;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 8px 22px;
  border-radius: 30px;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}
.menu-link:hover, .menu-link.active {
  background: #2731a5;
  color: #fff !important;
}

/* Navbar transparente y menos alto */
header.sticky-top {
  background: rgba(230, 230, 248, 0.7) !important; /* gris translúcido */
  box-shadow: none !important;
  margin-top: 18px;
  margin-bottom: 0;
  border-radius: 0 !important; /* sin borde redondeado */
}
nav.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Espaciado y efecto en los links */
.nav-link {
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover, .nav-link.active {
  background: #e7f0fd;
  color: #0d6efd !important;
}

/*** Responsive Navbar ***/
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
        font-size: 24px;
    }
    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
        width: 100%;
        align-items: center;
    }
    .navbar-collapse {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .navbar-brand {
        display: flex;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    .navbar .navbar-toggler { margin-left: auto; }
    .navbar-brand h1 { font-size: 28px; }
}
@media (min-width: 992px) {
    .sticky-top { margin-top: -34px; }
    .navbar { height: 68px; }
    .navbar-collapse { justify-content: center; }
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }
    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/*** Logo ***/
.navbar-brand img {
    display: block;
    height: 350px;
    width: auto;
    transition: transform 0.3s ease;
}
.navbar-brand img:hover { transform: scale(1.05); }

/*** Barra de contacto (puedes eliminar si ya no usas) ***/
.barra-contacto {
    background: linear-gradient(90deg, #ffffff, #ffffff);
    padding: 15px 30px;
    box-shadow: 0 4px 20px rgba(29, 28, 104, 0.7);
    border-radius: 10px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    color: white !important;
    position: relative;
    height: 200px;
    overflow: hidden;
    margin-bottom: 15px;
}
.barra-contacto .navbar-brand { flex-shrink: 0; margin-right: 40px; }
.barra-contacto .navbar-brand img { height: 250px; }
.barra-contacto .contacto-info { max-height: 180px; overflow: hidden; }
.contacto-info {
    display: flex !important;
    align-items: center;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
    transition: background-color 0.3s ease;
    color: white !important;
    margin: 5px 0;
}
.contacto-info:hover { background-color: rgba(255, 255, 255, 0.3); }
.icono-personalizado {
    background-color: #fff !important;
    color: #1d1c68 !important;
    border-radius: 50%;
    padding: 8px;
    font-size: 24px !important;
    transition: transform 0.3s ease;
}
.icono-personalizado:hover { transform: scale(1.3); }
.contacto-info h5, .contacto-info span {
    color: white !important;
    font-weight: 600;
    margin: 0;
}

/*** Barra porcentaje ***/
.porcentaje { font-weight: 600; }

/*** Header ***/
@media (min-width: 992px) {
    .header-carousel, .page-header { margin-top: -34px; }
}
.carousel-caption {
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center;
    background: rgba(3, 27, 78, .3);
    z-index: 1;
}
.carousel-control-prev, .carousel-control-next {
    width: 15%;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 3.5rem; height: 3.5rem;
    border-radius: 3.5rem;
    background-color: var(--bs-primary);
    border: 15px solid var(--bs-primary);
}
@media (max-width: 767.98px) {
    #header-carousel .carousel-item { position: relative; min-height: 450px; }
    #header-carousel .carousel-item img {
        position: absolute; width: 100%; height: 100%; object-fit: cover;
    }
}
.page-header {
    background:  url(../img/textura.png) center center no-repeat;
    background-size: cover;
}
.page-header .breadcrumb-item+.breadcrumb-item::before { color: var(--bs-white); }
.page-header .breadcrumb-item, .page-header .breadcrumb-item a {
    font-size: 18px; color: var(--bs-white);
}
.carousel-caption p { font-size: 1.5rem; font-weight: 500; }

/*** Features barras que se mueven ***/
.feature-cuanti {
    background: linear-gradient(rgba(3, 27, 78, .3), rgba(3, 27, 78, .3)), url(../img/1.png) left center no-repeat;
    background-size: cover;
}
.feature-row { box-shadow: 0 0 45px rgba(0, 0, 0, .08); }
.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}
.feature-item:hover { background-color: #e9ecef; }
.feature-item .feature-icon span {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    color: var(--bs-secondary);
    background: var(--bs-primary);
    border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.feature-item:hover .feature-icon span { background-color: var(--bs-primary); color: white; }
.feature-item h5 { font-weight: 600; font-size: 1.1rem; }
.feature-item p { font-size: 0.9rem; color: #6c757d; margin-bottom: 0; }

/*** About ***/
.texto-prioridad { font-size: 2rem; font-weight: 500; }
.texto-empresa { font-size: 1.25rem; line-height: 1.6; }
.about-fact {
    width: 220px; height: 220px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}
@media (min-width: 576px) {
    .about-fact.mt-n130 { margin-top: -130px; }
}
.btn-play {
    position: relative; display: block; box-sizing: content-box;
    width: 36px; height: 46px; border-radius: 100%; border: none;
    outline: none !important; padding: 18px 20px 20px 28px;
    background: var(--bs-primary);
}
.btn-play:before, .btn-play:after {
    content: ""; position: absolute; z-index: 0; left: 50%; top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block; width: 90px; height: 90px; background: var(--bs-primary);
    border-radius: 100%;
}
.btn-play:before {
    animation: pulse-border 1500ms ease-out infinite;
}
.btn-play:after {
    z-index: 1; transition: all 200ms;
}
.btn-play span {
    display: block; position: relative; z-index: 3; width: 0; height: 0; left: 3px;
    border-left: 30px solid #FFFFFF;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
}
@keyframes pulse-border {
    0% { transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1); opacity: 1; }
    100% { transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2); opacity: 0; }
}
.modal-video .modal-dialog {
    position: relative; max-width: 800px; margin: 60px auto 0 auto;
}
.modal-video .modal-body { position: relative; padding: 0px; }
.modal-video .close {
    position: absolute; width: 30px; height: 30px; right: 0px; top: -30px;
    z-index: 999; font-size: 30px; font-weight: normal; color: #FFFFFF;
    background: #000000; opacity: 1;
}
.awards-box {
    background-color: var(--bs-primary);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    overflow: hidden;
    min-height: 100%;
}
.icon-box-light i { font-size: 2.5rem; color: #fff; }

/*** Service ***/
.container-service { 
    position: relative; 
    padding-bottom: 80px; 
}
.container-service::before {
    position: absolute; content: ''; background: var(--bs-light);
    width: 100%; height: 100%; left: 0px; top: 0px;
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 70%);
    z-index: -1;
}
.service-item {
    position: relative; height: 100%; padding: 45px 30px;
    background: var(--bs-white); box-shadow: 0 0 45px rgba(0, 0, 0, .05);
    margin: 65px 0 25px 0;
}
.service-item::before {
    position: absolute; content: ""; width: 100%; height: 0; left: 0; bottom: 0;
    transition: .5s; background: var(--bs-primary);
}
.service-item:hover::before { height: 100%; top: 0; }
.service-item * { position: relative; transition: .5s; z-index: 1; }
.service-item:hover h5, .service-item:hover p { color: var(--bs-white); }
.service-item:hover .icon-box-primary::before { background: var(--bs-dark); }
.service-item:hover .icon-box-primary i { color: var(--bs-white) !important; }
.service-item .service-img {
    position: absolute; padding: 12px; width: 130px; height: 130px;
    top: -65px; left: 50%; transform: translateX(-50%);
    background: #FFFFFF; box-shadow: 0 0 45px rgba(0, 0, 0, .09); z-index: 2;
}
.service-item .service-detail, .service-item .service-title, .service-item .service-text {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0;
    overflow: hidden; z-index: 1;
}
.service-item .service-title {
    padding: 65px 30px 25px 30px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    background: #FFFFFF; transition: .5s;
}
.service-item:hover .service-title { top: -100%; }
.service-item .service-text {
    overflow: hidden; padding: 65px 30px 25px 30px; top: 100%;
    display: flex; align-items: center; text-align: center;
    background: rgba(2, 36, 91, .7); transition: .5s;
}
.service-item:hover .service-text { top: 0; }
.service-item .service-text::before {
    position: absolute; content: ""; width: 100%; height: 100px;
    top: -100%; left: 0; transform: skewY(-12deg);
    background: #FFFFFF; transition: .5s;
}
.service-item:hover .service-text::before { top: -55px; }
.service-item .btn {
    position: absolute; width: 130px; height: 50px; left: 50%; bottom: -25px;
    transform: translateX(-50%); display: flex; align-items: center; justify-content: center;
    color: var(--secondary); background: #FFFFFF; border: none;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09); z-index: 2;
}
.service-item .btn:hover { color: #FFFFFF; background: var(--primary); }

/*** Tarjetas y flecha animada ***/
.flecha-animada i {
    font-size: 3rem; color: #1d1c68;
    animation: saltar 1s infinite alternate; cursor: pointer;
}
@keyframes saltar { from { transform: translateY(0); } to { transform: translateY(10px); } }

/*** Mapa ***/
#map {
    width: 90%; max-width: 900px; height: 800px; margin: 0 auto; background: #f0f0f0;
}
.estado { stroke: #fff; stroke-width: 1; fill: #ccc; }
.estado.destacado { fill: #1E90FF; }
.pinchazo { fill: red; }

/*** Títulos de las tarjetas ***/
.service-title h3 {
    font-size: 2.5rem !important;
    font-weight: bold !important;
    text-align: center !important;
}
.service-item .service-text p {
    font-size: 2.5rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
}
.service-title { text-align: center; }

/*** Team ***/
.container-team { position: relative; }
.container-team::before {
    position: absolute; content: ''; background: var(--bs-light);
    width: 100%; height: 100%; left: 0px; top: 0px;
    clip-path: polygon(0 70%, 100% 30%, 100% 100%, 0% 100%);
    z-index: -1;
}
.team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}
.team-item .team-social {
    position: absolute; width: 0; height: 100%; top: 0; right: 0;
    transition: .5s; background: var(--bs-primary);
    display: flex; align-items: center; justify-content: center;
}
.team-item:hover .team-social { width: 100%; left: 0; }
.team-item .team-social .btn { opacity: 0; transition: .5s; }
.team-item:hover .team-social .btn { opacity: 1; }
.team-item img {
    height: 150px; width: 100%; object-fit: contain;
    background-color: #fff; border-radius: 15px; border: 2px solid #ddd; padding: 10px;
}

/*** Carrusel ***/
.owl-nav {
    position: absolute; top: 50%; width: 100%;
    display: flex; justify-content: space-between;
    transform: translateY(-50%); pointer-events: none;
}
.owl-nav button {
    pointer-events: all;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.carousel-wrapper {
    display: flex; align-items: center; justify-content: center;
    width: 100%; flex-wrap: nowrap; gap: 15px;
}
.carousel-container { width: 100%; }
.carousel-nav {
    background-color: #0d6efd; color: #fff; border: none; border-radius: 50%;
    width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
    font-size: 20px; box-shadow: 0 0 10px rgba(0,0,0,0.2); transition: background 0.3s ease;
}
.carousel-nav:hover { background-color: #0b5ed7; }
@media (max-width: 768px) {
    .carousel-nav { width: 35px; height: 35px; font-size: 16px; }
}

/*** Testimonial ***/
.testimonial-carousel .owl-stage-outer { margin-top: 58px; margin-right: -1px; }
.testimonial .owl-nav .owl-prev, .testimonial .owl-nav .owl-next {
    position: absolute; top: -58px; background: var(--bs-primary);
    color: var(--bs-white); padding: 5px 30px; border-radius: 30px; transition: 0.5s;
}
.testimonial .owl-nav .owl-prev { left: 0; }
.testimonial .owl-nav .owl-next { right: 0; }
.testimonial .owl-nav .owl-prev:hover, .testimonial .owl-nav .owl-next:hover {
    background: var(--bs-dark); color: var(--bs-white);
}
.carousel-btn {
    border: 2px solid #0d6efd; border-radius: 20px; padding: 15px 25px;
    font-weight: bold; color: #0d6efd; background-color: white;
    cursor: pointer; transition: 0.3s;
}
.carousel-btn:hover { background-color: #0d6efd; color: white; }
.servicio-box {
    border: 2px solid #0d6efd; border-radius: 20px; padding: 15px 20px;
    background-color: white; transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.servicio-box:hover { background-color: #f0f8ff; transform: translateY(-3px); }
.servicio-box p { font-weight: 600; font-size: 1.1rem; color: #0d6efd; margin-bottom: 0; }

/*** Contact ***/
@media (min-width: 992px) {
    .contact-info::after {
        position: absolute; content: ""; width: 0px; height: 100%;
        top: 0; left: 50%; border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}
@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute; content: ""; width: 100%; height: 0px;
        top: 50%; left: 0; border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}
/*** Footer ***/
.footer {
    background: #1d1c68 !important;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 0;
    padding-right: 0;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute; 
        content: ""; 
        width: 0px; 
        height: 100%;
        top: 0; 
        left: 50%; 
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

.footer .btn.btn-link {
    display: block; 
    margin-bottom: 5px; 
    padding: 0; 
    text-align: left;
    color: rgba(255, 255, 255, .5); 
    font-weight: normal; 
    text-transform: capitalize; 
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative; 
    content: "\f105"; 
    font-family: "Font Awesome 5 Free";
    font-weight: 900; 
    color: rgba(255, 255, 255, .5); 
    margin-right: 10px;
}

.footer .btn.btn-link:hover { 
    color: var(--bs-primary); 
    letter-spacing: 1px; 
    box-shadow: none; 
}

/*** Copyright ***/
.copyright { 
    background: #1d1c68 !important;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 0;
    padding-right: 0;
    border-top: 1px dashed rgba(255, 255, 255, .2);
}

.copyright .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.copyright a { 
    color: var(--bs-white); 
}

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

/* Eliminar scroll horizontal */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
/* Asegurar que el body no tenga scroll horizontal */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Eliminar espacio blanco después del footer */
.footer {
    margin-bottom: 0 !important;
}

.container-fluid.bg-dark.text-light.footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body {
    margin-bottom: 0 !important;
}

html, body {
    margin: 0;
    padding: 0;
}

.copyright {
    margin-bottom: 0 !important;
    padding-bottom: 1rem !important;
}
/*** Facility ***/
.facility-item .facility-icon {
    position: relative; margin: 0 auto; width: 100px; height: 100px; border-radius: 100px;
    display: flex; align-items: center; justify-content: center;
}
.facility-item .facility-icon::before { display: none !important; }
.facility-item .facility-icon span { position: absolute; content: ""; width: 15px; height: 30px; top: 0; left: 0; border-radius: 50%; }
.facility-item .facility-icon span:last-child { left: auto; right: 0; }
.facility-item .facility-icon i { position: relative; z-index: 2; }
.facility-item .facility-text {
    position: relative; min-height: 250px; padding: 30px; border-radius: 100%;
    display: flex; text-align: center; justify-content: center; flex-direction: column;
}
.facility-item .facility-text::before {
    position: absolute; content: ""; width: 100%; height: 100%; top: 0; left: 0;
    background: rgba(255, 255, 255, .9); transition: .5s; z-index: 1;
}
.facility-item .facility-text * { position: relative; z-index: 2; }
.facility-item:hover .facility-icon::before, .facility-item:hover .facility-text::before { background: transparent; }
.facility-item * { transition: .5s; }
.facility-item:hover * { color: #FFFFFF !important; }
.facility-item {
    padding: 30px 20px; border: 2px solid #0056b3; border-radius: 20px;
    background-color: white; transition: all 0.3s ease;
}
.facility-icon {
    width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; background-color: #1d1c68; color: white; transition: all 0.3s ease;
    position: relative; z-index: 2;
}
.facility-text h5, .facility-text p { margin: 0; color: #000; transition: all 0.3s ease; }
.facility-item:hover { background-color: #1d1c68; }
.facility-item:hover .facility-icon { background-color: white; color:  #1d1c68 !important; }
.facility-item:hover .facility-text h5, .facility-item:hover .facility-text p { color: white !important; }




/*** About services ***/
.about-img img { transition: .5s; }
.about-img img:hover { background: var(--primary) !important; }

/*** Clientes círculo ***/
.clientes-circulo {
    height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
#logos-container {
    position: relative; width: 300px; height: 300px;
}
#logos-container img {
    position: absolute; top: 50%; left: 50%; width: 80px; height: 80px;
    object-fit: contain; filter: grayscale(100%);
    transform: translate(-50%, -50%); opacity: 0; transition: filter 0.5s ease;
}
#logos-container img.color { filter: grayscale(0%); }

.main-content {
  padding-top: 40px; /* Ajusta el valor según lo que veas en pantalla */
}

/* Barra navbar: fondo translúcido, altura fija */
header.sticky-top nav.container {
  background: rgba(230, 230, 248, 0.7); /* Gris translúcido, ajusta el último valor para más o menos transparencia */
  border-radius: 0;
  height: 70px;
  min-height: 70px;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-shadow: none;
}
/* Logo: nunca hace crecer la barra, se centra verticalmente */
.logo-navbar {
  max-height: 180px;   /* Cambia este valor para hacer el logo más grande o más pequeño */
  width: auto;
  object-fit: contain;
  display: block;
}

/* Centra verticalmente todo en la barra */
nav.container.d-flex {
  align-items: center !important;
}

/*** Estilos para los iconos de la sección "Generamos soluciones" ***/
.feature-icons .icon-circle {
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.8); /* Fondo blanco con 80% de opacidad */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-icons .icon-circle i {
    font-size: 2.5rem; /* Tamaño de los iconos aumentado */
    color: var(--bs-primary);
    transition: transform 0.3s ease;
}

.feature-icons .col-6:hover .icon-circle,
.feature-icons .col-12:hover .icon-circle {
    transform: scale(1.1); /* Efecto de crecimiento al pasar el cursor */
    background-color: rgba(255, 255, 255, 0.95); /* Más opaco al pasar el cursor */
}

.feature-icons .col-6:hover i,
.feature-icons .col-12:hover i {
    transform: scale(1.15); /* El icono crece un poco más */
}
 
/* caja de seccion nuestros servicios  */
.caja-transparente {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* Contenedor del mapa */
.mapa-contenedor {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.mapa-contenedor img {
    width: 100%;
    display: block;
}

/* Estilos de los pines */
.pin-ubicacion {
    position: absolute;
    opacity: 0;
    transform: translateY(-50px) scale(0.5);
    transition: all 0.6s ease;
}

.pin-ubicacion.activo {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: rebote 0.6s ease;
}

.pin-ubicacion i {
    font-size: 3rem;
    color: #dc3545;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
    animation: pulso 2s ease-in-out infinite;
}

.pin-ubicacion span {
    display: block;
    background: white;
    color: #1d1c68;
    padding: 6px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: -10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
    white-space: nowrap;
    text-align: center;
}

/* Posiciones específicas para cada ciudad (basadas en tu imagen) */
.monterrey {
    top: 35%;
    left: 54%;
}

.guadalajara {
    top: 60%;
    left: 40%;
}

.leon {
    top: 55%;
    left: 50%;
}

.puebla {
    top: 70%;
    left: 61%;
}

.cdmx {
    top: 67%;
    left: 55%;
}

/* Animaciones */
@keyframes rebote {
    0% {
        transform: translateY(-60px) scale(0.3);
    }
    50% {
        transform: translateY(10px) scale(1.1);
    }
    70% {
        transform: translateY(-5px) scale(0.95);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes pulso {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pin-ubicacion i {
        font-size: 2rem;
    }
    
    .pin-ubicacion span {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}
/*cuadro barras redondeado*/
.cuadro-barras {
    border-radius: 20px;
}

/* Contenedor del título hero */
.titulo-hero-container {
    perspective: 1500px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.titulo-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    font-weight: 700;
    color: #1d1c68;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    gap: 8px;
}

/* Cada letra */
.letra-hero {
    display: inline-block;
    transform-style: preserve-3d;
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 1;
}

.letra-espacio {
    width: 30px;
}

/* Estado inicial: 3D disperso */
.letra-hero.dispersa {
    transform: 
        translateX(var(--dx, 0)) 
        translateY(var(--dy, 0)) 
        translateZ(var(--dz, 200px))
        rotateX(var(--drx, 45deg)) 
        rotateY(var(--dry, 45deg)) 
        rotateZ(var(--drz, 0));
    opacity: 0.3;
}

/* Estado final: acomodado */
.letra-hero.acomodada {
    transform: 
        translateX(0) 
        translateY(0) 
        translateZ(0) 
        rotateX(0) 
        rotateY(0) 
        rotateZ(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .titulo-hero {
        font-size: 3rem;
    }
    
    .titulo-hero-container {
        height: 100px;
    }
}


.categories-section {
  background: linear-gradient(180deg, #f5f7fa 0%, #c3cfe2 50%, #f5f7fa 100%);
  min-height: 100vh;
}

.main-title {
  font-size: 3rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 80px;
}

/* Bloque de cada categoría */
.category-block {
  margin-bottom: 120px;
  padding: 40px 0;
}

/* Título de categoría */
.category-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: #4a5568;
  position: relative;
  display: inline-block;
  width: 100%;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

/* Imágenes circulares con efecto */
.circular-img-wrapper {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.5s ease;
  position: relative;
}

.circular-img-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.circular-img-wrapper:hover::before {
  opacity: 1;
}

.circular-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.circular-img-wrapper:hover img {
  transform: scale(1.15) rotate(5deg);
}

.circular-img-wrapper:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
  border-color: #667eea;
}

.circular-item p {
  font-weight: 600;
  color: #4a5568;
  font-size: 1.1rem;
  margin-top: 20px;
}

/* Animaciones de aparición */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

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

.fade-in-up {
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Delay escalonado para cada imagen dentro de su categoría */
.category-block .circular-item:nth-child(1) { 
  transition-delay: 0.2s; 
}
.category-block .circular-item:nth-child(2) { 
  transition-delay: 0.4s; 
}
.category-block .circular-item:nth-child(3) { 
  transition-delay: 0.6s; 
}
.category-block .circular-item:nth-child(4) { 
  transition-delay: 0.8s; 
}

/* Responsivo */
@media (max-width: 768px) {
  .circular-img-wrapper {
    width: 180px;
    height: 180px;
  }
  
  .category-title {
    font-size: 2rem;
  }
  
  .main-title {
    font-size: 2.2rem;
  }
}


/* --- */ 

.carousel-final {
  background: linear-gradient(135deg, #ffffff 50%, #ffffff 100%);
  padding: 60px 20px;
}

.carousel-final-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.carousel-final-container {
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
}

.carousel-final-track {
  display: flex;
  gap: 20px;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: fit-content;
}

/* Tarjetas grandes */
.carousel-final-slide {
  width: 420px;
  min-width: 420px;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
  flex-shrink: 0;
}

.carousel-final-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.carousel-final-slide:hover img {
  transform: scale(1.05);
}

.carousel-final-slide:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Texto abajo */
.slide-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 25px 20px 20px;
  font-size: 1.3rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.carousel-final-slide:hover .slide-label {
  padding-bottom: 25px;
}

/* Botones */
.carousel-btn-final {
  background: rgb(29, 35, 109);
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #667eea;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  z-index: 10;
}

.carousel-btn-final:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.carousel-btn-final:active {
  transform: scale(0.95);
}

/* Indicadores */
.carousel-indicators-final {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.indicator-final {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(32, 14, 135);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator-final.active {
  background: rgb(12, 34, 144);
  width: 30px;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.indicator-final:hover {
  background: rgba(11, 23, 131, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-final-slide {
    width: 320px;
    height: 280px;
  }

  .slide-label {
    font-size: 1.1rem;
    padding: 20px 15px 15px;
  }

  .carousel-btn-final {
    width: 45px;
    height: 45px;
  }
}


/*** nuevo inicio ***/
/* Hero Section - Colores principales */
:root {
  --hero-navy: #0a1a2e;
  --shape-pink: #085597;
  --shape-purple: #a7b5c1;
  --shape-mint: #71b9e7;
  --shape-coral: #f9fafb;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--hero-navy);
}

/* Formas orgánicas de fondo */
.organic-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  opacity: 0.8;
}

/* Shape 1 - Rosa/Magenta - Arriba izquierda */
.shape-1 {
  top: -8rem;
  left: -8rem;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at 30% 30%, #085597, #a7b5c1);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  filter: blur(60px);
  transform: rotate(-15deg);
}

/* Shape 2 - Morado - Arriba derecha */
.shape-2 {
  top: -5rem;
  right: 0;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle at 60% 40%, #71b9e7, #085597);
  border-radius: 48% 52% 68% 32% / 42% 61% 39% 58%;
  filter: blur(70px);
  transform: rotate(25deg);
  opacity: 0.75;
}

/* Shape 3 - Verde menta - Lado derecho */
.shape-3 {
  top: 33%;
  right: -6rem;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle at 50% 50%, #a7b5c1, #a7b5c1);
  border-radius: 42% 58% 45% 55% / 61% 35% 65% 39%;
  filter: blur(65px);
  transform: rotate(-10deg);
  opacity: 0.85;
}

/* Shape 4 - Coral - Abajo derecha */
.shape-4 {
  bottom: 0;
  right: 25%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle at 40% 60%, #085597, #b7e1ee);
  border-radius: 55% 45% 39% 61% / 48% 62% 38% 52%;
  filter: blur(55px);
  transform: rotate(40deg);
  opacity: 0.7;
}

/* Shape 5 - Rosa secundario - Abajo izquierda */
.shape-5 {
  bottom: -8rem;
  left: -5rem;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 70% 30%, #085597, #f9fafb);
  border-radius: 38% 62% 57% 43% / 68% 39% 61% 32%;
  filter: blur(50px);
  transform: rotate(-30deg);
  opacity: 0.65;
}

/* Líneas decorativas */
.accent-line {
  position: absolute;
  height: 6px;
  opacity: 0.6;
}

.accent-line-1 {
  top: 8rem;
  left: 3rem;
  width: 128px;
  background: linear-gradient(to right, var(--shape-mint), transparent);
  transform: rotate(-45deg);
}

.accent-line-2 {
  top: 12rem;
  right: 8rem;
  width: 112px;
  background: linear-gradient(to left, var(--shape-coral), transparent);
  transform: rotate(35deg);
  opacity: 0.5;
}

/* Contenido del hero */
.hero-content {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
}

/* Texto del hero */
.hero-text {
  max-width: 600px;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-headline {
  font-size: 4rem;
  font-weight: 700;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  font-family: 'Poppins', sans-serif;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 3rem;
}

/* Indicadores del carrusel */
.carousel-indicators {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.indicator.active {
  width: 48px;
  height: 12px;
  border-radius: 6px;
  background: white;
}

/* Imagen del hero */
.hero-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper {
  max-width: 600px;
  transition: all 0.5s ease;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
   transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Animación de transición */
.fade-transition {
  opacity: 0;
  transform: scale(0.95);
}

/* Responsive */
@media (max-width: 991px) {
  .shape-1, .shape-2, .shape-3, .shape-4 {
    width: 400px;
    height: 400px;
  }
  
  .hero-headline {
    font-size: 3rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-text {
    margin-bottom: 3rem;
  }
}

@media (max-width: 767px) {
  .shape-1, .shape-2, .shape-3 {
    width: 300px;
    height: 300px;
  }
  
  .shape-4, .shape-5 {
    display: none;
  }
  
  .hero-headline {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}

/* ========================================
   NAVBAR STYLES
   ======================================== */

.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 26, 46, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.navbar-brand {
    flex-shrink: 0;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Menú de navegación - Desktop */
.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: #085597 !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--shape-pink), var(--shape-purple));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: rgb(250, 240, 240);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: white;
}

/* Botón CTA (Contáctanos) */
.nav-link-cta {
    background: linear-gradient(135deg, var(--shape-pink), var(--shape-purple));
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.75rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    color: white;
}

/* Botón hamburguesa - Móvil */
.navbar-toggler {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.toggler-line {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler.active .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggler.active .toggler-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menú móvil */
.navbar-mobile-menu {
    position: fixed;
    top: 77px;
    left: 0;
    right: 0;
    background: rgba(10, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-mobile-menu.active {
    max-height: 400px;
}

.navbar-mobile-menu ul {
    list-style: none;
    padding: 1.5rem 0;
    margin: 0;
}

.navbar-mobile-menu li {
    padding: 0;
}

.mobile-nav-link {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--shape-pink);
}

.mobile-nav-link-cta {
    display: block;
    margin: 1rem 2rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--shape-pink), var(--shape-purple));
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-nav-link-cta:hover {
    transform: scale(1.02);
    color: white;
}

/* Ajustar hero para que no quede detrás de la navbar */
.hero-section {
    padding-top: 77px; /* Altura de la navbar */
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-menu {
        display: none;
    }

    .navbar-toggler {
        display: flex;
    }

    .logo-img {
        height: 40px;
    }
}

@media (min-width: 992px) {
    .navbar-mobile-menu {
        display: none;
    }

    .logo-img {
        height: 50px;
    }

    .navbar-menu {
        gap: 3rem;
    }
}

@media (min-width: 1200px) {
    .logo-img {
        height: 55px;
    }
}
/* ========================================
   NAVBAR STYLES
   ======================================== */
/* ========================================
   NAVBAR STYLES - FORZAR ALTURA BAJA
   ======================================== */

.navbar-custom {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 65px; /* ALTURA FIJA */
    background: rgb(10, 26, 46);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-custom.scrolled {
    height: 60px; /* Más compacta al hacer scroll */
    background: rgba(10, 26, 46, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* IMPORTANTE: Eliminar padding de Bootstrap */
.navbar-custom .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 100%;
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* Logo */
.navbar-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 150px !important;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Menú de navegación - Desktop */
.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.navbar-menu li {
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1.0rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* Raya debajo de los links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #085597, #0a6bb5);
    transition: width 0.3s ease;
}

/* Raya al pasar el mouse */
.nav-link:hover::after {
    width: 100%;
}

/* Raya FIJA cuando está activo - FORZADO */
.nav-link.active::after {
    width: 100% !important;
    opacity: 1 !important;
    display: block !important;
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: white;
}

/* Botón CTA (Contáctanos) */
.nav-link-cta {
    background: linear-gradient(135deg, var(--shape-pink), var(--shape-purple));
    color: white;
    text-decoration: none;
    padding: 0.55rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    white-space: nowrap;
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    color: white;
}

/* Botón hamburguesa - Móvil */
.navbar-toggler {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.toggler-line {
    width: 25px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler.active .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.navbar-toggler.active .toggler-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Menú móvil */
.navbar-mobile-menu {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(10, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-mobile-menu.active {
    max-height: 400px;
}

.navbar-mobile-menu ul {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.navbar-mobile-menu li {
    padding: 0;
}

.mobile-nav-link {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--shape-pink);
}

.mobile-nav-link-cta {
    display: block;
    margin: 0.75rem 2rem;
    padding: 0.7rem 1.3rem;
    background: linear-gradient(135deg, var(--shape-pink), var(--shape-purple));
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-nav-link-cta:hover {
    transform: scale(1.02);
    color: white;
}

/* Ajustar hero */
.hero-section {
    padding-top: 101px;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-custom {
        height: 60px;
    }
    
    .navbar-menu {
        display: none;
    }

    .navbar-toggler {
        display: flex;
    }

    .logo-img {
        height: 35px;
    }
    
    .navbar-mobile-menu {
        top: 60px;
    }
    
    .hero-section {
        padding-top: 60px;
    }
}

@media (min-width: 992px) {
    .navbar-mobile-menu {
        display: none;
    }

    .logo-img {
        height: 30px;
    }

    .navbar-menu {
        gap: 2.5rem;
    }
}

@media (min-width: 1200px) {
    .logo-img {
        height: 30px;
    }
}
/* ========================================
   TOPBAR STYLES - VERSIÓN MEJORADA
   ======================================== */
/* ========================================
   TOPBAR STYLES
   ======================================== */

.topbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001; /* Más alto que el navbar */
    background: #1d1c68;
    color: white;
    padding: 8px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.topbar-custom small {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.topbar-custom i {
    color: rgba(255, 255, 255, 0.8);
}

/* Espaciado para todas las páginas (no solo hero) */
body {
    padding-top: 101px; /* 36px topbar + 65px navbar */
}

/* O si prefieres aplicarlo a todas las secciones principales */
main, 
.main-content,
section:first-of-type {
    padding-top: 101px;
}

/* Excepción para el hero que ya tiene su propio padding */
.hero-section {
    padding-top: 101px !important;
}


/* ========================================
   SECCIÓN BOT PRESENTANDO SERVICIOS
   ======================================== */

.bot-servicios-section {
    position: relative;
    min-height: 100vh;
    background: #0a1a2e;
    padding: 120px 0 80px;
    overflow: hidden;
}

/* Container del BOT */
.bot-container {
    position: sticky;
    top: 150px;
    z-index: 100;
}

/* Robot/Mascota */
.bot-character {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    text-align: center;
}

.bot-image {
    width: 100%;
    max-width: 300px;
    animation: botFloat 3s ease-in-out infinite;
}

.bot-emoji {
    font-size: 12rem;
    animation: botFloat 3s ease-in-out infinite;
    text-align: center;
}

@keyframes botFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Globo de diálogo */
.speech-bubble {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: bubblePop 0.5s ease;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid white;
}

.speech-bubble p {
    margin: 0;
    color: #085597;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

@keyframes bubblePop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* Brazo/Flecha señalando */
.bot-pointer {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    animation: pointRight 1s ease-in-out infinite;
}

.pointer-arm i {
    font-size: 3rem;
    color: #085597;
}

@keyframes pointRight {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(15px); }
}

/* Lista de servicios */
.servicios-list {
    padding: 2rem 0;
}

.servicios-list-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 3rem;
    text-align: left;
}

/* Item de servicio */
.servicio-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border-left: 4px solid transparent;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.servicio-item.active {
    opacity: 1;
    transform: translateX(0);
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #085597;
    box-shadow: 0 10px 30px rgba(8, 85, 151, 0.2);
}

.servicio-icon-small {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, #085597, #0a6bb5);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.servicio-item.active .servicio-icon-small {
    transform: scale(1.1) rotate(5deg);
}

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

.servicio-content-small h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.servicio-content-small p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Botón scroll hacia abajo */
.scroll-down-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
}

.scroll-down-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: bounceDown 2s ease-in-out infinite;
}

.scroll-down-btn:hover {
    color: #085597;
    transform: translateY(5px);
}

.scroll-down-btn i {
    font-size: 2rem;
    margin-top: 0.5rem;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(15px); }
}

/* Formas orgánicas */
.organic-shapes-bot {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.shape-bot-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(8, 85, 151, 0.1), transparent);
    border-radius: 50%;
    filter: blur(80px);
}

.shape-bot-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(167, 181, 193, 0.08), transparent);
    border-radius: 50%;
    filter: blur(70px);
}

/* ========================================
   SECCIÓN TARJETAS DETALLADAS
   ======================================== */

.servicios-tarjetas-section {
    position: relative;
    min-height: 100vh;
    padding: 100px 0 80px;
    background: #0d1f33;
    overflow: hidden;
}

/* Encabezado */
.servicios-header .eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Grid de tarjetas */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 10;
}

/* Tarjeta individual */
.servicio-card {
    background: rgba(8, 85, 151, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #085597, #0a6bb5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.servicio-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(8, 85, 151, 0.5);
    box-shadow: 0 20px 40px rgba(8, 85, 151, 0.2);
}

.servicio-card:hover::before {
    transform: scaleX(1);
}

/* Número */
.servicio-numero {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(8, 85, 151, 0.15);
    line-height: 1;
    transition: all 0.4s ease;
}

.servicio-card:hover .servicio-numero {
    color: rgba(8, 85, 151, 0.3);
    transform: scale(1.1);
}

/* Ícono */
.servicio-icono {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #085597, #0a6bb5);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.servicio-icono i {
    font-size: 1.75rem;
    color: white;
}

.servicio-card:hover .servicio-icono {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(8, 85, 151, 0.4);
}

/* Título */
.servicio-titulo {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Descripción */
.servicio-descripcion {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

/* Formas orgánicas */
.organic-shapes-servicios {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.shape-servicios-1 {
    position: absolute;
    top: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(8, 85, 151, 0.15), transparent);
    border-radius: 50%;
    filter: blur(80px);
}

.shape-servicios-2 {
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(167, 181, 193, 0.1), transparent);
    border-radius: 50%;
    filter: blur(90px);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 991px) {
    .bot-container {
        position: static;
        margin-bottom: 3rem;
    }
    
    .bot-pointer {
        display: none;
    }
    
    .servicios-list-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .bot-emoji {
        font-size: 8rem;
    }
    
    .servicios-list-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .servicio-card {
        padding: 2rem;
    }
}
/* Fondo de la sección de tarjetas de servicios */
#tarjetas-detalle {
    background: #ffffff !important;  /* <-- CAMBIA ESTE COLOR */
}

.servicios-tarjetas-section {
    background: #0d1f33 !important;  /* <-- O CAMBIA ESTE */
}

/* ========================================
   AJUSTAR ALTURA DEL HERO seccion principal carrusel
   ======================================== */

.hero-section {
    min-height: 10vh !important; /* Forzar 70% de altura */
    padding: 120px 0 60px !important;
}

.hero-content .row.min-vh-100 {
    min-height: 10vh !important; /* Forzar 70% también aquí */
}

.hero-image {
    max-height: 450px; /* Imagen más pequeña */
}

/* Móvil */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto !important;
        padding: 80px 0 40px !important;
    }
    
    .hero-content .row.min-vh-100 {
        min-height: auto !important;
    }
}


/* ========================================
   SECCIÓN TARJETAS DE SERVICIOS
   ======================================== */

/* Fondo BLANCO para la sección */
.servicios-tarjetas-section {
    background: #ffffff !important;
}

/* Tarjetas con efecto GLASS azul transparente */
.servicio-card {
    background: rgba(8, 85, 151, 0.08) !important;  /* Azul transparente */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(8, 85, 151, 0.2) !important;
}

.servicio-card:hover {
    background: rgba(8, 85, 151, 0.15) !important;  /* Más intenso al hover */
    border-color: rgba(8, 85, 151, 0.4) !important;
    box-shadow: 0 20px 40px rgba(8, 85, 151, 0.2) !important;
}

/* Textos OSCUROS (porque el fondo es blanco) */
.servicios-header .eyebrow {
    color: #085597 !important;
}

.servicios-header .section-title {
    color: #333333 !important;
}

.servicios-header .section-description {
    color: #666666 !important;
}

.servicio-titulo {
    color: #333333 !important;
}

.servicio-descripcion {
    color: #555555 !important;
}

/* Número de fondo en las tarjetas */
.servicio-numero {
    color: rgba(8, 85, 151, 0.1) !important;
}

.servicio-card:hover .servicio-numero {
    color: rgba(8, 85, 151, 0.2) !important;
}

/* Ícono de las tarjetas */
.servicio-icono {
    background: rgba(8, 85, 151, 0.1) !important;
    color: #085597 !important;
}

.servicio-card:hover .servicio-icono {
    background: #085597 !important;
    color: white !important;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    background: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    color: white;
}
.whatsapp-float i {
    animation: pulse-whatsapp 1.5s ease-in-out infinite;
}
@keyframes pulse-whatsapp {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: #333;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}
/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}


/* ========================================
   SECCIÓN CONTACTO y mapa
   ======================================== */

.contacto-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #085597;
    text-transform: uppercase;
}

/* Mapa */
.mapa-contenedor {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.mapa-contenedor img {
    width: 100%;
    height: auto;
}

/* Pines del mapa */
.pin-ubicacion {
    position: absolute;
 
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(8, 85, 151, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
}

.pin-ubicacion.activo {
    opacity: 1;
    transform: scale(1);
    animation: pinBounce 0.6s ease;
}

.pin-ubicacion:hover {
    transform: scale(1.1);
    background: #0a6bb5;
    box-shadow: 0 8px 25px rgba(8, 85, 151, 0.5);
}

.pin-ubicacion.selected {
    background: #0a6bb5;
    transform: scale(1.15);
}

@keyframes pinBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pin-ubicacion i {
    font-size: 1.2rem;
    margin-right: 0.3rem;
}

/* Posiciones de los pines (ajústalas según tu mapa) */
.cdmx { top: 76%; left: 55%; }
.monterrey { top: 33%; left: 53%; }
.guadalajara { top: 66%; left: 40%; }
.leon { top: 60%; left: 50%; }
.puebla { top: 70%; left: 59%; }

/* Cuadro de Direcciones */
.direcciones-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-height: 600px;
    overflow-y: auto;
}

.direcciones-card h3 {
    color: #085597;
    font-weight: 700;
    margin-bottom: 2rem;
}

.direccion-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    background: #f8f9fa;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
    display: none;
}

.direccion-item.active {
    display: block;
    opacity: 1;
    background: #e7f3ff;
    border-left-color: #085597;
    box-shadow: 0 5px 20px rgba(8, 85, 151, 0.1);
}

.direccion-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.direccion-header i {
    color: #085597;
    font-size: 1.5rem;
}

.direccion-header h5 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.direccion-texto {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.direccion-meta {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 0.9rem;
}

.direccion-meta i {
    color: #085597;
}

/* Formulario */
.formulario-contacto {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.formulario-contacto h3 {
    color: #085597;
    font-weight: 700;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #085597;
    box-shadow: 0 0 0 0.2rem rgba(8, 85, 151, 0.1);
}

.btn-primary {
    background: #085597;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0a6bb5;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(8, 85, 151, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .direcciones-card {
        margin-top: 2rem;
    }
    
    .pin-ubicacion {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}
