@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* --- 1. VARIABLES Y RESET --- */
:root {
  --color-nu-purple: #820ad1;
  --color-nu-purple-dark: #6d08af;
  --color-text-dark: #111111;
  --color-text-gray: #777777;
  --color-bg-light: #f5f5f5;
  --color-white: #ffffff;
  --radius-card: 20px;
  --radius-btn: 50px;
  --font-main: "Inter", sans-serif;
  --color-bg-lilac: #f5e6fa;
  --shadow-soft-purple: 0 8px 24px rgba(130, 10, 209, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
  font-optical-sizing: auto;
}

body {
  background-color: var(--color-white);
  color: var(--color-text-dark);
  padding-bottom: 80px;
  /* Espacio para el menú móvil */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bricolage Grotesque", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- 2. HEADER (Desktop) --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-nu-purple);
  letter-spacing: -0.5px;
}

.nav-desktop {
  display: none;
  /* Oculto en móvil por defecto */
}

.btn-primary {
  background-color: var(--color-nu-purple);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  transition:
    transform 0.2s,
    background 0.2s;
}

.btn-primary:hover {
  background-color: var(--color-nu-purple-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--color-nu-purple);
  color: var(--color-nu-purple);
  background: transparent;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  margin-right: 1rem;
}

/* --- 3. HERO SECTION --- */
.hero {
  background-color: var(--color-nu-purple);
  color: white;
  padding: 8rem 5% 4rem;
  border-bottom-right-radius: 50px;
  /* Estilo Nu */
  border-bottom-left-radius: 50px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-img-placeholder {
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 350px;
  height: 400px;
  margin: 2rem auto 0;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* --- 4. FEATURES (Cards) --- */
.features {
  padding: 4rem 5%;
}

.section-title {
  font-size: 1.8rem;
  color: var(--color-nu-purple);
  margin-bottom: 2rem;
  text-align: center;
}

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

.card {
  background: var(--color-bg-light);
  padding: 2rem;
  border-radius: var(--radius-card);
  transition: 0.3s;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-gray);
  line-height: 1.5;
}

/* --- 5. PRICING --- */
.pricing {
  padding: 4rem 5%;
  text-align: center;
  background: #fdfdfd;
}

.price-card {
  border: 2px solid var(--color-nu-purple);
  padding: 2rem;
  border-radius: var(--radius-card);
  max-width: 400px;
  margin: 0 auto;
}

.price-card .ph {
  font-size: 20px;
  color: var(--color-nu-purple);
  margin-right: 10px;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-nu-purple);
  margin: 1rem 0;
}

.price span {
  font-size: 1rem;
  color: var(--color-text-gray);
  font-weight: 400;
}

/* --- 6. MENU APP MÓVIL (Bottom Nav) --- */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 2000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-text-gray);
  width: 25%;
  cursor: pointer;
}

.nav-item.active {
  color: var(--color-nu-purple);
  font-weight: 600;
}

.nav-icon {
  /* width: 24px;
            height: 24px; */
  /* background: #ddd; */
  border-radius: 50%;
  margin-bottom: 4px;
  transition: background 0.3s;
}

.nav-icon .ph {
  font-size: 23px;
}

.nav-item.active .nav-icon {
  /* background: var(--color-nu-purple); */
}

/* --- MEDIA QUERIES (Responsive) --- */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .mobile-nav {
    display: none;
  }

  /* Ocultar menú móvil en PC */

  .nav-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
  }

  .nav-desktop a {
    font-weight: 500;
    transition: color 0.2s;
  }

  .nav-desktop a:hover {
    color: var(--color-nu-purple);
  }

  .hero {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10rem 10% 6rem;
    border-radius: 0 0 80px 80px;
  }

  .hero-content {
    width: 50%;
  }

  .hero-img-placeholder {
    margin: 0;
    width: 40%;
    max-width: 400px;
    height: 500px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- 7. FOOTER --- */
footer {
  background-color: #f0f0f0;
  /* Un gris muy suave tipo Nu */
  padding: 3rem 5%;
  /* Dejamos espacio extra abajo en móvil para que el menú app no lo tape */
  padding-bottom: 7rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  margin-bottom: 2rem;
  font-size: 1rem;
  color: var(--color-text-dark);
}

.contact-info a {
  font-weight: 600;
  color: var(--color-nu-purple);
  margin: 0 10px;
  display: inline-block;
}

.contact-info a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  color: var(--color-nu-purple);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.icon-box:hover {
  background: var(--color-nu-purple);
  color: white;
  transform: translateY(-3px);
}

.icon-box svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  /* Esto hace que el SVG tome el color del texto */
}

.made-in {
  font-size: 0.85rem;
  color: var(--color-text-gray);
  font-weight: 500;
}

/* Ajuste para Desktop: Reducir el padding bottom ya que no hay menú flotante */
@media (min-width: 768px) {
  footer {
    padding-bottom: 3rem;
  }
}

/* --- 8. FORMULARIO DE REGISTRO --- */
.register-section {
  padding: 4rem 5%;
  background: #fdfdfd;
}

.form-box {
  background: white;
  max-width: 450px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: var(--radius-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s ease;
  outline: none;
  font-family: var(--font-main);
}

.form-input:focus {
  border-color: var(--color-nu-purple);
  background-color: #faf5ff;
  /* Un lila muy suave al enfocar */
}

.form-submit {
  width: 100%;
  background-color: var(--color-nu-purple);
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
  margin-top: 1rem;
}

.form-submit:hover {
  background-color: var(--color-nu-purple-dark);
  transform: translateY(-2px);
}

.form-note {
  font-size: 0.8rem;
  color: #999;
  margin-top: 1rem;
  text-align: center;
}

/* --- 9. SECCIÓN BENEFICIOS (Estilo Acordeón Nu) --- */

.benefits-section {
  background-color: var(--color-bg-lilac);
  /* Fondo lila */
  padding: 5rem 5%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.benefits-container {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  /* Móvil: 1 columna */
  gap: 3rem;
  align-items: center;
}

/* Columna Imagen */
.benefits-img-col {
  width: 100%;
  height: 400px;
  /* Altura inicial para móvil */
}

.benefits-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  /* Esquinas muy redondeadas como en la referencia */
  box-shadow: var(--shadow-soft-purple);
  /* Placeholder mientras pones tu imagen real */
  background: linear-gradient(45deg, #c084fc, var(--color-nu-purple));
}

/* Columna Contenido */
.benefits-content h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--color-text-dark);
  line-height: 1.2;
}

/* Estilo de los items del acordeón */
.acc-item {
  background: var(--color-white);
  margin-bottom: 1rem;
  border-radius: 24px;
  /* Redondeo de las tarjetas blancas */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.acc-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-dark);
  user-select: none;
}

/* Icono de flecha (SVG) */
.acc-icon {
  width: 24px;
  height: 24px;
  fill: var(--color-nu-purple);
  transition: transform 0.4s ease;
}

/* Contenido oculto por defecto */
.acc-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 2rem;
  color: var(--color-text-gray);
  line-height: 1.6;
  transition: all 0.4s ease-in-out;
  opacity: 0;
}

/* --- ESTADOS ACTIVOS (Cuando se hace clic) --- */
.acc-item.active {
  box-shadow: var(--shadow-soft-purple);
  border-color: rgba(130, 10, 209, 0.1);
}

.acc-item.active .acc-body {
  max-height: 300px;
  /* Altura máxima suficiente para el texto */
  padding-bottom: 2rem;
  opacity: 1;
}

.acc-item.active .acc-icon {
  transform: rotate(180deg);
  /* Girar la flecha */
}

/* Responsive Desktop */
@media (min-width: 900px) {
  .benefits-container {
    grid-template-columns: 0.9fr 1.1fr;
    /* 2 columnas: Imagen | Texto */
    gap: 5rem;
  }

  .benefits-img-col {
    height: 600px;
    /* Imagen más alta en desktop */
  }

  .benefits-content h2 {
    font-size: 2.8rem;
  }
}

/* --- 10. SECCIÓN PREGUNTAS FRECUENTES (FAQ) --- */
.faq-section {
  padding: 5rem 5%;
  background-color: #ffffff;
  /* Fondo blanco para limpiar la vista */
  text-align: center;
}

.faq-container {
  max-width: 800px;
  /* Más angosto para facilitar la lectura */
  margin: 0 auto;
  text-align: left;
}

.faq-title {
  font-size: 2.2rem;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 3rem;
}

/* Estilo de la Tarjeta de Pregunta */
.faq-item {
  border-bottom: 1px solid #e0e0e0;
  /* Línea divisoria sutil */
  margin-bottom: 1rem;
}

.faq-question {
  padding: 1.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--color-nu-purple);
}

/* El icono + que gira */
.faq-icon {
  font-size: 1.5rem;
  color: var(--color-nu-purple);
  transition: transform 0.3s ease;
  font-weight: 300;
}

/* Respuesta oculta */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--color-text-gray);
  line-height: 1.6;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding-bottom: 1.5rem;
}

/* --- ESTADO ACTIVO --- */
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  /* El + se convierte en x */
}

.faq-item.active .faq-answer {
  max-height: 200px;
  /* Altura suficiente para el texto */
}

/* --- 11. SECCIÓN ALIADOS (Slider Horizontal) --- */
.partners-section {
  padding: 4rem 0;
  /* Padding vertical, sin horizontal para que el slider toque bordes */
  background-color: #fafafa;
  /* Un gris muy tenue para separar secciones */
  text-align: center;
  overflow: hidden;
  /* Para contener el scroll */
}

.partners-title {
  font-size: 1.5rem;
  color: var(--color-text-gray);
  margin-bottom: 2.5rem;
  padding: 0 5%;
  font-weight: 600;
}

/* Contenedor del Scroll */
.partners-slider {
  display: flex;
  gap: 3rem;
  /* Espacio entre logos */
  overflow-x: auto;
  /* Permite el scroll horizontal */
  scroll-snap-type: x mandatory;
  /* Efecto magnético al deslizar */
  padding: 1rem 5%;
  /* Espacio a los lados para que no se corte el primero/último */

  /* Ocultar barra de scroll (Estética limpia) */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Ocultar barra scroll en Chrome/Safari */
.partners-slider::-webkit-scrollbar {
  display: none;
}

/* Item individual (El Logo) */
.partner-logo {
  flex: 0 0 auto;
  /* No permitir que se encojan */
  width: 140px;
  /* Ancho fijo del logo */
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Estilo Visual */
  opacity: 0.5;
  /* Tenue por defecto */
  filter: grayscale(100%);
  /* Blanco y negro */
  transition: all 0.3s ease;
  cursor: pointer;
  scroll-snap-align: center;
  /* El elemento se centra al soltar el scroll */
}

/* Efecto Hover (Color y Opacidad) */
.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Estilo para los placeholders de texto (si no tienes imágenes aún) */
.logo-placeholder {
  font-size: 1.2rem;
  font-weight: 800;
  color: #333;
  border: 2px solid #ddd;
  border-radius: 12px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

/* Difuminado a los lados (Opcional, da un toque "Premium") */
.fade-edges {
  position: relative;
}

.fade-edges::before,
.fade-edges::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50px;
  /* Ancho del difuminado */
  height: 100%;
  z-index: 2;
  pointer-events: none;
  /* Permitir clicks a través */
}

.fade-edges::before {
  left: 0;
  background: linear-gradient(to right, #fafafa, transparent);
}

.fade-edges::after {
  right: 0;
  background: linear-gradient(to left, #fafafa, transparent);
}

/* --- 12. SECCIÓN CTA FINAL (Tarjeta Flotante) --- */
.cta-section {
  padding: 2rem 5% 6rem;
  /* Padding inferior extra para no pegar con el footer */
  background-color: #fafafa;
  /* Mismo gris suave que venía de la sección anterior */
  display: flex;
  justify-content: center;
}

.cta-card {
  background-color: var(--color-nu-purple);
  color: white;
  width: 100%;
  max-width: 1000px;
  padding: 4rem 2rem;
  border-radius: 40px;
  /* Bordes muy agresivos estilo Nu */
  text-align: center;
  box-shadow: 0 20px 40px rgba(130, 10, 209, 0.25);
  /* Sombra morada brillante */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Efecto de fondo sutil (Círculos decorativos) */
.cta-card::before,
.cta-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  /* Blanco muy transparente */
  z-index: 0;
}

.cta-card::before {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -50px;
}

.cta-card::after {
  width: 400px;
  height: 400px;
  bottom: -150px;
  right: -100px;
}

/* Contenido */
.cta-content {
  position: relative;
  z-index: 1;
  /* Para que quede encima de los círculos */
  max-width: 600px;
}

.cta-card h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.cta-card p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* Botón Blanco (Invertido) */
.btn-white {
  background-color: white;
  color: var(--color-nu-purple);
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  display: inline-block;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .cta-card {
    padding: 3rem 1.5rem;
    border-radius: 30px;
  }

  .cta-card h2 {
    font-size: 2rem;
  }
}
