:root{
  --check-bg: #162a71;    /* color del círculo azul */
  --text-color: #162a71;  /* color del texto */
  --cBlue: #162a71; /* azul corporativo */
  --cGold: #fdb51a; /* dorado de acento */
  --cGray: #f3f2f4;
  --gap: 14px;
  --font-family: "Humanst";
}

body {
      font-family: var(--font-family);
      font-family: var(--font-family);
      background: #fff;
      color: var(--text-color);
}


@font-face {
  font-family: 'Humanst';
  src: url('../fonts/Humanst521\ BT\ Bold.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Humanst';
  src: url('../fonts/Humanst521\ BT\ Bold\ Italic.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Humanst';
  src: url('../fonts/Humanst521\ BT\ Italic.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Humanst';
  src: url('../fonts/Humanst521\ BT\ Roman.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Humanst';
  src: url('../fonts/Humanst521\ Lt\ BT\ Light.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Humanst';
  src: url('../fonts/Humnst777\ Blk\ BT\ Black\ Italic.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Humanst';
  src: url('../fonts/Humnst777\ BlkCn\ BT\ Black.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Humanst';
  src: url('../fonts/Humnst777\ BT\ Roman.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Humanst';
  src: url('../fonts/Humnst777\ Cn\ BT.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Humanst';
  src: url('../fonts/Humnst777\ Cn\ BT\ Bold.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Humanst';
  src: url('../fonts/Humnst777\ Lt\ BT\ Light.ttf') format('truetype');
  font-weight: 400;
}


@layer base {
  body {
    font-family: "Segoe UI Light", "Segoe UI", Arial, sans-serif;
    font-size: 12pt; /* equivale a 16px aprox */
  }
}

label {
  color: #09218b !important; /* tu color cBlue */
}


.referral-section {
  font-family: "Segoe UI Light", "Segoe UI", Arial, sans-serif;
  font-size: 16pt;
}

.item-hover {
  position: relative;
  cursor: pointer;
}

.item-hover .extra-text {
  display: block;               /* mantiene el flujo */
  max-height: 0;                /* colapsado por defecto */
  overflow: hidden;             /* oculta el contenido */
  opacity: 0;                   /* invisible */
  transform: translateY(5px);   /* ligeramente hacia abajo */
  transition: all 0.4s ease;    /* animación suave */
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
  margin-top: 0.5rem;
}

.item-hover:hover .extra-text {
  max-height: 200px;            /* suficiente para mostrar el texto */
  opacity: 1;                   /* visible */
  transform: translateY(0);     /* vuelve a su posición */
}


/* Animaciones */
@keyframes pulseWhatsApp {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 15px 5px rgba(37, 211, 102, 0.4);
  }
}

.whatsapp-pulse {
  animation: pulseWhatsApp 2s infinite;
}



@keyframes floatAnimation {
  0% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.02);
  }

  100% {
    transform: translateY(0px) scale(1);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.animate-float {
  animation: floatAnimation 4s ease-in-out infinite;
}

.scale-in {
  animation: scaleIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

[data-animate="on-scroll"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

[data-animate="on-scroll"].in-view {
  opacity: 1;
  transform: translateY(0);
}

header {
  background-image: url('../images/headerb.jpg');
  background-size: cover;
  background-position: right;
  background-repeat: no-repeat;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-height: 90px;
}

/* Hover botones */
.btn-primary {
  background-color: #162a71;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #deaa00 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Efectos imagen */
.image-hover {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.image-hover:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

h4 {
  color: #162a71
}

h3 {
  color: #162a71
}

h2 {
  color: #162a71
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366; /* verde oficial */
  color: white;
  border-radius: 50%;
  font-size: 32px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  z-index: 99999; /* por encima de todo */
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
}



/* Hero */
.hero-section {
  background-image: url('../images/centroi.jpg');
  background-size: cover;
  background-position: center;
  min-height: 450px;
  position: relative;
  transition: background-image 0.5s ease-in-out;
}

.hero-text-adjusted {
  padding-top: 2rem;
}

#hero-carousel {
  border-radius: 20px; /* ajusta el valor a tu gusto */
  overflow: hidden;   /* evita que se salgan las imágenes */
  height: 500px; /* ajusta a tu gusto */
}

.carousel-indicator {
  transition: all 0.3s ease;
}

.carousel-indicator.opacity-100 {
  width: 12px;
  height: 12px;
  background-color: #fbbf24; /* amarillo (Tailwind amber-400) */
}


/* Animación de texto */
.text-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* Overlay hero */
.gradient-overlay {
  background: rgba(0, 0, 0, 0.5);
}


/* Nav animaciones */
.menu-link {
  color: white;
  background-color: transparent;
  font-size: 1.25rem;
  /* text-xl */
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.menu-link:hover {
  background-color: #dfab00;
  /* Tailwind's blue-600 */
  transform: scale(1.1);
}

.menu-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #9333EA;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.menu-link:hover::after {
  width: 80%;
  background-color: #ffffff;
}



/* Menú móvil */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 45;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: white;
  padding: 2rem 1.5rem;
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  z-index: 50;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
  visibility: visible;
}

@media (max-width: 840px) {
  .mobile-menu {
    width: 100%;
  }
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-menu a {
  display: block;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.mobile-menu a:hover {
  background-color: #f3f4f6;
  color: #162a71;
}

/* ====== FOOTER ====== */

.footer-wrapper {
  background-image: url('../images/footer.jpg');
  background-color: #162a71;
  background-size: cover;
  background-position: right;  
  /* azul oscuro */
  color: #f3f4f6;
  /* texto claro */
  width: 100%;
}

.footer-container {
  background-position: left;
  /*background-color: #162a71;*/
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: #ffffff;
}

.footer-column {
  flex: 1 1 320px;
  min-width: 220px;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-column p,
.footer-column a {
  display: flex;
  align-items: center;
  gap: 0.25rem; /* 🔹 más juntos (antes 0.6rem) */
  line-height: 1.6;
}

.footer-column i {
  font-size: 1.5rem;
  min-width: 24px;
  color: #ffffff;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column i:hover {
  color: #162a71;         /* 🔹 azul corporativo al pasar el mouse */
  transform: scale(1.15); /* 🔹 pequeño efecto visual elegante */
}

.footer-column p {
  margin-bottom: 0.8rem;  /* 🔹 espaciado entre líneas */
}



.footer-bottom {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #374151;
  font-size: 0.85rem;
  color: #9ca3af;
}

.social-icons a {
  display: inline-block;
  margin-right: 0.8rem;
  color: #162a71;
}

.social-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.3);
}

.logo {
  margin-left: -3rem;
  display: flex;
}

.logo img {
  display: block;
  width: 333px;
  height: 90px;
  object-fit: contain;
}


.btn-registrate {
  transition: all 0.3s ease;
}

.btn-registrate:hover {
  background-color: #dfab00; /* igual que el menú */
  transform: scale(1.1);
}


/************* Valores ******************/
/*
.valor {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}
*/

.valor {
  background: #f3f2f4;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  width: 260px; /* Asegura tamaño uniforme para centrar */
}



.valor:hover {
  transform: translateY(-5px);
}

.valor img {
  background: #ffffff;
  padding: 0.5rem;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.valor h4 {
  font-size: 1.2rem;
  color: #003366;
  margin-bottom: 0.5rem;
}

.valor p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.valores-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

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

.valores-footer {
  margin-top: 2rem;
  font-style: italic;
  font-size: 1rem;
  color: #1f2937;
  text-align: center;
}

/* Valores */
.vvalor {
  background: #f3f2f4;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  flex: 1 1 calc(50% - 1rem); /* Each card takes half the width minus half the gap */
  max-width: calc(50% - 1rem); /* Ensure max width is half minus gap */
  min-width: 260px; /* Minimum width for smaller screens */
}

.vvalor:hover {
  transform: translateY(-5px);
}

.vvalor img {
  width: 100px;
  height: 100px;
  object-fit: contain; /* opcional, asegura buena proporción */
  box-shadow: none;    /* quita la sombra si no la quieres */
  background: none;
  padding: 0;
  border-radius: 0;
}


.vvalor h4 {
  font-size: 1.2rem;
  color: #003366;
  margin-bottom: 0.5rem;
}

.vvalor p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.vvalores-gridx {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centra las columnas */
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
  padding: 0 4px;
  margin-left: auto;
  margin-right: auto;
}

.vvalores-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centra las columnas */
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
  padding: 0 100px;
  margin-left: auto;
  margin-right: auto;
}

.vvalores-grid .vvalor {
  flex: 0 1 40%;  /* 🔹 20% más pequeñas (antes 50%) */
  max-width: 40%;
}
  
.delay-float-1 {
  animation-delay: 0s;
}

.delay-float-2 {
  animation-delay: 0.5s;
}

.delay-float-3 {
  animation-delay: 1s;
}

.delay-float-4 {
  animation-delay: 1.5s;
}

.delay-float-5 {
  animation-delay: 2s;
}



/*****************************************/

.faq-item {
  transition: all 0.3s ease;
}

.faq-question {
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: #f3f4f6;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.show {
  max-height: 500px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .faq-question {
    cursor: pointer;
    padding: 0.5rem 0;
  }

  .faq-question .icon {
    font-size: 1.5rem;
    line-height: 1;
  }

/* Imagen FAQ responsiva */
.faq-image {
  width: clamp(80px, 15vw, 160px); /* min 80px, escala fluida con el viewport, max 160px */
  height: auto; /* mantiene proporción */
  margin-bottom: 1rem;
}

/* Título FAQ responsivo */
.faq-title {
  font-size: clamp(1.5rem, 5vw, 3rem); /* min 24px, escala fluida, max 48px */
  line-height: 1.2;
  font-weight: 700;
  margin-top: 0.5rem;
  color: #1c1c1c;
}


.no-results {
  display: none;
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

/****************************************/
.check-list {
  list-style: none;
  padding-left: 0;
  color: #003366;   /* texto en el mismo azul */
}

.check-list li {
  position: relative;
  padding-left: 2rem;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #003366;   /* check en el mismo azul */
  font-size: 1.2em;
  font-family: Arial, sans-serif;
}
/****************************************/
.titulo-beneficios {
  font-size: clamp(1.2rem, 4vw, 2rem) !important;
  color: #162a71 !important;
  line-height: 1.2;
}

/****************************************/

  #form-carrusel .radio-align .radio-label {
    display: flex;
    align-items: center;      /* centra verticalmente input + texto */
    gap: 0.75rem;
  }
  #form-carrusel .radio-align .radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    vertical-align: middle;
    -webkit-appearance: radio;
    appearance: radio;
    flex: 0 0 20px;           /* evita que el input estire */
  }
  #form-carrusel .radio-align .radio-label span {
    display: inline-block;
    line-height: 20px;        /* misma altura que el radio para alineación perfecta */
  }
  /* Opcional: ajustar icono de la izquierda para que quede centrado respecto a la pregunta */
  #form-carrusel .question-icon {
    margin-top: 6px; /* pequeños ajustes finos */
  }
/****************************************/


form input,
form textarea {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #555;
  border-radius: 8px;
  color: #0f1f38;
  margin-bottom: 1.1rem;
  resize: none;
}

form button {
  padding: 0.75rem;
  background: #162a71;
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

form button:hover {
  background: #fdb51a;
}


form label {
  font-size: 0.95rem;
  color: #162a71;
  display: flex;
}


.opcion-invertir {
  display: flex;
  align-items: center; /* centra la imagen y botón verticalmente */
  gap: 14px;
  width: 340px; /* ancho fijo para uniformidad */
  position: relative;
}

.btn-opcion {
  flex: 1; /* ocupa todo el ancho disponible */
  display: block;
  text-align: center;
  padding: 14px 0;
  background-color: #162a71;
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: all 0.3s ease;
  height: 60px; /* altura base del botón */
  line-height: 32px; /* centra el texto */
}

.btn-opcion:hover {
  background-color: #deaa00;
  transform: translateY(-3px);
}

.icono-opcion {
  height: calc(60px * 1.5); /* 30% más alto que el botón */
  width: auto;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px; /* 🔽 mueve la imagen un poco hacia abajo */
}


/****************************************/

/* Responsive */
@media (max-width: 768px) {

  .header {
    background-image: url('../images/headers.jpg');
    background-position: left;
  }

  .logo {
    margin-left: 0;
    padding: 0;
  }

  .logo img {
    width: 250px;
    /* Opcional: reduce tamaño en móviles */
    height: auto;
  }

  .hero-section {
    min-height: 400px;
  }

  .footer-container {
    padding: 2rem 0.5rem;
  }

  .hero-text-adjusted h2 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    /* Reduce tamaño del título */
    line-height: 1.4;
  }

  .hero-text-adjusted {
    padding: 1rem;
    padding-top: 7rem;
  }

  form {
    padding: 1rem;
  }

  form input,
  form textarea,
  form button {
    width: 100%;
  }

  .vvalor {
    min-width: 100%; /* Full width on small screens */
    max-width: 100%;
  }

  .vvalores-grid {
    flex-direction: column; /* Stack cards vertically */
    align-items: center; /* Center cards */
    gap: 1.5rem; /* Reduced gap for smaller screens */
  }  

  #hero-carousel {
    height: clamp(250px, 60vh, 600px);
  }

  .titulo-beneficios {
    font-size: 6rem !important;
  }

   .botones-invertir {
    flex-direction: column;
    gap: 20px;
  }

}


/* === QUICK FIX: reset radios/checkbox en el Libro de Reclamaciones === */
#libro-carrusel input[type="radio"],
#libro-carrusel input[type="checkbox"] {
  padding: 0 !important;
  margin: 0 0.45rem 0 0 !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  vertical-align: middle !important;
  -webkit-appearance: radio;
  appearance: radio;
  transform: scale(1.827); /* +1.5% respecto a 1.8 */
  margin-right: 0.5rem;
  accent-color: #162a71;
  cursor: pointer;
  vertical-align: middle;  
}

/* Asegura que la etiqueta centre correctamente el control y el texto */
#libro-carrusel label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.2;
  cursor: pointer;
}


#libro-carrusel label input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #162a71; /* color del punto interior */
  border-radius: 50%;
  top: 3px;
  left: 3px;
}

#libro-carrusel label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
}


/* Estilos específicos para Libro de Reclamaciones */
#libro-carrusel .libro-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #f3f2f4;
  border-radius: 9999px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  border: 1px solid rgba(0,0,0,0.06);
}
#libro-carrusel .libro-nav.left { left: -18px; }
#libro-carrusel .libro-nav.right { right: -18px; }

@media (max-width: 768px) {
  #libro-carrusel .libro-nav { display: none; } /* ocultar en móvil (usar botones inferiores) */
}

/* indicadores (activo = amarillo) */
#libroIndicators .libro-indicator { transition: background-color .2s ease; }
#libroIndicators .libro-indicator.active { background: #fbbf24; }



#libroConfirm {
  text-align: center;
  animation: fadeInUp 0.6s ease forwards;
}

#libroConfirm h2 {
  color: #162a71;
}


/* === Animación personalizada para los textos del carrusel === */
@keyframes zoomFadeIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.slide-text-animate {
  animation: zoomFadeIn 0.8s ease forwards;
}


/* === Animación palabra por palabra para los textos del carrusel === */
@keyframes zoomFadeInWord {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.word-animate {
  display: inline-block;
  opacity: 0;
  animation: zoomFadeInWord 0.6s ease forwards;
}

/* ==== EFECTO ZOOM + FADE PALABRA POR PALABRA ==== */
.word-zoom-fade {
  display: inline-block;       /* permite animar escala y opacidad */
  margin-right: 0.25rem;       /* espacio visual entre palabras */
  opacity: 0;
  transform: scale(0.8);
  animation: zoomFadeWord 0.6s ease forwards;
}

@keyframes zoomFadeWord {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  60% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}




/* ==== MODAL CORREO ==== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: scaleIn 0.3s ease forwards;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cBlue);
  margin-bottom: 1rem;
  text-align: center;
}

.correo-form label {
  display: block;
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--cBlue);
}

.correo-form input,
.correo-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: 0.25rem;
  font-size: 1rem;
  font-family: inherit;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-primario {
  background-color: var(--cBlue);
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primario:hover:not(:disabled) {
  background-color: var(--cGold);
  transform: translateY(-2px);
}

.btn-primario:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.btn-secundario {
  background: #ccc;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secundario:hover {
  background: #bbb;
}


/* === CORRECCIÓN COLOR DEL ENLACE DEL FOOTER === */
.footer-column a,
.footer-column a:visited {
  color: #ffffff !important;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--cGold) !important;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-column a i {
  color: #ffffff !important;
}

.footer-column a:hover i {
  color: var(--cGold) !important;
}



/* === CAJA HERO BLANCA TRANSPARENTE === */
.caja-hero {
  background-color: rgba(255, 255, 255, 0.40); /* blanco semitransparente */
  backdrop-filter: blur(6px); /* efecto vidrio elegante */
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  width: 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: floatAnimation 4s ease-in-out infinite;
  transition: all 0.3s ease;
}

.caja-hero:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-4px);
}

.caja-hero h3 {
  color: #0f1f38;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.btn-hero {
  background-color: #162a71;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.6rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-hero:hover {
  background-color: #0e1d4a;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .caja-hero {
    width: 90%;
    padding: 1.2rem;
  }
  .caja-hero h3 {
    font-size: 1.2rem;
  }
  .btn-hero {
    width: 100%;
  }
}

/* ============================================================
   🔧 OPTIMIZACIÓN HERO SECTION (Carrusel con texto dinámico)
   ============================================================ */

/* Estructura base (vista escritorio intacta) */
#hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.gradient-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2));
}

.caja-hero {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.caja-hero h3 {
  font-size: 1.4rem;
  color: #000;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.btn-hero {
  display: inline-block;
  background-color: #1e40af;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-hero:hover {
  background-color: #facc15;
  color: #000;
}

/* ============================================================
   📱 CORRECCIÓN FINAL - UBICAR CAJA HERO ABAJO DEL TEXTO EN MÓVIL
   ============================================================ */
@media (max-width: 768px) {
  /* Contenedor general */
  #hero-carousel {
    height: auto;
    min-height: 480px;
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  /* Texto principal centrado */
  .gradient-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-text-adjusted {
    max-width: 90%;
    padding: 0 1rem;
  }

  .hero-text-adjusted h2 {
    font-size: 1.4rem !important;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  /* === Caja blanca debajo del texto === */
  .caja-hero {
    position: static !important; /* elimina absolute bottom/right */
    margin: 0 auto;
    width: 90%;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 1rem;
    text-align: center;
    padding: 1rem 1.25rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
  }

  .caja-hero h3 {
    color: #000;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .btn-hero {
    display: inline-block;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    background-color: #1e40af;
    color: #fff;
    transition: background 0.3s ease;
  }

  .btn-hero:hover {
    background-color: #facc15;  
    color: #000;
  }

  /* Ajuste de flechas */
  #prevSlide,
  #nextSlide {
    top: auto;
    bottom: 1rem;
    transform: none;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.9rem;
  }

  #prevSlide {
    left: 1rem;
  }

  #nextSlide {
    right: 1rem;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
  .hero-text-adjusted h2 {
    font-size: 1.25rem !important;
  }

  .caja-hero {
    width: 92%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.7);
  }

  .caja-hero h3 {
    font-size: 1rem;
  }

  .btn-hero {
    font-size: 0.85rem;
  }
}

/* ============================================================
   ✨ SUAVIZADO VISUAL DEL CARRUSEL (transiciones)
   ============================================================ */
.carousel-slide {
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  transform: scale(1.02);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Degradado sutil sobre fondo */
.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

/* Texto y caja siempre sobre el degradado */
.gradient-overlay,
.caja-hero {
  position: relative;
  z-index: 2;
}

/* Flechas con transición suave */
#prevSlide,
#nextSlide {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#prevSlide:hover,
#nextSlide:hover {
  transform: scale(1.1);
}

/* En móviles, animación más ligera */
@media (max-width: 768px) {
  .carousel-slide {
    transition: opacity 0.8s ease-in-out;
  }
}


/* ============================================================
   📱 CORRECCIÓN GARANTIZADA - Caja abajo en móvil
   ============================================================ */
@media (max-width: 768px) {

  /* fuerza máxima para anular el position absolute de Tailwind */
  #hero-carousel .caja-hero {
    position: relative !important;
    inset: auto !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;

    margin: 1rem auto 0 auto !important;
    width: 90% !important;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 1rem;
    text-align: center;
    padding: 1rem 1.25rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    display: block !important;
  }

  #hero-carousel .caja-hero h3 {
    color: #000;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  #hero-carousel .btn-hero {
    display: inline-block;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    background-color: #1e40af;
    color: #fff;
    transition: background 0.3s ease;
  }

  #hero-carousel .btn-hero:hover {
    background-color: #facc15;
    color: #000;
  }
}



/* ============================================================
   🌐 SECCIÓN REFERRAL (Conectamos inversionistas y propietarios)
   ============================================================ */



/* ============================================================
   📱 RESPONSIVE (Tablet y Móvil)
   ============================================================ */
@media (max-width: 1024px) {
  .referral-section .grid {
    grid-template-columns: 1fr; /* apila columnas */
    gap: 2rem;
    text-align: center;
  }

  .referral-section .relative {
    max-width: 600px;
    margin: 0 auto;
  }

  .referral-section img {
    max-height: 350px;
  }

  .referral-section h2 {
    font-size: 2rem;
  }

  .referral-section p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .referral-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .referral-section .grid {
    grid-template-columns: 1fr; /* imagen arriba, texto abajo */
    gap: 2rem;
    text-align: center;
  }

  .referral-section .relative {
    max-width: 100%;
  }

  .referral-section img {
    max-height: 300px;
    margin: 0 auto;
  }

  .referral-section h2 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  .referral-section p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .referral-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .referral-section h2 {
    font-size: 1.4rem;
  }

  .referral-section p {
    font-size: 0.95rem;
  }

  .referral-section img {
    max-height: 250px;
  }
}


/* ============================================================
   📱 RESPONSIVIDAD - Sección Beneficios y Requisitos
   ============================================================ */
@media (max-width: 1024px) {
  .vvalores-grid {
    flex-direction: column !important;     /* apila las columnas */
    align-items: center !important;        /* centra horizontalmente */
    justify-content: center !important;
    gap: 1.5rem !important;                /* espacio entre bloques */
    padding: 0 1rem !important;            /* reduce márgenes laterales */
  }

  .vvalor {
    flex: 1 1 100% !important;             /* ocupa todo el ancho */
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 1.5rem !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .vvalor img {
    width: clamp(70px, 20vw, 120px) !important;
    height: auto !important;
    margin-bottom: 1rem !important;
  }

  .vvalor h4.titulo-beneficios {
    font-size: clamp(1.4rem, 5vw, 2rem) !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
  }

  .vvalor ul.check-list {
    padding-left: 1.5rem !important;
    text-align: left !important;
    font-size: clamp(0.95rem, 2.5vw, 1rem) !important;
    line-height: 1.6 !important;
  }

  .vvalor li {
    word-break: break-word !important;
  }

  .vvalor .extra-text {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }

  /* Ajuste del fondo gris y sombras */
  .vvalor.bg-cGray {
    background-color: #f3f2f4 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  }
}

/* Extra pequeño (teléfonos ≤ 480px) */
@media (max-width: 480px) {
  .vvalor {
    padding: 1rem !important;
  }

  .vvalor img {
    width: 80px !important;
  }

  .vvalor h4.titulo-beneficios {
    font-size: 1.2rem !important;
  }

  .vvalor ul.check-list {
    padding-left: 1rem !important;
    font-size: 0.9rem !important;
  }
}


/* ============================================================
   📱 RESPONSIVIDAD - Sección Qué hacemos / Compromiso
   ============================================================ */
@media (max-width: 1024px) {
  .referral-section .grid {
    display: flex !important;
    flex-direction: column !important;   /* apila los dos bloques */
    align-items: center !important;
    text-align: center !important;
    gap: 2rem !important;
  }

  .referral-section .p-8 {
    padding: 1.5rem !important;          /* reduce padding lateral */
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .referral-section img {
    width: clamp(80px, 30vw, 160px) !important;
    height: auto !important;
    margin: 0 auto 1rem auto !important;
  }

  .referral-section h4.titulo-beneficios {
    font-size: clamp(1.2rem, 5vw, 1.8rem) !important;
    text-align: center !important;
    margin-bottom: 0.75rem !important;
  }

  .referral-section h2.text-2xl {
    font-size: clamp(1rem, 4.5vw, 1.25rem) !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
    text-align: justify !important;
    padding: 0 1rem !important;
  }

  /* Ocultar la línea vertical divisoria en móvil */
  .referral-section .border-r-2 {
    display: none !important;
  }
}

/* Pantallas pequeñas (teléfonos ≤ 768px) */
@media (max-width: 768px) {
  .referral-section {
    padding: 2.5rem 1rem !important;
    margin: 0 0.5rem !important;
    border-radius: 1rem !important;
  }

  .referral-section .grid {
    gap: 1.5rem !important;
  }

  .referral-section img {
    width: 70% !important;
    max-width: 220px !important;
  }

  .referral-section h2.text-2xl {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    padding: 0 0.5rem !important;
  }

  .referral-section h4.titulo-beneficios {
    font-size: 1.2rem !important;
  }
}

/* Muy pequeño (≤ 480px) */
@media (max-width: 480px) {
  .referral-section {
    padding: 2rem 0.75rem !important;
  }

  .referral-section img {
    width: 85% !important;
    max-width: 200px !important;
  }

  .referral-section h2.text-2xl {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
  }

  .referral-section h4.titulo-beneficios {
    font-size: 1.1rem !important;
  }
}


/* ============================================================
   📱 BOTÓN FLOTANTE WHATSAPP - RESPONSIVO Y ADAPTABLE
   ============================================================ */

/* 💻 Escritorio */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  font-size: 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

/* ✨ Animación opcional de pulso */
.whatsapp-pulse {
  animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ============================================================
   📱 Ajustes para dispositivos móviles
   ============================================================ */

/* Tablets */
@media (max-width: 1024px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 28px;
    bottom: 18px;
    right: 18px;
  }
}

/* 📲 Móviles medianos */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 26px;
    bottom: calc(16px + var(--safe-bottom, 0px)); /* 🧩 respeta área segura */
    right: 16px;
    position: fixed !important;
    z-index: 999999 !important;
  }
}

/* 📱 Móviles pequeños */
@media (max-width: 480px) {
  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 24px;
    /* 🧩 si hay footer fijo, se ajusta automáticamente */
    bottom: calc(70px + var(--safe-bottom, 0px)) !important;
    right: 14px;
    position: fixed !important;
    z-index: 999999 !important;
  }
}

/* ============================================================
   🧩 Compatibilidad con PWA / Footers fijos
   ============================================================ */
:root {
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Si tu sitio usa un menú inferior fijo o banner (por ejemplo en PWA),
   puedes definir una clase en el body para que el botón suba un poco más */
body.has-footer-fixed .whatsapp-float {
  bottom: calc(90px + var(--safe-bottom, 0px)) !important;
}


/* ============================================================
   🌐 FOOTER CALIFICASH - RESPONSIVO Y ANCHO COMPLETO
   ============================================================ */

.footer-wrapper {
  background-color: #0a0a0a; /* fondo oscuro */
  color: #ffffff;
  width: 100vw;             /* 🔹 ocupa todo el ancho real del viewport */
  margin-left: calc(50% - 50vw); /* 🔹 elimina márgenes del contenedor padre */
  padding: 3rem 2rem;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  width: 100%;
}

.footer-column {
  flex: 1;
  min-width: 260px;
  text-align: left;
}

.footer-column h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff; /* Verde WhatsApp */
}

.footer-column a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #fdb51a;
}

.footer-column p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
}

.footer-column i {
  margin-right: 0.4rem;
  color: #25D366;
}

/* ============================================================
   💻 ESCRITORIO - 3 columnas al 33.33 %
   ============================================================ */
/*@media (min-width: 1024px) {
  .footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
  }

  .footer-column {
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }
}
*/
/* ============================================================
   📱 TABLETS
   ============================================================ */
@media (max-width: 1024px) {
  .footer-wrapper {
    padding: 2.5rem 1rem !important;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .footer-column {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .footer-column a,
  .footer-column p {
    font-size: 0.95rem;
  }

  .footer-column i {
    font-size: 1rem;
  }
}

/* ============================================================
   📲 MÓVILES
   ============================================================ */
@media (max-width: 768px) {
  .footer-wrapper {
    width: 100vw !important;             /* fuerza ancho completo */
    margin-left: calc(50% - 50vw) !important;
    border-radius: 0;
    padding: 2rem 1rem !important;
  }

  .footer-container {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    gap: 1.5rem !important;
  }

  .footer-column {
    width: 100% !important;
    max-width: 100% !important;
  }

  .footer-column h4 {
    font-size: 1.1rem !important;
  }

  .footer-column a,
  .footer-column p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
}

/* ============================================================
   📱 EXTRA PEQUEÑOS (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .footer-wrapper {
    padding: 1.8rem 0.8rem !important;
  }

  .footer-column h4 {
    font-size: 1rem !important;
  }

  .footer-column a,
  .footer-column p {
    font-size: 0.88rem !important;
  }
}

/* ============================================================
   📱 CORRECCIÓN GENERAL RESPONSIVE MOVIL (Viewport / Layout)
   ============================================================ */

@media (max-width: 768px) {

  html, body {
    overflow-x: hidden !important; /* evita desplazamiento lateral */
    width: 100% !important;
  }

  /* Corrige contenedores con padding excesivo */
  .container, .footer-container, .vvalores-grid, .referral-section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }

  /* Ajusta logo y header */
  .logo img {
    width: 200px !important;
    height: auto !important;
  }

  header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Evita cortes en imágenes */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Corrige las cajas "valor" y "vvalor" */
  .valor, .vvalor {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
  }

  /* Ajuste del grid de valores */
  .vvalores-grid {
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding: 0 1rem !important;
  }

  /* Ajuste de los textos */
  h2, h3, h4, p {
    text-align: center !important;
    word-wrap: break-word !important;
  }

  /* Footer adaptado */
  .footer-container {
    flex-direction: column !important;
    text-align: center !important;
  }

  .footer-column {
    flex: 1 1 100% !important;
    min-width: auto !important;
  }

  /* Corrige secciones con ancho fijo */
  .opcion-invertir {
    width: 100% !important;
    flex-direction: column !important;
    align-items: center !important;
  }
}
