/* style.css
   Estructura: variables -> global -> header -> sections -> helpers -> responsive
*/

/* ========== VARIABLES ========== */
:root {
  --bg: #ffffff;
  --text: #14202b;
  --muted: #6b7a86;
  --accent: #0a69a3;
  /* color primario (ajusta al diseño) */
  --accent-dark: #084f76;
  --card-bg: #ffffff;
  --radius: 12px;
  --container: 1200px;
  --glass: rgba(10, 40, 60, 0.04);
  --shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  --max-width: 1437px;
  --gap: 1.25rem;
}

/* ========== GLOBAL ========== */
* {
  box-sizing: border-box
}

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

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  margin: 0;
  font-size: 13px;
}

.seccion-encabezado, .seccion-asistente {
  position: relative;
  margin-top: 0;
}


.barra-superior {
  background-color: #023681;
  /* Azul oscuro */
  height: 40px;
  position: relative;
}
.barra-superior2 {
  background-color: #023681;
  /* Azul oscuro */
  height: 60px;
  position: relative;
}



.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2rem 4rem;
}


/* Small helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

/* ========== HEADER ========== */
.site-header {
  background: #000d20;
  /* fondo oscuro fijo */
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  position: relative;
  min-height: 80px;
  padding: 20 40px;
  /* 👈 separa el contenido de los bordes */
  padding-left: 20px;
  padding-right: 200px;
  /* solo más espacio en la derecha */
}


/* LOGO */
.brand {
  margin-right: auto;
  /* mantiene logo pegado a la izquierda */
}

.logo {
  height: 90px;
  padding: 0 160px;
  /* tamaño controlado (ajústalo a gusto) */
  width: auto;
  display: block;
}

/* NAV centrado */
.main-nav {
  flex: 1;
}

.nav-list,.nav-list2 {
  display: flex;
  /*justify-content: center;*/
  /* menú centrado */
  gap: 4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: #ffffff;
  /* enlaces blancos sobre fondo oscuro */
  text-decoration: none;
  padding: .5rem .6rem;
  border-radius: 8px;
  display: inline-block;
}
.nav-list2 a {
  color: #020202;
  /* enlaces blancos sobre fondo oscuro */
  text-decoration: none;
  padding: .5rem .6rem;
  border-radius: 8px;
  display: inline-block;
}

.nav-list2 a:hover, .nav-list a:hover {
  background: rgba(255, 255, 255, 0.1);
  /* hover sutil */
}

/* BOTÓN BURGER */
.btn-burger, .btn-burger2 {
  margin-left: auto;
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: .4rem;
}

.btn-burger .burger-line {
  display: block;
  width: 26px;
  height: 2px;
  background: #ffffff;
  box-shadow: 0 6px 0 #ffffff, 0 -6px 0 #ffffff;
}
.btn-burger2 .burger-line2 {
  display: block;
  width: 26px;
  height: 2px;
  background: #000000;
  box-shadow: 0 6px 0 #000000, 0 -6px 0 #000000;
}

/* MENÚ RESPONSIVE */
@media (max-width: 768px) {
  .btn-burger, .btn-burger2 {
    display: block;
    z-index: 1001;
  }
  

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: #0a0a0a;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
    z-index: 1000;
  }

  /* Ocultar lista por defecto */
  .nav-list {
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
  }

  /* Mostrar lista cuando JS agrega .show */
  .nav-list.show {
    display: flex;
  }

  .nav-list li {
    margin: 10px 0;
  }

  .nav-list a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
  }
}

/*new complementando anterior*/
/* --- MENÚ BURGER OPTIMIZADO --- */
@media (max-width: 768px) {
  .btn-burger {
    display: block;
    z-index: 1002;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0a0a0a;
    display: none;
    z-index: 1001;
    text-align: center;
    /* ajustamos espacio */
    padding: 0.8rem 0;
    border: none; /* elimina cualquier línea o borde */
  }

  .main-nav .nav-list, .nav-list2 {
    display: none;
    flex-direction: column;
    gap: 0.5rem; /* menos espacio entre opciones */
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .main-nav .nav-list.show, .nav-list2.show {
    display: flex;
  }

  .main-nav:has(.nav-list.show, .nav-list2.show) {
    display: block;
  }

  .main-nav .nav-list li, .nav-list2 li {
    margin: 0;
    border: none;
  }

  .main-nav .nav-list li a, .nav-list2 li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.4rem 0;
    display: block;
  }
    .nav-list2 li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.4rem 0;
    display: block;
  }

  .main-nav .nav-list li a:hover,  .nav-list2 li a:hover {
    color: #f1b100; /* efecto sutil al pasar */
  }
}


.highlight {
  background-color: #ff6b35;
  /* naranja del rectángulo */
  color: #fff;
  /* texto en blanco */
  border-radius: 2px;
  /* opcional, bordes ligeramente redondeados */
  font-weight: 700;
  /* negrita */
}

/* Ícono de WhatsApp */
.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* sigue a la derecha */
  margin-right: 30px;
  /* separa del borde derecho */
}

.whatsapp-icon img {
  width: 32px;
  height: 32px;
  display: block;
  transition: transform 0.2s ease;
}

.whatsapp-icon:hover img {
  transform: scale(1.1);
  /* pequeño zoom al pasar el mouse */
}


/* end header */

/* ========== HERO ========== */
.site-header {
  position: absolute;
  /* 👈 lo sacamos del flujo */
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  /* 👈 sin fondo */
  border: none;
  z-index: 10;
  /* queda por encima de la imagen */
}

.hero {
  background: url("\../img/inicio.jpg") no-repeat center center/cover;
  /* el alto dependerá de tu contenido */
  padding: 7rem 2rem;
  /* puedes ajustar */
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  /* 👈 CAMBIA esto */
  align-items: center;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/*.hero-text h1{font-size:2.15rem;margin-bottom:.6rem;line-height:1.05}*/
.lead {
  color: white;
  margin-bottom: 3rem;
  text-align: justify;
  font-size: 18px;
}

.hero-ctas {
  display: flex;
  gap: .75rem
}

.btn {
  display: inline-block;
  padding: .7rem 1.1rem;
  text-decoration: none;
  font-weight: bold
}

.btn-primary {
  display: inline-flex;
  font-size: 17px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  background: #ff6b35;
  /* naranja */
  color: #000;
  /* texto negro */
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

/* circulo que contiene la flecha */
.btn-primary .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 3px solid #000;
  /* borde negro del círculo */
  border-radius: 50%;
  font-size: 14px;
  box-sizing: border-box;
  background: transparent;
  line-height: 1;
  /* evita desplazamientos por línea base */
}

/* svg centrado y tamaño controlado */
.btn-primary .icon svg {
  width: 14px;
  height: 14px;
  display: block;
  /* evita problemas de alineación */
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  /* espacio entre icono y texto */
  padding: 1.1rem 11rem;
  border: 3px solid #33aaff;
  /* celeste */
  color: #fff;
  /* texto blanco */
  font-weight: 600;
  text-transform: uppercase;
  background: transparent;
  border-radius: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(51, 170, 255, 0.1);
  /* un poco de fondo al pasar */
  border-color: #1e90ff;
  /* azul más fuerte */
}

/* icono circular */
.btn-outline .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

/* hero image */
.hero-media {
  display: flex;
  justify-content: flex-end;
  /* 👈 NUEVO: alinea el logo a la derecha */
}

.hero-media img {
  max-width: 260px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  margin-top: 53px;
  /* mueve hacia abajo */
}

/* ========== SECTION COMMON ========== */
/* Sección general */
.services-section {
  /*padding: 4rem 2rem;*/
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* columnas */
.services-col h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  line-height: 1.2;
  padding: 20px 4rem;
}

.highlight-green {
  background: #25f252;
  color: #000;
  font-weight: 700;
  padding: 0 0.3rem;
}

/* Items */
.service-item {
  padding: 15px 39px;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  font-style: italic;
  /* margin-bottom: 1.5rem; */

}

.service-item h3 {
  font-size: 1.3rem;
  margin: 0 0 0.3rem;
  font-weight: bold;
}

.service-item p {
  font-size: 0.9rem;
  color: #333;
  margin: 0;
}

/* Íconos */
.service-item .icon {
  width: 45px;
  height: 63px;
  flex-shrink: 0;
}

/* Columna central */
.services-media img {
  width: 109%;
  max-width: 411px;
  margin: 54px auto;
  display: block;
  /*border-radius: 8px;*/
}

/* Columna derecha */
.services-col.right .highlight-box {
  margin-top: 54px;
  background: #25f252;
  padding: 0.5rem 25px 1rem;
  /* border-radius: 6px; */
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #000;
  font-style: italic;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-item {
    justify-content: center;
  }

  .services-media img {
    max-width: 220px;
  }
}


/* ========== SERVICES ========== */
/* Sección Servicios 2 */
.services2-section {
  padding: 2rem 0rem;
  /* Fondo dividido en blanco (izq) y azul (der) */
  background: linear-gradient(to right, #ffffff 0%, #045592 0%,
      /* 30% blanco sólido */
      #045592 25%,
      /* empieza degradado en el 30% */
      #0573b3 70%,
      /* azul intermedio */
      #003366 100%
      /* azul más oscuro al final */
    );

}

.services2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

/* Columna izquierda */
.services2-left .image-box {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
}

.image-box img {
  display: block;
  width: 100%;

  margin-top: 130px;
  /* 👈 mueve hacia abajo */
  /* margin-bottom: 20px;  👈 mueve hacia arriba */
}


.overlay-text2 {
  position: absolute;
  top: 13rem;
  /* 👈 ahora a 2rem desde arriba */
  left: 2rem;
  background: #fff;
  padding: 1.5rem 2rem;
  max-width: 80%;
  box-shadow: 20px 18px 0px 0px rgb(239 134 50);
}

.overlay-text2 h2 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
  color: #111;
}

.overlay-text2 p {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

/* Columna derecha */
.services2-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/*CARDS*/
/* Contenedor de la tarjeta */
/* Ícono dentro de un círculo amarillo */
.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ffeb3b;
  /* amarillo */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-circle img {
  width: 60px;
  /* tamaño del ícono */
  height: auto;
}

/* Borde superior verde en la tarjeta */
.service2-card {
  perspective: 1000px;
  border-radius: 8px;
  overflow: hidden;
  /* asegura que nada sobresalga */
}

.card-inner {
  position: relative;
  width: 80%;
  height: 200px;
  /* 🔹 ESTE ES EL TAMAÑO DE LA CARD */
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.service2-card:hover .card-inner {
  transform: rotateY(180deg);
}

/* Frente y reverso */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  backface-visibility: hidden;
  /* oculta la cara que está detrás */
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Frente */
.card-front {
  background: #fff;
  color: #111;
  border-top: 4px solid #00e25b;
  /* ahora solo el frente tiene la línea */
  text-align: center;
  /* centra el texto */
  margin: 0;

}


/* Reverso */
.card-back {
  background: #ff6433;
  /* naranja para el reverso */
  color: #fff;
  transform: rotateY(180deg);
  text-align: center;
  height: 100%;
}


/* Responsive */
@media (max-width: 992px) {
  .services2-grid {
    grid-template-columns: 1fr;
  }

  .overlay-text2 {
    max-width: 100%;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .services2-right {
    grid-template-columns: 1fr;
  }
}


/* ====== VENTAJA COMPETITIVA ====== */
.ventaja-section {
  padding: 4rem 0rem 0rem 0rem;
  background: #ff6b35;
}

.ventaja-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Columna izquierda */
.ventaja-left {
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ventaja-left h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.highlight-dark {
  background: #0d1b3d;
  color: #fff;
  padding: 0.2rem 0.5rem;
}

.ventaja-sub {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.ventaja-sub .bar {
  display: block;
  width: 6px;
  height: 100px;
  background: linear-gradient(to bottom, #ffe600, #0047ff);
  /* amarillo + azul */
}

.section-bar {
  background: #0b2d6b;
  /* color de la franja */
  height: 80px;
  /* alto de la franja */
  width: 100%;
  /* ocupa todo el ancho */
}

.ventaja-text {
  margin-bottom: 2rem;
}

.ventaja-img-bottom {
  width: 70%;
  border-radius: 4px;
  object-fit: cover;
}

/* Columna derecha */
.ventaja-right {
  display: flex;
  flex-direction: column;
  /*gap: 1.5rem;*/
}

.ventaja-img-top {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.ventaja-box {
  background: #14357c;
  color: #fff;
  padding: 2rem;
  border-radius: 4px;

}

.ventaja-box p {
  margin-bottom: 1.5rem;


}

.btn-outline1 {
  display: inline-flex;
  /* mantiene el ícono y texto alineados */
  align-items: center;
  /* centra verticalmente el icono con el texto */
  gap: 0.8rem;
  /* espacio entre ícono y texto */
  padding: 0.4rem 1.2rem;
  /* un poco más de aire */
  border: 2px solid #33aaff;
  /* borde azul */
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 17px;
}



.btn-outline1:hover {
  background: rgba(51, 170, 255, 0.1);
  border-color: #1e90ff;
}

/* ícono circular */
.btn-outline1 .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

.btn-outline1 .icon svg {
  width: 14px;
  height: 14px;
}

/* Responsive */
@media (max-width: 992px) {
  .ventaja-grid {
    grid-template-columns: 1fr;
  }
}



/* ===== EMPRESAS ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-card {
  border: 3px solid #f1c40f;
  /* borde amarillo */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: 1rem;
  background: #fff;
  position: relative;
}

.logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.logo-box img {
  max-width: 80%;
  height: auto;
}

.desc {
  margin: 1rem 0;
  font-size: 0.95rem;
  color: #333;
}

.highlight-2 {

  height: 40px;
  margin-top: auto;
}

.section-title {
  margin-bottom: 0.3rem;
  font-size: 35px;
  /* 👈 reduce el espacio inferior del título */
}

.section-sub {
  margin-top: 0;
  /* 👈 elimina el espacio superior */
  font-size: 1.3rem;
  color: #555;
  /* opcional, solo estilo */
}

/* ====== CTA / TESTIMONIOS (sección corregida) ====== */
.cta-section {
  padding: 0;
  /* la imagen ocupará alto; ajusta si quieres espacio arriba/abajo */
  background: transparent;
}

/* grid 2 columnas: izquierda imagen, derecha contenido */
.cta-grid {
  display: grid;
  grid-template-columns: 40% 60%; /* izquierda 40%, derecha 60% */
  align-items: stretch;
  width: 100%; /* ocupa todo el ancho */
}

.cta-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-right {
  background: #0f2874;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px; /* espacio interno del bloque azul */
  color: #fff;
}


/* Título grande */
.cta-title {
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 14px 0;
  font-weight: 800;
}

/* barra blanca corta */
.cta-bar {
  width: 280px;
  height: 5px;
  background: #fff;
  margin-bottom: 18px;
  border-radius: 0;
}

/* Caja blanca que simula el widget / screenshot */
.assistant-card {
  text-align: center;
  background: #fff;
  color: #0b2a57;
  border-radius: 4px;
  padding: 18px;
  max-width: 100%;
  height: 100%;
  box-shadow: 0 6px 18px rgba(3, 14, 36, 0.25);
  margin-bottom: 20px;
}

/* assistant content */
.assistant-title {
  margin: 0 0 6px 0;
  font-size: 40px;
  font-weight: 700;
  color: #132a4b;
}

.assistant-sub {
  margin: 0 0 10px 0;
  color: #375b86;
  font-size: 18px;
}

/* tags small pills */
.assistant-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-tags span {
  background: #eef6ff;
  color: #274a7a;
  font-size: 20px;
  padding: 6px 10px;
  border-radius: 18px;
}

/* copy paragraph */
.cta-copy {
  margin-top: 14px;
  margin-bottom: 22px;
  color: #dfeaf8;
  line-height: 1.6;
  max-width: 460px;
}

/* actions row: button + chat icon */
.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  /* empuja al final de la columna */
}

/* CTA button: dark rectangle, cyan outline, yellow text */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: #0b1d3e;
  /* mismo fondo para efecto "hueco" */
  color: #ffde2e;
  /* amarillo del texto */
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
}

/* circle icon inside button */
.cta-btn-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0px 3px;
}

/* svg inside */
.cta-btn-circle svg {
  width: 30px;
  height: 35px;
  display: block;
}

/* chat floating icon */
.chat-float {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 3px solid rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: transform .15s ease;
}

.chat-float svg {
  width: 36px;
  height: 36px;
  display: block;
}

/* hover niceties */
.cta-btn:hover {
  transform: translateY(-3px);
}

.chat-float:hover {
  transform: translateY(-4px);
}

/* responsive: apilar en móviles */
@media (max-width: 960px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-left {
    min-height: 360px;
  }

  .cta-right {
    padding: 28px;
  }

  .cta-bar {
    width: 180px;
    height: 12px;
  }

  .cta-title {
    font-size: 26px;
  }

  .cta-row {
    justify-content: flex-start;
  }

  .chat-float {
    margin-left: 8px;
  }
}

/* input + botón en la caja del asistente */
.user-input {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.user-input input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccd8ea;
  border-radius: 6px;
  font-size: 14px;
}

.user-input button {
  background: #0b2a57;
  /* azul oscuro */
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.user-input button:hover {
  background: #08305f;
  /* un poco más claro al hover */
}



/* ========== FOOTER ========== */
.site-footer {
  background: #0b1d3e;
  color: #bcd9ea;
  font-size: 14px;
  line-height: 1.6;
}

/* parte superior */
.footer-top {
  padding: 2rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
}

.footer-logo {
  max-width: 140px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: .4rem;
}

.footer-col a {
  color: #bcd9ea;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* barra intermedia */
.footer-bar {
  background: #023681;
  text-align: center;
  padding: 0.6rem;
}

.footer-bar a {
  color: #ffffff;
  font-size: 0.9rem;
  text-decoration: none;
}

/* parte inferior */
.footer-bottom {
  background: #023681;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social img {
  width: 28px;
  height: 28px;
  display: block;
  transition: transform 0.2s ease;
}

.footer-social img:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (min-width: 768px) {
  .footer-bottom-inner {
    justify-content: space-between;
  }
}


/* ========== RESPONSIVE ========== */
@media (max-width:1000px) {
  .about-grid {
    grid-template-columns: 1fr
  }

  .hero-grid {
    grid-template-columns: 1fr
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:720px) {
  .btn-burger {
    display: inline-block
  }


  .services-grid {
    grid-template-columns: 1fr
  }

  .steps-grid {
    grid-template-columns: 1fr
  }

  .portfolio-grid {
    grid-template-columns: 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr
  }

  .footer-inner {
    flex-direction: column;
    gap: .5rem
  }

  .hero-text h1 {
    font-size: 1.6rem
  }
}

/* ========== MOBILE EXTRA (max 480px) ========== */
@media (max-width: 480px) {
  body {
    font-size: 15px;
    line-height: 1.4;
  }

  .header-inner {
    min-height: 64px;
    gap: 1rem;
  }

  .logo {
    height: 60px;
  }

  .hero {
    padding: 4rem 1rem;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-media img {
    max-width: 160px;
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .lead {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
  }

  .services-section,
  .services2-section,
  .ventaja-section {
    padding: 2.5rem 1rem;
  }

  .service-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .icon-circle {
    width: 64px;
    height: 64px;
  }

  .icon-circle img {
    width: 42px;
  }

  .card-inner {
    width: 100%;
    height: 180px;
  }

  .overlay-text2 {
    padding: 1rem;
    font-size: 0.9rem;
    top: auto;
    bottom: 1rem;
  }

  .ventaja-left h2 {
    font-size: 1.4rem;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-right {
    padding: 20px;
  }

  .cta-title {
    font-size: 1.4rem;
  }

  .assistant-card {
    padding: 12px;
    font-size: 0.9rem;
  }

  .user-input {
    flex-direction: column;
    gap: 0.6rem;
  }

  .user-input button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

/*BOT IA*/
#faq-bot {
  background: #f5f8fb;
  padding: 60px 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

.bot-container {
  max-width: 700px;
  margin: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.bot-header {
  text-align: center;
  padding: 30px 20px 10px;
}

.bot-header .bot-icon {
  font-size: 3rem;
    display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.bot-header h2 {
  font-size: 1.8rem;
  margin: 10px 0;
  color: #002856;
}

.bot-header p {
  color: #555;
  font-size: 1rem;
}

.bot-box {
  padding: 20px;
  border-top: 1px solid #eee;
}

.suggestions {
  margin-bottom: 20px;
}

.suggestions p {
  font-weight: bold;
  margin-bottom: 10px;
}

.suggestion-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.suggestion-buttons button {
  background: #e0ebf6;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.95rem;
}

.suggestion-buttons button:hover {
  background: #cfdfee;
}

.user-input {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.user-input input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}

.user-input button {
  background: #002856;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.user-input button:hover {
  background: #004080;
}

.bot-answer {
  margin-top: 20px;
  background: #60707fcc;
  border-left: 4px solid #002856;
  padding: 15px;
  border-radius: 8px;
  display: none;
}

.bot-message {
  font-size: 1rem;
}
.bot-icon img.bot-gif {
  height: 200px;
  object-fit: contain;
  /*border-radius: 50%;*/
  /*box-shadow: 0 4px 12px rgba(0,0,0,0.1);*/
  animation: pulse 2s infinite ease-in-out;
}

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



/*RESPONSIVE GENERAL*/
/* =======================================
   🔹 RESPONSIVE DESIGN IMPROVEMENTS 🔹
   ======================================= */

/* ====== Tablet general (≤ 992px) ====== */
@media (max-width: 992px) {

  /* HEADER */
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-right: 20px;
  }

  .logo {
    height: 60px;
    padding: 0 20px;
  }

  .main-nav {
    display: none;
  }

  .btn-burger {
    display: block;
  }

  .whatsapp-icon {
    position: absolute;
    right: 20px;
    top: 24px;
  }

  /* HERO */
  .hero {
    padding: 5rem 1rem;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    justify-content: center;
    margin-top: 2rem;
  }

  .hero-media img {
    max-width: 180px;
    margin-top: 0;
  }

  .lead {
    font-size: 16px;
  }

  /* SERVICES */
  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }

  .services-col h2 {
    font-size: 1.6rem;
    padding: 10px 0;
  }

  .service-item {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  /* SERVICES 2 */
  .services2-grid {
    grid-template-columns: 1fr;
  }

  .services2-right {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .image-box img {
    margin-top: 2rem;
  }

  .overlay-text2 {
    position: relative;
    top: 0;
    left: 0;
    margin-top: 1rem;
    box-shadow: none;
  }

  .card-inner {
    width: 100%;
  }

  /* VENTAJA */
  .ventaja-grid {
    grid-template-columns: 1fr;
  }

  .ventaja-left h2 {
    font-size: 1.6rem;
  }

  .ventaja-img-top,
  .ventaja-img-bottom {
    width: 100%;
  }

  .ventaja-box {
    margin-top: 2rem;
  }

  /* PORTFOLIO */
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    padding: 0 1.2rem;
  }

  .portfolio-card {
    padding: 1rem;
  }

  /* CTA */
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-right {
    padding: 2rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .assistant-title {
    font-size: 28px;
  }

  .assistant-sub {
    font-size: 16px;
  }

  .assistant-tags span {
    font-size: 14px;
  }

  .cta-copy {
    font-size: 14px;
  }

  .cta-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* ====== Mobile general (≤ 600px) ====== */
@media (max-width: 600px) {

  body {
    font-size: 12px;
  }

  .container {
    padding: 1.2rem;
  }

  /* HEADER */
  .logo {
    height: 50px;
    padding: 0;
  }

  .btn-burger {
    position: absolute;
    right: 10px;
    top: 20px;
  }

  .whatsapp-icon {
    display: none;
  }

  /* HERO */
  .hero {
    padding: 4rem 1rem;
  }

  .lead {
    font-size: 15px;
  }

  .btn-primary {
    font-size: 14px;
    padding: 0.5rem 0.8rem;
  }

  /* SERVICES */
  .services-col h2 {
    font-size: 1.4rem;
  }

  .service-item h3 {
    font-size: 1.1rem;
  }

  /* SERVICES 2 */
  .overlay-text2 {
    padding: 1rem;
    font-size: 0.9rem;
  }

  /* VENTAJA */
  .ventaja-left,
  .ventaja-right {
    padding: 1rem;
  }

  .ventaja-left h2 {
    font-size: 1.4rem;
  }

  /* PORTFOLIO */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-right {
    padding: 1.5rem;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-bar {
    width: 120px;
  }

  .assistant-title {
    font-size: 24px;
  }

  .assistant-sub {
    font-size: 14px;
  }
}

/* ====== Ultra-small (≤ 400px) ====== */
@media (max-width: 400px) {
  .hero {
    padding: 3rem 1rem;
  }

  .cta-title {
    font-size: 1.3rem;
  }

  .cta-btn {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .assistant-tags {
    gap: 4px;
  }

  .assistant-tags span {
    font-size: 12px;
    padding: 4px 6px;
  }
}
/*
* {
  outline: 1px solid rgba(255, 0, 0, 0.2);
}*/
html, body {
  overflow-x: hidden;
}

section, div {
  max-width: 100%;
  box-sizing: border-box;
}
