/* ==========================================================
   Gonzalo Alcover · Consultor SEO — estilos base
   ========================================================== */

:root {
  --ink: #0F1B3D;        /* texto principal, azul tinta */
  --paper: #EEF1F7;      /* fondo de secciones alternas */
  --white: #FFFFFF;
  --cobalt: #2440F0;     /* color de marca */
  --cobalt-deep: #1A2FC0;
  --mark: #FFD84A;       /* subrayador: la posición 1 */
  --muted: #58627E;
  --line: #D5DAE6;
  --night: #0B1433;     /* fondo del hero, modo oscuro */
  --night-2: #131F4A;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Schibsted Grotesk", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--mark); color: var(--ink); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--text); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-small { min-height: 42px; padding: 0 20px; }
.btn-highlight { background: var(--mark); color: var(--ink); }
.btn-highlight:hover { background: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--cobalt); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--white);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  background: var(--white); color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .btn-light { background: var(--ink); color: var(--white); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: baseline; justify-content: center; padding-top: 1px;
  width: 38px; height: 38px; border-radius: 10px; line-height: 38px;
  background: #2440F0; color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 0.98rem; letter-spacing: -0.02em;
}
.brand-dot { display: inline-block; width: 5px; height: 5px; margin-left: 2px; border-radius: 50%; background: #FAD44F; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }

.nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; color: inherit; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 22px; height: 2px; background: currentColor; position: relative;
    transition: transform .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white); color: var(--ink);
    box-shadow: 0 12px 24px rgba(15,27,61,.12);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav > ul > li:last-child { margin-top: 16px; }
  .nav .btn-light { background: var(--ink); color: var(--white); width: 100%; }
}

/* ---------- Hero (oscuro, 2026) ---------- */
.hero {
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(36, 64, 240, .55), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(36, 64, 240, .25), transparent 70%),
    var(--night);
  color: var(--white);
  padding: calc(76px + clamp(40px, 7vw, 88px)) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: .95rem;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  margin-bottom: 26px;
}
.hero-kicker .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mark);
  box-shadow: 0 0 0 0 rgba(255,216,74,.6); animation: pulse 2.4s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,216,74,0); } 100% { box-shadow: 0 0 0 0 rgba(255,216,74,0); } }
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 800; line-height: 1; letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-lead { margin-top: 26px; font-size: 1.12rem; max-width: 48ch; color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-proof {
  list-style: none; margin: 40px 0 0; padding: 22px 0 0;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 10px 32px;
  font-size: .95rem; color: rgba(255,255,255,.7);
}
.hero-proof strong { color: var(--white); font-family: var(--display); font-weight: 700; margin-right: 4px; }

/* ---------- El buscador con respuesta de IA ---------- */
.serp {
  --row: 62px;
  background: var(--white); color: var(--ink);
  border-radius: 24px; padding: 20px;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 40px 80px -30px rgba(0, 6, 40, .8), 0 0 0 8px rgba(255,255,255,.06);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out;
  will-change: transform;
}
.serp-search {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px;
  transition: border-color .2s;
}
.serp-search:focus-within { border-color: var(--cobalt); }
.serp-icon { width: 20px; height: 20px; flex: none; color: var(--muted); }
.serp-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font: 500 1.02rem var(--text); color: var(--ink);
}
.serp-go {
  border: 0; border-radius: 999px; background: var(--cobalt); color: var(--white);
  font: 600 .95rem var(--text); padding: 10px 18px; cursor: pointer;
}
.serp-go:hover { background: var(--cobalt-deep); }

.serp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }

.ai-answer {
  background: linear-gradient(135deg, #EEF1FF, #F7F4E6);
  border: 1px solid #DCE1F7; border-radius: 16px;
  padding: 14px 16px; margin-bottom: 10px;
}
.ai-label {
  display: flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: var(--cobalt-deep); margin-bottom: 6px;
}
.ai-label svg { width: 15px; height: 15px; }
.ai-text { font-size: .95rem; line-height: 1.5; min-height: 3em; }
.ai-text .cite { white-space: nowrap; background: var(--mark); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.ai-text.is-typing::after {
  content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px;
  background: var(--cobalt); vertical-align: -2px; animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.ai-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 26px; }
.ai-sources span {
  font-size: .78rem; font-weight: 500; padding: 3px 10px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--muted);
  opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s;
}
.ai-sources span.is-in { opacity: 1; transform: none; }
.ai-sources span.is-you { background: var(--ink); color: var(--white); border-color: var(--ink); }
.serp-chips button {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 6px 12px; font: 500 .88rem var(--text); cursor: pointer;
}
.serp-chips button:hover { border-color: var(--cobalt); }

.serp-results {
  position: relative; list-style: none; margin: 0; padding: 0;
  height: calc(var(--row) * 4);
  overflow: hidden;
}
.serp-result {
  position: absolute; left: 0; right: 0; top: 0;
  height: var(--row);
  display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center;
  padding: 0 12px 0 6px; border-radius: 12px;
  transform: translateY(calc(var(--pos) * var(--row)));
  transition: transform .7s cubic-bezier(.2,.8,.2,1), background-color .4s, opacity .4s;
}
.serp-result[data-hidden="true"] { opacity: 0; }
.serp-pos {
  font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--muted);
  text-align: center;
}
.serp-body { min-width: 0; }
.serp-url { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp-title {
  font-weight: 600; font-size: 1rem; color: var(--cobalt-deep);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.serp-result.is-you { background: var(--mark); z-index: 2; }
.serp-result.is-you .serp-title { color: var(--ink); }
.serp-result.is-you .serp-pos, .serp-result.is-you .serp-url { color: var(--ink); }

.serp-status {
  margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: .92rem; color: var(--muted); min-height: 3em;
}
.serp-status strong { color: var(--ink); }

/* ---------- Secciones generales ---------- */
.section { padding: var(--section) 0; }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 60px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
.section-head p { color: var(--muted); max-width: 44ch; font-size: 1.1rem; }

/* Enfoque */
.statement-text {
  font-size: clamp(1.8rem, 3.8vw, 3.1rem); font-weight: 600; line-height: 1.12;
  max-width: 24ch;
}
.facts {
  list-style: none; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
}
.facts li { border-top: 3px solid var(--ink); padding-top: 18px; color: var(--muted); }
.facts strong { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--ink); margin-bottom: 6px; }

/* Servicios */
.services { background: var(--paper); }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
  gap: 20px 48px; align-items: baseline;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.service h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 700; }
.service h3 a { text-decoration: none; }
.service-icon { display: block; width: 44px; height: 44px; margin-bottom: 18px; color: var(--ink); }
.service-icon .acc { stroke: var(--cobalt); }
.service h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--cobalt); }
.service p { color: var(--muted); max-width: 52ch; }
.service-link {
  font-weight: 600; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid var(--cobalt); padding-bottom: 2px;
}
.service-link:hover { color: var(--cobalt); }

/* Proceso */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  counter-reset: none;
}
.step { position: relative; padding-top: 22px; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: -28px; height: 2px; background: var(--line);
}
.step:last-child::before { right: 0; }
.step-n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--cobalt); color: var(--white);
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  margin: -45px 0 22px; position: relative;
}
.step:last-child .step-n { background: var(--mark); color: var(--ink); }
.step h3 { font-size: 1.45rem; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* Sobre mí */
.about { background: var(--ink); color: var(--white); }
.about-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 100px); align-items: center;
}
.about-photo { margin: 0; }
.about-photo {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%;
  border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 40%, rgba(36, 64, 240, .9), transparent 72%),
    linear-gradient(180deg, var(--night-2), var(--night));
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: flex-end; justify-content: center;
}
.about-photo::before {
  content: ""; position: absolute; left: 50%; top: 12%; width: 54%; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%;
  border: 2px solid rgba(255, 216, 74, .55);
}
.about-photo img {
  position: relative; width: 72%; max-width: none; height: auto; flex: none;
  margin-bottom: -2px;
}
.about-copy h2 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; margin-bottom: 28px; }
.about-copy p { max-width: 52ch; opacity: .88; margin-bottom: 18px; font-size: 1.1rem; }
.about-copy .btn { margin-top: 14px; background: var(--mark); color: var(--ink); }
.about-copy .btn:hover { background: var(--white); }

/* Testimonios */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 20px; }
.quote blockquote p { font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500; line-height: 1.3; }
.quote figcaption { color: var(--muted); }
.quote figcaption strong { color: var(--ink); display: block; }

/* FAQ */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 80px; }
.faq h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.25rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.8rem; font-weight: 400; color: var(--cobalt); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 24px; max-width: 60ch; }

/* CTA final */
.cta { background: var(--cobalt); color: var(--white); padding: var(--section) 0; }
.cta-inner { text-align: left; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; max-width: 14ch; line-height: 1; }
.cta p { margin-top: 24px; font-size: 1.15rem; max-width: 46ch; opacity: .92; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 64px 0 28px; font-size: .95rem; }
.site-footer .brand-name { color: var(--white); margin-bottom: 6px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 13ch; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .step:nth-child(2)::before { right: 0; }
}

@media (max-width: 760px) {
  .section-head, .faq-grid, .about-grid, .quotes { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .service { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .serp { --row: 62px; padding: 14px; border-radius: 18px; }
  .hero-proof { gap: 8px 20px; }
  .serp-go { padding: 10px 14px; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step::before { right: 0; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-kicker .dot { animation: none; }
  .serp { transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================
   Páginas de servicio
   ========================================================== */
.page-hero {
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(36, 64, 240, .55), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(36, 64, 240, .25), transparent 70%),
    var(--night);
  color: var(--white);
  padding: calc(76px + clamp(36px, 6vw, 72px)) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.page-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(36px, 6vw, 80px); align-items: center;
}
.crumbs ol { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: rgba(255,255,255,.6); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.page-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.7rem); font-weight: 800; line-height: 1.02;
  letter-spacing: -0.03em; text-wrap: balance;
}
.page-hero .hero-lead { margin-top: 22px; }

.fact-card {
  background: var(--white); color: var(--ink); border-radius: 24px; padding: 28px;
  box-shadow: 0 40px 80px -30px rgba(0, 6, 40, .8), 0 0 0 8px rgba(255,255,255,.06);
}
.fact-card .service-icon { width: 56px; height: 56px; margin-bottom: 20px; }
.fact-card dl { margin: 0; display: grid; gap: 16px; }
.fact-card dl div { border-top: 1px solid var(--line); padding-top: 14px; }
.fact-card dt { font-size: .85rem; color: var(--muted); margin-bottom: 2px; }
.fact-card dd { margin: 0; font-weight: 600; }

/* Bento de "qué incluye" */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bento-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(22px, 3vw, 32px); min-width: 0;
}
.bento-item h3 { font-size: 1.35rem; margin-bottom: 10px; }
.bento-item p { color: var(--muted); }
.bento-item.is-wide { grid-column: span 2; }
.bento-item.is-feature { background: var(--ink); border-color: var(--ink); color: var(--white); }
.bento-item.is-feature p { color: rgba(255,255,255,.75); }
.bento-item.is-feature h3 { color: var(--mark); }

/* Bloque destacado (GEO, código vs WordPress) */
.highlight { background: var(--night); color: var(--white); }
.highlight .section-head p { color: rgba(255,255,255,.72); }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compare-col {
  border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: clamp(22px, 3vw, 34px);
  background: rgba(255,255,255,.04);
}
.compare-col h3 { font-size: 1.5rem; margin-bottom: 14px; }
.compare-col ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: rgba(255,255,255,.8); }
.compare-col li::marker { color: var(--mark); }

/* Para quién */
.audience { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.audience li { border-top: 3px solid var(--cobalt); padding-top: 18px; }
.audience h3 { font-size: 1.3rem; margin-bottom: 8px; }
.audience p { color: var(--muted); }

/* Otros servicios */
.more-services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.more-services a {
  display: block; height: 100%; text-decoration: none; padding: 24px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--white);
  transition: border-color .2s;
}
.more-services a:hover { border-color: var(--cobalt); }
.more-services .service-icon { width: 36px; height: 36px; margin-bottom: 14px; }
.more-services strong { display: block; font-family: var(--display); font-size: 1.25rem; margin-bottom: 6px; }
.more-services span { color: var(--muted); font-size: .95rem; }

.faq-grid .faq-intro { color: var(--muted); margin-top: 16px; max-width: 32ch; }

@media (max-width: 980px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .bento, .compare, .audience, .more-services { grid-template-columns: minmax(0, 1fr); }
  .bento-item.is-wide { grid-column: auto; }
  .audience { gap: 28px; }
}

/* ==========================================================
   Sobre mí, contacto, páginas legales y 404
   ========================================================== */
.page-hero .about-photo { max-width: 420px; justify-self: end; width: 100%; }
.page-hero.is-compact { padding-bottom: clamp(40px, 6vw, 64px); }
.page-hero.is-compact h1 { font-size: clamp(2rem, 4vw, 3rem); }

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.prose p, .prose ul { margin: 0 0 16px; color: #2E3857; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose a { color: var(--cobalt-deep); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; }
.legal-meta { color: var(--muted); font-size: .95rem; margin-bottom: 32px; }

.story-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 80px; }
.story-grid h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.story-grid .prose p { font-size: 1.1rem; }

.skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.skills li {
  padding: 10px 18px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--line); font-weight: 500;
}

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--text); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 14px; transition: border-color .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(36,64,240,.15); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cobalt); flex: none; }
.check a { color: var(--cobalt-deep); }
.form .btn { justify-self: start; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-status { font-weight: 600; }
.form-status.is-ok { color: #11723A; }
.form-status.is-error { color: #B42318; }

.contact-card { background: var(--ink); color: var(--white); border-radius: 24px; padding: 32px; }
.contact-card h2 { font-size: 1.6rem; margin-bottom: 20px; }
.contact-card dl { margin: 0; display: grid; gap: 18px; }
.contact-card dt { font-size: .85rem; color: rgba(255,255,255,.6); }
.contact-card dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-card a { color: var(--mark); }

.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound .big { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 16vw, 11rem); line-height: .9; color: var(--mark); }

@media (max-width: 980px) {
  .page-hero .about-photo { justify-self: start; max-width: 360px; }
  .contact-grid, .story-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #25D366; color: #06331A; text-decoration: none;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 12px 28px -8px rgba(6, 51, 26, .55);
  transition: transform .2s, bottom .3s;
}
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 600px) {
  .wa-float { padding: 0; width: 56px; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 70;
  left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100% - 32px));
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 20px; padding: 20px;
  box-shadow: 0 24px 60px -20px rgba(11, 20, 51, .5);
  display: grid; gap: 16px; font-size: .95rem;
}
.cookie-banner a { color: var(--cobalt-deep); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-reject { background: var(--paper); color: var(--ink); border-color: var(--line); }
.cookie-reject:hover { border-color: var(--ink); }
@media (max-width: 600px) {
  .has-cookie-banner .wa-float { bottom: calc(250px + env(safe-area-inset-bottom, 0px)); }
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-cookies {
  background: none; border: 0; padding: 0; color: rgba(255,255,255,.75);
  font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.footer-cookies:hover { color: var(--white); }

/* ---------- Ajustes de la auditoría ---------- */
/* La etiqueta forma parte del H1 (palabra clave) pero conserva su estilo de píldora */
.hero h1 .hero-kicker {
  font-family: var(--text); font-size: .95rem; font-weight: 500;
  line-height: 1.4; letter-spacing: normal; margin-bottom: 0;
}
.hero h1 .h1-main { display: block; margin-top: 26px; }

/* Zonas de pulsación de al menos 24 px en el móvil */
.site-footer li a, .crumbs a { display: inline-block; padding-block: 4px; }
.prose a, .contact-card a { padding-block: 2px; }

/* ---------- Submenú de servicios ---------- */
.has-sub { position: relative; }
.nav-sub-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  font: 500 1.0625rem var(--text); color: inherit;
}
.nav-sub-toggle .chev { width: 12px; height: 12px; transition: transform .2s; }
.submenu {
  position: absolute; top: 100%; left: 50%; z-index: 55;
  width: 400px; padding-top: 14px;           /* puente invisible para no perder el hover */
  transform: translate(-50%, 6px);
  opacity: 0; visibility: hidden;
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.submenu ul {
  list-style: none; margin: 0; padding: 10px;
  display: grid; gap: 2px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(11, 20, 51, .45);
}
.submenu a {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center;
  padding: 12px; border-radius: 12px; text-decoration: none;
}
.submenu a:hover, .submenu a:focus-visible, .submenu a[aria-current="page"] { background: var(--paper); }
.submenu .service-icon { width: 36px; height: 36px; margin: 0; }
.submenu strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.submenu small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.nav ul .submenu a:not(.btn):hover { text-decoration: none; }

@media (min-width: 861px) {
  .has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.is-open .submenu {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
    transition: opacity .18s, transform .18s, visibility 0s;
  }
  .has-sub:hover .chev, .has-sub.is-open .chev { transform: rotate(180deg); }
}

@media (max-width: 860px) {
  .nav-sub-toggle {
    width: 100%; justify-content: space-between; padding: 14px 0;
    border-bottom: 1px solid var(--line); font-size: 1.0625rem;
  }
  .submenu {
    position: static; width: auto; padding: 0; transform: none;
    opacity: 1; visibility: visible; display: none; transition: none;
  }
  .has-sub.is-open .submenu { display: block; }
  .has-sub.is-open .chev { transform: rotate(180deg); }
  .submenu ul { border: 0; box-shadow: none; padding: 6px 0; background: none; }
  .nav .submenu li a:not(.btn) { display: grid; border-bottom: 0; padding: 10px 8px; }
}

@media (prefers-reduced-motion: reduce) { .submenu, .nav-sub-toggle .chev { transition: none; } }
[hidden] { display: none !important; }

/* ---------- Sobre mí ---------- */
.about-hero .hero-proof { margin-top: 32px; }
.story-side { align-self: start; position: sticky; top: 110px; }
.pull-quote { margin: 28px 0 0; padding-left: 20px; border-left: 4px solid var(--mark); }
.pull-quote p {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.25; color: var(--ink);
}
.story-text p:first-child::first-letter {
  font-family: var(--display); font-weight: 800; float: left;
  font-size: 3.4em; line-height: .85; margin: 6px 10px 0 0; color: var(--cobalt);
}
.compare-col.is-me { background: var(--white); color: var(--ink); border-color: var(--white); }
.compare-col.is-me ul { color: #2E3857; }
.compare-col.is-me li::marker { color: var(--cobalt); }
.skill-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.skill-groups h3 { font-size: 1.25rem; margin-bottom: 16px; padding-top: 16px; border-top: 3px solid var(--ink); }
@media (max-width: 860px) {
  .skill-groups { grid-template-columns: minmax(0, 1fr); }
  .story-side { position: static; }
}
.prose ul.edu { list-style: none; padding: 0; margin: 8px 0 28px; gap: 0; border-top: 1px solid var(--line); }
.edu li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.edu strong { color: var(--ink); }
.edu span { color: var(--muted); }
.prose a.btn { color: var(--white); text-decoration: none; }
.prose a.btn:hover { background: var(--cobalt); }

/* ---------- Teléfono y WhatsApp en el bloque final ---------- */
.cta-phone { margin-top: 18px; font-size: .95rem; opacity: .85; }
.cta-phone a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Test de visibilidad (home) ---------- */
.tv-section { background: var(--night); color: var(--white); position: relative; overflow: hidden; overflow: clip; }
.tv-section::before {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(36,64,240,.45), transparent); pointer-events: none;
}
.tv-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.tv-kicker { display: inline-block; font-weight: 600; font-size: .9rem; color: var(--ink); background: var(--mark); padding: 4px 12px; border-radius: 999px; margin-bottom: 20px; }
.tv-intro h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; }
.tv-intro p:last-child { margin-top: 20px; color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 40ch; }
.tv-box { background: var(--white); color: var(--ink); border-radius: 24px; padding: clamp(22px, 3.5vw, 36px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); min-height: 340px; }
.tv-top { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.tv-count { font-size: .9rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tv-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.tv-bar span { display: block; height: 100%; width: 0; background: var(--cobalt); border-radius: inherit; transition: width .4s ease; }
.tv-box:not(.is-ready) .tv-top { display: none; }
.tv-card { animation: tv-in .35s ease both; }
@keyframes tv-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tv-q { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1.2; outline: none; }
.tv-help { margin-top: 12px; color: var(--muted); }
.tv-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.tv-opt {
  min-height: 56px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white);
  font: 600 1.05rem var(--text); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, transform .15s;
}
.tv-opt:hover { border-color: var(--cobalt); background: rgba(36,64,240,.06); }
.tv-opt:active { transform: scale(.97); }
.tv-opt[data-v="si"]:hover { border-color: #11723A; background: rgba(17,114,58,.07); }
.tv-back, .tv-restart { margin-top: 20px; background: none; border: 0; padding: 6px 0; font: 600 .95rem var(--text); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.tv-back:hover, .tv-restart:hover { color: var(--cobalt); }
.tv-result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 24px; align-items: center; }
.tv-score { position: relative; width: 112px; height: 112px; }
.tv-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tv-score circle { fill: none; stroke-width: 10; }
.tv-track { stroke: var(--paper); }
.tv-fill { stroke: var(--cobalt); stroke-linecap: round; stroke-dasharray: var(--p) 100; animation: tv-fill 1s ease both; }
@keyframes tv-fill { from { stroke-dasharray: 0 100; } }
.tv-score span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--muted); font-size: .85rem; }
.tv-score strong { display: block; font-family: var(--display); font-size: 2.1rem; line-height: 1; color: var(--ink); }
.tv-verdict h3 { font-size: 1.6rem; outline: none; }
.tv-verdict p { margin-top: 6px; color: var(--muted); }
.tv-fixes, .tv-actions, .tv-note { grid-column: 1 / -1; }
.tv-fixes-title { font-weight: 700; margin-bottom: 10px; }
.tv-fixes ol { margin: 0; padding: 0; list-style: none; counter-reset: fx; display: grid; gap: 12px; }
.tv-fixes li { counter-increment: fx; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 12px; }
.tv-fixes li::before { content: counter(fx); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--mark); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.tv-fixes li span { color: var(--muted); font-size: .95rem; }
.tv-fixes a { color: var(--cobalt-deep); font-weight: 600; white-space: nowrap; }
.tv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 6px; }
.tv-actions .tv-restart { margin-top: 0; }
.tv-wa { border: 1.5px solid var(--line); color: var(--ink); background: var(--white); }
.tv-wa:hover { border-color: #25D366; }
.tv-note { font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) { .tv-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .tv-options { grid-template-columns: minmax(0, 1fr); }
  .tv-result { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
@media (prefers-reduced-motion: reduce) { .tv-card, .tv-fill { animation: none; } .tv-bar span { transition: none; } }

/* ---------- Demos interactivas (páginas de servicio) ---------- */
.demo { background: var(--white); }
.demo-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.demo-chip {
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px;
  padding: 7px 14px; font: 500 .9rem var(--text); cursor: pointer; transition: border-color .2s, background .2s;
}
.demo-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.demo-toggles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.demo-toggle {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
  border: 1.5px solid var(--line); background: var(--white); border-radius: 16px; padding: 14px 16px;
  font: inherit; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s;
}
.demo-toggle:hover { border-color: var(--cobalt); }
.demo-toggle strong { display: block; font-size: 1rem; }
.demo-toggle small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.demo-toggle .sw { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--line); transition: background .25s; }
.demo-toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s; }
.demo-toggle[aria-checked="true"] { border-color: var(--cobalt); background: rgba(36,64,240,.05); }
.demo-toggle[aria-checked="true"] .sw { background: var(--cobalt); }
.demo-toggle[aria-checked="true"] .sw::after { transform: translateX(18px); }
.demo-preview { background: var(--paper); border-radius: 24px; padding: clamp(18px, 3vw, 28px); }
.demo-status { margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: var(--white); font-size: .98rem; }
.demo-status strong { color: var(--cobalt-deep); }
.demo-note { margin-top: 24px; font-size: .88rem; color: var(--muted); max-width: 70ch; }
.demo:not(.is-ready) .demo-grid, .demo:not(.is-ready) .rep { display: none; }

/* Mapa */
.lp-map {
  position: relative; height: 150px; border-radius: 16px; margin-bottom: 16px; overflow: hidden;
  background:
    linear-gradient(115deg, transparent 46%, rgba(255,255,255,.9) 46.5% 48.5%, transparent 49%),
    linear-gradient(20deg, transparent 60%, rgba(255,255,255,.85) 60.5% 62%, transparent 62.5%),
    radial-gradient(circle at 80% 85%, #BFE3F5 0 22%, transparent 22.5%),
    #DDE8D5;
}
.lp-pin {
  position: absolute; transform: translate(-50%, -100%); width: 28px; height: 28px; border-radius: 50% 50% 50% 0;
  rotate: -45deg; background: #D93025; color: var(--white); display: grid; place-items: center;
  font: 700 .8rem var(--text); transition: background .3s, scale .3s;
}
.lp-pin.is-you { background: var(--cobalt); scale: 1.25; }
.lp-head { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.lp-query { color: var(--ink); font-weight: 600; }
.lp-list { list-style: none; margin: 0; padding: 0; position: relative; }
.lp-item {
  position: absolute; left: 0; right: 0; height: 56px; display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: 12px; padding: 0 14px; transition: top .6s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.lp-item.is-out { opacity: .45; }
.lp-item.is-you { box-shadow: 0 0 0 2px var(--cobalt); }
.lp-item.is-you.is-out { opacity: .8; }
.lp-letter { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #D93025; color: var(--white); display: grid; place-items: center; font: 700 .78rem var(--text); }
.lp-item.is-you .lp-letter { background: var(--cobalt); }
.lp-item.is-out .lp-letter { background: var(--line); }
.lp-body { min-width: 0; line-height: 1.25; }
.lp-body strong { display: block; font-size: .98rem; }
.lp-meta { font-size: .82rem; color: var(--muted); }
.lp-stars { color: #E7A400; letter-spacing: 1px; }

/* IA */
.ai-demo-user { display: flex; justify-content: flex-end; }
.ai-demo-q { background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 18px 18px 4px 18px; font-size: .98rem; max-width: 85%; }
.ai-demo-bot { margin-top: 14px; background: var(--white); border-radius: 18px 18px 18px 4px; padding: 16px 18px; }
.ai-demo-answer { line-height: 1.55; min-height: 4.6em; transition: opacity .25s; opacity: 0; }
.ai-demo-answer.is-in { opacity: 1; }
.ai-demo-answer mark { background: var(--mark); color: var(--ink); padding: 0 4px; border-radius: 4px; font-weight: 700; }
.ai-demo-src-label { margin-top: 14px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ai-demo-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ai-demo-sources span { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.ai-demo-sources span.is-you { background: rgba(36,64,240,.1); color: var(--cobalt-deep); font-weight: 600; }

/* Informe de auditoría */
.rep { background: var(--paper); border-radius: 24px; padding: clamp(18px, 3vw, 32px); }
.rep-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 18px; }
.rep-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.rep-tab { border: 1.5px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 600 .92rem var(--text); cursor: pointer; }
.rep-tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.rep-count { font-size: .9rem; color: var(--muted); }
.rep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rep-item { animation: tv-in .35s ease both; animation-delay: var(--d); }
.rep-item details { background: var(--white); border-radius: 14px; }
.rep-item summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.rep-item summary::-webkit-details-marker { display: none; }
.rep-item summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--cobalt); transition: transform .2s; }
.rep-item details[open] summary::after { transform: rotate(45deg); }
.rep-title { font-weight: 600; }
.rep-item p { padding: 0 16px 16px; color: var(--muted); }
.rep-badge { flex: none; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.rep-badge.is-crit { background: #FDE2E0; color: #B42318; }
.rep-badge.is-quick { background: var(--mark); color: var(--ink); }
.rep-badge.is-high { background: rgba(36,64,240,.12); color: var(--cobalt-deep); }
.rep-badge.is-mid { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
@media (max-width: 860px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .rep-item summary { flex-wrap: wrap; gap: 8px; }
  .rep-item summary::after { position: absolute; right: 16px; }
  .rep-item details { position: relative; }
  .rep-title { padding-right: 24px; }
}
@media (prefers-reduced-motion: reduce) { .lp-item, .lp-pin, .ai-demo-answer { transition: none; } .rep-item { animation: none; } }

/* ---------- Animaciones y microinteracciones ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--rv-d, 0ms); }
.rv.is-in { opacity: 1; transform: none; }
.step.rv .step-n { transform: scale(.4); transition: transform .5s cubic-bezier(.3,1.6,.5,1) calc(var(--rv-d, 0ms) + 150ms); }
.step.rv.is-in .step-n { transform: none; }
.btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(15,27,61,.5); }
.btn:active { transform: translateY(0); }
.service { transition: background-color .3s ease; }
.service:hover .service-icon { transform: translateY(-3px) rotate(-4deg); }
.service-icon { transition: transform .3s ease; }
.service-link::after { content: " →"; display: inline-block; transition: transform .2s ease; }
.service-link:hover::after { transform: translateX(4px); }
.bento-item, .more-services a { transition: transform .25s ease, box-shadow .25s ease, border-color .2s; }
.bento-item:hover, .more-services a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(15,27,61,.45); }
.faq-list summary { transition: color .2s; }
.faq-list summary:hover { color: var(--cobalt); }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .btn:hover, .bento-item:hover, .more-services a:hover, .service:hover .service-icon { transform: none; }
}

/* Buscador de la home: reservar el alto final para que la animación no mueva la página (CLS) */
.ai-text { min-height: 4.5em; }
@media (max-width: 760px) {
  .ai-text { min-height: 7.6em; }
  .ai-sources { min-height: 62px; }
  .serp-status { min-height: 4.2em; }
}

/* ---------- Ilustraciones isométricas (img/iso/*.svg, animadas dentro del propio SVG) ---------- */
.hero-side { position: relative; display: grid; justify-items: center; }
.hero-illus { width: min(100%, 380px); height: auto; margin-bottom: -34px; position: relative; z-index: 1; filter: drop-shadow(0 24px 30px rgba(0, 6, 40, .45)); }
.hero-side .fact-card { width: 100%; padding-top: 48px; }
.hero-illus-solo { margin: 0 auto; width: min(100%, 360px); }
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.statement-illus { width: 100%; max-width: 400px; height: auto; justify-self: end; }
.side-illus { width: 100%; max-width: 300px; height: auto; margin-bottom: 28px; }
@media (max-width: 980px) {
  .hero-illus { width: min(100%, 300px); }
  .statement-grid { grid-template-columns: minmax(0, 1fr); }
  .statement-illus { justify-self: center; max-width: 320px; }
}
@media (max-width: 600px) { .contact-hero-grid .hero-illus-solo { width: 240px; } }
