/* GENERAL */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  padding-top: 80px;
}
/* NAVBAR */
.bg-vanguardia {
  background-color: #144d74;
}
.navbar {
  min-height: 80px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.navbar-nav .nav-link {
  color: #fffefe;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  font-weight: 400;
  padding: 8px 12px;
  position: relative;
  transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
  color: #ff7b5f;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.text-acento {
  color: #ff7b5f !important;
  font-weight: 500;
}
.nav-efecto::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: #ff7b5f;
  transition: width 0.3s ease-in-out;
}
.nav-efecto:hover::after {
  width: 100%;
}
.gif-navbar {
  height: 40px;
  width: auto;
  display: block;
}
.quienes_seccion{
  height:  auto;
  width: 100%;
  background-color: #144d74;
}
.bg-continue{
  background-color: #144d74;
}
/* HERO */
.hero-section{
  min-height: 70vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background-color: #fff; /* o el color que desees */
 margin: 0 0 50px 0;
}
.hero-section h1 {
  font-size: 5rem;
  color: #000;
}

.hero-section p {
  color: #000;
  font-size: 1.6rem;
}

/* MOCKUP */
.mockup-container {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
}

.mockup-floating {
  max-height: 400px;
  width: auto;
  margin-bottom: 20px;
}

.mockup-text {
  color: white;
  font-size: 1rem;
  max-width: 300px;
  margin: 0 auto;
}

/* PLAY STORE */
.playstore-badge {
  height: 42px;
  width: auto;
  max-width: 180px;
  transition: transform 0.3s ease;
}

.playstore-badge:hover {
  transform: scale(1.05);
}
.seccion-conectada {
  background-color: #ffffff;
  color: white;
  text-align: center;
}
/* SECCIÓN SIGUIENTE */
.siguiente-seccion {
  background-color: #ffffff;
  color: white;
  text-align: center;
  padding: 150px 20px 80px;
  margin-top: -40px;
}
.imagen_modificada{
  margin-top: -200px;
  z-index: 5;
}
/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 3rem;
  }

  .mockup-floating {
    max-height: 300px;
  }

  .mockup-container {
    bottom: -60px;
  }

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

  .playstore-badge {
    height: 38px;
  }

    .pantalla-completa {
      height: 100vh;
      width: 100vw;
      overflow: hidden;
    }
}
/* Imagen flotante entre secciones */
.mockup-flotante-container {
  position: relative;
  height: 0;
  z-index: 10;
}

.mockup-flotante {
  position: absolute;
  top: -160px; /* Ajusta según cuánto se quiera que sobresalga */
  left: 50%;
  transform: translateX(-50%);
  max-height: 320px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.seccion-triangulo {
  background-color: white;
  clip-path: polygon(0 8%, 100% 0%, 100% 92%, 0% 100%);
  -webkit-clip-path: polygon(0 8%, 100% 0%, 100% 92%, 0% 100%);
  color: #1100ff;
  position: relative;
  z-index: 2;
  margin-bottom: 170px;
}

.text-acento {
  color: #ff7b5f;
  font-weight: bold;
}


.icono-circular {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 320px;
}

.icono-wrapper {
  width: 130px;
  height: 130px;
  border: 2px solid #ff7b5f;
  border-radius: 50%;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;

}


.icono-wrapper::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 110px;
  height: 110px;
 border: 5px solid #6cc24a;
  border-radius: 50%;
}
.icono-exclamacion {
  font-size: 64px; /* antes era 48px */
  color: #6cc24a;
  font-weight: 700;
}
.seccion-estadisticas {
  background-color: #ffffff; /* tono azul similar al tuyo */
}

.icono-estadistica {
  font-size: 48px;
  color: #ff7b5f;
}

.card-hover {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-12px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.15);
}

.icono-superior i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.card-hover:hover .icono-superior i {
  transform: scale(1.15);
  color: #0d6efd !important;
}

.card-img-top {
  height: 280px;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.card-hover:hover .card-img-top {
  filter: brightness(1.1);
}
.diseño_logo{
  margin-left: -50px;
}

.app_seccion {
  background-color: #ffffff;
}

/* ——— Tarjetas de estadísticas ——— */
.stat-card {
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  transition: transform .35s ease, box-shadow .35s ease;
}
.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 30px rgba(0,0,0,.15);
}

/* Área de imagen (se recorta uniformemente) */
.stat-img-wrapper {
  height: 220px;                /* base XS/SM */
  overflow: hidden;
  position: relative;
}
@media (min-width: 768px)  { .stat-img-wrapper{ height:260px;} }  /* md  */
@media (min-width: 992px)  { .stat-img-wrapper{ height:300px;} }  /* lg  */
@media (min-width:1200px) { .stat-img-wrapper{ height:340px;} }  /* xl  */
@media (min-width:1400px) { .stat-img-wrapper{ height:380px;} }  /* xxl */

/* Carrusel y diapositivas rellenan todo el alto */
.stat-img-wrapper .carousel-inner,
.stat-img-wrapper .carousel-item { height:100%; }

/* La imagen: fill & crop */
.stat-img {
  position:absolute;
  inset:0;                    /* top:0 right:0 bottom:0 left:0 */
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

/* Ícono superior dentro del body */
.stat-icon i {
  font-size:2.5rem;
  color:#0d6efd;
  transition: transform .3s ease;
}
.stat-card:hover .stat-icon i { transform:scale(1.15); }


.fondo-inferior {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: #144d74;
  clip-path: polygon(0 0, 100% 40%, 100% 100%, 0% 100%);
  z-index: 1;
}

.text-acento {
  color: #ff7b5f;
}
.text-lima {
  color: #a0e43f;
}

.titulo-servicio {
  border: 2px solid #ff7b5f;
  display: inline-block;
  padding: 8px 12px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.servicios-seccion .container {
  position: relative;
  z-index: 2;
}

.min-height-title {
  min-height: 60px; /* ajusta según el tamaño de fuente o si aún hay saltos */
}

.min-height-parrafo {
  min-height: 100px; /* para mantener alineación de textos */
}

.clientes-carousel-section {
 height:  auto;
  background-color: #f50000;
}


.cliente-logo {
  width: 125px;
  height: 120px;
  object-fit: contain;
  filter: none; /* Ahora por defecto están a color */
  transition: filter 0.3s ease;
}.envoltorio-titulo {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
}
.envoltorio-titulo-2 {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
}
/* Triángulo que baja desde la derecha (AHORA VA PRIMERO) */
.triangulo-bajando {
  width: 100%;
  height: 100px;
  background-color: #144d74;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.triangulo-bajando-blanco {
  width: 100%;
  height: 100px;
  background-color: #ffffff;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
/* Contenedor del título en el centro */
.titulo-contenido {
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  z-index: 1;
}

.titulo-texto {
  margin: 0;
  font-size: 3rem;
  font-weight: bold;
  color: #144d74;
}
.margen_titulo{
  padding-bottom: 8';
}
/* Triángulo que sube desde la izquierda (AHORA VA DESPUÉS) */
.triangulo-subiendo {
  width: 100%;
  height: 100px;
  background-color: #144d74;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.cliente-logo:hover {
  filter: grayscale(100%); /* Se ponen grises al pasar el mouse */
}
#carouselClientes .cliente-logo{
  width:140px;         /* antes 120 px */
  max-width:24vw;      /* evita desbordes en móvil */
  object-fit:contain;
}
  .carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none !important;
}

.carousel-control-prev::after,
.carousel-control-next::after {
  font-size: 3rem;
  font-weight: bold;
  color: black;
}

.carousel-control-prev::after {
  content: '‹'; /* flecha izquierda */
}

.carousel-control-next::after {
  content: '›'; /* flecha derecha */
}

#carouselClientes .swiper-button-prev,
#carouselClientes .swiper-button-next{
  width:36px;
  height:36px;
  background:#144d74;          /* azul corporativo */
  border-radius:50%;
  box-shadow:0 2px 6px rgba(0,0,0,.25);
}

/* Íconos (usa Bootstrap Icons) */
#carouselClientes .swiper-button-prev::after,
#carouselClientes .swiper-button-next::after{
  font-family:'bootstrap-icons';
  font-size:18px;
  color:#fff;
}

#carouselClientes .swiper-button-prev::after { content:'\f12f'; } /* bi-chevron-left  */
#carouselClientes .swiper-button-next::after { content:'\f134'; } /* bi-chevron-right */

/* MEDIA QUERIES PARA SM (≥576px) */
@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2.4rem;
    text-align: center;
  }

  .hero-section p {
    font-size: 1.2rem;
    text-align: left;
  }

  .contenido-central h2 {
    font-size: 1.6rem;
  }

  .triangulo-superior,
  .triangulo-inferior {
    height: 50px;
  }

  .mockup-floating {
    max-height: 240px;
  }

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

  .carousel-control-prev::after,
  .carousel-control-next::after {
    font-size: 2.5rem;
  }
    .card-img-sm-fix {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff; /* o el color de fondo de la card */
    overflow: hidden;
  }

  .card-img-sm-fix img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
  }
  .carousel-inner {
    height: 220px !important;
  }

  .carousel-inner .img-carrusel {
    height: 100% !important;   /* 👈 Forzamos a llenar su contenedor */
    width: 100% !important;
    object-fit: cover !important; /* 👈 Se recorta, pero rellena bien */
    object-position: center;
  }
}
  /* Logos en móvil: centrados y tamaño moderado */
.logo-mob  { max-width: 75%; height:auto; margin:0 auto; }

/* Logos en escritorio: altura fija para alinear */
.logo-desk { max-height: 90px; width:auto; }

/* MEDIA QUERIES PARA MD (≥768px) */
@media (max-width: 768px) {
  .contenido-central {
    padding: 30px 16px;
  }

  .contenido-central h2 {
    font-size: 2rem;
  }

  .triangulo-superior,
  .triangulo-inferior {
    height: 60px;
  }

  .card-img-top {
    height: 200px;
  }

  .icono-circular {
    height: 240px;
  }

  .icono-wrapper {
    width: 100px;
    height: 100px;
  }

  .icono-wrapper::before {
    width: 85px;
    height: 85px;
  }

  .icono-exclamacion {
    font-size: 48px;
  }

  .playstore-badge {
    height: 36px;
  }

  .mockup-floating {
    max-height: 300px;
  }

  .mockup-text {
    font-size: 0.85rem;
  }
}

.tilt-section .tilt-wrap {
  margin: 1rem;
  transform-style: preserve-3d;
  transform: perspective(100rem);
  cursor: pointer;
}
.tilt-section .tilt-card {
  --rX: 0;
  --rY: 0;
  --bX: 50%;
  --bY: 80%;

  width: 100%;
  height: 340px;               /* ajusta alto si lo requieres */
  border-radius: 1.6rem;
  padding: 4rem;
  display: flex;
  align-items: flex-end;
  position: relative;
  text-align:center;
  transform: rotateX(calc(var(--rX) * 1deg))
             rotateY(calc(var(--rY) * 1deg));

background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),   /* ← antes era hsla(0,0%,100%,.1) */
    var(--bg) center/cover no-repeat;
  box-shadow: 0 0 3rem .5rem rgba(0,0,0,.2);
   transition: transform .6s,               /* tilt */
              background-image .9s ease-in-out;
}
.tilt-section .tilt-card::before,
.tilt-section .tilt-card::after {
  content: "";
  width: 2rem;
  height: 2rem;
  border: 1px solid #fff;
  position: absolute;
  z-index: 2;
  opacity: .3;
  transition: .3s;
}
.tilt-section .tilt-card::before {
  top: 2rem;
  right: 2rem;
  border-bottom-width: 0;
  border-left-width: 0;
}
.tilt-section .tilt-card::after {
  bottom: 2rem;
  left: 2rem;
  border-top-width: 0;
  border-right-width: 0;
}
.tilt-section .tilt-caption {
    color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,.6); /* mejora contraste */
  font-size: 1.8rem;
  margin: 0;
}
.tilt-section .tilt-wrap:hover .tilt-card::before,
.tilt-section .tilt-wrap:hover .tilt-card::after {
  width: calc(100% - 4rem);
  height: calc(100% - 4rem);
}
.tilt-card.tilt-active {
  transition: none;
}

/* ===== Cadenas (1/3/5) ===== */
#carouselCadenas .cliente-logo      { width:130px; max-width:24vw; object-fit:contain; }
#carouselCadenas .swiper-button-prev,
#carouselCadenas .swiper-button-next{
  width:36px; height:36px; border-radius:50%; background:#144d74;
  box-shadow:0 2px 6px rgba(0,0,0,.25);
}
#carouselCadenas .swiper-button-prev::after,
#carouselCadenas .swiper-button-next::after{
  content:""; display:inline-block; width:8px; height:8px;
  border:solid #fff; border-width:0 2px 2px 0;
}
#carouselCadenas .swiper-button-prev::after{ transform:rotate(135deg);}
#carouselCadenas .swiper-button-next::after{ transform:rotate(-45deg);}

/* ===== Clientes (1/2/4) ===== */
#carouselClientes .cliente-logo      { width:130px; max-width:24vw; object-fit:contain; }
#carouselClientes .swiper-button-prev,
#carouselClientes .swiper-button-next{
  width:36px; height:36px; border-radius:50%; background:#144d74;
  box-shadow:0 2px 6px rgba(0,0,0,.25);
}
#carouselClientes .swiper-button-prev::after,
#carouselClientes .swiper-button-next::after{
  content:""; display:inline-block; width:8px; height:8px;
  border:solid #fff; border-width:0 2px 2px 0;
}
#carouselClientes .swiper-button-prev::after{ transform:rotate(135deg);}
#carouselClientes .swiper-button-next::after{ transform:rotate(-45deg);}
