/* ============================================================
   M&F CONSULTORES — landing.css
   Styles específicas para páginas de producto.
   Importar DESPUÉS de style.css.
   ============================================================ */

/* Tokens FIJOS para las bandas que son oscuras por diseño en AMBOS temas
   (.pricing-card, .problem, .steps-section, .lhero-cta--photo).
   No usar --ink / --navy / --cream ahí: [data-theme="dark"] los invierte y
   la banda se aclararía dejando el texto claro ilegible. */
:root {
  --band-ink:  #1A1A1A;
  --band-navy: #07456C;
  --band-text: #FAF7F2;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  padding-top: 9rem; /* 144px > nav height ~125px */
  padding-bottom: 1.5rem;
  background: var(--cream);
}
.breadcrumb__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.breadcrumb a { color: var(--navy); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb__sep { opacity: 0.35; }
.breadcrumb__current { color: var(--gray); }


/* ---- LANDING HERO ---- */
.lhero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
  padding-bottom: 0;
}
.lhero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(7,69,108,0.04) 0%, transparent 55%);
  pointer-events: none;
}
.lhero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--gap-lg);
  align-items: start;
}
.lhero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(7,69,108,0.07);
  border: 1px solid rgba(7,69,108,0.12);
  padding: 0.35rem 0.875rem;
  border-radius: 15px;
  margin-bottom: 1.75rem;
}
.lhero__badge svg { width: 12px; height: 12px; flex-shrink: 0; }
.lhero__title {
  font-family: var(--font-body);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy-dark);
  margin-bottom: 1.5rem;
}
.lhero__title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
}
.lhero__subtitle {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--gray);
  max-width: 50ch;
  margin-bottom: 2.5rem;
}
.lhero__ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.lhero__trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  color: var(--gray-light);
  text-transform: uppercase;
}
.lhero__trust svg { color: var(--gold); }

/* Foto decorativa del hero (solo en las landings que la tienen) */
.lhero__deco {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

/* Pricing card (sticky right col) */
.pricing-card {
  position: sticky;
  top: calc(5rem + 1.5rem);
  background: var(--band-navy);
  background-image: radial-gradient(ellipse at 80% 20%, rgba(255,182,39,0.12) 0%, transparent 55%);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 32px 72px rgba(7,69,108,0.25), 0 0 0 1px rgba(255,182,39,0.12);
}
.pricing-card__head {
  padding: 1.75rem 1.75rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pricing-card__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.625rem;
}
.pricing-card__name {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--band-text);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.pricing-card__tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.35);
}
.pricing-card__price-area {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pricing-card__price-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.35);
  margin-bottom: 0.5rem;
}
.pricing-card__price-value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.375rem;
}
.pricing-card__price-sub {
  font-size: 0.75rem;
  color: rgba(250,247,242,0.45);
  line-height: 1.5;
}
.pricing-card__features {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: rgba(250,247,242,0.65);
  line-height: 1.4;
}
.pricing-card__feature svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 0.1rem;
}
.pricing-card__cta-area {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.pricing-card__disclaimer {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  color: rgba(250,247,242,0.25);
  text-align: center;
  line-height: 1.6;
}


/* ---- PROBLEM SECTION ---- */
.problem {
  padding-block: var(--section-py);
  background: var(--band-ink);
  position: relative;
  overflow: hidden;
}
.problem__deco {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(8rem, 20vw, 18rem);
  color: var(--gold);
  opacity: 0.035;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.problem__deco--tl { top: -10%; left: -3%; }
.problem__deco--br { bottom: -10%; right: -2%; }
.problem .container { position: relative; z-index: 1; }
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--gap-lg);
  align-items: center;
}
.problem__title {
  font-family: var(--font-body);
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--band-text);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.problem__title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.problem__body {
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: rgba(250,247,242,0.65);
}
.problem__body + .problem__body { margin-top: 1.25rem; }
.problem__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.problem__visual svg { max-width: 380px; width: 100%; }
.problem__visual img {
  width: 100%;
  max-width: 440px;
  height: auto;
  /* Retrato: la columna de texto es alta y una foto 4/3 se veía desproporcionada. */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}


/* ---- FEATURES ---- */
.features {
  padding-block: var(--section-py);
  background: var(--cream);
}
.features__intro { margin-bottom: clamp(3rem, 5vw, 4rem); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  /* El fondo del grid es crema, no navy: así la celda sobrante (cuando hay 4
     tarjetas en 3 columnas) no se ve como un recuadro azul. Las líneas
     divisorias las dibuja cada tarjeta con su box-shadow. */
  background: var(--cream);
  border: 1.5px solid rgba(7,69,108,0.08);
  border-radius: 15px;
  overflow: hidden;
}
.feature-card {
  background: var(--cream);
  box-shadow: 0 0 0 1.5px rgba(7,69,108,0.08);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: background var(--t-norm);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: attr(data-num);
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 5.5rem;
  color: var(--navy);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  transition: opacity var(--t-norm), color var(--t-norm);
}
.feature-card:hover { background: var(--cream-dark); }
.feature-card:hover::before { opacity: 0.65; color: var(--gold); }
.feature-card__icon {
  width: 40px;
  height: 40px;
  color: var(--navy);
  margin-bottom: 1rem;
  transition: color var(--t-norm), transform var(--t-slow);
}
.feature-card__icon svg { width: 100%; height: 100%; }
.feature-card:hover .feature-card__icon { color: var(--gold-dark); transform: scale(1.08); }
.feature-card__title {
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.feature-card__title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.feature-card__body {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--gray);
}
.feature-card__highlight {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(255,182,39,0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 15px;
  margin-top: 0.875rem;
}


/* ---- WHY MYF ---- */
.why-myf {
  padding-block: var(--section-py);
  background: var(--cream-dark);
}
.why-myf__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
}
.why-myf__body {
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 1.25rem;
}
.why-myf__diff-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.why-myf__diff-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border-radius: 15px;
  border-left: 3px solid var(--gold);
  transition: border-color var(--t-norm), transform var(--t-norm);
}
.why-myf__diff-item:hover { transform: translateX(4px); border-color: var(--navy); }
.why-myf__diff-icon {
  width: 36px;
  height: 36px;
  background: rgba(7,69,108,0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
  transition: background var(--t-norm), color var(--t-norm);
}
.why-myf__diff-item:hover .why-myf__diff-icon { background: var(--gold); color: var(--ink); }
.why-myf__diff-icon svg { width: 16px; height: 16px; }
.why-myf__diff-text strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 0.25rem;
}
.why-myf__diff-text span {
  font-size: var(--fs-small);
  color: var(--gray);
  line-height: 1.55;
}
.why-myf__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-myf__visual img {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(0,40,71,0.20);
}


/* ---- 3 STEPS ---- */
.steps-section {
  padding-block: var(--section-py);
  background: var(--band-navy);
  background-image: radial-gradient(ellipse at 70% 80%, rgba(255,182,39,0.08) 0%, transparent 55%);
  overflow: hidden;
  position: relative;
}
.steps-section__watermark {
  position: absolute;
  right: -4%;
  bottom: -15%;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(10rem, 25vw, 20rem);
  color: var(--gold);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.steps-section .container { position: relative; z-index: 1; }
.steps-section__intro { max-width: 44ch; margin-bottom: clamp(3rem, 6vw, 5rem); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,0.06);
  border-radius: 15px;
  overflow: hidden;
}
.step-card {
  background: rgba(255,255,255,0.03);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: background var(--t-norm);
}
.step-card:hover { background: rgba(255,255,255,0.06); }
.step-card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 1rem;
  transition: opacity var(--t-norm);
}
.step-card:hover .step-card__num { opacity: 1; }
.step-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--band-text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}
.step-card__body {
  font-size: var(--fs-small);
  color: rgba(250,247,242,0.55);
  line-height: 1.65;
}


/* ---- LANDING FAQ ---- */
.landing-faq {
  padding-block: var(--section-py);
  background: var(--cream);
}
.landing-faq__intro { margin-bottom: clamp(3rem, 5vw, 4rem); }
.landing-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}


/* ---- LANDING CTA FINAL ---- */
.lhero-cta {
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--cream-dark);
  text-align: center;
}
.lhero-cta .container { max-width: 640px; }
.lhero-cta__title {
  font-family: var(--font-body);
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.lhero-cta__title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.lhero-cta__lead {
  font-size: var(--fs-lead);
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}
.lhero-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Variante con foto de fondo + parallax (la capa lleva data-parallax; el
   desplazamiento lo aplica el handler [data-parallax] de main.js).
   La foto se pasa por style inline en la capa, no por custom property:
   una url() dentro de una variable se resolvería contra este .css. */
.lhero-cta--photo {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}
.lhero-cta__parallax {
  position: absolute;
  left: 0;
  right: 0;
  top: -14%;
  height: 128%;
  z-index: 0;
  background-size: cover;
  /* Punto focal por defecto en el tercio superior: en móvil el contenedor es
     alto y estrecho, y un `center` recorta a la altura del torso. Cada página
     afina el eje X por style inline según dónde estén las caras. */
  background-position: center 35%;
  will-change: transform;
}
.lhero-cta__parallax::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(0,40,71,0.92) 0%, rgba(0,26,46,0.88) 55%, rgba(7,69,108,0.84) 100%);
}
.lhero-cta--photo .container { position: relative; z-index: 1; }
.lhero-cta--photo .eyebrow { color: var(--gold); }
.lhero-cta--photo .lhero-cta__title { color: var(--band-text); }
.lhero-cta--photo .lhero-cta__lead { color: rgba(250,247,242,0.82); }
.lhero-cta--photo .btn--outline { color: var(--band-text); border-color: rgba(250,247,242,0.45); }
.lhero-cta--photo .btn--outline:hover { background: var(--band-text); color: #003C65; border-color: var(--band-text); }


/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  /* Hero apilado: la foto sube POR ENCIMA del título. `display: contents`
     saca a la foto y a la pricing-card de su wrapper para poder ordenarlas
     por separado sin tocar el orden del DOM. */
  .lhero__inner { display: flex; flex-direction: column; }
  .lhero__right { display: contents; }
  .lhero__deco { order: -1; margin-bottom: 0; }
  .lhero__left { order: 0; }
  .lhero__right > .pricing-card { order: 1; }
  .pricing-card { position: static; margin-top: 2rem; }
  .problem__grid { grid-template-columns: 1fr; }
  .problem__visual { display: none; }
  .why-myf__grid { grid-template-columns: 1fr; }
  .why-myf__visual { display: none; }
  /* Los visuales decorativos (SVG) siguen ocultos en móvil, pero los que
     llevan una foto real sí son contenido y deben verse. Van ARRIBA del
     título: la foto da contexto antes de entrar al copy. order sobre el
     grid de 1 columna, así el orden del DOM (y el de lectura) no cambia. */
  .problem__visual:has(img),
  .why-myf__visual:has(img) { display: flex; order: -1; margin-bottom: 2.5rem; }
  .problem__visual:has(img) img { aspect-ratio: 4 / 3; max-width: 100%; }
  .why-myf__visual:has(img) img { max-width: 100%; }
  .features__grid { grid-template-columns: 1fr; }
  .landing-faq__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  /* En móvil la sección es muy alta y una foto 16:9 con `cover` se ampliaría
     ~5x (queda un primerísimo plano). La capa pasa a ser una banda superior
     con zoom razonable, fundida hacia el navy sólido de la sección. */
  .lhero-cta--photo .lhero-cta__parallax { top: -6%; height: 62%; }
  .lhero-cta--photo .lhero-cta__parallax::after {
    background: linear-gradient(180deg,
      rgba(0,40,71,0.55) 0%,
      rgba(0,40,71,0.80) 42%,
      rgba(0,40,71,0.96) 78%,
      #002847 100%);
  }
  .lhero-cta__actions { flex-direction: column; align-items: stretch; }
  .lhero-cta__actions .btn { text-align: center; justify-content: center; }
}
