/* =========================================================
   RESET & BASE
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0B0F16;
  font-family: "Inter", sans-serif;
  color: #fff;
  overflow-x: hidden;
}


/* =========================================================
   NAVBAR — DESKTOP + MOBILE
========================================================= */

/* Contenedor del navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 22, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Logo */
.logo-img {
  width: 130px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* Links desktop */
.navbar nav {
  display: flex;
  gap: 24px;
}

.navbar nav a {
  color: white;
  font-size: 14px;
  opacity: 0.9;
  transition: 0.3s;
}

.navbar nav a:hover {
  opacity: 1;
}

/* Botón navbar */
.btn-nav {
  padding: 8px 16px;
  border: 1px solid #E5FF73;
  border-radius: 25px;
}

/* Hamburguesa (oculta en desktop) */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: white;
  user-select: none;
}

/* =========================================================
   MENU MOBILE
========================================================= */

/* Menú móvil oculto */
.mobile-menu {
  position: fixed;
  top: 80px; 
  right: -100%;
  width: 100%;
  background: rgba(11, 15, 22, 0.95);
  backdrop-filter: blur(12px);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 18px;
  transition: 0.35s ease;
  z-index: 999;
}

/* Cuando está abierto */
.mobile-menu.open {
  right: 0;
}

/* Links del menú móvil */
.mobile-menu a {
  color: white;
  font-size: 18px;
  padding: 10px 0;
}

/* Mostrar hamburguesa y ocultar nav desktop */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar nav {
    display: none;
  }
}

/* Ocultar menú móvil en desktop */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  padding: 140px 60px 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
}

.hero p {
  margin-top: 20px;
  font-size: 18px;
  color: #cfd3db;
}

/* CTA principal */
.btn-primary {
  margin-top: 40px;
  padding: 14px 32px;
  background: linear-gradient(90deg, #1F6CFF, #DA3CFF);
  border-radius: 40px;
  font-weight: 600;
  color: white;
  display: inline-block;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #DA3CFF;
}

/* Demo CTA */
.btn-demo {
  margin-top: 20px;
  padding: 14px 28px;
  border-radius: 40px;
  background: rgba(229, 255, 115, 0.1);
  border: 1px solid rgba(229, 255, 115, 0.5);
  color: #E5FF73;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
  backdrop-filter: blur(6px);
}

.btn-demo:hover {
  transform: scale(1.05);
  background: rgba(229, 255, 115, 0.2);
  box-shadow: 0 0 18px rgba(229, 255, 115, 0.5);
}

.btn-demo span {
  font-size: 18px;
}

@media (max-width: 900px) {
  .btn-demo {
    width: 100%;
    justify-content: center;
  }
}

/* Mockup */
.hero-mockup img {
  width: 360px;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Fondo radiante */
.hero-bg-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  background: radial-gradient(circle at 20% 20%, rgba(60, 150, 255, 0.4), transparent 60%);
  z-index: -1;
}


/* =========================================================
   SECCIONES GENERALES
========================================================= */

.section {
  padding: 120px 60px;
  text-align: center;
}

.section.alt {
  background: #10141d;
}

.section h2 {
  font-size: 38px;
}

.sub {
  color: #AEB4C1;
  margin-top: 10px;
}


/* =========================================================
   MOODS — EXPERIENCIAS
========================================================= */

.mood-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px;
}

.mood-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 26px 10px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.mood-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.12);
}


/* =========================================================
   BENEFICIOS
========================================================= */

.benefit-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.benefit-card {
  background: rgba(255,255,255,0.05);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.3s;
}

.benefit-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-8px);
}


/* =========================================================
   STEPS — CÓMO FUNCIONA
========================================================= */

.steps {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.step-card {
  background: rgba(255,255,255,0.04);
  width: 280px;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: 0.3s;
}

.step-card:hover {
  background: rgba(255,255,255,0.1);
}

.number {
  background: #E5FF73;
  color: #0B0F16;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
}


/* =========================================================
   VISIÓN — PREMIUM GRID
========================================================= */

.vision-premium {
  padding: 120px 40px;
}

.vision-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.vision-item {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

.vision-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
  filter: brightness(85%);
}

.vision-item:hover img {
  transform: scale(1.08);
  filter: brightness(100%);
}

.overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 8px 18px;
  background: rgba(0,0,0,0.55);
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
}

.vision-item:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Variantes */
.tall { grid-row: span 2; }
.wide { grid-column: span 2; }

/* Mobile */
@media(max-width: 900px) {
  .vision-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 600px) {
  .vision-grid { grid-template-columns: 1fr; }
  .wide, .tall { grid-column: 1; grid-row: 1; }
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
  padding: 50px;
  text-align: center;
  color: #7D8491;
  font-size: 14px;
  background: #080B11;
  margin-top: 60px;
}


/* =========================================================
   RESPONSIVE — HERO / GRID OPTIMIZATIONS
========================================================= */

@media (max-width: 900px) {

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 24px 60px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-mockup img {
    width: 260px;
    margin-top: 40px;
  }

  .section {
    padding: 80px 24px;
  }

  .mood-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
}




/* ========================= */
/* FIX — SECCIÓN CÓMO FUNCIONA */
/* ========================= */

.steps {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.step-card {
    background: rgba(255,255,255,0.04);
    width: 280px;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.07);
    transition: 0.3s;
    text-align: center; /* <- SE PERDIÓ */
}

.step-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.1);
}

.number {
    background: #E5FF73;
    color: #0B0F16;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
    font-size: 16px;
}

/* MOBILE FIX */
@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        align-items: center; /* <- para centrar */
    }

    .step-card {
        width: 100%;
        max-width: 320px; /* <- evita que se estire demasiado */
        padding: 24px;
    }
}

/* FIX: Botón "Quiero unirme" en sección CÓMO FUNCIONA */
.section.alt .btn-secondary {
    background: rgba(229, 255, 115, 0.12); /* tono amarillo sutil */
    border: 1px solid rgba(229, 255, 115, 0.6);
    color: #E5FF73;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    display: inline-block;
    margin-top: 50px;
    transition: 0.3s ease;
}

.section.alt .btn-secondary:hover {
    background: rgba(229, 255, 115, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(229, 255, 115, 0.35);
}


/* =============================== */
/*     VISION GRID — PREMIUM FIX   */
/* =============================== */

.vision-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px; /* altura base consistente */
    gap: 22px;
    margin-top: 60px;
}

/* Todas las tarjetas */
.vision-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #111;
}

/* Todas las imágenes toman el contenedor */
.vision-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
    filter: brightness(85%);
}

/* Hover premium */
.vision-item:hover img {
    transform: scale(1.06);
    filter: brightness(100%);
}

/* Overlay */
.overlay {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.55);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.35s ease;
}

.vision-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes */
.vision-item.tall {
    grid-row: span 2;
}

.vision-item.wide {
    grid-column: span 2;
}

/* =============================== */
/* RESPONSIVE */
/* =============================== */

@media (max-width: 1000px) {
    .vision-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }

    .vision-item.tall,
    .vision-item.wide {
        grid-column: span 2;
        grid-row: span 1; /* evitar distorsión en tablet */
    }
}

@media (max-width: 600px) {
    .vision-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .vision-item.tall,
    .vision-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}
