/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  /* bordes ayuda
  outline: 1px solid red !important;*/
}


html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-desktop);
}

:root {
  /* alturas de header */
  --header-h-desktop: 80px;
  /* ajusta si tu desktop es más alto */
  --header-h-mobile: 56px;
  /* header compacto en móvil */
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  color: #fff;
  background-color: #000;
  padding-top: var(--header-h-desktop);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1004;
  background: rgba(0, 0, 0, 0.9);
  height: var(--header-h-desktop);
  align-items: center;
  display: flex;
}

.nav {
  width: 100%;
}

.nav-container {
  width: 1200px;
  max-width: 95%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  gap: 12px;
  height: 100%;
}

.logo-bto {
  height: 60px;
}

.logo-global-task {
  height: 50px;
}

/* Menú Desktop */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: #4a6eaf;
}

/* Botón hamburguesa (oculto en desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  margin: 3px;
}

body.no-scroll {
  overflow: hidden;
}

/* Overlay detrás del panel */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  /* sin cambiar paleta, ya usas fondo oscuro */
  z-index: 1000;
}

.nav-overlay.active {
  display: block;
}

/* Móvil/Tablet (mejor opción de navegación) */
.nav-close {
  display: none;
}

/* PATCH: Header móvil — agrupar hamburger + logo a la izquierda */
@media (max-width: 1024px) {

  .header {
    height: var(--header-h-mobile);
  }

  html {
    scroll-padding-top: var(--header-h-mobile);
  }

  body {
    padding-top: var(--header-h-mobile);
  }

  /* 🔧 CLAVE: pasar de space-between -> flex-start */
  .nav .nav-container {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start !important;
    /* <-- antes tenía space-between */
    gap: 10px;
    /* separación entre hamburger y logo */
    height: 100%;
  }

  /* Orden correcto: primero hamburger, luego logo */
  .hamburger {
    order: 0;
    position: static;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1005;
    margin-left: 8px;
  }

  .logo-left {
    order: 1;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    /* pequeño aire del icono */
  }

  /* Evitar deformación del logo en móvil */
  .logo-left img,
  .logo-bto {
    height: auto !important;
    width: auto;
    max-height: 32px;
  }

  /* Ocultar segundo logo en móvil para que no empuje nada */
  .logo-right {
    display: none;
  }

  /* Panel del menú: sigue fijo, pero ya no afecta el layout del header */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(82vw, 340px);
    padding: 72px 24px 24px;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 1001;

    /* evita clics fantasma cuando está cerrado */
    visibility: hidden;
    pointer-events: none;
  }

  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-close {
    /* botón ×, si lo usas */
    position: fixed;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    display: none;
    z-index: 1002;
    cursor: pointer;
  }

  .nav-menu.active+.nav-close {
    display: block;
  }
}


/* Sector 1: Welcome - Gradiente lineal a 90°: #000000, #0d4783 */
.welcome-section {
  background: linear-gradient(90deg, #000000, #0d4783);
  padding: 120px 0 80px;
  text-align: center;
}

.welcome-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.welcome-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: left;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.service-item {
  position: relative;
}

.welcome-image-container {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
}

.welcome-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
  border-radius: 10px;
  object-fit: cover;
}

.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 2rem 1rem 1rem;
  border-radius: 0 0 10px 10px;
}

.service-overlay h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.welcome-tagline {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background: #0d4783;
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.cta-button:hover {
  background: #0a3a6b;
}

/* Sector 2: Why Choose - Negro #000000 */
.why-choose-section {
  background: #000000;
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.why-choose-header {
  position: relative;
  margin-bottom: 4rem;
}

.why-choose-bg-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.why-background-gif {
  height: auto;
  background: radial-gradient(ellipse at center, rgba(13, 71, 131, 0.3), rgba(0, 0, 0, 0.8));
  opacity: 0.7;
}

.why-choose-section h2 {
  font-size: 2.5rem;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.why-choose-item {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-choose-item h3 {
  font-size: 1.3rem;
  color: #fff;
  max-width: 250px;
  line-height: 1.4;
  margin-top: 1rem;
}

@media (max-width: 769px) {
  .service-image img {
    width: 100%;
    height: 150%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }

  .redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 0px;
    text-align: center;
  }

  .email a {
    padding: 15px 0 100x 0;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
  }

}

/* reducción de iconos de WHY CHOOSE BTO bnl*/

.why-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 2rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.why-icon-qualified {
  background: #7ba7d9;
  position: relative;
}

.why-icon-qualified::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: #fff;
  font-weight: bold;
}

.why-icon-flexible {
  background: #7ba7d9;
  position: relative;
}

.why-icon-flexible::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
}

.why-icon-flexible::after {
  content: '⚙';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #7ba7d9;
  z-index: 1;
}

.why-icon-pricing {
  background: #7ba7d9;
  position: relative;
}

.why-icon-pricing::after {
  content: '$';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: #fff;
  font-weight: bold;
}

/* Sector 3: About us - Gradiente lineal a 90°: #000000, #0d4783 */
#about-us {
  width: 100%;
  padding: 80px 10%;
  display: flex;
  justify-content: center;
  background: linear-gradient(90deg, #000000 0%, #0d4783 100%);
  color: #fff;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.about-left .about-image {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
}

.about-left img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

.about-right h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.about-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  gap: 15px;
}

.about-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.about-text h3 {
  margin: 0 0 5px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

.about-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: #e0e0e0;
}

/* Animación de entrada */
.animate-text {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-text.show {
  opacity: 1;
  transform: translateX(0);
}

/* Sector 4: Services - Gradiente lineal a 180°: #000000, #0d4783 */
#services {
  width: 100%;
  padding: 80px 10%;
  background: linear-gradient(180deg, #000000 0%, #0d4783 100%);
  color: #fff;
}

/* ===== Sector Services ===== */
.services-section {
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 60px;
}

.service-btn {
  border: none;
  position: absolute;
  left: 52%;
  transform: translateX(-50%);
  bottom: -60px;
  text-decoration: none;
  color: var(--p3-hero-cta-text);
  font-weight: 700;
  font-size: clamp(12px, 1.2vw, 15px);
  padding: clamp(10px, 1.2vw, 10px) clamp(20px, 3vw, 35px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--p3-hero-cta-bg), var(--p3-hero-cta-bg2));
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  z-index: 10;
  white-space: nowrap;
}

.service-btn:hover {
  transform: translateX(-50%) translateY(-2px);
}

/* Bloque principal */
.service-block {
  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Imagen circular */
.service-image {
  position: relative;
  width: 380px;
  aspect-ratio: 1 / 1;
  /* mantiene el círculo perfecto */
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  overflow: visible;
  /* Cambiado de hidden a visible */
  margin-top: -10%;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  overflow: hidden;
  /* Mueve el overflow aquí para que solo afecte a la imagen */
}

.service-title {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
}

/* Contenedor iconos + textos */
.service-content {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  align-items: center;
}

.service-icons img {
  display: block;
  width: 490px;
  height: auto;
  margin-left: -50px;
}

/* Lista de servicios */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.service-item h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 6px;
}

.service-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  color: #e0e0e0;
}

.service-line {
  width: 100%;
  max-width: 600px;
  /* conserva el tope */
  margin: 30px auto;
  align-content: center;
}

.service-line hr {
  width: 100%;
  /* antes: 600px fijos */
  height: 2px;
  background-color: #ffffff;
  border: none;
}

/* Responsive */



@media (max-width: 992px) {



  /* centrado de imagen circular  bln*/
  .service-image {
    width: 100%;
    max-width: 300px;
    /* más pequeña en tablet */
    height: auto;
    /* CENTRAR LA IMAGEN */
    display: block;
    /* Hace que margin auto funcione */
    margin: 0 auto;
  }

  .service-block {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-content {
    grid-template-columns: 1fr;
  }

  .service-title {
    position: static;
    transform: none;
    background: none;
    margin-top: 10px;
  }
}

@media (max-width: 1024px) {

  /* Oculta la imagen de mosaico de iconos (32.png) */
  #services .service-icons {
    display: none;
  }

  /* Prepara el H3 para llevar un icono a la izquierda */
  #services .service-item h3 {
    position: relative;

    min-height: 32px;
    /* asegura altura para el icono */
    line-height: 1.2;
  }

  #services .service-item h3::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 50%;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-size: contain;
    /* No se tocan colores de texto/fondos */
  }

  /* Mapea cada servicio con su icono */
  /* Reemplaza las rutas por las que uses realmente */
  #services .service-item.icon-inbound h3::before {
    background-image: url("../img/service/6.png");
  }

  #services .service-item.icon-email h3::before {
    background-image: url("../img/service/7.png");
  }

  #services .service-item.icon-livechat h3::before {
    background-image: url("../img/service/8.png");
  }

  #services .service-item.icon-multilingual h3::before {
    background-image: url("../img/service/9.png");
  }

  #services .service-item.icon-head h3::before {
    background-image: url("../img/service/10.png");
  }

  #services .service-item.icon-human h3::before {
    background-image: url("../img/service/11.png");
  }

  #services .service-item.icon-payroll h3::before {
    background-image: url("../img/service/12.png");
  }

  #services .service-item.icon-onboarding h3::before {
    background-image: url("../img/service/13.png");
  }

  #services .service-item.icon-ai h3::before {
    background-image: url("../img/service/14.png");
  }

  #services .service-item.icon-discover h3::before {
    background-image: url("../img/service/15.png");
  }

  #services .service-item.icon-quality h3::before {
    background-image: url("../img/service/16.png");
  }

  #services .service-item.icon-software h3::before {
    background-image: url("../img/service/17.png");
  }

  #services .service-item.icon-omnichannel h3::before {
    background-image: url("../img/service/18.png");
  }

  #services .service-item.icon-full h3::before {
    background-image: url("../img/service/19.png");
  }

  #services .service-item.icon-support h3::before {
    background-image: url("../img/service/20.png");
  }

  #services .service-item.icon-contract h3::before {
    background-image: url("../img/service/21.png");
  }
}

/* Sector 5: Smart Growth - Gradiente lineal a 180°: #000000, #0d4783 */
.sector-5 {
  width: 100%;
  background: linear-gradient(180deg, #000000 0%, #0d4783 100%);
  position: relative;
  overflow: hidden;
}

/* Contenedor central */
.sector-5-container {
  width: 100% !important;
  /* era 1400px fijo */
  max-width: 1400px;
  margin: -99px auto;
  text-align: center;
  position: relative;
  height: 900px;
  padding: 0 20px;
  /* añadir padding lateral */
  box-sizing: border-box;
}

/* Título */
.sector-5-title {
  font-size: 48px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.2;
  position: absolute;
  top: 140px;
  /* lo baja dentro del círculo */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  /* encima del círculo */
  text-align: center;
}

/* Círculo base */
.circle-image {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  z-index: 0;
  /* detrás */
}

/*revvvvvvvvvvvvvvvvvvvvv*/
.circle-image img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Ítems */
.item {
  position: absolute;
  width: 200px;
  z-index: 1;
  /*border: 2px dashed red;*/
}

.item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Ítems principales (1–5) */
.item-1,
.item-2,
.item-3,
.item-4,
.item-5 {
  width: 150px;
  /* referencia fija */
}

/* Ítems de texto (6–10) */
.item-6,
.item-7,
.item-8,
.item-9,
.item-10 {
  width: 200px;
  /* referencia fija */
}

/* --- Posiciones exactas basadas en plantilla --- */

/* Parte superior */
.item-1 {
  top: 160px;
  left: 235px;
}

/* Top 1 */
.item-2 {
  top: 335px;
  left: 430px;
}

/* 5000+ */
.item-3 {
  top: 400px;
  left: 650px;
}

/* 24/7/365 */
.item-4 {
  top: 335px;
  left: 860px;
}

/* 3 Strategic Cities */
.item-5 {
  top: 160px;
  right: 230px;
}

/* +1 Decade */

/* Parte inferior con textos */
.item-6 {
  bottom: 235px;
  left: 165px;
}

/* Texto 1 */
.item-7 {
  bottom: 120px;
  left: 400px;
}

/* Texto 2 */
.item-8 {
  bottom: 70px;
  left: 620px;
}

/* Texto 3 */
.item-9 {
  bottom: 120px;
  left: 840px;
}

.item-10 {
  bottom: 235px;
  right: 140px;
}

@media (max-width: 1138px) {

  /* ocultar tercer card de contact Book a Meeting bln*/
  .sector-5 {
    display: none;
  }

  .timeline-item {

    justify-content: center;
    align-items: center;
    padding: 100px 20px 60px;
    margin: -250px 0 -200px 0;
  }

  .essence-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 20%;
  }

  .ai-s2-circle {
    margin-top: -10px;
    margin-left: 5%;
    align-items: center;
  }

  .ai-s4__block-head h3 {
    font-weight: 800;
    font-size: clamp(20px, 2.2vw, 28px);
    margin: 0 0 0px;
    line-height: 1.2;
    padding-left: calc(var(--ai-icon-size, 96px) + var(--ai-gap, 12px));
    position: relative;
    z-index: 1;
    color: #a8c7ff;
    padding-bottom: 20px;
  }

  .ai-s4__block-head p {
    margin: 8px 0px 18px;
    opacity: .9;
    line-height: 1.5;
    padding-left: calc(var(--ai-icon-size, 96px) + var(--ai-gap, 12px));
    overflow-wrap: anywhere;
    padding: 20px 0 2% 0;
  }

  .ai-s3__h {
    margin: 0;
    font-weight: 800;
    font-size: clamp(20px, 2.3vw, 30px);
    line-height: 1.2;
    text-align: center;
  }

}

/* Sector 6: Business Sectors - Azul oscuro #092f59 */
.sector-6 {
  width: 100%;
  background: #092f59;
  /* Azul oscuro */
  padding: 80px 0;
  text-align: center;
}

/* Contenedor central */
.sector-6-container {
  width: 1200px;
  max-width: 90%;
  margin: 0 auto;
  position: relative;
}

/* Título */
.sector-6-title {
  font-size: 32px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
}

/* Contenedor GIF central */
.sector-6-gif {
  width: 350px;
  margin: 0 auto 60px auto;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sector-6-gif img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* Botón */
.sector-6-button a {
  display: inline-block;
  padding: 15px 40px;
  background: #4a6eaf;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  border-radius: 40px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.sector-6-button a:hover {
  background: #345489;
}

/* Sector 7: Contact - Gradiente circular al 50% 50%: #000000, #0d4783 */
/* Sector 7 */
.sector-7 {
  width: 100%;
  background: radial-gradient(circle at 50% 50%, #0d4783, #000000);
  padding: 100px 0;
  text-align: center;
}

/* Contenedor central */
.sector-7-container {
  width: 1200px;
  max-width: 95%;
  margin: 0 auto;
}

/* Título */
.sector-7-title {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 60px;
}

/* Contenedor de tarjetas */
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* ocultar tercer card de contact Book a Meeting bln*/
.contact-card:nth-child(3) {
  display: none;
}

/* Tarjeta individual */
.contact-card {
  background: transparent;
  border: 3px solid #ffffff;
  border-radius: 20px;
  padding: 40px 20px;
  width: 320px;
  text-align: center;
  color: #ffffff;
}

/* Icono placeholder */
.card-icon {
  margin-bottom: 20px;
}

.card-icon img {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto;
  border-radius: 30%;
}

/* Título tarjeta */
.card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Subtítulo */
.card-subtitle {
  font-weight: bold;
  margin-bottom: 10px;
}

/* Texto */
.card-text {
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Botón */
.card-button {
  display: inline-block;
  padding: 12px 25px;
  background: #4a6eaf;
  color: #ffffff;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.card-button:hover {
  background: #345489;
}

/* Footer */
.footer {
  background: #000000;
  padding: 1rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.redes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bp {
  color: rgba(231, 227, 227, 0.5);
  font-size: 12px;
}

.icons {
  display: flex;
  gap: 20px;
}

.icons a {
  font-size: 20px;
}

.redes a {
  color: rgb(192, 187, 187);
}

.emails a {
  padding: 15px 0 10x 0;
  color: rgb(204, 204, 204);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
  text-decoration: none;
  pointer-events: none;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #0d4783;
}

/* Responsive Design */
@media (max-width: 992px) {

  /* 1.Responsive imagen circular  bln*/
  .sector-5-container {
    width: 100%;
    height: auto;
    padding-bottom: 100px;
    margin-top: -60px;
  }

  .sector-5-title {
    font-size: 32px;
    top: 80px;
  }

  .item-1,
  .item-2,
  .item-3,
  .item-4,
  .item-5 {
    width: 100px;
  }

  .item-6,
  .item-7,
  .item-8,
  .item-9,
  .item-10 {
    width: 150px;
  }

  .sector-6-gif {
    width: 250px;
    margin-bottom: 40px;
  }

  .sector-6-title {
    font-size: 24px;
  }

  .contact-cards {
    flex-direction: column;
    gap: 20px;
  }

  .contact-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {

  .p3-sector-1 {
    min-height: 88vh;
    padding-top: 110px;
    /* deja aire si hay header fijo */
  }

  .p3-hero__copy {
    max-width: 95ch;
  }

  .essence-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120%;
  }

  .divider {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(235, 213, 213, 0.5);
    margin: 5px 0;
  }

  .why-choose-item img {
    max-width: 20% !important;
  }

  .why-choose-section h2 {
    font-size: 1.5rem;
    position: relative;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    padding: 10px 0 10px 0;
    object-position: center;
  }

  .why-background-gif {
    width: 50%;
    height: auto;
    background: radial-gradient(ellipse at center, rgba(13, 71, 131, 0.3), rgba(0, 0, 0, 0.8));
    opacity: 0.7;
  }

  .sector-3 {
    width: 100%;
    background: linear-gradient(180deg, #000000 0%, #0d4783 100%);
    padding: clamp(60px, 8vw, 100px) clamp(24px, 6vw, 80px);
    display: flex;
    justify-content: center;
    margin-top: -100%;
  }


  /* Todos los contenedores principales BLN*/
  .container,
  .nav-container,
  .services-container,
  .about-container,
  .sector-6-container,
  .sector-7-container,
  .welcome-section,
  .why-choose-section,

  #services {
    max-width: 100vw;
    overflow-x: hidden;
    padding-left: 15px;
    padding-right: 15px;
  }

 .welcome-section {
    background: linear-gradient(90deg, #000000, #0d4783);
    padding: 50px 0 20px;
    text-align: center;
}

  /* Menú hamburguesa activo */
  .service-item p {
    margin: 15px;
  }

  .sector-5-container {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .service-image {
    width: 100%;
    /* aún más pequeña en móvil */
    height: auto;
    margin: 0 auto 0px;
  }

  /*texto de servicios encajado al div  bln  */
  #services .service-item h3 {
    position: relative;
    min-height: 32px;
    line-height: 1.2;
  }

  /*icono de servicios encajado al div bln  */
  #services .service-item h3::before {
    content: "";
    position: absolute;
    left: 5%;
    top: 50%;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-size: contain;
  }
}

@media (max-width: 576px) {
  /* 1.Responsive imagen circular  */

  .sector-5-container {
    display: none;
  }

  .sector-5-title {
    font-size: 24px;
    top: 60px;
  }

  .item {
    position: static;
    margin: 10px auto;
  }

  .sector-6-gif {
    width: 200px;
  }

  .sector-7-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .contact-card {
    padding: 20px;
  }
}

/* ============================
   Página 2 - Sector 1 (Hello)
   ============================ */
#hello.sector-1 {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(90deg, #000000 0%, #0d4783 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0;
}

.sector-1-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

/* Columna izquierda (texto) */
.hello-text {
  flex: 1;
}

.hello-title {
  font-size: 96px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #a8c7ff;
  white-space: nowrap;
  overflow: hidden;
  border-right: 4px solid #fff;
  width: 0ch;
  animation: typing 2s steps(5) forwards, blinkCursor 0.7s step-end infinite;
  animation-delay: 0.5s, 0.5s;
}

.hello-title.done {
  border-right: none;
}

.hello-text h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

.hello-text p {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.highlight-box {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  font-weight: bold;
}

/* Columna derecha (iconos) */
.hello-icons {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hello-icons .icon-item img {
  width: 120px;
  height: auto;
  display: block;
}

/* --- Inicial: oculto todo lo que aparece después de "Hello" --- */
.hello-text h2,
.hello-text p,
.highlight-box,
.hello-icons .icon-item {
  opacity: 0;
  transform: translateY(-30px);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 992px) {
  .sector-1-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .hello-title {
    font-size: 64px;
  }

  .hello-text h2 {
    font-size: 22px;
  }

  .hello-text p {
    font-size: 16px;
  }

  .hello-icons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .hello-icons .icon-item img {
    width: 100px;
  }
}

@media (max-width: 576px) {
  .hello-title {
    font-size: 48px;
  }

  .hello-text h2 {
    font-size: 20px;
  }

  .hello-text p {
    font-size: 14px;
  }

  .hello-icons .icon-item img {
    width: 100px;
  }


}

/* ============================
   Animaciones
   ============================ */
@keyframes typing {
  from {
    width: 0ch;
  }

  to {
    width: 5ch;
  }
}

@keyframes blinkCursor {
  50% {
    border-color: transparent;
  }
}

.fade-down {
  animation: fadeDown .7s ease forwards;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-right {
  animation: slideRight .6s ease forwards;
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================
   Página 2 – Sector 2 (Our History)
   ============================ */
:root {
  --history-top: 0px;
  /* ya lo calculas con JS */
  --history-left: clamp(60px, 9vw, 220px);
  --history-photo-w: clamp(280px, 28vw, 440px);
}

/* Contenedor */
.sector-2 {
  width: 100%;
  background: linear-gradient(180deg, #000000 0%, #0d4783 100%);
  position: relative;
  padding: 0;
}

/* Título fijo */
.history-title {
  display: flex;
  position: sticky;
  top: var(--history-top);
  z-index: 3;
  display: flex;
  justify-content: center;
  padding-bottom: 130px;
}

.history-title img {
  width: min(50%, 900px);
  height: auto;
  display: block;
  position: absolute;
}

.history-title h1 {
  display: flex;
  position: relative;
  text-align: center;
  padding-top: 3%;
}


.history-year-fixed {
  position: sticky;
  top: calc(var(--history-top) + 110px);
  z-index: 3;
  margin: 12px 0 0 var(--history-left);
  font-weight: 800;
  color: #a8c7ff;
  font-size: clamp(44px, 6.8vw, 92px);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

/* Foto fija del año */
.history-photo-fixed {
  position: sticky;
  top: calc(var(--history-top) + 250px);
  /* debajo del título+year */
  z-index: 2;
  width: var(--history-photo-w);
  margin-left: calc(var(--history-left) + 8px);
  /* alinea con el gutter */
  transform: none;
  /* importante: no centrar */
}

.history-photo-fixed img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0;
  /* el JS la anima */
  transition: opacity .35s ease;
}

.history-photo-fixed img.active {
  opacity: 1;
}

/* Timeline items */
.timeline-container {
  width: 100%;
}

.timeline-item {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  /*padding: 0 clamp(24px, 6vw, 80px);*/
  padding: calc(var(--history-top) + 120px) clamp(24px, 6vw, 80px) 60px calc(var(--history-left) + var(--history-photo-w) + clamp(32px, 4vw, 60px));
  gap: clamp(24px, 5vw, 48px);
}

.timeline-deco {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.timeline-deco img {
  width: clamp(90px, 9vw, 170px);
  height: auto;
  display: block;
}

/* Texto (a la derecha) */
.timeline-content {
  max-width: 800px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-content h3,
.timeline-content p {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

.timeline-item.active h3,
.timeline-item.active p {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll-snap solo dentro sector */
body.history-snap {
  scroll-snap-type: y mandatory;
}

.sector-2 .timeline-item .year-photo {
  display: none;
}

.sector-2 .timeline-item .year-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .25);
}

/* ============================
   Responsive – Sector 2 (Our History)
   ============================ */

/* --- Tablets (≤ 992px) --- */
@media (max-width: 992px) {



  /* Año más pequeño */
  .history-year-fixed {
    font-size: clamp(32px, 8vw, 60px);
    margin-left: clamp(20px, 4vw, 40px);
  }

  /* Foto más angosta */
  .history-photo-fixed {
    width: clamp(200px, 35vw, 320px);
    margin-left: clamp(20px, 4vw, 40px);
  }

  /* Contenido con menos separación */
  .timeline-item {
    padding: calc(var(--history-top) + 120px) clamp(16px, 4vw, 40px) 40px calc(var(--history-left) + var(--history-photo-w) + clamp(16px, 3vw, 40px));
    gap: 24px;
  }

  /* Texto menos ancho */
  .timeline-content {
    max-width: 600px;
    padding-bottom: 20px;
  }
}

/* --- Móviles (≤ 768px) --- */
@media (max-width: 768px) {

  /* Imágenes responsivas bln*/
  img {
    max-width: 100% !important;
  }

  .welcome-image,
  .service-icons img {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* FIN Imágenes responsivas bln */

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .logo-left,
  .logo-right {
    order: 1;
  }

  .nav-menu {
    order: 2;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .logo-global-task {
    width: 150px;
    height: 30px;
  }

  .logo-bto {
    width: 100px;
    height: 54px;
  }

  .welcome-content h1 {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .welcome-image-container {
    height: 200px;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .why-icon {
    width: 100px;
    height: 100px;
  }

  .why-icon-qualified::after,
  .why-icon-pricing::after {
    font-size: 2.5rem;
  }

  .why-icon-flexible::before {
    width: 50px;
    height: 50px;
  }

  .why-icon-flexible::after {
    font-size: 1.5rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .smart-growth-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  /* Año centrado arriba */
  .history-year-fixed {
    position: sticky;
    text-align: center;
    margin-left: 0;
    font-size: clamp(28px, 10vw, 48px);
    padding-top: 5%;
  }

  /* Ocultar foto fija */
  .history-photo-fixed {
    display: none !important;
  }

  /* imagen mas pequeña de our history bln*/
  .history-title img {
    width: min(90%, 900px);
    height: auto;
  }


  /* Timeline en columna */
  .timeline-item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 60px;
    text-align: center;
    margin: -20px 0 -400px 0;
    /* quitando espacio de history entre parrafos bln*/
  }

  /* Mostrar foto por año (interna en cada bloque) */
  .sector-2 .timeline-item .year-photo {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 5px auto 25px;
  }

  .timeline-item .year-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .25);
    padding-top: 27%;
  }

  /* Ocultar decoración lateral */
  .timeline-deco {
    display: none !important;
  }

  /* Texto debajo */
  .timeline-content {
    max-width: 100%;
    text-align: center;
  }

  .timeline-content h3 {
    font-size: 20px;
  }

  .timeline-content p {
    font-size: 12px;
    line-height: 1.4;
    padding-bottom: 100%;
  }

  .essence-image img {
    text-align: center;
  }

  .essence-image {
    justify-items: center;
  }
}

/* ============================
   Página 2 – Sector 3 (Our Essence)
   ============================ */
.sector-3 {
  width: 100%;
  background: linear-gradient(180deg, #000000 0%, #0d4783 100%);
  padding: clamp(60px, 8vw, 100px) clamp(24px, 6vw, 80px);
  display: flex;
  justify-content: center;
}

.essence-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(30px, 6vw, 60px);
  max-width: 1200px;
  width: 100%;
}

/* Imagen */
.essence-image img {
  width: 80%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  display: block;
}

/* Texto */
.essence-text h2 {
  font-size: clamp(28px, 5vw, 42px);
  color: #ffffff;
  margin-bottom: 20px;
}

.essence-text h3 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.essence-text p {
  color: #e0e0e0;
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: clamp(14px, 2vw, 16px);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 992px) {
  .essence-image img {
    text-align: center;
  }

  .essence-image {
    justify-items: center;
  }

  .essence-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 60%;
  }

  .essence-text {
    margin-top: 30px;
  }

  .essence-text h2 {
    margin-bottom: 12px;
  }
}

/* ============================
   Página 2 – Sector 4 (Counters)
   ============================ */
/* ============================
   Página 2 – Sector 4 (Counters) - FIX
   ============================ */
.sector-4 {
  width: 100%;
  background: url("../img/ouressence/2.png") no-repeat center/cover;
  padding: 64px 20px;
  color: #fff;
  overflow-x: hidden;
  /* Prevenir desbordamiento horizontal */
}

.sector-4 .stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
  text-align: center;
}

/* Tarjeta genérica */
.sector-4 .stat,
.sector-4 .counter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  /* Asegurar que no se desborde */
}

/* Fila superior del número (+ y número) */
.sector-4 .stat-top {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: .2em;
  line-height: 1;
  flex-wrap: wrap;
  /* Permitir que se envuelva si es necesario */
}

.sector-4 .sign {
  font-size: clamp(22px, 4.8vw, 36px);
  font-weight: 800;
}

.sector-4 .num {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  min-width: 1.4ch;
  /* evita “saltos” durante el conteo */
}

/* Subtítulo bajo cada número */
.sector-4 .stat-sub,
.sector-4 .counter-box p {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.35;
  margin: 0;
}

/* --- Bloque especial 24/7/365 --- */
.sector-4 .counter-box.special {
  align-items: center;
}

.sector-4 .stat-top.slashed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35em;

  flex-wrap: wrap;
  /* Permitir que se envuelva en pantallas pequeñas */
}

.sector-4 .stat-top.slashed .group {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}

.sector-4 .stat-top.slashed .group .num {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
}

.sector-4 .stat-top.slashed .label {
  font-size: clamp(10px, 1.8vw, 12px);
  opacity: .85;
  margin-top: 2px;
}

.sector-4 .stat-top.slashed .sep {
  font-weight: 900;
  font-size: clamp(22px, 4.8vw, 36px);
  line-height: 1;
  opacity: .95;
}

/* ============================================
   RESPONSIVE - TABLETS (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .sector-4 .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 3vw, 40px);
  }

  .sector-4 {
    padding: 48px 15px;
  }
}

/* ============================================
   RESPONSIVE - MÓVILES (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .sector-4 {
    padding: 40px 15px;
  }

  .sector-4 .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 10px;
  }

  .sector-4 .stat,
  .sector-4 .counter-box {
    max-width: 100%;
    padding: 0 10px;
  }

  /* Ajustar tamaños para móviles */
  .sector-4 .num {
    font-size: clamp(32px, 8vw, 42px);
  }

  .sector-4 .sign {
    font-size: clamp(24px, 6vw, 32px);
  }

  .sector-4 .stat-sub,
  .sector-4 .counter-box p {
    font-size: clamp(13px, 3.5vw, 15px);
  }

  /* Ajustes para el contador especial 24/7/365 */
  .sector-4 .stat-top.slashed {
    gap: .25em;
  }

  .sector-4 .stat-top.slashed .group .num {
    font-size: clamp(24px, 7vw, 36px);
  }

  .sector-4 .stat-top.slashed .label {
    font-size: clamp(9px, 2.5vw, 11px);
  }

  .sector-4 .stat-top.slashed .sep {
    font-size: clamp(20px, 6vw, 28px);
  }
}

/* ============================================
   RESPONSIVE - MÓVILES PEQUEÑOS (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {


  .sector-4 {
    padding: 32px 10px;
  }

  .sector-4 .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 5px;
  }

  .sector-4 .stat,
  .sector-4 .counter-box {
    padding: 0 5px;
  }

  /* Ajustar tamaños para móviles */
  .sector-4 .num {
    font-size: clamp(32px, 8vw, 42px);
  }

  .sector-4 .sign {
    font-size: clamp(24px, 6vw, 32px);
  }

  .sector-4 .stat-sub,
  .sector-4 .counter-box p {
    font-size: clamp(13px, 3.5vw, 15px);
  }

  /* Ajustes para el contador especial 24/7/365 */
  .sector-4 .stat-top.slashed {
    gap: .25em;
  }

  .sector-4 .stat-top.slashed .group .num {
    font-size: clamp(24px, 7vw, 36px);
  }

  .sector-4 .stat-top.slashed .label {
    font-size: clamp(9px, 2.5vw, 11px);
  }

  .sector-4 .stat-top.slashed .sep {
    font-size: clamp(20px, 6vw, 28px);
  }
}

/* ============================
   Página 2 – Sector 5 (Our Team / Executive Leadership)
   ============================ */
.sector-5p2 {
  width: 100%;
  background: linear-gradient(180deg, #000000 0%, #0d4783 100%);
  padding: clamp(48px, 7vw, 80px) 0;
}

.el-wrapper {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.el-title {
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 48px);
  margin-bottom: clamp(28px, 5vw, 48px);
}

.el-row {
  display: grid;
  grid-template-columns: auto 1fr;
  /* foto izquierda, texto derecha */
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(16px, 2vw, 24px) 0;
}

.el-photo img {
  width: clamp(240px, 26vw, 360px);
  /* tamaño contenido, sin sobrepasar */
  height: auto;
  display: block;
  border-radius: 18px;
}

/* Texto */
.el-copy {
  color: #e9f0ff;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
}

.el-copy p {
  margin: 0 0 14px;
}

.el-copy p strong {
  color: #ffffff;
}

/* Animación reveal (suave) */
.reveal-up {
  opacity: 0;
  transform: translateY(18px);
  transition: .6s ease;
}

.reveal-up.show {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {

  .el-row {
    grid-template-columns: 1fr;
    /* apilar */
    text-align: center;
  }

  .el-photo img {
    width: clamp(240px, 68vw, 420px);
    margin: 0 auto;
  }
}

/* ============================
   Página 2 – Sector 6 (CTA)
   ============================ */
.sector-6p2 {
  width: 100%;
  background: linear-gradient(90deg, #000000 0%, #0d4783 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 10vw, 120px) 20px;
}

.sector-6p2 .cta-wrap {
  width: min(1100px, 92%);
  margin: 0 auto;
  text-align: center;
  color: #e9f0ff;
}

.sector-6p2 .cta-title {
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(32px, 5.4vw, 64px);
  margin: 0 0 clamp(16px, 2vw, 24px);
}

.sector-6p2 .cta-sub {
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.55;
  margin: 0 0 10px;
  opacity: .95;
}

.sector-6p2 .cta-btn {
  display: inline-block;
  margin-top: clamp(24px, 3vw, 36px);
  padding: clamp(14px, 1.6vw, 18px) clamp(28px, 3.4vw, 44px);
  border-radius: 48px;
  background: #6e8fc5;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.sector-6p2 .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  background: #86a4d4;
}

.sector-6p2 .cta-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* =========================
   Page 3 – Sector 1 (Hero)
   ========================= */
:root {
  --p3-hero-maxw: 1100px;
  --p3-hero-title: clamp(40px, 6.2vw, 84px);
  --p3-hero-line: clamp(16px, 1.4vw, 22px);
  --p3-hero-text: #dbe8ff;
  --p3-hero-title-color: #f1f4ff;
  --p3-hero-cta-bg: #6d8fc6;
  --p3-hero-cta-bg2: #4e6ea3;
  --p3-hero-cta-text: #ffffff;
}

/* Sección con imagen de fondo (ajusta la ruta) */
.p3-sector-1 {
  position: relative;
  width: 100%;
  min-height: 92vh;
  display: grid;
  place-items: center;
  color: var(--p3-hero-text);
  text-align: center;
  background:
    url("../img/aihero.gif") center/cover no-repeat;
  padding: clamp(80px, 10vh, 140px) 20px;
}

/* Contenedor interior */
.p3-hero__inner {
  width: min(100%, var(--p3-hero-maxw));
  margin-inline: auto;
}

/* Título principal en dos líneas */
.p3-hero__title {
  color: var(--p3-hero-title-color);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.3px;
  font-size: var(--p3-hero-title);
  margin: 0 0 clamp(18px, 2.2vw, 26px);
}

/* Bloque de párrafos */
.p3-hero__copy {
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.65;
  opacity: 0.96;
  margin: 0 auto clamp(28px, 3.6vw, 40px);
  max-width: var(--p3-hero-maxw);
}

.p3-hero__copy p {
  margin: 0 0 var(--p3-hero-line);
}

.p3-hero__copy p:last-child {
  margin-bottom: 0;
}

/* Botón CTA centrado */
.p3-hero__cta {
  display: inline-block;
  text-decoration: none;
  color: var(--p3-hero-cta-text);
  font-weight: 700;
  font-size: clamp(16px, 1.2vw, 18px);
  padding: clamp(12px, 1.2vw, 16px) clamp(28px, 3vw, 42px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--p3-hero-cta-bg), var(--p3-hero-cta-bg2));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.p3-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .45);
}

.p3-hero__cta:active {
  transform: translateY(0);
  opacity: .95;
}


/* =========================
   Página 3 – Sector 2
   ========================= */
/* ===== P3 – Sector 2 (2×2) ===== */
.ai-s2 {
  background: linear-gradient(90deg, #000000 0%, #0d4783 100%);
  padding: clamp(48px, 6vw, 96px) clamp(16px, 5vw, 72px);
  color: #fff;
}

.ai-s2-title {
  max-width: 1200px;
  margin: 0 auto clamp(32px, 4vw, 56px);
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 42px);
  text-align: center;
}

/* 👉 2 columnas firmes en desktop, 1 en móvil */
.ai-s2-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(520px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

@media (max-width: 1200px) {
  .ai-s2-grid {
    grid-template-columns: repeat(2, minmax(420px, 1fr));
  }
}

@media (max-width: 980px) {
  .ai-s2-grid {
    grid-template-columns: 1fr;
  }

  .ai-s2-item {
    padding-left: clamp(68px, 20vw, 110px);
  }

  .ai-s2-circle {
    top: 18%;
    transform: translate(20%, -50%);
    width: clamp(64px, 15vw, 110px);
  }

  .ai-s2-card {
    margin-left: 0;
  }
}

/* 👉 Cada ítem ahora es un contenedor con padding izquierdo para “hacer sitio” al círculo */
.ai-s2-item {
  position: relative;
  padding-left: clamp(90px, 14vw, 170px);
  /* espacio para el círculo */
  min-height: clamp(120px, 18vw, 200px);
}

/* Círculo (imagen con anillos + conector) ABSOLUTO, por encima del card */
.ai-s2-circle {
  position: absolute;
  left: 0;
  top: 17%;
  transform: translate(40%, -50%);
  /* muerde el card */
  width: clamp(150px, 15vw, 300px);
  height: auto;
  z-index: 3;
  pointer-events: none;
}

/* Card de texto: ocupa ANCHO del “slot” del grid, no de toda la página */
.ai-s2-card {
  position: relative;
  z-index: 2;
  background: rgba(32, 64, 108, 0.92);
  border-radius: 26px;
  padding: clamp(18px, 2.1vw, 28px) clamp(20px, 2.6vw, 32px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
  margin-left: -6px;
  /* antes: 0 */
  /* ➜ OJO: SIN márgenes negativos; el círculo ya se superpone desde fuera */
}

.ai-s2-card h3 {
  margin: 0 0 .6em;
  font-weight: 800;
  font-size: clamp(16px, 2.1vw, 24px);
  line-height: 1.18;
}

.ai-s2-card p {
  margin: 0;
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.55;
  opacity: .95;
}

/* =========================
   Página 3 – Sector 3 (ajuste de look)
   ========================= */
.ai-s3 {
  width: 100%;
  background: linear-gradient(90deg, #000000 0%, #0d4783 100%);
  padding: clamp(48px, 6vw, 96px) clamp(16px, 5vw, 64px);
  color: #fff;
}

.ai-s3__wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.ai-s3__title {
  text-align: center;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 clamp(40px, 6vw, 64px);
  font-size: clamp(26px, 3.2vw, 44px);
}

.ai-s3__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(24px, 3.5vw, 48px);
}

.ai-s3__item {
  padding: clamp(12px, 2vw, 28px);
}

.ai-s3__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  /*column-gap: clamp(12px, 4vw, 75px);*/
}

.ai-s3__num {
  width: clamp(88px, 10vw, 120px);
  height: auto;
  display: block;
}

.ai-s3__h {
  margin: 0;
  font-weight: 800;
  /* sube a 800 como en el template */
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.2;
  text-align: center;
}

/* Línea (imagen) alineada tras el número */
.ai-s3__line {
  width: 100%;
  max-width: 760px;
  /* un poco más larga para respirar */
  height: auto;
  display: block;
  transform-origin: center left;
}

/* Tarjeta de texto */
.ai-s3__card {
  background: rgba(16, 46, 79, 0.65);
  border-radius: 48px;
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 28px);
  max-width: 720px;
  /* ligeramente más ancha */
  line-height: 1.55;
  font-size: clamp(14px, 1.6vw, 16px);
  /* alinear con el inicio de la línea/tras el número */
  margin-left: clamp(88px, 10vw, 132px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  /* sutil como en el mock */
}

/* Responsive: 1 columna en móviles */
@media (max-width: 860px) {
  .p3-hero__title {
    color: var(--p3-hero-title-color);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.3px;
    font-size: clamp(30px, 6.2vw, 84px);
    margin: 0 0 clamp(20px, 2.2vw, 26px);
  }

  .ai-s3__title {
    text-align: center;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 clamp(40px, 6vw, 64px);
    font-size: clamp(20px, 3.2vw, 44px);
  }

  .ai-s3__grid {
    grid-template-columns: 1fr;
  }

  .ai-s3__line {
    max-width: 100%;
    transform: none !important;
    /* sin flip en mobile */
    translate: clamp(0px, 0vw, 0px) 0;
  }

  .ai-s3__card {
    background: rgba(16, 46, 79, 0.65);
    border-radius: 30px;
    padding: clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 28px);
    max-width: 720px;
    line-height: 1.55;
    font-size: clamp(14px, 1.6vw, 16px);
    margin-left: clamp(0px, 0vw, 0px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  }

  /* Círculo (imagen con anillos + conector) ABSOLUTO, por encima del card bln*/
  .ai-s2-circle {
    position: absolute;
    left: 0;

    transform: translate(18%, -50%);
    /* muerde el card */
    width: clamp(150px, 15vw, 300px);
    height: auto;
    z-index: 3;
    pointer-events: none;
  }
}

/* =========================
   Página 3 – Sector 4 (AI Agent Catalog)
   ========================= */
.ai-s4 {
  width: 100%;
  background: linear-gradient(90deg, #000000 0%, #0d4783 100%);
  color: #fff;
  padding-left: clamp(10px, 7vw, 120px);
  /* dando pading al a1-s4 bln*/
  padding-right: clamp(10px, 7vw, 120px);
  /* dando pading al a1-s4 bln*/
}

.ai-s4__wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.ai-s4__title {
  text-align: center;
  font-weight: 800;
  line-height: 1.12;
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 0 0 8px;
  /* padding-left: clamp(60px, 7vw, 120px); */
}

.ai-s4__lead {
  text-align: center;
  max-width: 980px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  opacity: .9;
}

.ai-s4__block {
  margin-top: clamp(28px, 4vw, 56px);
}

.ai-s4__block-head {
  position: relative;
  /* tamaño del icono y separación a la izquierda */
  --ai-icon-size: 115px;
  --ai-gap: 14px;
  /* si quieres usar ::before con un icono por bloque, define también: --ai-icon: url("...") */
}

.ai-s4__block-head h3 {
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 28px);
  margin: 0 0 12px;
  line-height: 1.2;
  padding-left: calc(var(--ai-icon-size, 96px) + var(--ai-gap, 12px));
  position: relative;
  z-index: 1;
  color: #a8c7ff;
}

/* .ai-s4__block-head p{ margin:8px 0 18px; opacity:.9; padding-left: clamp(80px, 7vw, 120px);} */
.ai-s4__block-head p {
  margin: 8px 0px 18px;
  opacity: .9;
  line-height: 1.5;
  padding-left: calc(var(--ai-icon-size, 96px) + var(--ai-gap, 12px));
  overflow-wrap: anywhere;
}

.ai-s4__line {
  display: block;
  width: min(720px, 80%);
  height: auto;
  margin: -40px 0;
}

/* ===== Responsivo ===== */

/* Tablet */
@media (max-width: 1024px) {
  .ai-s4__block-head {
    /*  --ai-icon-size: 56px;*/
    --ai-gap: -10px;
  }


  /* arreglos de texto bln */
  .ai-s4__block-head h3 {
    font-size: clamp(18px, 4.2vw, 21px);
  }

  .ai-s2-circle {
    position: absolute;
    left: 0;
    transform: translate(2%, -28%);
    width: clamp(150px, 15vw, 300px);
    height: auto;
    z-index: 3;
    pointer-events: none;
  }

  .ai-s3__h {
    margin: 0;
    font-weight: 800;
    font-size: clamp(20px, 2.3vw, 30px);
    line-height: 1.2;
    text-align: center;
  }

}

/* Móvil */
@media (max-width: 600px) {

  .ai-s4__block-head {
    --ai-icon-size: 44px;
    --ai-gap: 8px;
  }

  .ai-s4__block-head p {
    font-size: clamp(13px, 3.8vw, 15.5px);
    margin: 15px 18px 10px;
    padding-top: 15px;
    /* dando espacio de padding-top 25px al texto bln*/
  }

  /* dando espacio al titulo AI AGENT CATALOG con padding bottom 25% bln*/
  .ai-s4__block-head h3 {
    font-size: clamp(18px, 4.2vw, 21px);
    margin: 0 23px 15px;
    padding-bottom: 25px;
  }

  .ai-s2-circle {
    position: absolute;
    left: 0;
    transform: translate(2.5%, -38%);
    width: clamp(150px, 15vw, 300px);
    height: auto;
    z-index: 3px;
  }
}

/* Móvil muy estrecho: icono arriba y texto debajo */
@media (max-width: 360px) {

  .history-year-fixed {
    top: calc(var(--history-top) + 50px);
    z-index: 1;
    font-weight: 800;
    color: #a8c7ff;
    font-size: clamp(44px, 6.8vw, 92px);
    text-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    padding-bottom: 20px;
  }


  .why-background-gif {
    width: 100%;
    height: auto;
    background: radial-gradient(ellipse at center, rgba(13, 71, 131, 0.3), rgba(0, 0, 0, 0.8));
    opacity: 0.7;
  }

  .ai-s4__block-head {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .ai-s4__block-head::before {
    position: static;
    /* icono se apila arriba */
    margin-bottom: 2px;
  }

  .ai-s4__block-head h3 {
    padding-left: 0;
    text-align: center;
    padding-bottom: 10px;
    /* sin sangría cuando el icono va arriba */
    margin: 20px 0px 18px;
  }


  .ai-s4__block-head p {
    padding-left: 0;
    text-align: center;
    padding-bottom: 10px;
    /* sin sangría cuando el icono va arriba */
    margin: -20px 0px 18px;
  }

  .ai-card__p {
    font-size: clamp(13px, 1.2vw, 15px);
    line-height: 1.55;
    padding-bottom: -100px;
  }


  /* imagen mas pequeña de our history bln*/
  .history-title img {
    width: min(90%, 900px);
    height: auto;
  }

  /*ICONOS CENTRADO DE FILAS DE 2X2 bln*/
  .hello-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
  }

  /* Timeline en columna */
  .timeline-item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 60px;
    text-align: center;
    margin: -180px 0 -200px 0;
    /* quitando espacio de history entre parrafos bln*/
  }

  .redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
  }

  .divider {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(235, 213, 213, 0.5);
    margin: 5px 0;
  }

  .bp {
    color: rgba(231, 227, 227, 0.5);
    font-size: 12px;
  }

  .icons {
    display: flex;
    gap: 20px;
  }

  .icons a {
    font-size: 20px;
  }

  .redes a {
    color: rgba(192, 187, 187);
  }

  .emails a {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: -10px;
    pointer-events: none;
  }

  .why-choose-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 240%;
    height: 150%;
  }

  #ai-catalog-people .ai-card:nth-child(5) .ai-card__p {
    /* text-align: center;*/
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    font-size: clamp(13px, 1.2vw, 15px);
    line-height: 1.55;
    margin-top: -5px;
    margin-bottom: 15px;
  }

}

/* -------- Grillas por sub-sector (desktop) -------- */
.ai-s4__grid {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

/* 2x2 estándar (4 ítems) */
.ai-s4__grid--2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 2*1 (3 ítems): el 3º ocupa las 2 columnas */
.ai-s4__grid--2-1 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-s4__grid--2-1> :nth-child(3) {
  grid-column: 1 / -1;
}

/* 2*2*1 (5 ítems): el 5º ocupa las 2 columnas */
.ai-s4__grid--2-2-1 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-s4__grid--2-2-1> :nth-child(5) {
  grid-column: 1 / -1;
}

/* Card */
.ai-card {
  /* antes: flex-col; ahora usamos grid para alinear icono y título en una fila */
  display: grid;
  grid-template-columns: auto 1fr;
  grid-auto-rows: auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 10px;

  background: rgba(16, 46, 79, .70);
  border-radius: 28px;
  padding: clamp(16px, 2vw, 22px);
  min-height: 220px;
}

.ai-card__icon {
  grid-column: 1;
  grid-row: 1;
  width: 90px;
  /* tamaño del icono bln de 64px a 80 px */
  height: 90px;
  /* tamaño del icono bln de 64px a 80 px*/
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ai-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ai-card__p {
  grid-column: 1 / -1;
  /* ocupa el ancho completo debajo del header */
  grid-row: 2;
  margin: 0;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.55;
  padding: 2%;
  margin-top: -25px;
}



/* Responsive */
@media (max-width: 1100px) {

  .ai-card__p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    font-size: clamp(13px, 1.2vw, 15px);
    line-height: 1.55;
    margin-top: -50px;
    margin-bottom: -10px;
  }


  .ai-s4__grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-s4__grid--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .ai-s4__grid--2x2 {
    grid-template-columns: 1fr;
  }

  .ai-s4__grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-s4__grid--4 {
    grid-template-columns: 1fr;
  }

  .ai-s4__grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {

  .history-title h1 {
    display: flex;
    position: relative;
    text-align: center;
    padding-top: 5.3%;
    font-size: 20px;
  }

  /*************/

  .ai-s2-item {
    padding-top: -15px;
    align-items: center;
  }

  .ai-s2-circle {
    position: absolute;
    left: 0;
    top: 20%;
    transform: translate(18%, -50%);
    width: clamp(150px, 15vw, 300px);
    height: auto;
    z-index: 3;
    pointer-events: none;
  }


  .ai-s4__grid--3,
  .ai-s4__grid--5 {
    grid-template-columns: 1fr;
  }

  .ai-s4__line {
    width: 100%;
  }
}

@media (max-width:480) {

  /* Título fijo */

  .history-title h1 {
    display: flex;
    position: relative;
    text-align: center;
    padding-top: 2%;
    font-size: 12px;
  }

  /*************/



  .container {
    padding: 0 15px;
  }

  .welcome-section {
    padding: 10px 0 1;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .welcome-image-container {
    height: 180px;
  }

  .service-overlay h3 {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: center;
  }

}

/* Fade-in */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ----- Título de subsector (como el template) ----- */
/* =========================
   Página 3 – Sector 5
   ========================= */
.ai-s5 {
  width: 100%;
  background: linear-gradient(90deg, #000000 0%, #0d4783 100%);
  color: #fff;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 6vw, 64px);
}

.ai-s5__wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}

.ai-s5__title {
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(32px, 5.2vw, 64px);
  letter-spacing: .2px;
  text-align: center;
  /* ALINEANDO EL TEXTO AL CENTRO bln*/
}

.ai-s5__desc {
  margin: 0 0 clamp(18px, 2vw, 24px);
  color: #d9e7ff;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.6;
  max-width: 56ch;
}

.ai-s5__btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: #5b7fb7;
  /* tono de botón del template */
  padding: clamp(10px, 1.2vw, 14px) clamp(18px, 2vw, 28px);
  border-radius: 9999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}

.ai-s5__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .32);
}

.ai-s5__btn:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .ai-s5__wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ai-s5__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .ai-s5__right {
    justify-self: center;
  }
}


@media screen and (min-width: 1301px) and (max-width: 2560px) {
  .divider {
    display: none;
  }
}


/* ===== Hero ===== */
.quote-hero {
  padding: clamp(48px, 8vw, 96px) 0 0;
  text-align: center;
}

.hero-title {
  margin: 0 0 .5rem;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: .2px;
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 820px;
  opacity: .9;
  font-size: clamp(15px, 1.5vw, 18px);
}

/* ===== Card/Form ===== */
.quote-section {
  padding: 32px 0 80px;
}

.quote-card {
  margin-top: 24px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.quote-form {
  padding: clamp(20px, 4vw, 36px);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-group--full {
    grid-column: 1 / -1;
  }
}

.form-group,
.form-group--full {
  display: flex;
  flex-direction: column;
}

.form-group label,
.form-group--full label {
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group label span {
  color: #ffd166;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .25);
  color: #f2f6ff;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(242, 246, 255, .6);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7db2ff;
  box-shadow: 0 0 0 3px rgba(125, 178, 255, .25);
  background: rgba(0, 0, 0, .35);
}

.hint {
  margin-top: 6px;
  font-size: .85rem;
  opacity: .75;
}

/* Chips/checkbox inline */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.chips label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  opacity: .95;
}

/* Consent */
.consent {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
}

.consent a {
  color: #a8d3ff;
}

/* Errores */
.error {
  display: none;
  margin-top: 6px;
  font-size: .85rem;
  color: #ffd2d2;
}

.has-error .error {
  display: block;
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: #ff7b7b;
  box-shadow: 0 0 0 3px rgba(255, 123, 123, .18);
}

/* Acciones */
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  position: relative;
  border: none;
  padding: 12px 18px 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #0a1e3a;
  background: linear-gradient(180deg, #b8d4ff 0%, #7db2ff 100%);
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, opacity .2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(10, 30, 58, .5);
  border-top-color: rgba(10, 30, 58, 1);
  border-radius: 50%;
  display: inline-block;
  margin-left: 10px;
  opacity: 0;
  transform: translateY(2px);
  animation: spin 1s linear infinite;
}

.btn-primary.loading {
  opacity: .8;
  pointer-events: none;
}

.btn-primary.loading .spinner {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-note {
  margin: 0;
  opacity: .85;
  font-size: .95rem;
}

/* Mensaje éxito */
.form-success {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(109, 213, 129, .15);
  border: 1px solid rgba(109, 213, 129, .4);
  color: #e9ffe9;
}


/* Tablets */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .history-title h1 {
    display: flex;
    position: relative;
    text-align: center;
    padding-top: 5%;
    font-size: 35px;
  }

  .icons {
    margin-bottom: -20px;
  }

  .redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
  }

  .emails a {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: -20px;
    pointer-events: none;
  }

  .ai-s2-circle {
    left: 0;
    top: 15%;
    transform: translate(20%, -30%);
    width: clamp(120px, 16vw, 200px);
    height: auto;
    z-index: 3;
    pointer-events: none;
  }

  .why-choose-bg-image {
    top: 50%;
    margin-left: -13%;
  }

  .service-bt {
    padding-top: 5%;
  }

  .service-btn {
    border: none;
    position: absolute;
    transform: translateX(-50%);
    bottom: -60px;
    text-decoration: none;
    color: var(--p3-hero-cta-text);
    font-weight: 700;
    font-size: clamp(10px, 1.2vw, 15px);
    padding: clamp(10px, 1.2vw, 10px) clamp(20px, 3vw, 35px);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--p3-hero-cta-bg), var(--p3-hero-cta-bg2));
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    z-index: 10;
    white-space: nowrap;
    margin-bottom: 10%;
  }

  .service-btn:hover {
    transform: translateX(-50%) translateY(-2px);
  }



}

/* Pantallas grandes y muy grandes */

@media screen and (min-width: 981px) and (max-width: 1024px) {
  .ai-s2-circle {
    position: absolute;
    left: 0;
    top: 15%;
    transform: translate(3.5rem, -2.0rem);
    width: clamp(120px, 16vw, 200px);
    height: auto;
    z-index: 3;
    pointer-events: none;
  }
}

@media screen and (min-width: 1139px) and (max-width: 1350px) {
  .ai-s2-circle {
    position: absolute;
    left: 0;
    top: 15%;
    transform: translate(5.5rem, -3.0rem);
    width: clamp(120px, 16vw, 200px);
    height: auto;
    z-index: 3;
    pointer-events: none;
  }
}

@media screen and (min-width: 1351px) and (max-width: 2560px) {

  .ai-s2-circle {
    position: absolute;
    left: 0;
    top: 15%;
    transform: translate(5.5rem, -3.0rem);
    width: clamp(120px, 16vw, 200px);
    height: auto;
    z-index: 3;
    pointer-events: none;
  }

  .history-title {
    z-index: 3;
    display: flex;
    justify-content: center;
    padding-bottom: 170px;
  }
}

@media screen and (min-width: 1560px) and (max-width: 3000px) {

  .ai-s2-circle {
    position: absolute;
    left: 0;
    top: 15%;
    transform: translate(5.5rem, -3.0rem);
    width: clamp(120px, 16vw, 200px);
    height: auto;
    z-index: 3;
    pointer-events: none;
  }

  .history-title {
    z-index: 3;
    display: flex;
    justify-content: center;
    padding-bottom: 175px;
  }

}

@media (min-width:200px) and (max-width: 390px) {
  .footer-links {
    justify-content: center;
  }

  .service-image img {
    margin-bottom: 20px;
  }

  .service-btn {
    margin-bottom: 25px;
  }

  .ai-s2-circle {
    position: absolute;
    left: 0;
    top: 15%;
    transform: translate(20%, -1.6rem);
    width: clamp(120px, 16vw, 200px);
    height: auto;
    z-index: 3;
    pointer-events: none;
  }

  .redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 0px;
    text-align: center;
  }

  .divider {
    width: 100%;
    border: 1px;
    border-top: 1px solid rgba(238, 230, 230, 0.5);
    padding-top: 10px;
  }

  .bp {
    color: rgba(231, 227, 227, 0.5);
    font-size: 12px;
  }

  .icons {
    display: flex;
    gap: 20px;
    text-align: center;
    justify-content: center;
    margin-bottom: -5px;
  }

  .icons a {
    font-size: 20px;
  }

  .redes a {
    color: rgba(192, 187, 187);
  }

  .emails a {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: -20px;
    pointer-events: none;
  }
}


@media (min-width:361px) and (max-width: 711px) {
  .footer-links {
    justify-content: center;
  }

  .bp {
    color: rgba(231, 227, 227, 0.5);
    font-size: 12px;
    padding-top: 15px;
  }

  .service-image img {
    margin-bottom: 20px;
  }

  .service-btn {
    margin-bottom: 20px;
  }

  .why-choose-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 400%;
    height: 150%;
  }

  #ai-catalog-people .ai-card:nth-child(5) .ai-card__p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    font-size: clamp(13px, 1.2vw, 15px);
    line-height: 1.55;
    margin-top: -5px;
    margin-bottom: 15px;
  }

  .redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    text-align: center;
  }

  .divider {
    width: 100%;
    border: 10%;
    border-top: 1px solid rgba(235, 213, 213, 0.5);
    margin: 5px 0;
  }

  .bp {
    color: rgba(231, 227, 227, 0.5);
    font-size: 12px;
  }

  .icons {
    display: flex;
    gap: 20px;
    text-align: center;
    justify-content: center;
  }

  .icons a {
    font-size: 20px;
  }

  .redes a {
    color: rgba(192, 187, 187);
  }

  .email a {
    padding: 15px 0 10x 0;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
  }
}

@media (min-width:712px) and (max-width: 767px) {

  .history-title h1 {
    display: flex;
    position: relative;
    text-align: center;
    padding-top: 5%;
    font-size: 30px;
  }

  /*************/

  .bp {
    color: rgba(231, 227, 227, 0.5);
    font-size: 12px;
    padding-top: 15px;
  }

  .divider {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(235, 213, 213, 0.5);
    margin-top: -18px;
  }

  .service-btn {
    margin-bottom: 20px;
  }

  .why-choose-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 250%;
    height: 150%;
  }

  #ai-catalog-people .ai-card:nth-child(5) .ai-card__p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    font-size: clamp(13px, 1.2vw, 15px);
    line-height: 1.55;
    margin-top: -5px;
    margin-bottom: 15px;
  }

  .redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    text-align: center;
  }

  .bp {
    color: rgba(231, 227, 227, 0.5);
    font-size: 12px;
  }

  .icons {
    display: flex;
    gap: 20px;
    text-align: center;
    justify-content: center;
  }

  .icons a {
    font-size: 20px;
  }

  .redes a {
    color: rgb(192, 187, 187);
  }

  .emails a {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: -20px;
    pointer-events: none;
  }
}


@media (max-width:711px) {

  .service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .service-icons {
    text-align: justify;
    margin-bottom: 40px;
  }

  .service-icons img {
    max-width: 100%;
    height: auto;
    width: 80px;
    height: 80px;
    background: #a8d46f;
    border-radius: 50%;
    padding: 20px;
  }

  .service-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
  }

  .service-item {
    position: relative;
    text-align: justify;
  }

  .service-item h3 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 12px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    line-height: 1.2;
  }

  .service-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: #e0e0e0;
    /*text-align: center;*/
  }

  #services .service-item h3::before {
    content: "";
    position: relative;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    transform: none;
    background-repeat: no-repeat;
    background-size: 100%;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
  }

  .divider {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(235, 213, 213, 0.5);
    margin: 5px 0;
  }

  .bp {
    color: rgba(231, 227, 227, 0.5);
    font-size: 12px;
    margin-top: 10px;
  }

  .icons {
    display: flex;
    gap: 20px;
  }

  .icons a {
    font-size: 20px;
  }

  .redes a {
    color: rgba(192, 187, 187);
  }

  .emails a {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: -10px;
    pointer-events: none;
  }
}

@media (min-width:769px) and (max-width: 1024px) {
  .divider {
    display: none;
  }

  .ico {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .bp {
    color: rgba(231, 227, 227, 0.5);
    font-size: 12px;
    margin-top: 10px;
  }

  .icons {
    display: flex;
    gap: 10px;
  }

  .icons a {
    font-size: 20px;
  }

  .redes a {
    color: rgba(192, 187, 187);
  }

  .emails a {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 20px;
    pointer-events: none;
  }

  .history-title h1 {
    display: flex;
    position: relative;
    text-align: center;
    padding-top: 3%;
    font-size: 20px;
  }

}


/*TERMINOS Y CONDICIONES*/
.sector-terminos {
  width: 100%;
  background: radial-gradient(circle at 50% 50%, #0d4783, #000000);
  padding: 100px 0;
  text-align: center;

}

.parrafo {
  padding: 0 10% 40px 10%;
  text-align: left;
}

.parrafo .subtitulo {
  font-size: 25px;
  font-weight: bold;
  padding-bottom: 10px;
}

.parrafo .contenido {
  text-align: justify;
  line-height: 2.0;
}

/* 1. Viñetas con ::before y círculos de color */
.bullets-circles {
  list-style: none;
  padding-left: 0;
  padding-top: 15px;
}

.bullets-circles li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
}

.bullets-circles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  background: linear-gradient(135deg, #ffffff 0%, #e7e6e9a1 100%);
  border-radius: 50%;
}

#fecha {
  color: rgb(255, 255, 255);
  font-size: 16px;
}

.fecha {
  padding: 10px;
  font-size: 15px;
}

.terminos h3 {
  font-size: 15px;
}

/*///////////////////////////////////////////////////////////*/
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #092f59;
  background-size: 50px 50px;
  z-index: 1;
}

.light-beam {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.beam {
  position: absolute;
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(241, 196, 99, 0.3), transparent);
  animation: beamFall 8s infinite linear;
}

.beam:nth-child(1) {
  left: 15%;
  animation-delay: 0s;
}

.beam:nth-child(2) {
  left: 45%;
  animation-delay: 2s;
}

.beam:nth-child(3) {
  left: 75%;
  animation-delay: 4s;
}

@keyframes beamFall {
  0% {
    top: -100px;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}


.titulo {
  text-align: center;
  margin-bottom: 50px;
  padding: 6px 10px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  animation: fadeInDown 1s ease;
}


@keyframes lineSlide {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.titulo h1 {
  color: #f8fafc;
  margin-bottom: 20px;
}

.subtitulo {
  color: #94a3b8;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-top: 15px;
}

.date-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 30px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  color: #a5b4fc;
  font-size: 0.7rem;
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: 0.5px;
}


.date-badge #fecha {
  display: inline-block;
  border-radius: 50px;
  color: #a5b4fc;
  font-size: 0.7rem;
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: 0.5px;
}

.content-grid {
  display: grid;
  gap: 30px;
}

.policy-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  padding: 20px 70px 50px 70px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.8s ease;
  animation-fill-mode: both;
  position: relative;
  overflow: hidden;
}

.policy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, #6366f1, #8b5cf6);
  transition: height 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.policy-card:nth-child(1) {
  animation-delay: 0.1s;
}

.policy-card:nth-child(2) {
  animation-delay: 0.15s;
}

.policy-card:nth-child(3) {
  animation-delay: 0.2s;
}

.policy-card:nth-child(4) {
  animation-delay: 0.25s;
}

.policy-card:nth-child(5) {
  animation-delay: 0.3s;
}

.policy-card:nth-child(6) {
  animation-delay: 0.35s;
}

.policy-card:nth-child(7) {
  animation-delay: 0.4s;
}

.policy-card:nth-child(8) {
  animation-delay: 0.45s;
}

.policy-card:nth-child(9) {
  animation-delay: 0.5s;
}

.policy-card:nth-child(10) {
  animation-delay: 0.55s;
}

.policy-card:nth-child(11) {
  animation-delay: 0.6s;
}

.policy-card:nth-child(12) {
  animation-delay: 0.65s;
}

.policy-card:hover {
  transform: translateX(10px);
  border-color: rgba(52, 74, 217, 0.3);
  background: rgba(30, 41, 59, 0.7);
}

.card-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: #4e6ea3;
  ;
  border: 1px solid #4e6ea3;
  ;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0rem;
  color: #a5b4fc;
  margin-bottom: 0px;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.policy-card:hover .card-number {
  background: rgba(99, 170, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  transform: scale(1.1);
}

.card {
  display: flex;
  /* centra verticalmente */
  justify-content: left;
  /* centra horizontalmente */
  gap: 10px;
  padding: 20px 0px 20px 0px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

.card-subtitulo {
  padding: 5px;
}

.card-content {
  color: #ffffff;
  line-height: 1.9;
  font-size: 1rem;
  text-align: justify;
}

.card-content p {
  margin-bottom: 15px;
}

.card-content ul {
  margin-top: 20px;
  padding-left: 0;
  list-style: none;
}

.card-content li {
  padding: 5px 0 5px 35px;
  position: relative;
  border-left: 2px solid transparent;
  margin-left: 10px;
  transition: all 0.3s ease;
}

.card-content li:hover {
  border-left-color: #6d8fc6;
  padding-left: 40px;
}

.card-content li::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(152, 157, 164, 0.263);
}


.contact-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.email-link {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.1);
  padding: 8px 8px;
  border-radius: 8px;
  margin-top: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #c7d2fe;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.email-link:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(152, 152, 152, 0.2);
}

@media (max-width: 768px) {

  .header h1 {
    font-size: 2rem;
  }

  .policy-card {
    padding: 30px 25px;
    margin: 0px 20px 0px 20px;
  }

  .card {
    font-size: 18px;
    text-align: left;
  }

  .card-subtitulo {
    padding: 5px;
  }

  .card-content {
    font-size: 1.0em;
    font-weight: none;
  }
}


/* Botones de idiomas  */
.lang-buttons {
  background: rgb(250, 250, 250);
  padding: 5px;
  border-radius: 25px;
  font-size: 10px;
  min-width: 40px;
  font-family: Arial, sans-serif;
}

.lang-buttons:hover {
  background: #0a6ec0;
  border: none;
  color: white;
}

.floating-btn-container {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* Opciones del menú */
.menu-option {
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 24px;
  text-decoration: none;
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

/* Mostrar opciones cuando el menú está activo */
.floating-btn-container.active .menu-option {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Botón principal */
.floating-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fafafa;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: rgb(19, 108, 224);
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.floating-btn:hover {
  color: #dfdfdf;
  background: #1a9ae4;
}

.floating-btn-container.active .menu-option {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Overlay para cerrar el menú */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1040;
  display: none;
}


/* Icono rotación cuando está activo */
.floating-btn-container.active .floating-btn {
  transform: rotate(90deg);
}

.floating-btn-container.active .floating-btn:hover {
  transform: rotate(90deg) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {

  .essence-image {
    padding-top: 50%;
  }


  .floating-btn-container {
    right: 10px;
  }

  .floating-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .menu-option {
    width: 25px;
    height: 25px;
    font-size: 20px;
  }

  .menu-option::before {
    font-size: 12px;
    padding: 6px 10px;
    right: 60px;
  }
}