:root {
  --bg-body: #050816;
  --bg-section: #080d1a;
  --bg-section-alt: #0b1020;
  --bg-card: #0f172a;
  --bg-card-soft: #111827;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.16);
  --accent-strong: #4ade80;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --container-width: 1120px;
}

/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 50%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* HELPERS */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.9),
    rgba(8, 47, 73, 0.9)
  );
}

.titulo-hero {
  text-align: center;
}

.section-header {
  max-width: 680px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-img {
  height: 50px !important;
  width: auto !important;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.35rem 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1rem;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.18s ease-out;
}

.nav-link:hover {
  color: #e5e7eb;
}

.nav-link:hover::after {
  width: 18px;
}

.nav-cta {
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: radial-gradient(
    circle at 0 0,
    rgba(34, 197, 94, 0.35),
    transparent 60%
  );
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-cta:hover {
  border-color: var(--accent-strong);
}

/* NAV MOBILE */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 9px;
  background: #e5e7eb;
}

/* HERO */
.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 3.4vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 1.1rem 0;
}

.hero-text .accent {
  background: linear-gradient(120deg, #4ade80, #22c55e, #a3e635);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out,
    background 0.15s ease-out, border-color 0.15s ease-out;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.45);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: rgba(148, 163, 184, 1);
}

/* HERO CARD */
.hero-card {
  background: radial-gradient(
      circle at top left,
      rgba(34, 197, 94, 0.12),
      transparent 55%
    ),
    var(--bg-card-soft);
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-soft);
}

.hero-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.2);
  border: 1px solid rgba(45, 212, 191, 0.4);
  margin-bottom: 0.9rem;
}

.hero-card h2 {
  font-size: 1.25rem;
  margin: 0 0 0.8rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-list li {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}

.hero-list li::before {
  content: "•";
  color: var(--accent-strong);
  margin-top: 0.05rem;
}

.hero-metric-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
  padding-top: 0.8rem;
  font-size: 0.85rem;
}

.metric-label {
  color: var(--text-muted);
  display: block;
}

.metric-value {
  font-weight: 600;
}

/* CARDS GENERALES */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

/* CHIPS */
.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.pricing-card-featured {
  background: radial-gradient(
    circle at top,
    rgba(34, 197, 94, 0.2),
    rgba(15, 23, 42, 1)
  );
  border-color: rgba(34, 197, 94, 0.9);
  transform: translateY(-4px);
}

.badge {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(250, 250, 250, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  margin-top: 0.3rem;
  margin-bottom: 0.2rem;
}

.pricing-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.pricing-price {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Precio original tachado */
.price-original {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Fila del precio de lanzamiento */
.price-promo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.15rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #f9fafb;
}

/* Pildorita “precio lanzamiento” */
.price-pill {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: var(--accent-strong);
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-list li {
  margin-bottom: 0.4rem;
}

.btn-full {
  width: 100%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  border-radius: 999px;
  border: none;
  font-weight: 600;
}

.btn-full:hover {
  transform: translateY(-1px);
}

.pricing-note {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* STEPS */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.steps li {
  position: relative;
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 1.1rem 1.1rem 1rem;
  font-size: 0.9rem;
}

.steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  top: -0.8rem;
  left: 1rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: #022c22;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.5);
}

.steps h3 {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 1.1rem 1.2rem;
}

.faq-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

/* CTA FINAL */
.section-cta {
  text-align: center;
  background: radial-gradient(
    circle at top,
    rgba(34, 197, 94, 0.18),
    rgba(15, 23, 42, 1)
  );
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.btn-cta-final {
  display: inline-block;
  margin: 0 auto;
  min-width: 230px;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(145deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 18px 35px rgba(22, 163, 74, 0.6);
  z-index: 30;
}

/* FOOTER */
.footer {
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.2rem 0 1.4rem;
  background: rgba(2, 6, 23, 0.95);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-small {
  opacity: 0.8;
}

/* ========================= */
/* GALERÍA / SLIDER */
/* ========================= */

.gallery-section {
  padding: 3rem 1.5rem;
}

.gallery-container {
  max-width: 960px;
  margin: 0 auto;
}

.gallery-title {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.gallery-subtitle {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* SLIDER */
.slider {
  position: relative;
  margin-top: 2rem;
  z-index: 5; /* para que nada lo tape */
}

/* Ventana que recorta el track */
.slider-viewport {
  overflow: hidden;
  border-radius: 1rem;
  background: #020617;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  position: relative;
}

/* Pista que contiene los slides (uno al lado del otro) */
.slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease;
  touch-action: pan-y; /* permite scroll vertical + gestos horizontales */
}

/* Cada slide ocupa el 100% del ancho */
.slider-slide {
  min-width: 100%;
  flex: 0 0 100%;
  display: block;
}

/* Imagen del slide */
.slider-slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* FLECHAS DE NAVEGACIÓN */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  outline: none;
  background: rgba(15, 23, 42, 0.75);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #e5e7eb;
  font-size: 1.2rem;
  z-index: 10; /* aseguramos que esté arriba */
  pointer-events: auto;
  transition: background 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.slider-arrow--prev {
  left: 0.75rem;
}

.slider-arrow--next {
  right: 0.75rem;
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.slider-arrow:hover {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
}

/* MEDIA QUERIES GENERALES */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav {
    position: absolute;
    inset: 56px 0 auto 0;
    background: rgba(15, 23, 42, 0.96);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1.5rem 1rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  }

  .nav.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta {
    margin-top: 0.4rem;
  }

  /* MENÚ HAMBURGUESA */
  .nav-toggle {
    display: flex;
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
  }

  /* CENTRAR LOGO EN MOBILE */
  .header-inner {
    justify-content: center;
    position: relative;
  }

  .logo {
    margin: 0 auto;
  }

  .logo-img {
    height: 40px;
  }

  .footer-inner {
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 4rem;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.45rem;
  }
}

/* Ajustes específicos para la galería en pantallas medianas+ */
@media (min-width: 768px) {
  .gallery-section {
    padding: 4rem 2rem;
  }

  .gallery-title {
    font-size: 2rem;
  }

  .gallery-subtitle {
    font-size: 1.05rem;
  }

  .slider-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
}

@media (min-width: 1024px) {
  .gallery-container {
    max-width: 1120px;
  }
}
