/* ==========================================================
   Team Solutionss — home pública (agenciadigitals.com)
   Sistema visual: Brand Kit v1.0
   Fondo #0A0A0A · acento SOLO verde #10B981 (hover #059669)
   Grises #FAFAF7 / #E5E5E5 / #737373 / #404040
   Titulares Fraunces (serif) · cuerpo Inter · labels JetBrains Mono
   ========================================================== */

:root {
  /* Brand Kit — colores */
  --bg: #0a0a0a;
  --bg-elev: #121212;
  --bg-card: #161616;
  --line: #262626;
  --line-strong: #404040;
  --ink: #fafaf7;
  --ink-dim: #e5e5e5;
  --ink-mute: #737373;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-soft: rgba(16, 185, 129, 0.1);

  /* Brand Kit — tipografía */
  --display: "Fraunces", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Ritmo */
  --pad-x: clamp(20px, 4vw, 72px);
  --section-y: clamp(72px, 9vw, 140px);
  --max: 1240px;
  --r: 12px;
  --r-lg: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

::selection { background: var(--accent); color: var(--bg); }

img, svg { max-width: 100%; }

/* Tipografía ---------------------------------------------- */

h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }
p { margin: 0; text-wrap: pretty; }

/* Jerarquía del Brand Kit (06 / Tipografía):
   Hero serif 48–72 · H2 sección serif 32–48 · H3 sans-serif 18–22 bold
   Párrafo sans 16–18 · caption sans 12–14 · label mono 11–13 uppercase +1 */

.h-display {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.h-section {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h-card {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* H3 / subtítulo: sans-serif bold 18–22px */
.problem-card h3,
.step h3,
.rules h3,
.faq-item > summary {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.label-accent { color: var(--accent); }

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 62ch;
}

.micro { font-size: 13px; color: var(--ink-mute); line-height: 1.5; }

/* Layout -------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  position: relative;
}
section + section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .label { margin-bottom: 20px; }
.section-head .lede { margin-top: 20px; }

/* Botones -------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-accent { background: var(--accent); color: #04140d; }
.btn-accent:hover, .btn-accent:focus-visible { background: var(--accent-hover); color: #04140d; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: 13px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions > .btn { width: 100%; }
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Nav ------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 38px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
}
.nav-links a { color: var(--ink-dim); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { flex-shrink: 0; }

/* Menú móvil sin JavaScript (<details>) */
.nav-mobile { margin-left: auto; display: none; }
.nav-mobile > summary {
  list-style: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--pad-x) 24px;
  display: flex;
  flex-direction: column;
}
.nav-mobile-panel a {
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.nav-mobile-panel .btn { margin-top: 18px; border-bottom: 0; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile { display: block; }
}

/* S1 · Hero ------------------------------------------------ */

.hero { padding-top: clamp(56px, 8vw, 104px); }
.hero .label { margin-bottom: 26px; }
.hero h1 { margin-bottom: 28px; max-width: 16ch; }
.hero-sub { margin-bottom: 34px; max-width: 60ch; }
.hero-micro { margin-top: 20px; max-width: 52ch; }

/* S2 · Barra de confianza ---------------------------------- */

/* La barra corre en bucle (marquee). El movimiento y el degradado de los
   bordes viven en enhance.css, junto al resto de la capa de animación. */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.trust p {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* S3 · Problema -------------------------------------------- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
}
.problem-card .glyph {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 22px;
}
.problem-card h3 { margin-bottom: 12px; }
.problem-card p { color: var(--ink-dim); font-size: 15px; }
.problem-closer {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 24ch;
}

/* S4 · Cómo funciona --------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px 32px;
  position: relative;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.step .label { margin-bottom: 18px; }
.step h3 { margin-bottom: 14px; }
.step p { color: var(--ink-dim); font-size: 15px; }

/* S5 · Los cinco agentes ----------------------------------- */

/* Cinco agentes: 5 columnas en ancho completo — evita la card huérfana
   que deja un auto-fit de 4+1. */
.agents { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1120px) { .agents { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .agents { grid-template-columns: 1fr; } }
.agent {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  transition: border-color .18s ease;
}
.agent:hover { border-color: var(--accent); }
.agent .label { margin-bottom: 14px; }
.agent p { color: var(--ink-dim); font-size: 15px; }

/* S6 · Transparencia --------------------------------------- */

.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rules li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (max-width: 640px) {
  .rules li { grid-template-columns: 1fr; gap: 10px; }
}
.rules .n { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 1px; padding-top: 6px; }
.rules h3 { margin-bottom: 8px; }
.rules p { color: var(--ink-dim); font-size: 15px; max-width: 62ch; }

/* S7 · Precios --------------------------------------------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.is-featured { border-color: var(--accent); }
.plan-badge {
  position: absolute;
  top: -11px;
  left: 28px;
  background: var(--accent);
  color: #04140d;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan .label { margin-bottom: 18px; }
.plan h3 { margin-bottom: 14px; }
.plan p { color: var(--ink-dim); font-size: 15px; }
.plan-list { list-style: none; margin: 22px 0 0; padding: 0; }
.plan-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  color: var(--ink-dim);
  flex-wrap: wrap;
}
.plan-list li:last-child { border-bottom: 0; }
.plan-list .plan-price { font-family: var(--mono); font-size: 13px; color: var(--accent); white-space: nowrap; }
.plan .actions { margin-top: auto; padding-top: 26px; }
.plans-note {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 14px;
  max-width: 72ch;
}

/* S10 · Puente OLA Empresario ------------------------------ */

.bridge { background: var(--bg-elev); }
.bridge .label { margin-bottom: 20px; }
.bridge h2 { max-width: 20ch; margin-bottom: 26px; }
.bridge p { color: var(--ink-dim); font-size: clamp(16px, 1.5vw, 18px); max-width: 68ch; margin-bottom: 30px; }

/* S11 · FAQ ------------------------------------------------ */

.faq { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 40px 26px 0;
  position: relative;
  color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}
.faq-item[open] > summary::after { content: "–"; }
.faq-item > summary:hover { color: var(--accent); }
.faq-answer { padding: 0 40px 28px 0; color: var(--ink-dim); font-size: 15.5px; max-width: 72ch; }

/* S12 · CTA final ------------------------------------------ */

.final { text-align: center; }
.final h2 { margin: 0 auto 22px; max-width: 18ch; }
.final p { color: var(--ink-dim); font-size: clamp(16px, 1.6vw, 20px); margin: 0 auto 34px; max-width: 46ch; }
.final .actions { justify-content: center; }

/* S13 · Footer --------------------------------------------- */

.foot { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 40px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr; gap: 36px; } }
.foot-logo { display: block; margin-bottom: 20px; }
.foot-logo img { height: 54px; width: auto; display: block; }
.foot-tag { color: var(--ink-dim); font-size: 15px; max-width: 42ch; margin-bottom: 22px; }
.foot-data { color: var(--ink-mute); font-size: 14px; line-height: 1.8; }
.foot-data a { color: var(--ink-dim); text-decoration: none; }
.foot-data a:hover { color: var(--accent); }
.foot h5 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.foot-col a {
  display: block;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14.5px;
  padding: 7px 0;
}
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: center;
}
.foot-bottom .label { letter-spacing: 1px; }
.foot-legal { font-size: 13px; color: var(--ink-mute); display: flex; gap: 10px; flex-wrap: wrap; }
.foot-legal a { color: var(--ink-mute); text-decoration: none; }
.foot-legal a:hover { color: var(--accent); }
