/* =====================================================
   ALTIMEA · LANDING AI-FORGE SEO — V3
   Scope: .aifs-landing (no nav/footer propios — usa
   site-header / site-footer del pipeline).
   Tokens: DS V2 via main.css (bundle hasheado).
   FAQ: modelo <details>/<summary> de /desarrollo-a-medida/.
   ===================================================== */


/* ===== RESET SCOPE ===== */
.aifs-landing {
  font-family: 'Lato', sans-serif;
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.aifs-landing img { max-width: 100%; height: auto; }
/* Reset de links de contenido — excluye .btn para no pisar el color
   del botón definido en main.css (.btn-primary → --white). */
.aifs-landing a:not(.btn) { text-decoration: none; color: inherit; }


/* ===== TIPOGRAFÍA ===== */
.aifs-landing h1,
.aifs-landing h2,
.aifs-landing h3 { font-family: 'Montserrat', sans-serif; }

.aifs-landing h1 {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 24px;
}

.aifs-landing h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 16px;
}

.aifs-landing h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 12px;
}

/* Sólo layout — sin color: la herencia de .aifs-landing { color: --navy }
   cubre el caso claro; cada sección oscura sobreescribe con selector propio. */
.aifs-landing p {
  font-size: 16px;
  line-height: 1.8;
}


/* ===== SECTION LABEL — override DS V2 (mint sobre oscuro, blue-a11y sobre claro) ===== */
.aifs-landing .section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: transparent;
  padding: 0;
  margin-bottom: 24px;
  display: inline-block;
  color: var(--mint);
}

.aifs-landing .section-label.on-light { color: var(--blue-a11y); }


/* ===== CONTAINERS ===== */
.aifs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

.aifs-container--narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px;
}


/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 { margin-bottom: 16px; }

.section-intro {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 620px;
  margin: 0 auto;
}


/* ===================================================================
   1 · HERO
   =================================================================== */
.aifs-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 100px;
  overflow: hidden;
}

.aifs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(114, 245, 196, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.aifs-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.aifs-hero-pill {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(114, 245, 196, 0.12);
  border: 1px solid rgba(114, 245, 196, 0.35);
  color: var(--mint);
  border-radius: var(--radius-pill);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* Selector más específico que .aifs-landing p para ganar la cascada */
.aifs-hero .aifs-subtitle {
  font-size: 20px;
  color: var(--text-on-dark-2);
  line-height: 1.6;
  margin-bottom: 44px;
  max-width: 680px;
  margin-inline: auto;
}

.aifs-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.aifs-hero .hero-microcopy {
  font-size: 14px;
  color: var(--text-on-dark-3);
  margin: 0;
  font-style: italic;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: aifs-bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 32px;
  height: 32px;
  stroke: rgba(114, 245, 196, 0.5);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes aifs-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}


/* ===================================================================
   2 · TRUST MARQUEE
   =================================================================== */
.aifs-trust-marquee {
  background-color: var(--navy);
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid rgba(114, 245, 196, 0.15);
  border-bottom: 1px solid rgba(114, 245, 196, 0.15);
}

.marquee-track { overflow: hidden; }

.aifs-trust-marquee .marquee-content {
  display: flex;
  gap: 0;
  animation: aifs-marquee 30s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.aifs-trust-marquee .marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.5px;
  padding: 0 32px;
  white-space: nowrap;
}

.aifs-trust-marquee .marquee-item::before {
  content: '·';
  margin-right: 32px;
  color: rgba(114, 245, 196, 0.4);
}

@keyframes aifs-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ===================================================================
   3 · TL;DR GEO
   =================================================================== */
.aifs-tldr {
  background-color: var(--light-bg);
}

.aifs-tldr .aifs-container--narrow {
  padding: 48px 40px;
}

.tldr-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--navy);
  border-left: 4px solid var(--mint);
  padding-left: 24px;
  margin: 0;
}

.tldr-text strong { font-weight: 700; color: var(--navy); }


/* ===================================================================
   4 · PAIN (6 cards)
   =================================================================== */
.aifs-pain { background-color: var(--white); }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.aifs-pain .pain-card {
  border-left: 4px solid var(--mint);
  padding: 20px;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Lato', sans-serif;
  color: var(--navy);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  line-height: 1.6;
  transition: box-shadow 0.3s ease;
}

@media (hover: hover) {
  .aifs-pain .pain-card:hover { box-shadow: var(--shadow-md); }
}

.pain-cta-wrap { text-align: center; }

.pain-closing {
  font-size: 18px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 28px;
}


/* ===================================================================
   5 · POR QUÉ EL SEO NO TE FUNCIONA
   =================================================================== */
.aifs-why-broken { background-color: var(--gray-50); }

.why-broken-intro {
  font-size: 18px;
  color: var(--gray-700);
  margin: 0 0 28px;
}

.why-broken-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.why-broken-list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
}

.why-broken-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--mint-strong);
}

.why-broken-list li strong { color: var(--navy); font-weight: 700; }

.why-broken-close {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  border-left: 4px solid var(--mint);
  padding-left: 20px;
  margin: 0;
}


/* ===================================================================
   6 · POR QUÉ EXISTE AI-FORGE
   =================================================================== */
.aifs-origin { background-color: var(--white); }

.origin-body {
  max-width: 760px;
  margin: 0 auto;
}

.origin-body p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--gray-700);
  margin: 0 0 24px;
}

.origin-body p:last-child { margin-bottom: 0; }


/* ===================================================================
   7 · CÓMO FUNCIONA (TIMELINE)
   =================================================================== */
.aifs-how { background-color: var(--light-bg); }

.aifs-timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.aifs-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--mint));
  border-radius: 2px;
}

.aifs-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--white);
  border: 3px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  position: relative;
  z-index: 1;
}

.aifs-step:nth-child(n+2) .step-number {
  border-color: var(--mint);
  color: var(--navy);
}

.step-body { flex: 1; padding-top: 8px; }

.step-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aifs-step:nth-child(n+2) .step-icon svg { stroke: var(--mint); }

.step-body h3 { margin-bottom: 8px; }
.step-body p  { color: var(--gray-600); margin: 0; }


/* ===================================================================
   8 · QUÉ RECIBES (BENEFITS — 4 cards)
   =================================================================== */
.aifs-what { background-color: var(--white); }

.aifs-what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.benefit-card {
  padding: 40px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background-color: var(--white);
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-top: 3px solid var(--mint);
}

@media (hover: hover) {
  .benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
  }
}

.benefit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background-color: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--blue-a11y);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card h3 { margin-bottom: 12px; }
.benefit-card p  { font-size: 15px; color: var(--gray-600); margin: 0; }


/* ===================================================================
   9 · LA DIFERENCIA
   =================================================================== */
.aifs-differentiator { background-color: var(--gray-50); }

.aifs-differentiator .section-header { margin-bottom: 32px; }

.diff-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--gray-700);
  border-left: 4px solid var(--mint);
  padding-left: 28px;
  margin: 0;
  max-width: 760px;
  margin-inline: auto;
}


/* ===================================================================
   10 · COMPARATIVA (tabla)
   =================================================================== */
.aifs-compare { background-color: var(--white); }

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background-color: var(--white);
}

.compare-table thead tr {
  background-color: var(--navy);
}

.compare-table thead th {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  padding: 16px 20px;
  text-align: left;
  white-space: nowrap;
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background-color 0.2s ease;
}

.compare-table tbody tr:last-child { border-bottom: none; }

@media (hover: hover) {
  .compare-table tbody tr:hover { background-color: var(--light-bg); }
}

.compare-table tbody td {
  padding: 16px 20px;
  color: var(--gray-600);
  line-height: 1.5;
}

.compare-row-highlight {
  background-color: var(--mint-soft);
}

.compare-row-highlight td {
  color: var(--navy);
  font-weight: 600;
}

.compare-row-highlight td:nth-child(2) {
  color: var(--blue-a11y);
  font-size: 17px;
}

.compare-prose {
  font-size: 17px;
  color: var(--gray-600);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ===================================================================
   11 · PARA QUIÉN ES / NO
   =================================================================== */
.aifs-icp { background-color: var(--gray-50); }

.icp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.icp-card {
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.icp-yes {
  background-color: var(--navy);
  color: var(--white);
}

.icp-no {
  background-color: var(--white);
  color: var(--navy);
  border: 2px solid var(--gray-100);
}

.icp-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.icp-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icp-yes .icp-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--mint);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icp-no .icp-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--gray-600);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icp-card-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.icp-yes h3 { color: var(--white); }
.icp-no h3  { color: var(--navy); }

.icp-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.icp-card li {
  font-size: 15px;
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
}

.icp-yes li { color: var(--text-on-dark-2); }

.icp-yes li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 700;
}

.icp-no li { color: var(--gray-600); }

.icp-no li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gray-600);
}


/* ===================================================================
   12 · PRICING
   =================================================================== */
.aifs-pricing {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
}

.aifs-pricing .aifs-container--narrow { text-align: center; }

.aifs-pricing .section-label { color: var(--mint); }
.aifs-pricing h2 { color: var(--white); }

.pricing-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(114, 245, 196, 0.25);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.pricing-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 16px;
}

.pricing-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 32px;
}

.pricing-amount span {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-on-dark-3);
}

.pricing-features {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-features li {
  font-size: 15px;
  color: var(--text-on-dark-2);
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 700;
  font-size: 16px;
}

/* Selector más específico que .aifs-landing p */
.aifs-pricing .pricing-microcopy {
  font-size: 13px;
  color: var(--text-on-dark-3);
  margin-top: 20px;
  font-style: italic;
}


/* ===================================================================
   13 · FAQ — modelo <details>/<summary> (/desarrollo-a-medida/)
   =================================================================== */
.aifs-faq { background-color: var(--gray-50); }

.aifs-faq .faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.aifs-faq .faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.aifs-faq .faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--mint-strong);
}

.aifs-faq .faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.aifs-faq .faq-item summary::-webkit-details-marker { display: none; }

.aifs-faq .faq-item summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.aifs-faq .faq-item summary h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--navy);
}

.aifs-faq .faq-item summary .faq-icon {
  width: 22px;
  height: 22px;
  color: var(--blue-a11y);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
  stroke: currentColor;
}

.aifs-faq .faq-item[open] summary .faq-icon { transform: rotate(45deg); }

.aifs-faq .faq-answer { padding: 0 24px 24px; }
.aifs-faq .faq-answer p {
  font-size: 15px;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.75;
}


/* ===================================================================
   14 · CTA FINAL
   =================================================================== */
.aifs-cta-final {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  text-align: center;
  padding: 0;
}

.aifs-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 40px;
}

.aifs-cta-final h2 {
  color: var(--white);
  margin-bottom: 16px;
}

/* Selector más específico que .aifs-landing p */
.aifs-cta-final .aifs-cta-inner p {
  font-size: 18px;
  color: var(--text-on-dark-3);
  margin-bottom: 36px;
}


/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  .aifs-trust-marquee .marquee-content { animation: none; }
  .scroll-indicator { animation: none; }
  .benefit-card,
  .aifs-pain .pain-card,
  .aifs-faq .faq-item,
  .aifs-faq .faq-item summary .faq-icon { transition: none; }
}


/* ===================================================================
   RESPONSIVE — MOBILE (≤768px)
   =================================================================== */
@media (max-width: 768px) {

  .aifs-container,
  .aifs-container--narrow { padding: 60px 24px; }

  .aifs-tldr .aifs-container--narrow { padding: 36px 24px; }

  .section-header { margin-bottom: 40px; }
  .section-intro  { font-size: 16px; }

  /* Hero */
  .aifs-hero { padding: 100px 24px 80px; min-height: 100svh; }
  .aifs-hero .aifs-subtitle { font-size: 17px; }

  /* TL;DR */
  .tldr-text { font-size: 15px; }

  /* Pain → 1 col */
  .pain-grid { grid-template-columns: 1fr; }

  /* Why broken / origin */
  .why-broken-intro { font-size: 16px; }
  .why-broken-list li { font-size: 15px; }
  .why-broken-close { font-size: 16px; }
  .origin-body p { font-size: 16px; }

  /* Timeline */
  .aifs-timeline::before { left: 20px; }
  .step-number { width: 44px; height: 44px; font-size: 17px; }
  .aifs-step { gap: 20px; }

  /* Benefits → 1 col */
  .aifs-what-grid { grid-template-columns: 1fr; }
  .benefit-card   { padding: 32px 24px; }

  /* Diferencia */
  .diff-text { font-size: 16px; }

  /* Comparativa */
  .compare-table thead th,
  .compare-table tbody td { padding: 12px 14px; font-size: 14px; }

  /* ICP → 1 col */
  .icp-grid { grid-template-columns: 1fr; }
  .icp-card { padding: 28px 24px; }

  /* Pricing */
  .pricing-card   { padding: 36px 24px; }
  .pricing-amount { font-size: 44px; }

  /* FAQ */
  .aifs-faq .faq-item summary { padding: 18px 20px; }
  .aifs-faq .faq-item summary h3 { font-size: 15px; }
  .aifs-faq .faq-answer { padding: 0 20px 20px; }

  /* CTA final */
  .aifs-cta-inner { padding: 60px 24px; }
}
