/* ============================================================
   Renvao — sistema visual compartido del sitio
   Usado por: index.html, como-funciona.html, casos-de-uso.html,
              nosotros.html, contacto.html, seguridad.html, 404.html
   ============================================================ */

:root {
  --bg: #0b0d11;
  --bg-alt: #11141a;
  --bg-card: #151821;
  --bg-card-hover: #1a1e29;
  --text: #f4f5f7;
  --text-dim: #b9c0cc;
  --text-dimmer: #838b9a;
  --line: #21252e;
  --line-soft: #333a48;
  --accent: #F5F0E3;
  --accent-soft: rgba(245, 240, 227, 0.12);
  --accent-glow: rgba(245, 240, 227, 0.13);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, 0.65);
  --shadow-btn: 0 12px 30px -10px rgba(245, 240, 227, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
}
body.is-loaded {
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 700px; margin: 0 auto; padding: 0 24px; }
.wrap-copy { max-width: 640px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; position: relative; }
section.tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h1, h2, h3 { font-weight: 650; letter-spacing: -0.01em; color: var(--text); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); margin-bottom: 18px; }
h3 { font-size: 1.04rem; margin-bottom: 8px; }
.lead {
  color: var(--text-dim);
  font-size: 1.04rem;
  max-width: 620px;
}
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 650;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #ffffff, var(--accent));
  color: #14171d;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn); }
.btn-secondary {
  border-color: var(--line-soft);
  color: var(--text-dim);
  background: transparent;
}
.btn-secondary:hover { border-color: var(--text-dim); color: var(--text); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.section-head.center .cta-row, .final-cta .cta-row { justify-content: center; }

/* ---------- Header / nav ---------- */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
header.site-header.is-scrolled {
  background: rgba(11, 13, 17, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--text); background: rgba(255,255,255,0.07); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta { display: inline-flex; }
.nav-login {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding: 8px 10px;
  transition: color 0.2s var(--ease);
}
.nav-login:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-dim);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-panel {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(11, 13, 17, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
  z-index: 99;
}
body.menu-open .mobile-panel { max-height: 420px; }
.mobile-panel .wrap { padding: 12px 24px 24px; display: flex; flex-direction: column; gap: 4px; }
.mobile-panel a {
  padding: 14px 4px;
  font-size: 1.02rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
}
.mobile-panel a.active { color: var(--accent); }
.mobile-panel .btn { margin-top: 14px; align-self: flex-start; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-right .desktop-only { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + 88px);
  padding-bottom: 96px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 640px;
  max-width: 140vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(245,240,227,0) 68%);
  pointer-events: none;
  z-index: 0;
  animation: pulse-glow 10s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.85; transform: translateX(-50%) scale(1.04); }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 20%, black 40%, transparent 100%);
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 30px;
  background: rgba(255,255,255,0.02);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  max-width: 820px;
  margin: 0 auto 22px;
  line-height: 1.18;
}
.hero h1 .accent-text {
  background: linear-gradient(135deg, var(--accent), #ffffff 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto 40px;
}
.hero .cta-row { justify-content: center; margin-bottom: 56px; }
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dimmer);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--line-soft), transparent);
  animation: scroll-cue-move 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-move { 0%,100% { transform: scaleY(1); opacity: 0.6; } 50% { transform: scaleY(0.6); opacity: 1; } }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Alt sections ---------- */
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Steps / timeline ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.step-card:hover { transform: translateY(-5px); border-color: var(--line-soft); background: var(--bg-card-hover); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.step-card p { font-size: 0.92rem; color: var(--text-dimmer); }

.timeline { margin-top: 56px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--line-soft), var(--line) 90%);
}
.timeline-item {
  position: relative;
  padding-left: 66px;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-num {
  position: absolute;
  left: 0; top: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}
.timeline-item h3 { font-size: 1.14rem; margin-bottom: 10px; }
.timeline-item p { color: var(--text-dim); max-width: 620px; font-size: 0.96rem; }
.timeline-item .example {
  margin-top: 14px;
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: rgba(255,255,255,0.02);
  border-radius: 0 10px 10px 0;
  font-size: 0.88rem;
  color: var(--text-dimmer);
  font-style: italic;
}

/* ---------- Cards (points / cases) ---------- */
.points-grid, .case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.point-card, .case-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.point-card:hover, .case-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-soft);
  box-shadow: var(--shadow-card);
}
.case-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.case-card p { font-size: 0.9rem; color: var(--text-dimmer); margin-bottom: 10px; }
.case-card .result {
  font-size: 0.84rem;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.case-card .result strong { color: var(--text); }

/* ---------- FAQ (native details/summary) ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 1rem;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 4px 24px;
  color: var(--text-dimmer);
  font-size: 0.94rem;
  max-width: 620px;
}

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta .wrap-copy { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-brand img { height: 38px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--text-dimmer); font-size: 0.86rem; max-width: 240px; }
.footer-col h4 {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: #545c6b;
}
.footer-bottom a { color: #545c6b; text-decoration: underline; }
.footer-bottom a:hover { color: var(--text-dimmer); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 72px 0; }
  .hero { padding-top: calc(var(--header-h) + 56px); padding-bottom: 64px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Page hero (páginas interiores) ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 56px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); max-width: 760px; margin: 0 auto 18px; line-height: 1.22; }
.page-hero .lead { margin: 0 auto; max-width: 560px; }

/* ---------- Nosotros: somos / no somos ---------- */
.dual-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.dual-list .col { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.dual-list h3 { margin-bottom: 18px; }
.dual-list li { display: flex; gap: 10px; padding: 8px 0; font-size: 0.92rem; color: var(--text-dim); align-items: flex-start; }
.dual-list .col.yes li::before { content: "\2713"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.dual-list .col.no li::before { content: "\2014"; color: var(--text-dimmer); font-weight: 700; flex-shrink: 0; }
@media (max-width: 640px) { .dual-list { grid-template-columns: 1fr; } }

.pull-quote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px;
  font-size: 1.18rem;
  color: var(--text);
  font-style: italic;
  max-width: 640px;
  margin: 8px 0 0;
}

/* ---------- Contacto ---------- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.contact-card .btn { margin-top: 6px; }
.contact-meta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--text-dimmer);
}
.expect-list { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.expect-list .point-card { text-align: left; }

/* ============================================================
   Extensión: movimiento premium, accesibilidad y utilidades
   ============================================================ */

/* Transiciones nativas entre páginas (progressive enhancement —
   sin efecto donde el navegador no lo soporte). */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Respeta si la persona ha pedido menos movimiento en el sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-glow, .flow-pulse, .scroll-cue .line { animation: none !important; }
}

/* Barra de progreso de lectura */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #ffffff);
  z-index: 200;
  pointer-events: none;
}

/* Botón flotante "volver arriba" */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  z-index: 90;
  box-shadow: var(--shadow-card);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { border-color: var(--text-dim); color: var(--text); }
.back-to-top svg { width: 18px; height: 18px; }

/* Entrada del hero, coreografiada por pasos (usa --i asignado por JS) */
.hero-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 0.7s var(--ease) forwards;
  animation-delay: calc(0.12s + var(--i, 0) * 0.1s);
}
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* Formulario (contacto) */
.form-grid { display: grid; gap: 18px; text-align: left; margin-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.82rem; color: var(--text-dim); font-weight: 600; }
.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #5a616f; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--text-dimmer); margin-top: 4px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Diagrama de flujo (Cómo funciona) */
.flow-diagram { margin: 8px 0 16px; }
.flow-track {
  position: relative;
  height: 2px;
  background: var(--line);
  margin: 0 6% 34px;
  overflow: hidden;
  border-radius: 2px;
}
.flow-pulse {
  position: absolute;
  top: 0; left: -20%;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  animation: flow-move 3.4s linear infinite;
}
@keyframes flow-move { to { left: 100%; } }
.flow-nodes { display: flex; justify-content: space-between; gap: 10px; }
.flow-node { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.flow-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.flow-icon svg { width: 22px; height: 22px; }
.flow-node.is-active .flow-icon { border-color: var(--accent); transform: scale(1.08); }
.flow-node h4 { font-size: 0.86rem; font-weight: 650; color: var(--text-dim); margin: 0; }
.flow-node p { font-size: 0.78rem; color: var(--text-dimmer); margin-top: -4px; }
@media (max-width: 640px) {
  .flow-track { display: none; }
  .flow-nodes { flex-direction: column; align-items: flex-start; gap: 22px; }
  .flow-node { flex-direction: row; text-align: left; }
}

/* Paso activo de la timeline mientras se hace scroll */
.timeline-num.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ============================================================
   Fusionado desde landing.html (vista previa, 2026-09-23): bucle de
   supervisión en el hero, comparación antes/después, bento grid de
   casos de uso, calculadora de tiempo estimado, y accesibilidad
   (skip-link, focus-visible).
   ============================================================ */

/* -------- Accesibilidad: saltar al contenido -------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 650;
  font-size: 0.85rem;
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.nav-links a:focus-visible,
.mobile-panel a:focus-visible,
.footer-col a:focus-visible,
.btn:focus-visible,
.calc-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* -------- Hero: tarjeta del bucle de supervisión -------- */
.hero-loop {
  position: relative;
  z-index: 1;
  margin: 44px auto 0;
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
.hero-loop-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-loop-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 92px;
}
.hero-loop-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.hero-loop-step:hover .hero-loop-icon {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.hero-loop-icon svg { width: 20px; height: 20px; color: var(--accent); }
.hero-loop-step span {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}
.hero-loop-arrow { color: var(--text-dimmer); flex-shrink: 0; }
.hero-loop-note {
  margin: 20px 0 0;
  font-size: 0.76rem;
  color: var(--text-dimmer);
  text-align: center;
}
@media (max-width: 680px) {
  .hero-loop-steps { flex-direction: column; }
  .hero-loop-arrow { transform: rotate(90deg); }
}

/* -------- Comparación antes / después -------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.compare-col {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.compare-col.is-after { border-color: var(--accent-soft); }
.compare-col h3 { font-size: 0.95rem; margin: 0 0 18px; color: var(--text-dim); }
.compare-col.is-after h3 { color: var(--accent); }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.compare-col li {
  font-size: 0.92rem;
  color: var(--text-dim);
  padding-left: 26px;
  position: relative;
  line-height: 1.5;
}
.compare-col.is-before li::before { content: "\2715"; position: absolute; left: 0; color: var(--text-dimmer); }
.compare-col.is-after li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 720px) { .compare-grid { grid-template-columns: 1fr; } }

/* -------- Bento grid: dónde encaja hoy -------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(170px, auto);
  gap: 18px;
}
.bento-grid .case-card.is-featured { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.bento-grid .case-card { grid-column: span 2; }
.bento-grid .case-card p.example {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
  font-size: 0.85rem;
  color: var(--text-dimmer);
  font-style: italic;
}
.bento-grid .case-card p.example strong { color: var(--text-dim); font-style: normal; }
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-grid .case-card.is-featured { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-grid .case-card, .bento-grid .case-card.is-featured { grid-column: span 1; }
}

/* -------- Calculadora de tiempo estimado -------- */
.calc-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 8px;
}
.calc-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.calc-pill {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--bg-alt);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.calc-pill:hover { border-color: var(--accent-soft); }
.calc-pill.is-active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.calc-row { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.calc-row label { font-size: 0.85rem; color: var(--text-dim); min-width: 210px; }
.calc-row input[type="range"] { flex: 1; min-width: 140px; accent-color: var(--accent); }
.calc-row output { font-weight: 700; color: var(--accent); min-width: 50px; text-align: right; }
.calc-result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.calc-result .num { font-size: 2.4rem; font-weight: 750; color: var(--accent); line-height: 1; }
.calc-result .label { font-size: 0.9rem; color: var(--text-dim); }
.calc-disclaimer { margin-top: 12px; font-size: 0.74rem; color: var(--text-dimmer); }

/* ============================================================
   Formulario de contacto — honeypot anti-spam (2026-09-23): campo
   oculto que solo un bot rellena. Ver src/web/views/contact.py.
   ============================================================ */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ============================================================
   Contenido legal (aviso-legal.html, privacidad.html) — 2026-09-23:
   antes eran páginas sueltas con su propio <style>; ahora comparten
   header/footer del sitio, esto solo da formato al texto en prosa.
   ============================================================ */
.legal-content h2 {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-top: 32px;
  margin-bottom: 10px;
}
.legal-content p { color: var(--text-dim); margin-bottom: 14px; font-size: 0.95rem; }
.legal-content ul { margin: 0 0 14px 20px; color: var(--text-dim); font-size: 0.95rem; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--text); text-decoration: underline; }
