/* ============================================================================
   ANX LANDING — home pública (controller Index), reskin Figma en FLUJO responsive.
   Se carga SÓLO en la home vía el touchpoint condicional del wrapper.php.
   Casi todo va scopeado bajo .anx-landing para no afectar al panel/login/admin.
   El menú (.navbar-main) y el footer (.app-footer) son del template (gestionados
   desde BBDD); aquí sólo se les da el aspecto de marca cuando estamos en la home
   (body.anx-home).
   ============================================================================ */

/* Post Grotesk — webfont self-hosted (convertido a woff2 desde los OTF con licencia) */
@font-face { font-family: 'Post Grotesk'; src: url('../fonts/post-grotesk/PostGrotesk-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Post Grotesk'; src: url('../fonts/post-grotesk/PostGrotesk-Book.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Post Grotesk'; src: url('../fonts/post-grotesk/PostGrotesk-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Post Grotesk'; src: url('../fonts/post-grotesk/PostGrotesk-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

.anx-landing {
  --white: #f7f7f2;
  --ink: #131416;
  --panel: #131416;
  --blue: #1256d3;
  --green: #1ce683;
  --muted: #d9d9d9;
  --card: #303042;
  --testimonial: #212934;
  --anx-font: "Post Grotesk", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --anx-max: 1180px;
  --anx-content: 838px;

  font-family: var(--anx-font);
  color: var(--ink);
}

.anx-landing *,
.anx-landing *::before,
.anx-landing *::after { box-sizing: border-box; }

.anx-landing img { display: block; max-width: 100%; }
.anx-landing a { text-decoration: none; color: inherit; }
.anx-landing h1,
.anx-landing h2,
.anx-landing h3,
.anx-landing p { margin: 0; }

/* ---------------------------------------------------------------------------
   HERO (claro)
   --------------------------------------------------------------------------- */
.anx-landing .hero {
  max-width: var(--anx-max);
  margin: 0 auto;
  padding: 48px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  justify-content: space-between;
}

.anx-landing .hero-text { flex: 1 1 560px; }

.anx-landing .hero h1 {
  color: var(--ink);
  font-size: 86px;
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: 0;
}
.anx-landing .hero h1 strong { display: block; font-weight: 500; }

.anx-landing .hero-copy {
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}
.anx-landing .hero-copy-left { margin-top: 40px; max-width: 320px; }
.anx-landing .hero-copy-right { max-width: 320px; }

.anx-landing .hero-aside {
  flex: 1 1 320px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.anx-landing .hero-orb {
  width: 240px;
  height: 240px;
  align-self: center;
  border: 2px solid rgba(82, 93, 213, 0.62);
  border-radius: 50%;
  background:
    radial-gradient(circle at 57% 42%, rgba(255, 255, 255, 0.96) 0 19%, rgba(206, 247, 255, 0.7) 47%, rgba(229, 242, 255, 0.86) 61%, rgba(237, 244, 255, 0.42) 100%),
    conic-gradient(from 208deg, rgba(40, 80, 215, 0.85), rgba(218, 126, 188, 0.6), rgba(255, 167, 150, 0.5), rgba(59, 103, 214, 0.9));
  box-shadow:
    inset -28px 14px 40px rgba(74, 154, 255, 0.18),
    inset 26px -24px 45px rgba(255, 138, 160, 0.16),
    0 14px 24px rgba(18, 86, 211, 0.14);
  opacity: 0.96;
}

.anx-landing .primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 24px;
  border: 1px solid var(--blue);
  border-radius: 100px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  transition: filter .15s ease;
}
.anx-landing .primary-cta:hover { filter: brightness(1.08); }
.anx-landing .primary-cta img { width: 12px; height: 12px; }

/* Hero shot (panel screenshot que cabalga entre la zona clara y la oscura) */
.anx-landing .hero-shot-wrap {
  max-width: var(--anx-max);
  margin: 64px auto -160px;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}
.anx-landing .hero-shot {
  width: 838px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(18, 20, 22, 0.18);
}

/* ---------------------------------------------------------------------------
   BLOQUE OSCURO (engloba features, imágenes, testimonios y pricing)
   --------------------------------------------------------------------------- */
.anx-landing .dark-section {
  position: relative;
  margin: 0 auto;
  max-width: 1366px;
  background: var(--panel);
  border-radius: 40px;
  color: var(--white);
  padding: 220px 24px 80px;
  overflow: hidden;
}

/* contenedor centrado interno para el contenido de texto */
.anx-landing .features,
.anx-landing .pricing,
.anx-landing .testimonials,
.anx-landing .split-images {
  max-width: var(--anx-content);
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------------------------
   FEATURES (filas)
   --------------------------------------------------------------------------- */
.anx-landing .features-one { margin-bottom: 96px; }
.anx-landing .features-two { margin-top: 96px; }

.anx-landing .features h2 {
  color: var(--white);
  font-size: 50px;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 48px;
}

.anx-landing .feature-list { display: flex; flex-direction: column; }

.anx-landing .feature-row {
  display: grid;
  grid-template-columns: 299px 1fr;
  column-gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid rgba(217, 217, 217, 0.3);
}
.anx-landing .feature-list .feature-row:first-child { border-top: 0; }

.anx-landing .feature-title {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 16px;
  align-items: start;
}
.anx-landing .feature-title img { width: 32px; height: 32px; object-fit: contain; margin-top: 2px; }

.anx-landing .feature-title .eyebrow {
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 8px;
}
.anx-landing .feature-title h3 {
  color: var(--white);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.14;
}

.anx-landing .feature-copy {
  color: rgba(247, 247, 242, 0.6);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.45;
}

/* ---------------------------------------------------------------------------
   SPLIT IMAGES (dos imágenes solapadas)
   --------------------------------------------------------------------------- */
.anx-landing .split-images {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 80px;
  margin-bottom: 0;
}
.anx-landing .work-shot {
  width: 564px;
  max-width: 67%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}
.anx-landing .phone-shot {
  width: 335px;
  max-width: 40%;
  height: auto;
  margin-left: -60px;
  margin-top: 100px;
  border-radius: 20px;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------------------
   ANALYTICS BACKDROP (imagen full-bleed dentro del bloque oscuro)
   --------------------------------------------------------------------------- */
.anx-landing .analytics-backdrop {
  position: relative;
  margin: 96px -24px 0;
  height: 480px;
  overflow: hidden;
}
.anx-landing .analytics-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------------------------------------------------------------------------
   TESTIMONIOS
   --------------------------------------------------------------------------- */
.anx-landing .testimonials {
  margin-top: -120px;
  position: relative;
  z-index: 2;
  border-radius: 40px;
  background: var(--testimonial);
  color: var(--white);
  padding: 48px 40px;
}
.anx-landing .testimonials h2 {
  color: var(--white);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}
.anx-landing .testimonials-subtitle {
  color: var(--white);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 40px;
}
.anx-landing .testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.anx-landing .testimonial-card {
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  padding: 18px 24px 24px;
}
.anx-landing .testimonial-head { display: flex; align-items: center; gap: 16px; }
.anx-landing .testimonial-card img { width: 40px; height: 40px; border-radius: 50%; }
.anx-landing .testimonial-card .person {
  color: rgba(19, 20, 22, 0.5);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}
.anx-landing .testimonial-card h3 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}
.anx-landing .testimonial-card .quote {
  color: var(--ink);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.35;
  margin-top: 16px;
}

/* ---------------------------------------------------------------------------
   PRICING
   --------------------------------------------------------------------------- */
.anx-landing .pricing { margin-top: 96px; color: var(--white); }
.anx-landing .pricing h2 {
  color: var(--white);
  font-size: 50px;
  font-weight: 300;
  line-height: 1.1;
}
.anx-landing .pricing-subtitle {
  color: var(--white);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 16px;
}
.anx-landing .billing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(217, 217, 217, 0.3);
  color: rgba(217, 217, 217, 0.45);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.25;
}
.anx-landing .billing-tabs span { padding-bottom: 12px; }
.anx-landing .billing-tabs .active {
  border-bottom: 4px solid var(--blue);
  color: var(--white);
  font-weight: 500;
}

.anx-landing .plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}
.anx-landing .plan-card {
  border-radius: 20px;
  background: var(--card);
  color: var(--white);
  text-align: center;
  padding: 18px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 213px;
}
.anx-landing .plan-card.featured-plan { border: 4px solid var(--blue); padding: 14px 12px 20px; }
.anx-landing .plan-card h3 {
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  min-height: 2.5em;
}
.anx-landing .price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 12px 0;
  color: var(--white);
}
.anx-landing .price strong { font-size: 48px; font-weight: 700; line-height: 1; }
.anx-landing .price span { font-size: 18px; font-weight: 400; }
.anx-landing .plan-copy {
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  flex: 1 1 auto;
}
.anx-landing .plan-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  padding: 8px 16px;
  margin-top: 16px;
  border-radius: 100px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  transition: filter .15s ease;
}
.anx-landing .plan-card a:hover { filter: brightness(1.08); }

/* ---------------------------------------------------------------------------
   COMPARATIVA
   --------------------------------------------------------------------------- */
.anx-landing .comparison { margin-top: 64px; color: var(--muted); }
.anx-landing .comparison-heading {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 24px;
}
.anx-landing .comparison-scroll { width: 100%; }
.anx-landing .comparison-head {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 25px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  padding-bottom: 16px;
}
.anx-landing .comparison-table { border-top: 1px solid rgba(217, 217, 217, 0.55); }
.anx-landing .compare-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 25px;
  border-bottom: 1px solid rgba(217, 217, 217, 0.24);
}
.anx-landing .compare-row p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.3;
}
.anx-landing .compare-row i {
  position: relative;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--green);
}
.anx-landing .compare-row i::after {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 4px;
  height: 6px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  content: "";
  transform: rotate(45deg);
}
.anx-landing .compare-row i.no { background: #ff0056; }
.anx-landing .compare-row i.no::before,
.anx-landing .compare-row i.no::after {
  position: absolute;
  top: 4px;
  left: 2px;
  width: 6px;
  height: 1px;
  border: 0;
  background: #000;
  content: "";
}
.anx-landing .compare-row i.no::before { transform: rotate(45deg); }
.anx-landing .compare-row i.no::after { transform: rotate(-45deg); }
.anx-landing .compare-row strong { color: var(--muted); font-weight: 500; }
.anx-landing .note {
  text-align: right;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.25;
}

/* ============================================================================
   MENÚ y FOOTER GESTIONADOS (del template) — sólo cuando estamos en la home.
   body.anx-home lo añade el wrapper. Damos aspecto de marca sin romper su HTML.
   ============================================================================ */
body.anx-home { background: #fff; }

/* Header claro con texto oscuro */
body.anx-home .navbar-main {
  border-color: rgba(19, 20, 22, 0.08) !important;
  background: #fff;
}
body.anx-home .navbar-main .nav-link { color: var(--ink, #131416); font-weight: 500; }
body.anx-home .navbar-main .nav-link.text-primary { color: #1256d3 !important; }

/* Footer oscuro tipo Figma */
body.anx-home .app-footer {
  background: #000;
  color: #f7f7f2;
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 24px;
}
body.anx-home .app-footer a,
body.anx-home .app-footer .footer-heading,
body.anx-home .app-footer .h5 { color: #f7f7f2 !important; }
body.anx-home .app-footer .text-muted { color: rgba(247, 247, 242, 0.7) !important; }
body.anx-home .app-footer .btn-link { color: #f7f7f2 !important; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1100px) {
  .anx-landing .hero h1 { font-size: 66px; }
}

@media (max-width: 992px) {
  .anx-landing .feature-row { grid-template-columns: 240px 1fr; column-gap: 24px; }
  .anx-landing .feature-title h3 { font-size: 24px; }
  .anx-landing .feature-copy { font-size: 18px; }
  .anx-landing .plans { grid-template-columns: repeat(2, 1fr); }
  .anx-landing .testimonial-cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .anx-landing .hero {
    flex-direction: column;
    gap: 28px;
    padding: 32px 20px 0;
  }
  .anx-landing .hero h1 { font-size: 48px; }
  .anx-landing .hero-text,
  .anx-landing .hero-aside { flex: 1 1 100%; max-width: 100%; }
  .anx-landing .hero-aside { align-items: stretch; }
  .anx-landing .hero-orb { width: 180px; height: 180px; }
  .anx-landing .hero-copy-left,
  .anx-landing .hero-copy-right { max-width: 100%; }
  .anx-landing .primary-cta { align-self: flex-start; }

  .anx-landing .hero-shot-wrap { margin: 40px auto -120px; padding: 0 20px; }

  .anx-landing .dark-section { border-radius: 24px; padding: 150px 20px 56px; }

  /* features apiladas: icono+título arriba, descripción debajo */
  .anx-landing .features h2 { font-size: 34px; margin-bottom: 32px; }
  .anx-landing .feature-row { grid-template-columns: 1fr; row-gap: 16px; padding: 28px 0; }
  .anx-landing .feature-title h3 { font-size: 22px; }
  .anx-landing .feature-copy { font-size: 17px; }

  /* split images apiladas */
  .anx-landing .split-images { flex-direction: column; gap: 20px; margin-top: 56px; }
  .anx-landing .work-shot,
  .anx-landing .phone-shot { width: 100%; max-width: 100%; margin: 0; }

  .anx-landing .analytics-backdrop { height: 320px; margin: 56px -20px 0; }

  .anx-landing .testimonials { margin-top: -100px; padding: 32px 20px; }
  .anx-landing .testimonials h2 { font-size: 28px; }

  .anx-landing .pricing h2 { font-size: 34px; }
  .anx-landing .plans { grid-template-columns: 1fr; max-width: 360px; margin: 32px auto 0; }
  .anx-landing .plan-card.featured-plan { padding: 18px 16px 24px; }

  /* La comparativa tabular no escala bien en móvil: la ocultamos */
  .anx-landing .comparison { display: none; }

  /* Footer gestionado: sin radios laterales colgando */
  body.anx-home .app-footer { border-radius: 16px; padding: 28px 20px; }
}
