/********** Template CSS **********/
:root {
    --primary: #4761FF;
    --secondary: #555555;
    --light: #F1F3FA;
    --dark: #1C2035;
}

.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(--light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--dark);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 15px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

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

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .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;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 3.5rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
}

/* Ajustar la altura del carrusel */
#header-carousel .carousel-item {
    height: 60vh; /* Ajusta este valor según tu preferencia, 60vh es el 60% de la altura de la ventana */
}

#header-carousel .carousel-item img {
    object-fit: cover; /* Mantiene las proporciones de la imagen mientras la recorta si es necesario */
    height: 100%; /* Asegura que la imagen ocupe todo el contenedor */
    width: 100%;
}



/* Opcional: Si quieres un tamaño diferente para pantallas más pequeñas */
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        height: 40vh; /* Ajusta este valor para móviles si prefieres un tamaño más pequeño */
    }
}


@media (max-width: 768px) {
    #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: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Features ***/
.feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
}


/*** About ***/
.about {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../assets/img/nosotros2.jpg) left center no-repeat;
    background-size: cover;
}

.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(--primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 100%;
    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;
}


/*** Service ***/
.service-item .service-text {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    text-align: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
    transition: .5s;
    z-index: 2;
}

.service-item:hover .service-text {
    top: -1.5rem;
}

.service-item .service-text h5 {
    transition: .5s;
}

.service-item:hover .service-text h5 {
    color: var(--primary);
}

.service-item .service-btn {
    position: absolute;
    width: 80%;
    height: 3rem;
    left: 10%;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    transition: .5s;
    z-index: 1;
}

.service-item:hover .service-btn {
    bottom: -1.5rem;
}


/*** Project ***/
.project-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.project-item .project-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    padding-top: 60px;
    transition: .5s;
}

.project-item:hover .project-overlay {
    opacity: 1;
    padding-top: 0;
}

.project-carousel .owl-nav {
    position: absolute;
    top: -100px;
    right: 0;
    display: flex;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin-left: 15px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    font-size: 25px;
    transition: .5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .project-carousel .owl-nav {
        top: -70px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .project-carousel .owl-nav .owl-prev,
    .project-carousel .owl-nav .owl-next {
        margin: 0 7px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}


/*** Team ***/
.team-item {
    position: relative;
    text-align: center;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .team-social {
    position: absolute;
    padding: 0;
    top: 15px;
    left: 0;
    overflow: hidden;
}

.team-item .team-social li {
    list-style-type: none;
    margin-bottom: 10px;
    margin-left: -50px;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social li {
    margin-left: 15px;
    opacity: 1;
}

.team-item .team-social li .btn {
    background: #FFFFFF;
    color: var(--primary);
    border-radius: 40px;
    transition: .5s;
}

.team-item .team-social li .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item .team-social li:nth-child(1) {
    transition-delay: .1s;
}

.team-item .team-social li:nth-child(2) {
    transition-delay: .2s;
}

.team-item .team-social li:nth-child(3) {
    transition-delay: .3s;
}

.team-item .team-social li:nth-child(4) {
    transition-delay: .4s;
}

.team-item .team-social li:nth-child(5) {
    transition-delay: .5s;
}


/*** Testimonial ***/
.testimonial-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    transition: .5s;
}

.owl-item .testimonial-item,
.testimonial-item * {
    transition: .5s;
}

.owl-item.center .testimonial-item,
.testimonial-item:hover {
    background: var(--primary);
}

.owl-item.center .testimonial-item *,
.testimonial-item:hover * {
    color: #FFFFFF !important;
}

.testimonial-item img {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0; /* o ajústalo si algún logo requiere bordes suaves */
}


.testimonial-carousel .owl-nav {
    position: absolute;
    top: -100px;
    right: 0;
    display: flex;
}

.owl-carousel .owl-item img {
     display:inline-block;
    width: 100%;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-left: 15px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    font-size: 25px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-nav {
        top: -70px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .testimonial-carousel .owl-nav .owl-prev,
    .testimonial-carousel .owl-nav .owl-next {
        margin: 0 7px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}


/*** Footer ***/
.footer {
    color: #B0B9AE;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #616164;
    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;
    margin-right: 10px;
}

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

.copyright {
    color: #B0B9AE;
}

.copyright {
    background: #111111;
}

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

.btn-primary{ background-color:#004aad;}

.carousel-caption h1, .carousel-caption h2, carousel-caption h3, .carousel-caption p {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.text-container {
    background-color: rgba(0, 0, 0, 0.5); /* Fondo negro semi-transparente */
    padding: 30px; /* Ajusta el padding para crear más espacio alrededor del texto */
    border-radius: 8px; /* Opcional: bordes redondeados para un look más suave */
   
}




.bg-azul-wapps
 {
    background-color: #004aad !important;
}

.text-primary{
    color:#004aad !important;
}

/* Overlay y legibilidad hero */
.hero-overlay::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
}

/* Tarjetas elegantes */
.card-pro{
  border:1px solid #eef0f4; border-radius:1rem;
  box-shadow:0 10px 30px rgba(16,24,40,.06);
}

/* Logos clientes: escala y gris a color */
.client-logo{
  max-height:48px; filter:grayscale(1); opacity:.8; transition:.2s;
}
.client-logo:hover{ filter:none; opacity:1; transform:translateY(-2px); }

/* Métricas */
.kpi{
  font-weight:800; font-size:2.25rem; line-height:1; letter-spacing:-.02em;
}
.kpi-label{ color:#64748b; }

/* Testimonio PRO */
.testimonial-quote{ font-size:1.05rem; color:#334155; }
.testimonial-name{ font-weight:700; }
.testimonial-role{ color:#64748b; font-size:.95rem; }

/* Botón primario más premium */
.btn-primary{
  background:#1d4ed8; border-color:#1d4ed8;
}
.btn-primary:hover{
  background:#163db2; border-color:#163db2;
}

/* Botón ghost */
.btn-ghost{
  background:rgba(255,255,255,.15); color:#fff; border:1px solid rgba(255,255,255,.3);
}
.btn-ghost:hover{ background:rgba(255,255,255,.25); color:#fff; }

/* Fix: enlaces dentro de enlaces (accesibilidad) */
.contact-cta a{ text-decoration:none; }

/* Espaciado sección clientes */
#clientes .section-intro{ max-width:760px; }

/* Contenedor del logo: fondo sutil + hover */
.logo-tile{
  background:#fff;
  border:1px solid #eef0f4;
  border-radius:14px;
  padding:14px 16px;
  display:flex; align-items:center; justify-content:center;
  height:84px;
  transition:.2s ease;
  box-shadow:0 6px 18px rgba(17,24,39,0.05);
}
.logo-tile:hover{ transform:translateY(-3px); box-shadow:0 10px 26px rgba(17,24,39,0.08); }

/* Imagen: escala uniforme sin deformar + efecto a color */
.logo-img{
  max-width:100%;
  max-height:54px;
  width:auto; height:auto;
  object-fit:contain;
  filter:grayscale(1) contrast(1.05);
  opacity:.85;
  transition:.2s ease;
}
.logo-tile:hover .logo-img{ filter:none; opacity:1; }

/* Ajustes responsive finos */
@media (min-width: 992px){
  .logo-tile{ height:96px; }
  .logo-img{ max-height:60px; }
}


/* --- Franja de logos con scroll infinito --- */
/* contenedor con degradado en bordes para un look premium */
.logo-marquee{
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  /* máscara/gradiente para desvanecer bordes */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  background: #fff;
}

/* pista que se desplaza */
.logo-track{
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;               /* tan ancho como su contenido */
  animation: logos-scroll 45s linear infinite;
}

/* pausa al pasar el mouse (experiencia premium) */
.logo-marquee:hover .logo-track{
  animation-play-state: paused;
}

/* cada logo dentro de una loseta sutil */
.logo-item{
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 12px 18px;
  height: 84px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(17,24,39,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.logo-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(17,24,39,0.08);
}

/* imagen del logo: escala uniforme + gris a color en hover */
.logo-img{
  max-height: 56px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: .85; transition: filter .2s ease, opacity .2s ease;
}
.logo-item:hover .logo-img{
  filter: none; opacity: 1;
}

/* animación infinita */
@keyframes logos-scroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* el 50% coincide con el tamaño del Set A */
}

/* ajustes responsive */
@media (min-width: 992px){
  .logo-item{ height: 96px; }
  .logo-img{ max-height: 64px; }
}

/* respeta usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce){
  .logo-track{ animation: none; }
}

/* utilitario para texto accesible oculto */
.visually-hidden{
  position:absolute !important; height:1px; width:1px; overflow:hidden;
  clip:rect(1px,1px,1px,1px); white-space:nowrap; border:0; padding:0; margin:-1px;
}

/* --- Features PRO --- */
.feature-pro{
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #eef0f4;
  box-shadow: 0 10px 30px rgba(16,24,40,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  isolation: isolate; /* para el pseudo borde */
}

/* Borde superior con gradiente sutil */
.feature-pro::before{
  content:"";
  position:absolute; inset:0 0 auto 0; height:4px; border-radius:16px 16px 0 0;
  background: linear-gradient(90deg, #3b82f6, #22c55e, #06b6d4);
  opacity:.85;
}

.feature-pro:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(16,24,40,.10);
  border-color:#e6e8ef;
}

/* Aro del ícono */
.icon-ring{
  width:64px; height:64px; border-radius:50%;
  display:grid; place-items:center;
  margin-bottom:14px;
  background: radial-gradient(100% 100% at 50% 0%, #f8fafc 0%, #eef2ff 100%);
  border:1px solid #e9ecf5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.icon-ring i{
  font-size:28px; color:#1d4ed8;
}

/* Lista de bullets con checks */
.feature-list{
  list-style:none; padding-left:0; margin:0;
}
.feature-list li{
  display:flex; align-items:center; gap:8px;
  color:#334155; font-size:.95rem; margin:.25rem 0;
}
.feature-list i{ color:#16a34a; }

/* Animación sutil al aparecer (sin WOW) */
@media (prefers-reduced-motion: no-preference){
  .feature-pro{ opacity:0; transform: translateY(10px); }
  .feature-pro.appear{ opacity:1; transform: translateY(0); transition: transform .5s ease, opacity .6s ease; }
}

/* --- About Section Mejorada --- */
.about-section {
  background: linear-gradient(180deg, #f9fafc 0%, #eef2ff 100%);
  position: relative;
}

.about-section::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle at center, rgba(59,130,246,0.08), transparent 70%);
  z-index: 0;
}
.about-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at center, rgba(16,185,129,0.07), transparent 70%);
  z-index: 0;
}

/* Imagen */
.about-image-wrapper img {
  max-width: 100%;
  border-radius: 16px;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}
.about-image-wrapper img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Contenido */
.about-content {
  border: 1px solid #eef0f4;
}
.about-content h2 {
  font-weight: 700;
  line-height: 1.2;
}
.about-content p {
  font-size: 1rem;
  line-height: 1.6;
}
.about-content i {
  font-size: 1rem;
}

/* Responsivo */
@media (max-width: 992px) {
  .about-content {
    margin-top: 2rem;
  }
}


/* ===== About WOW ===== */
.about-pro-section{
  background: linear-gradient(180deg, #f9fafc 0%, #eef2ff 100%);
}

/* blobs decorativos */
.about-blob{
  position:absolute; z-index:0; filter:blur(40px); opacity:.4;
}
.about-blob--1{
  top:-80px; left:-60px; width:320px; height:320px;
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,.35), transparent 60%);
}
.about-blob--2{
  bottom:-100px; right:-60px; width:380px; height:380px;
  background: radial-gradient(circle at 70% 70%, rgba(16,185,129,.30), transparent 60%);
}

/* tarjeta */
.about-card{
  position:relative; z-index:1; border:1px solid #eef0f4;
}

/* título con gradiente */
.grad-text{
  background: linear-gradient(90deg, #2563eb, #06b6d4, #22c55e);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* visual */
.about-visual{ position:relative; z-index:1; }
.about-frame{
  margin:0; border-radius:18px; overflow:hidden; position:relative;
  background: #fff; border:1px solid #eef0f4;
  box-shadow: 0 12px 36px rgba(16,24,40,.10);
}
.about-frame img{
  display:block; width:100%; height:auto; object-fit:cover;
  transition: transform .45s ease;
}
.about-frame::after{ /* borde brillante */
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(120deg, rgba(37,99,235,.12), rgba(6,182,212,.08), rgba(34,197,94,.12));
  mix-blend-mode: screen; opacity:.7;
}
.about-frame:hover img{ transform: scale(1.03); }

/* badges flotantes */
.about-badge{
  position:absolute; z-index:2; background:#fff; border:1px solid #eef0f4;
  border-radius:999px; padding:8px 12px; font-size:.9rem; color:#0f172a;
}
.about-badge i{ color:#2563eb; margin-right:6px; }
.about-badge--top{ top:12px; left:12px; }
.about-badge--bottom{ bottom:12px; right:12px; }

/* bullets */
.about-bullets li{ margin:.35rem 0; color:#334155; }

/* KPIs */
.kpi{
  font-weight:800; font-size:2.1rem; line-height:1; letter-spacing:-.02em; color:#0f172a;
}
.kpi::after{ /* sufijos dinámicos opcionales si quisieras, ahora solo número */
  content:"";
}
.kpi-label{ color:#64748b; font-size:.9rem; }

/* timeline simple */
.about-steps{
  display:flex; gap:14px; flex-wrap:wrap;
}
.about-steps .step{
  background:#fff; border:1px solid #e9ecf5; border-radius:999px;
  padding:6px 12px; color:#334155; font-size:.92rem;
  box-shadow: 0 6px 18px rgba(17,24,39,0.05);
}
.about-steps .step span{
  display:inline-grid; place-items:center; width:22px; height:22px;
  border-radius:50%; margin-right:6px; font-size:.8rem; font-weight:700; color:#fff;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

/* responsive */
@media (max-width: 991.98px){
  .kpi{ font-size:1.8rem; }
}

/* ==== Services PRO ==== */
.services-section{
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

.service-card{
  display:flex; flex-direction:column;
  background:#fff; border:1px solid #eef0f4; border-radius:16px;
  padding:24px;
  box-shadow:0 8px 26px rgba(16,24,40,.06);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position:relative; overflow:hidden;
}
.service-card:hover{
  transform: translateY(-4px);
  box-shadow:0 16px 40px rgba(16,24,40,.10);
  border-color:#e6e8ef;
}

/* badge */
.service-badge{
  position:absolute; top:14px; right:14px;
  background:linear-gradient(90deg, #2563eb, #06b6d4);
  color:#fff; font-size:.75rem; font-weight:700; letter-spacing:.02em;
  padding:4px 10px; border-radius:999px;
  box-shadow:0 6px 18px rgba(2,132,199,.25);
}

/* icono circular */
.service-icon{
  width:64px; height:64px; border-radius:50%;
  display:grid; place-items:center; margin-bottom:12px;
  background: radial-gradient(100% 100% at 50% 0%, #f8fafc 0%, #eef2ff 100%);
  border:1px solid #e9ecf5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.service-icon i{ font-size:28px; color:#1d4ed8; }

/* lista */
.service-list{ list-style:none; padding-left:0; margin:0 0 8px 0; }
.service-list li{
  display:flex; align-items:center; gap:8px;
  color:#334155; font-size:.95rem; margin:.25rem 0;
}
.service-list i{ color:#22c55e; }

/* responsive */
@media (max-width: 991.98px){
  .service-card{ padding:22px; }
}

/* ==== Demo Chatbot Section ==== */
.demo-chatbot-section {
  background: linear-gradient(180deg, #f9fafc 0%, #eef2ff 100%);
  position: relative;
}

.grad-text {
  background: linear-gradient(90deg, #2563eb, #06b6d4, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Chat bubbles preview */
.chatbot-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
  max-width: 85%;
  line-height: 1.4;
  box-shadow: 0 3px 10px rgba(16, 24, 40, 0.08);
  opacity: 0;
  transform: translateY(10px);
  animation: bubbleFade 1s ease forwards;
}

.chat-bubble.user {
  background: #e5e7eb;
  align-self: flex-end;
  animation-delay: 0.2s;
}

.chat-bubble.bot {
  background: #fff;
  border: 1px solid #e5e7eb;
  align-self: flex-start;
  animation-delay: 0.4s;
}

@keyframes bubbleFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fondo decorativo */
.chatbot-bg {
  position: absolute;
  z-index: 0;
  filter: blur(50px);
  opacity: 0.45;
}
.chatbot-bg--1 {
  top: -100px;
  left: -120px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle at center, rgba(59,130,246,.3), transparent 70%);
}
.chatbot-bg--2 {
  bottom: -120px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at center, rgba(16,185,129,.25), transparent 70%);
}

/* Botón */
.demo-chatbot-section .btn-primary {
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}
.demo-chatbot-section .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(16,185,129,.25);
}

/* ===== Navbar PRO ===== */
.nav-pro{
  background: rgba(255,255,255,.75);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid rgba(226,232,240,.7);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease, padding .25s ease;
  padding-top: .35rem; padding-bottom: .35rem;
}
.nav-pro.scrolled{
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 24px rgba(16,24,40,.08);
  border-color: rgba(226,232,240,1);
  padding-top: .15rem; padding-bottom: .15rem;
}

.navbar .nav-link{
  position: relative; padding: .5rem .75rem; color:#0f172a;
}
.link-underline::after{
  content:""; position:absolute; left:.75rem; right:.75rem; bottom:.2rem;
  height:2px; background: linear-gradient(90deg, #2563eb, #06b6d4);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.link-underline:hover::after,
.navbar .nav-link.active.link-underline::after{ transform: scaleX(1); }
.navbar .nav-link:hover{ color:#0f172a; }

.nav-contact{
  color:#1e293b; font-weight:600; text-decoration:none;
  padding: .35rem .6rem; border-radius: .5rem;
  border:1px solid #e6e8ef; background:#fff;
}
.nav-contact:hover{ background:#f8fafc; }

.btn-icon{
  width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid #e6e8ef; box-shadow:0 2px 10px rgba(16,24,40,.06);
}
.btn-icon i{ font-size:18px; color:#0f172a; }

.logo{ height:auto; max-height:44px; }

@media (max-width: 991.98px){
  .navbar-collapse{ padding-top:.75rem; }
  .nav-contact{ display:inline-flex !important; margin-bottom:.5rem; }
}

/* ==== Cinta con tilt ==== */
.clients-tilt{ background: linear-gradient(180deg,#f9fafc 0%,#eef2ff 100%); }
.tilt-mask{
  overflow:hidden; padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  perspective: 800px;
}
.tilt-track{
  display:flex; gap:40px; width:max-content; align-items:center;
  animation: tilt-marquee 45s linear infinite;
}
.tilt-track img{
  height:56px; width:auto; filter:grayscale(1); opacity:.85;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform .25s ease, filter .2s ease, opacity .2s ease;
}
.tilt-track img:hover{
  transform: rotateX(4deg) rotateY(6deg) translateZ(0);
  filter:none; opacity:1;
}
@keyframes tilt-marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (min-width:992px){ .tilt-track img{ height:64px; } }
@media (prefers-reduced-motion: reduce){ .tilt-track{ animation:none; } }

/* ===== Contacto Pro ===== */
.contacto-section{
  background: linear-gradient(180deg, #f9fafc 0%, #eef2ff 100%);
}

/* Tarjeta izquierda */
.contact-card{
  background:#fff; border:1px solid #eef0f4; border-radius:16px;
  box-shadow:0 10px 28px rgba(16,24,40,.06);
}
.contact-bullets li{
  display:flex; align-items:center; gap:8px; color:#334155; margin:.35rem 0;
}
.contact-bullets i{ color:#22c55e; }

/* Botones de acción */
.btn-whats{
  background:linear-gradient(90deg, #22c55e, #16a34a);
  color:#fff; border: none;
}
.btn-whats:hover{ filter: brightness(1.05); color:#fff; }

/* Logos de confianza pequeños */
.trust-row{
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
  opacity:.85;
}
.trust-row img{
  height:26px; width:auto; filter: grayscale(1);
  transition: filter .2s ease, opacity .2s ease;
}
.trust-row img:hover{ filter:none; opacity:1; }

/* Form look & feel (solo estilos, no cambia ids/JS) */
#cotizacion .form-floating > .form-control,
#cotizacion .form-floating > .form-select{
  border-radius:12px; border:1px solid #e6e8ef; background:#fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
#cotizacion .form-floating > .form-control:focus,
#cotizacion .form-floating > .form-select:focus{
  border-color:#2563eb; box-shadow: 0 0 0 .2rem rgba(37,99,235,.12);
}
#cotizacion label{ color:#64748b; }

/* Botón enviar */
#cotizacion .btn.btn-primary{
  font-weight:700; letter-spacing:.02em;
  box-shadow: 0 10px 22px rgba(37,99,235,.18);
  transition: transform .15s ease, box-shadow .2s ease;
}
#cotizacion .btn.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(37,99,235,.24);
}

/* Mensaje de respuesta */
#respuesta{
  font-size:.95rem;
}
#respuesta.alert-primary{
  background:#eef4ff; border:1px solid #c7d2fe; color:#1e3a8a;
  padding:.75rem 1rem; border-radius:.5rem;
}

/* ===== Footer PRO ===== */
.footer-pro{
  background: #f8fafc;
  border-top: 1px solid #eef0f4;
}
.footer-pro__bar{
  border-top: 1px solid #eef0f4;
  background: #fff;
  padding: .9rem 0;
}

.footer-link{
  display:inline-block; color:#475569; text-decoration:none; padding:.25rem 0;
}
.footer-link:hover{ color:#0f172a; text-decoration:underline; }

.btn-icon{
  width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid #e6e8ef; box-shadow:0 2px 10px rgba(16,24,40,.06);
}
.btn-icon i{ font-size:18px; color:#0f172a; }

/* input group suavizado */
.footer-pro .form-control{
  border:1px solid #e6e8ef; border-radius: .6rem 0 0 .6rem;
}
.footer-pro .btn-primary{
  border-radius: 0 .6rem .6rem 0;
  box-shadow: 0 8px 18px rgba(37,99,235,.18);
}
.footer-pro .btn-light{
  border:1px solid #e6e8ef;
}

/* mejor tipografía general */
.footer-pro h6{ letter-spacing:.01em; }

/* ===== Viñetas con íconos en enlaces del footer ===== */
.footer a.btn-link {
  position: relative;
  padding-left: 1.3rem;  /* espacio para el icono */
  color: #475569;        /* gris moderno */
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer a.btn-link::before {
  content: "\f105"; /* fa-angle-right */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #16a34a; /* verde esmeralda */
  opacity: 0.8;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer a.btn-link:hover {
  color: #16a34a;
  transform: translateX(3px);
}

.footer a.btn-link:hover::before {
  color: #22c55e;
  transform: translate(2px, -50%);
}

/* ==== Viñetas elegantes en enlaces del footer ==== */
.footer-link {
  position: relative;
  display: inline-block;
  padding-left: 1.3rem; /* espacio para el iconito */
  color: #475569;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-link::before {
  content: "\f105"; /* icono fa-angle-right de Font Awesome */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #16a34a; /* verde esmeralda coherente con tu marca */
  opacity: 0.8;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-link:hover {
  color: #16a34a;
  transform: translateX(3px);
}

.footer-link:hover::before {
  color: #22c55e;
  transform: translate(2px, -50%);
}

.btn-icon:hover i { color: #fff; }

.btn-icon[href*="facebook"]:hover {
  background-color: #1877f2; /* Facebook blue */
}

.btn-icon[href*="instagram"]:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}

.btn-icon[href*="wa.me"]:hover {
  background-color: #25d366; /* WhatsApp green */
}
/* Hover TikTok */
.btn-icon[href*="tiktok"]:hover {
  background: linear-gradient(45deg, #010101, #ff0050, #00f2ea);
  color: #fff;
}
/* Contenedor con desvanecido en bordes */
.logo-marquee{
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  background: #fff;
}

/* Pista animada */
.logo-track{
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: logos-scroll 45s linear infinite;
}
.logo-marquee:hover .logo-track{
  animation-play-state: paused;
}

/* Tarjeta del logo */
.logo-item{
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 12px 18px;
  height: 84px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(17,24,39,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.logo-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(17,24,39,0.08);
}

/* Imagen: misma caja visual + gris→color */
.logo-img{
  max-height: 56px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: .85; transition: filter .2s ease, opacity .2s ease;
}
.logo-item:hover .logo-img{
  filter: none; opacity: 1;
}

/* Animación infinita (el 50% = ancho del set A) */
@keyframes logos-scroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Responsive */
@media (min-width: 992px){
  .logo-item{ height: 96px; }
  .logo-img{ max-height: 64px; }
}

/* Reduce motion friendly */
@media (prefers-reduced-motion: reduce){
  .logo-track{ animation: none; }
}

/* Texto accesible oculto */
.visually-hidden{
  position:absolute !important; height:1px; width:1px; overflow:hidden;
  clip:rect(1px,1px,1px,1px); white-space:nowrap; border:0; padding:0; margin:-1px;
}

.logo-item {
  position: relative;
  overflow: hidden;
}
.logo-item::after {
  content: attr(data-name);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity .25s ease;
}
.logo-item:hover::after {
  opacity: 1;
}

/* ===== Modal Pro ===== */
.modal-backdrop.show{
  background-color: rgba(17,24,39,.35); /* overlay más elegante */
  backdrop-filter: blur(3px);
}

.modal-pro .modal-content{
  border:1px solid #e6e8ef;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(16,24,40,.18);
  background: #fff;
}

/* barrita superior con gradiente */
.modal-pro .modal-accent{
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #22c55e);
}

/* header limpio */
.modal-pro .modal-header{
  padding: 18px 20px 0 20px;
}

/* icono redondo con fondo sutil */
.modal-pro .modal-icon{
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: radial-gradient(100% 100% at 50% 0%, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid #e9ecf5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.modal-pro .modal-icon i{
  font-size: 20px;
  color: #004aad; /* tu primario */
}

/* título */
.modal-pro .modal-title{
  font-weight: 700; color:#0f172a;
}

/* cuerpo con tipografía agradable */
.modal-pro .modal-body{
  padding: 18px 20px 8px 20px;
  color:#334155;
  font-size: 0.98rem;
}

/* tarjetita de puntos clave */
.modal-pro .notice-card{
  border:1px solid #e6e8ef; border-radius: 12px; padding: 12px 14px;
  background: #fafbff;
  box-shadow: 0 6px 18px rgba(17,24,39,0.05);
  margin: 14px 0 16px;
}
.modal-pro .notice-card ul{
  padding-left: 1.2rem;
}
.modal-pro .notice-card li{
  margin: .35rem 0;
}

/* footer minimal */
.modal-pro .modal-footer{
  padding: 0 20px 18px 20px;
}

/* link del aviso corto */
.link-privacy{
  text-decoration: none;
  font-weight: 600;
}
.link-privacy:hover{
  text-decoration: underline;
}

/* respeta usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce){
  .modal-backdrop.show{ backdrop-filter: none; }
}