/* =========================================================
   1) RESET BÁSICO
   ---------------------------------------------------------
   Quitamos márgenes y rellenos por defecto para todos los
   elementos, y establecemos box-sizing: border-box.
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================================
   2) TIPOGRAFÍA Y CUERPO
   ---------------------------------------------------------
   - Fuente principal: Montserrat (importada en tu HTML).
   - Color de texto base y fondo.
========================================================= */
body {
  font-family: 'Montserrat', sans-serif;
  color: #2C3333;
  background-color: #FFFFFF;
}

/* =========================================================
   3) NAVEGACIÓN SUPERIOR (HEADER)
   ---------------------------------------------------------
   Ajustes del menú principal, logotipo, hamburguesa.
========================================================= */
.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 1rem 2rem;
  background-color: #FFFFFF;
  border-bottom: 1px solid #FFFFFF; /* Borde invisible */
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-image {
  max-height: 40px; /* Ajusta según tu logotipo */
}

/* Menú de escritorio */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-top: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #2C3333;
  font-weight: 600;
  transition: color 0.2s ease;
  align-items: center;
  justify-content: center;
}

.nav-links a:hover {
  color: #5A5F63;
}

/* Botón Hamburguesa (oculto por defecto, se muestra en mobile) */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  margin-left: 1rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #2C3333;
  display: block;
}

/* Al hacer clic, agregamos .menu-open al <body> para mostrar nav-links en móvil */
body.menu-open .nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  
  position: fixed;
  top: 100px; /* Ajustar según la altura de la navbar */
  left: 0;
  right: 0;
  z-index: 9999;
  
  background-color: #FFFFFF;
  padding: 1rem 1.5rem;
  
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

/* =========================================================
   4) BOTONES GLOBALES (.btn, .btn-login)
   ---------------------------------------------------------
   Ajustes comunes para botones, y un estilo especial para
   el botón de Login.
========================================================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s ease;
  border: 1px solid transparent;
}

.btn-login {
  background-color: #FC3A46 !important;
  color: #FFFFFF !important;
  border-radius: 25px;
}

/* =========================================================
   4.1) NUEVO BOTÓN INSCRÍBETE (EFECTOS ANIMADOS)
   ---------------------------------------------------------
   - Basado en btn-login, pero con un hover animado y color distinto.
   - Más grande (padding y border-radius incrementados).
========================================================= */
.btn-inscribete {
  position: relative;
  border: 2px solid #FC3A46; /* Borde principal */
  background-color: transparent;
  color: #FC3A46;
  border-radius: 35px;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  padding: 1.5rem 10rem; /* Ajustado para botón grande */
}

/* Texto interno del botón "Inscríbete" */
.inscribete-text {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 1rem;
}

/* Efecto hover: fondo animado expandiéndose desde la izquierda */
.btn-inscribete::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 0;
  height: 100%;
  background-color: #FC3A46;
  z-index: 0;
  transition: all 0.4s ease-in-out;
}

.btn-inscribete:hover {
  color: #fff;
}

.btn-inscribete:hover::before {
  width: 120%;
}

/* Al presionar (active), disminuye un poco su escala */
.btn-inscribete:active {
  transform: scale(0.96);
}

/* =========================================================
   5) SECCIÓN DE PRIVACIDAD
   ---------------------------------------------------------
   Ajustes de ancho, texto justificado, etc.
========================================================= */
.privacy-section {
  max-width: 960px;
  margin: 2rem auto;
  text-align: justify;
  line-height: 1.6;
  padding: 0 1rem;
}

/* Ajustamos listas dentro de la sección de privacidad */
.privacy-section ul {
  list-style: disc;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.privacy-section li {
  margin-bottom: 0.5rem;
}

/* Sección ABOUT - mismos estilos que .privacy-section */
.about-section {
  max-width: 960px;
  margin: 2rem auto;
  text-align: justify;
  line-height: 1.6;
  padding: 0 1rem;
}

.about-section ul {
  list-style: disc;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.about-section li {
  margin-bottom: 0.5rem;
}

/* =========================================================
   6) FOOTER
   ---------------------------------------------------------
   Ajuste de colores, columnas, íconos de redes sociales, etc.
========================================================= */
.footer {
  background-color: #000000;
  color: #fff;
  padding: 2rem 2rem 0;
}

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

.footer-col {
  flex: 1 1 250px;
  min-width: 250px;
}

/* Columna Izquierda */
.footer-left .footer-logo-image {
  max-height: 40px;
  margin-bottom: 1rem;
}

.footer-left .footer-text {
  margin-bottom: 1rem;
  line-height: 1.4;
  text-align: justify;
}

/* Bloque de íconos sociales */
.footer-socials {
  display: flex;
  height: 70px;
  width: 270px;
}

/* Ajuste global de íconos dentro de .footer-socials */
.footer-socials svg {
  position: absolute;
  display: flex;
  width: 60%;
  height: 100%;
  font-size: 24px;
  font-weight: 700;
  opacity: 1;
  transition: opacity 0.25s;
  z-index: 2;
  cursor: pointer;
}

/* Links individuales de redes sociales */
.footer-socials .social-link1,
.footer-socials .social-link2,
.footer-socials .social-link3,
.footer-socials .social-link4,
.footer-socials .social-link5 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25%;
  color: whitesmoke;
  font-size: 24px;
  text-decoration: none;
  transition: 0.25s;
  border-radius: 50px;
}

/* Animación bounce en íconos sociales */
@keyframes bounce_613 {
  40%  { transform: scale(1.1); }
  60%  { transform: scale(0.9); }
  80%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.footer-socials .social-link1:hover {
  background: linear-gradient(
    45deg, 
    #f09433 0%, 
    #e6683c 25%, 
    #dc2743 50%, 
    #cc2366 75%, 
    #bc1888 100%
  );
  animation: bounce_613 0.4s linear;
}
.footer-socials .social-link4:hover {
  background-color: #12a50b;
  animation: bounce_613 0.4s linear;
}
.footer-socials .social-link5:hover {
  background-color: #4267B2;
  animation: bounce_613 0.4s linear;
}

/* Columna Central (mapa) */
.map-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.map-link {
  display: block;
  text-decoration: none;
}
.map-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Columna Derecha (contacto) */
.footer-right h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  margin-top: 2rem;
}
.contact-info {
  list-style: none;
  padding: 0;
}
.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}
.contact-icon {
  width: 20px;
  height: 20px;
  fill: #FFFFFF;
}

/* Zona de copy final */
.footer-bottom {
  text-align: center;
  background-color: #000000;
  padding: 1rem 0;
}
.footer-bottom p {
  color: #fff;
}

/* =========================================================
   7) BOTÓN FLOTANTE DE WHATSAPP
   ---------------------------------------------------------
   Ubicado en la esquina inferior derecha, con animación de
   expansión al hover.
========================================================= */
.fixed-wp {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
}
.contact-icon path {
  fill: #FFFFFF;
}
.Btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition-duration: 0.3s;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
  background-color: #00d757;
}
.sign {
  width: 100%;
  transition-duration: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sign svg {
  width: 25px;
}
.sign svg path {
  fill: white;
}
.text {
  position: absolute;
  right: 0;
  width: 0;
  opacity: 0;
  color: white;
  font-size: 1.2em;
  font-weight: 600;
  transition-duration: 0.3s;
}

.Btn:hover {
  width: 150px;
  border-radius: 40px;
  transition-duration: 0.3s;
}
.Btn:hover .sign {
  width: 30%;
  transition-duration: 0.3s;
  padding-left: 10px;
}
.Btn:hover .text {
  opacity: 1;
  width: 70%;
  transition-duration: 0.3s;
  padding-right: 10px;
}
.Btn:active {
  transform: translate(2px, 2px);
}

/* =========================================================
   0) CLASE PARA OCULTAR (HIDDEN)
   ---------------------------------------------------------
   Se usa para ocultar elementos como el modal.
========================================================= */
.hidden {
  display: none !important;
}

/* =========================================================
   1) CONTENEDOR PARA CENTRAR EL BOTÓN INSCRÍBETE
   ---------------------------------------------------------
   Centra el botón "Inscríbete" en la página.
========================================================= */
.button-center-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 2rem auto;
}

/* =========================================================
   2) MODAL POPUP
   ---------------------------------------------------------
   - Ventana emergente para mostrar términos y condiciones,
     con backdrop-filter para desenfocar el fondo.
========================================================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Encima de todo */
}
.modal-container {
  max-height: 400px;
  max-width: 500px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.25);
}
@media (max-width: 600px) {
  .modal-container {
    width: 90%;
  }
}
.modal-container-header {
  padding: 16px 32px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-container-title {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  font-weight: 700;
  font-size: 1.125rem;
}
.modal-container-title svg {
  width: 32px;
  height: 32px;
  color: #FC3A46; /* Ícono en color primario */
}
.modal-container-body {
  padding: 24px 32px 51px;
  overflow-y: auto;
  text-align: justify;
}
/* Rich Text Format (rtf) para el contenido */
.rtf h1, .rtf h2, .rtf h3, .rtf h4, .rtf h5, .rtf h6 {
  font-weight: 700;
}
.rtf h1 {
  font-size: 1.5rem;
  line-height: 1.125;
}
.rtf h2 {
  font-size: 1.25rem;
  line-height: 1.25;
}
.rtf h3 {
  font-size: 1rem;
  line-height: 1.5;
}
.rtf > * + * {
  margin-top: 1em;
}
.rtf > * + :is(h1, h2, h3) {
  margin-top: 2em;
}
.rtf > :is(h1, h2, h3) + * {
  margin-top: 0.75em;
}
.rtf ul,
.rtf ol {
  margin-left: 20px;
  list-style-position: inside;
}
.rtf ol {
  list-style: decimal;
}
.rtf ul {
  list-style: disc;
}
.modal-container-footer {
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid #ddd;
  gap: 12px;
  position: relative;
}
.modal-container-footer:after {
  content: "";
  display: block;
  position: absolute;
  top: -51px;
  left: 24px;
  right: 24px;
  height: 50px;
  flex-shrink: 0;
  background-image: linear-gradient(to top, rgba(255, 255, 255, 0.75), transparent);
  pointer-events: none;
}
/* Botones dentro del modal */
.button {
  padding: 12px 20px;
  border-radius: 25px;
  background-color: transparent;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}
.button.is-ghost:hover,
.button.is-ghost:focus {
  background-color: #dfdad7;
}
.button.is-primary {
  background-color: #FC3A46;
  color: #fff;
}
.button.is-primary:hover,
.button.is-primary:focus {
  background-color: #FC3A46; 
}
.icon-button {
  padding: 0;
  border: 0;
  background-color: transparent;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.15s ease;
}
.icon-button svg {
  width: 24px;
  height: 24px;
}
.icon-button:hover,
.icon-button:focus {
  background-color: #dfdad7;
}

/* =========================================================
   9) NUEVAS SECCIONES CON COLORES DIFERENCIADOS
   ---------------------------------------------------------
   Ajustes para el video, los bloques de la página, etc.
========================================================= */
/* Sección 1: Video de ancho completo */
.seccion-grande-gris {
  width: 85%;
  margin: 1rem auto; /* Mantiene menos espacio con la siguiente sección */
  text-align: center;
  overflow: hidden;
}
.seccion-grande-gris .video-retos {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}

/* Sección 2: tres bloques (texto, imagen, imagen) */
/* gap aumentado para mayor espacio vertical/horizontal */
.tres-bloques {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin: 1rem auto;
  max-width: 1200px;
  padding: 1rem;
  align-items: center;
}

.bloque-azul {
  background-color: #fff;
  color: #2C3333;
  padding: 2rem;
  text-align: center;
}
.bloque-azul h2 {
  font-size: 1.5rem;
  font-weight: bolder;
  text-transform: uppercase;
  margin: 0.5rem 0;
  text-align: center;
}
.bloque-azul p {
  font-size: 1rem;
  max-width: 300px;
  margin: 1rem auto 0;
  line-height: 1.5;
  text-align: justify;
}

.bloque-verde-agua {
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-limites {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  padding: 32px;
  overflow: hidden;
  border-radius: 10px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  background-color: #fff;
}
.card-limites .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  color: #2C3333;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  font-family: 'Montserrat', sans-serif;
  text-align: justify;
}
.card-limites .heading {
  font-weight: 700;
  font-size: 32px;
  text-align: center;
}
.card-limites .para {
  line-height: 1.5;
  font-size: 1rem;
  text-align: justify;
}
.card-limites:hover {
  box-shadow: none;
}

.bloque-rosa {
  padding: 2rem;
  text-align: center;
  /* Solo un comentario, si deseas
     más espacio con la tarjeta, podrías
     usar margin-top adicional aquí,
     pero se aplica a todas las pantallas */
}
.bloque-retos {
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
}
.bloque-retos h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #2C3333;
}
.bloque-retos ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  max-width: 220px;
}
.bloque-retos li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}
.bloque-retos li::before {
  content: "✓";
  color: #FC3A46;
  position: absolute;
  left: 0;
}

/* Secciones 3, 4 y 5: dos bloques cada una */
.dos-bloques {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin: 1rem auto;
  max-width: 1200px;
  padding: 1rem;
}
.bloque-gris {
  background-color: #999;
  padding: 2rem;
  text-align: center;
  color: #000;
}

/* Contenedor principal de 3 columnas (tarjetas) */
.pricing-cards-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  max-width: 1200px;
  margin: 2rem auto;
  justify-items: center;
}
.pack-cards-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  max-width: 1200px;
  margin: 2rem auto;
  justify-items: center;
}
.pack-container {
  width: 350px;
  max-width: none;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 25px;
  background-color: #ffffff;
  border: 3px solid #FC3A46;
  padding: 1.6rem;
  color: #2C3333;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),
              0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.header {
  position: relative;
  margin: 0 0 2rem 0;
  overflow: hidden;
  border-bottom: 2px solid #2C3333;
  background: transparent;
  padding-bottom: 1rem;
  text-align: center;
}
.title {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-transform: uppercase;
  color: #2C3333;
}
.price-container {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 4.5rem;
  line-height: 1;
}
.price-container span:first-child {
  margin-top: 10px;
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.price-container span:last-child {
  align-self: flex-end;
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.lists {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.list {
  display: flex;
  align-items: center;
  gap: 10px;
}
.list span {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background-color: rgba(255, 255, 255, 0.185);
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
}
.list span svg {
  height: 12px;
  width: 12px;
  color: #000;
}
.list p {
  display: block;
  font-family: sans-serif;
  margin: 0;
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES 
========================================================= */

/* =========================================================
   Menores a 480px (smartphones pequeños)
========================================================= */
@media (max-width: 480px) {
  .pack-container {
    transform: scale(0.9);
    transform-origin: center top;
    margin: 0 auto;
  }



  /* Botones más compactos */
  .btn {
    padding: 0.5rem 1rem;
  }

  /* Ajuste de títulos */
  .bloque-azul h2 {
    font-size: 1.2rem;
  }

  /* Tarjetas a 1 columna */
  .pack-cards-container {
    grid-template-columns: 1fr !important;

  }

  /* 
    Disminuir el espaciado entre las tarjetas de precios (botones)
    => gap más pequeño.
  */
  .pack-cards-container {
    gap: 0.5rem !important; /* menos espacio entre tarjetas */
  }

  /* 
    Aumentar espaciado entre la tarjeta y
    la 3ra sección ("Todos los retos incluyen").
    Podríamos darle un margin-top al .bloque-rosa 
    (que es la 3ra sección). 
  */
  .bloque-rosa {
    margin-top: 2rem !important; /* más espacio con la tarjeta anterior */
  }

  /* Botón inscríbete más reducido */
  .btn-inscribete {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }

  /* Ajustamos el texto del botón flotante de WA */
  .Btn .text {
    font-size: 0.9em;
  }
}

/* =========================================================
   Menores a 576px (celulares grandes)
========================================================= */
@media (max-width: 576px) {
  /* Footer más compacto */
  .footer-container {
    gap: 1rem;
  }

  /* Botón Inscríbete se ajusta todavía más */
  .btn-inscribete {
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
  }

  /* Secciones con más altura entre elementos */
  .tres-bloques {
    gap: 1.5rem;
  }

  .pack-cards-container {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Menores a 768px (tablets)
========================================================= */
@media (max-width: 768px) {
  /* Navbar se permite envolver */
  .top-navbar {
    flex-wrap: wrap;
  }

  /* Ajustar .login-li a full width y centrado */
  .login-li {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  /* Sección tres-bloques a 1 columna */
  .tres-bloques {
    grid-template-columns: 1fr; /* 1 columna en tablets */
  }

  /* Tarjetas en 1 columna (opcional) */
  .pack-cards-container {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Menores a 992px (laptops pequeñas, tablets grandes)
========================================================= */
@media (max-width: 992px) {
  .top-navbar {
    padding: 1rem;
  }
  .footer {
    padding: 1.5rem 1.5rem 0;
  }

  /* Mostrar hamburguesa y ocultar menú de escritorio */
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
  }

  /* Ajustamos el botón Inscríbete algo más pequeño */
  .btn-inscribete {
    padding: 1.2rem 4rem;
  }

  /* Tarjetas en 2 columnas en pantallas medianas */
  .pack-cards-container {
    grid-template-columns: 1fr 1fr;
  }
}
