/* ============================================================
   SEO — HOJA DE ESTILOS (color + métricas + paquetes + iconos)
============================================================ */

/* ===== TOKENS ===== */
:root{
  --bg:#ffffff;
  --ink:#1a1a1a;
  --ink-dim:#5c5c6a;

  --violet-800:#4c1d95;
  --violet-700:#5b2cff;
  --violet-600:#7c4dff;
  --violet-400:#a58bff;
  --fuchsia-500:#d946ef;
  --blue-500:#3b82f6;
  --green-500:#22c55e;
  --amber-500:#f59e0b;

  --accent-800:var(--violet-800);
  --accent-700:var(--violet-700);
  --accent-600:var(--violet-600);
  --accent-400:var(--violet-400);

  --surface:#fff;
  --surface-muted:#f7f8fb;
  --radius-xl:22px;
  --radius-lg:18px;

  --shadow-soft:0 14px 35px rgba(20,20,41,.12);
  --shadow-smooth:0 10px 24px rgba(20,20,41,.10);

  --maxw:1120px;
}

/* ===== BASE ===== */
*{ box-sizing:border-box; }
html,body{
  margin:0; padding:0;
  background:var(--bg);
  color:var(--ink);
  font-family:ui-sans-serif,system-ui,Segoe UI,Roboto,Inter,Arial;
  line-height:1.55;
}
section{ padding: clamp(56px, 8vw, 96px) 0; }

.seo-wrap{ max-width:var(--maxw); margin-inline:auto; padding-inline:16px; }

.u-center{ text-align:center; }
.u-muted{ color:var(--ink-dim); }
.u-pill{ display:inline-block; padding:.35rem .7rem; border-radius:999px; font-weight:700; }
.u-pill--violet{ background:rgba(124,77,255,.12); color:#4b2bb4; border:1px solid rgba(124,77,255,.3); }
.u-pill--green{ background:rgba(34,197,94,.12); color:#1f8c43; border:1px solid rgba(34,197,94,.3); }
.u-pill--blue{  background:rgba(59,130,246,.12); color:#2253a8; border:1px solid rgba(59,130,246,.3); }

h2{
  font-size:clamp(1.7rem,4.2vw,2.5rem);
  line-height:1.1; margin:0 0 1rem;
  color:var(--accent-800);
  position:relative; display:inline-block; padding-bottom:.35rem;
}
h2::after{
  content:""; position:absolute; left:0; right:0; bottom:0;
  height:6px; border-radius:6px;
  background:linear-gradient(90deg, var(--accent-700), var(--fuchsia-500), var(--blue-500));
  opacity:.35;
}
h3{ font-size:1.15rem; margin:.2rem 0 .5rem; color:#222; }
.seo-lead{ font-size:1.06rem; color:var(--ink-dim); max-width:70ch; }

/* ===== HERO ===== */
.seo-hero{
  position:relative; overflow:hidden; color:#0d1020;
  background:
    radial-gradient(1400px 500px at 80% 0%, rgba(124,77,255,.18), transparent 10%),
    linear-gradient(90deg, #eef2ff 0%, #ffffff 100%);
  padding: clamp(72px, 10vw, 120px) 0;
}
.seo-hero__bg{ position:absolute; inset:0; z-index:-1; pointer-events:none; }
.sh-glow{ position:absolute; filter:blur(60px); opacity:.33; }
.sh-g1{ width:700px; height:700px; left:-120px; top:-160px; background:radial-gradient(closest-side, #7c4dff40, transparent); }
.sh-g2{ width:560px; height:560px; right:8%; top:10%; background:radial-gradient(closest-side, #3b82f640, transparent); }
.sh-g3{ width:520px; height:520px; right:-120px; bottom:-160px; background:radial-gradient(closest-side, #22c55e40, transparent); }

.seo-hero__inner{ padding: 0 16px; }
.sh-kicker{ letter-spacing:.12em; text-transform:uppercase; opacity:.85; margin:0 0 .5rem; }
.sh-title{ font-size: clamp(2rem, 5.5vw, 3.2rem); margin:.2rem 0 .5rem; }
.sh-sub{ max-width:66ch; opacity:.95; margin:0 0 1rem; }
.sh-bullets{ list-style:none; padding:0; margin:0 0 1.2rem; display:flex; flex-wrap:wrap; gap:.55rem 1rem; }
.sh-bullets li{ display:flex; align-items:flex-start; gap:.55rem; }

/* ===== BOTONES ===== */
.sh-ctas{ display:flex; gap:.75rem; flex-wrap:wrap; }
.sh-btn{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.9rem 1.1rem; border-radius:999px; font-weight:800; text-decoration:none;
  transition: transform .16s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.sh-primary{ background:linear-gradient(135deg, var(--accent-700), var(--accent-600)); color:#fff; box-shadow:var(--shadow-soft); }
.sh-primary:hover{ transform:translateY(-2px); }
.sh-ghost{ background:transparent; color:#222; border:1.5px solid rgba(0,0,0,.15); }
.sh-ghost:hover{ background:rgba(0,0,0,.05); transform:translateY(-1px); }

.btn{
  display:inline-block; padding:.8rem 1rem; border-radius:999px; font-weight:750; text-decoration:none;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary{ background:var(--accent-700); color:#fff; box-shadow:var(--shadow-soft); }
.btn--primary:hover{ transform:translateY(-2px); }
.btn--ghost{ background:transparent; color:var(--accent-700);
  border:1.5px solid color-mix(in oklab, var(--accent-700) 55%, #fff 45%);
}

/* ===== MÉTRICAS ===== */
.seo-metrics{ background:var(--surface-muted); }
.sm-cards{ list-style:none; margin:0; padding:0; display:grid; gap:16px; grid-template-columns:repeat(1, minmax(0,1fr)); }
@media (min-width:780px){ .sm-cards{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
.sm-card{ background:var(--surface); border:1px solid #ececf3; border-radius:var(--radius-lg); padding:18px; box-shadow:var(--shadow-smooth); }
.sm-kpi{ font-size:1rem; color:var(--ink-dim); margin:0; }
.sm-val{ font-size:2rem; font-weight:900; color:#1b1740; margin:.15rem 0 .35rem; }
.sm-trend{ display:inline-block; font-weight:800; padding:.2rem .5rem; border-radius:999px; }
.sm-trend--up{ background:rgba(34,197,94,.12); color:#1f8c43; border:1px solid rgba(34,197,94,.3); }
.sm-trend--down{ background:rgba(245,158,11,.12); color:#b36d00; border:1px solid rgba(245,158,11,.35); }

/* ===== GRID + CARDS ===== */
.se-grid{ display:grid; gap:22px; }
.se-grid--3{ grid-template-columns:repeat(1,minmax(0,1fr)); }
@media (min-width:780px){ .se-grid--3{ grid-template-columns:repeat(3,minmax(0,1fr)); } }

.se-card{
  background:#fff; border:1px solid #ececf3; border-radius:var(--radius-lg);
  padding:20px; box-shadow:var(--shadow-smooth); transition:transform .18s ease;
  border-image:linear-gradient(180deg, rgba(124,77,255,.35), rgba(124,77,255,0)) 1;
}
.se-card:hover{ transform:translateY(-3px); }

.se-mini{ list-style:none; margin:.6rem 0 0; padding:0; display:grid; gap:.5rem; color:var(--ink-dim); font-size:.98rem; }
.se-mini li{ display:flex; gap:.55rem; align-items:flex-start; }
.se-ico{ width:22px; height:22px; display:inline-block; flex:0 0 auto; }

.se-badge{
  display:inline-block; padding:.3rem .55rem; border-radius:999px; font-weight:800; font-size:.78rem;
  background:rgba(124,77,255,.1); color:var(--accent-700); border:1px solid rgba(124,77,255,.25);
}

/* ===== AUDITORÍA DESTACADA ===== */
.audit{ background: linear-gradient(180deg, #fafaff, #ffffff); border-top:1px solid #f0eff6; border-bottom:1px solid #f0eff6; }
.audit-grid{ display:grid; gap:22px; grid-template-columns:1fr; }
@media (min-width:980px){ .audit-grid{ grid-template-columns:1.1fr 1fr; } }
.audit-card{ background:#fff; border:1px solid #ececf3; border-radius:var(--radius-xl); padding:22px; box-shadow:var(--shadow-soft); }
.audit-list{ list-style:none; padding:0; margin:0; display:grid; gap:.6rem; color:var(--ink-dim); }
.audit-list li{ display:flex; gap:.55rem; }

/* ===== PLANES ===== */
.seo-plans{ display:grid; gap:22px; }
@media (min-width:980px){ .seo-plans{ grid-template-columns:1.1fr 1.2fr 1.1fr; } }
.seo-plan{
  position:relative; background:#fff; border:1px solid #ececf3; border-radius:var(--radius-lg);
  padding:22px; box-shadow:var(--shadow-smooth);
  border-image:linear-gradient(180deg, rgba(124,77,255,.35), rgba(124,77,255,0)) 1;
}
.seo-plan--popular{ border:2px solid color-mix(in oklab, var(--accent-700) 55%, #fff 45%); box-shadow:0 18px 45px rgba(91,44,255,.22); }
.seo-tag{ position:absolute; top:-12px; left:16px; background:linear-gradient(135deg, var(--amber-500), var(--fuchsia-500)); color:#fff; font-weight:800; font-size:.8rem; padding:.35rem .6rem; border-radius:10px; box-shadow:var(--shadow-smooth); }
.seo-price{ font-size:1.8rem; font-weight:900; margin:.2rem 0 .6rem; color:var(--accent-800); }
.seo-cta-row{ display:flex; gap:.6rem; flex-wrap:wrap; margin-top:.9rem; }

/* ===== CTA OSCURO ===== */
.seo-cta{ background:radial-gradient(900px 480px at 85% 10%, rgba(124,77,255,.18), transparent 60%); color:#fff; }
.seo-cta .seo-wrap{
  background:#0c0c14; border:1px solid rgba(255,255,255,.08); border-radius:22px; padding:32px;
  box-shadow:0 16px 42px rgba(10,10,20,.4);
}
.seo-cta h2{ color:#fff; }
.seo-cta p{ color:#e9e9f4; }
.seo-cta .btn--ghost{ border:1.5px solid rgba(255,255,255,.6); color:#fff; }

/* ===== ANIMACIÓN SCROLL-REVEAL ===== */
[data-anim]{ opacity:0; transform:translateY(12px); transition:opacity .5s ease, transform .5s ease; }
[data-anim].is-in{ opacity:1; transform:none; }

/* ===== ICONO CHECK (animación por trazo) ===== */
/* Estructura esperada:
  <svg class="icon-check ...">
    <circle class="tick-circle" ... pathLength="100"/>
    <path   class="tick-mark"  ... pathLength="100"/>
  </svg>
*/
.icon-check .tick-circle,
.icon-check .tick-mark{
  stroke: currentColor;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;

  /* “línea por dibujar” */
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.icon-check .tick-circle{ opacity:.30; }

/* Activa al entrar en viewport (cuando el contenedor o el propio SVG tiene .is-in) */
.is-in .icon-check .tick-circle,
.icon-check.is-in .tick-circle{
  animation: tick-draw 900ms ease forwards;
}
.is-in .icon-check .tick-mark,
.icon-check.is-in .tick-mark{
  animation: tick-draw 700ms ease 200ms forwards, tick-pop 240ms ease 700ms forwards;
}

@keyframes tick-draw{ to{ stroke-dashoffset:0; } }
@keyframes tick-pop{ 0%{ transform:scale(.9); } 100%{ transform:scale(1); } }

/* Accesibilidad: sin animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce){
  .icon-check .tick-circle, .icon-check .tick-mark{
    animation:none !important;
    stroke-dasharray:0;
    stroke-dashoffset:0;
  }
}

/* ===== RESPONSIVE EXTRA ===== */
@media (max-width:520px){
  .sh-ctas{ gap:.6rem; }
  .sh-btn{ padding:.8rem 1rem; }
  .seo-cta .seo-wrap{ padding:24px; }
}
@media (min-width:600px) and (max-width:979px){
  section{ padding: clamp(64px, 10vw, 100px) 0; }
  .seo-lead{ font-size:1.05rem; }
}
@media (min-width:1280px){
  .seo-wrap{ max-width:1280px; }
}
