/* ===================================================================
   Grupo WAB Sistemas — style.css
   Sistema de diseño: fondo oscuro + cobre + petróleo, tipografía
   Archivo/Inter/IBM Plex Mono, secciones alternadas con bordes
   redondeados superpuestos, componentes accesibles (header, acordeón,
   selección múltiple, formulario validado).
   =================================================================== */

:root {
  /* ---------- Fondos ---------- */
  --bg-void: #0A0C11;
  --bg-ink: #10131A;
  --bg-surface: #171B24;
  --bg-elevated: #1E2330;
  --bg-canvas: #F6F4EF;
  --bg-canvas-alt: #EDE9E1;
  --bg-white: #FFFFFF;

  /* ---------- Texto ---------- */
  --ink-primary: #14171D;
  --ink-muted: #5B6478;
  --bone-primary: #F3F1EC;
  --bone-muted: #97A2B5;
  --bone-faint: rgba(243, 241, 236, 0.55);

  /* ---------- Acento cobre (marca) ---------- */
  --copper-300: #EAAE73;
  --copper-400: #DD9552;
  --copper-500: #C97A3D;
  --copper-600: #A85F2B;
  --copper-700: #8A4C22;
  --copper-glow: rgba(201, 122, 61, 0.45);
  --copper-glow-soft: rgba(201, 122, 61, 0.18);

  /* ---------- Superficie petróleo ---------- */
  --petrol-700: #0F3244;
  --petrol-600: #163F53;
  --petrol-500: #1C4C63;
  --petrol-glow-soft: rgba(28, 76, 99, 0.22);

  /* ---------- Líneas ---------- */
  --line-onlight: rgba(20, 23, 29, 0.09);
  --line-onlight-strong: rgba(20, 23, 29, 0.14);
  --line-ondark: rgba(243, 241, 236, 0.10);
  --line-ondark-strong: rgba(243, 241, 236, 0.18);

  /* ---------- Tipografía ---------- */
  --font-heading: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* ---------- Layout ---------- */
  --container-width: 1160px;
  --header-h: 72px;

  /* ---------- Radios ---------- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-section: 30px;
  --r-section-mobile: 22px;
  --r-pill: 999px;

  /* ---------- Sombras ---------- */
  --shadow-1: 0 1px 2px rgba(10, 12, 17, 0.05), 0 2px 8px rgba(10, 12, 17, 0.06);
  --shadow-2: 0 6px 16px rgba(10, 12, 17, 0.08), 0 16px 32px rgba(10, 12, 17, 0.08);
  --shadow-3: 0 10px 24px rgba(10, 12, 17, 0.12), 0 24px 48px rgba(10, 12, 17, 0.14);
  --shadow-glow-copper: 0 8px 22px var(--copper-glow);
  --shadow-dark-card: 0 6px 18px rgba(0, 0, 0, 0.24), 0 2px 6px rgba(0, 0, 0, 0.18);

  /* ---------- Movimiento ---------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-base: 200ms var(--ease);
  --transition-slow: 320ms var(--ease);
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }

body {
  font-family: var(--font-body);
  color: var(--ink-primary);
  background: var(--bg-void);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-heading); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--copper-600);
  color: var(--bg-white);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: var(--r-sm); }

#hero, #que-hacemos, #como-trabajamos, #casos, #soluciones, #preguntas, #contacto {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

:focus-visible {
  outline: 2.5px solid var(--copper-400);
  outline-offset: 2px;
}

/* ===================== SCROLL REVEAL ===================== */
/* Hidden only once .js is present on <html> (set by an inline script in
   <head>) and JS has had the chance to reveal elements on scroll/load.
   If JavaScript never runs, .reveal elements simply keep their default
   visible state — content is never permanently stuck at opacity:0. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.improve-grid > .reveal:nth-child(1) { transition-delay: 0ms; }
.improve-grid > .reveal:nth-child(2) { transition-delay: 50ms; }
.improve-grid > .reveal:nth-child(3) { transition-delay: 100ms; }
.improve-grid > .reveal:nth-child(4) { transition-delay: 50ms; }
.improve-grid > .reveal:nth-child(5) { transition-delay: 100ms; }
.improve-grid > .reveal:nth-child(6) { transition-delay: 150ms; }

.steps-list > .reveal:nth-child(1) { transition-delay: 0ms; }
.steps-list > .reveal:nth-child(2) { transition-delay: 70ms; }
.steps-list > .reveal:nth-child(3) { transition-delay: 140ms; }
.steps-list > .reveal:nth-child(4) { transition-delay: 210ms; }

.solutions-grid > .reveal:nth-child(2) { transition-delay: 70ms; }
.solutions-grid > .reveal:nth-child(3) { transition-delay: 140ms; }

.cases-list > .reveal:nth-child(2) { transition-delay: 80ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 12, 17, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-ondark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.header-logo { display: flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.header-logo-img { height: 40px; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: auto;
  margin-left: 40px;
}

.header-nav a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--bone-primary);
  opacity: 0.82;
  padding: 4px 0;
  transition: opacity var(--transition-base);
}
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--copper-400);
  transition: width var(--transition-base);
}
.header-nav a:hover { opacity: 1; }
.header-nav a:hover::after { width: 100%; }
.header-nav a.is-active { opacity: 1; }
.header-nav a.is-active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.header-cta { padding: 12px 22px; font-size: 0.94rem; height: 44px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1.5px solid var(--line-ondark-strong);
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.menu-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bone-primary);
  border-radius: var(--r-pill);
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  border-top: 1px solid var(--line-ondark);
  background: var(--bg-ink);
  padding: 20px 24px 28px;
}
.mobile-panel[hidden] { display: none; }

.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  padding: 14px 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--bone-primary);
  border-bottom: 1px solid var(--line-ondark);
}
.mobile-nav a:last-child { border-bottom: none; }

.mobile-cta { width: 100%; margin-top: 16px; }

@media (min-width: 861px) {
  .mobile-panel { display: none !important; }
}

@media (max-width: 860px) {
  .header-nav { display: none; }
  .menu-toggle { display: flex; }
}

/* ===================== BOTONES ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 11px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background var(--transition-base), border-color var(--transition-base),
    transform var(--transition-base), box-shadow var(--transition-base), color var(--transition-base);
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--copper-600);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(168, 95, 43, 0.3);
}
.btn-primary:hover { background: var(--copper-700); box-shadow: 0 6px 18px rgba(168, 95, 43, 0.4); }

.btn-outline {
  background: transparent;
  color: var(--bone-primary);
  border-color: var(--line-ondark-strong);
}
.btn-outline:hover { border-color: var(--copper-400); color: var(--copper-300); }

.btn-large { min-height: 52px; padding: 14px 30px; font-size: 1.04rem; }

@media (max-width: 360px) {
  .btn-large { min-height: 50px; padding: 13px 22px; font-size: 0.98rem; }
}

@media (max-width: 399px) {
  .header-cta { display: none; }
}

/* ===================== TÍTULOS DE SECCIÓN ===================== */
.section { position: relative; }

.section-header { max-width: 640px; margin: 0 auto; text-align: center; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--copper-400);
}

.section-title {
  font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink-primary);
}
.section-title::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  border-radius: var(--r-pill);
  margin: 0 auto 18px;
  background: linear-gradient(90deg, var(--copper-400), var(--copper-600));
}
.section-title-light { color: var(--bone-primary); }

.section-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 60ch;
  margin: 14px auto 0;
}
.section-lead-light { color: var(--bone-faint); }

/* ===================== SECTION RHYTHM ===================== */
.section-light,
.section-dark { padding: clamp(56px, 8vw, 96px) 0; }

.section-light { background: var(--bg-canvas); }
.section-dark { background: var(--bg-ink); position: relative; overflow: hidden; isolation: isolate; }
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 640px 460px at 50% 20%, rgba(201, 122, 61, 0.1), transparent 65%);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: var(--bg-void);
  padding-top: clamp(28px, 5vw, 52px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 760px 480px at 8% -10%, var(--copper-glow-soft), transparent 60%),
    radial-gradient(ellipse 680px 480px at 100% 4%, var(--petrol-glow-soft), transparent 58%),
    var(--bg-void);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image:
    linear-gradient(var(--line-ondark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-ondark) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, black 40%, transparent 85%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 40px;
  padding-top: clamp(36px, 6vw, 56px);
  padding-bottom: clamp(48px, 7vw, 72px);
}

.hero-content { max-width: 560px; }

.hero-title {
  margin-top: 14px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  color: var(--bone-primary);
  opacity: 0;
  animation: hero-rise 640ms var(--ease) 60ms forwards;
}

.hero-lead {
  margin-top: 20px;
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  line-height: 1.6;
  color: var(--bone-primary);
  opacity: 0;
  animation: hero-rise 640ms var(--ease) 160ms forwards;
}

.hero-sub {
  margin-top: 12px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--bone-faint);
  max-width: 50ch;
  opacity: 0;
  animation: hero-rise 640ms var(--ease) 240ms forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  opacity: 0;
  animation: hero-rise 640ms var(--ease) 320ms forwards;
}
.hero-ctas .btn { flex: 0 0 auto; }

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; white-space: normal; }
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--bone-faint);
  opacity: 0;
  animation: hero-rise 640ms var(--ease) 380ms forwards;
}
.hero-note svg { width: 18px; height: 18px; color: var(--copper-400); flex-shrink: 0; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero-lead, .hero-sub, .hero-ctas, .hero-note { animation: none; opacity: 1; }
}

/* ---- Composición abstracta de interfaz (CSS puro, decorativa) ---- */
.hero-visual { display: flex; justify-content: center; }

.mock-window {
  width: 100%;
  max-width: 380px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-surface));
  border: 1px solid var(--line-ondark-strong);
  box-shadow: var(--shadow-dark-card);
}

.mock-chrome {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-ondark);
}
.mock-chrome span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-ondark-strong); flex-shrink: 0; }
.mock-chrome span:first-child { background: var(--copper-500); }

.mock-body { padding: 22px; display: flex; flex-direction: column; gap: 22px; }

.mock-row { display: flex; align-items: center; gap: 12px; }
.mock-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper-400), var(--petrol-500));
  flex-shrink: 0;
}
.mock-lines { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mock-line { display: block; height: 8px; border-radius: var(--r-pill); background: var(--line-ondark-strong); }
.mock-line-lg { width: 70%; }
.mock-line-sm { width: 40%; }

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 72px;
}
.mock-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--copper-400), var(--petrol-500));
  opacity: 0.85;
}

.mock-pills { display: flex; gap: 10px; }
.mock-pill { flex: 1; height: 14px; border-radius: var(--r-pill); background: var(--line-ondark-strong); }
.mock-pill-accent { background: var(--copper-500); flex: 0 0 30%; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-content { max-width: none; }
  .hero-visual { display: none; }
}

/* ===================== FRANJA DE CONFIANZA ===================== */
.trust-strip {
  position: relative;
  background: linear-gradient(120deg, var(--petrol-700), var(--petrol-500));
  border-top: 1px solid var(--line-ondark);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 22px 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bone-primary);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 28px;
  position: relative;
}
.trust-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: var(--line-ondark-strong);
}

.trust-icon { width: 21px; height: 21px; color: var(--copper-300); flex-shrink: 0; }

@media (max-width: 640px) {
  .trust-inner { flex-direction: column; align-items: center; gap: 12px; padding: 20px 24px; }
  .trust-item { padding: 0; }
  .trust-item:not(:last-child)::after { display: none; }
}

/* ===================== QUÉ PODEMOS MEJORAR JUNTOS ===================== */
.improve-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.improve-card {
  background: var(--bg-white);
  border: 1px solid var(--line-onlight);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 28px 26px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.improve-card:nth-child(even) { background: var(--bg-canvas-alt); }
.improve-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-onlight-strong);
}

.improve-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.improve-icon svg { width: 23px; height: 23px; }

.improve-icon-copper { background: rgba(168, 95, 43, 0.1); color: var(--copper-600); }
.improve-icon-petrol { background: rgba(28, 76, 99, 0.1); color: var(--petrol-500); }

.improve-title {
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.005em;
  color: var(--ink-primary);
  line-height: 1.3;
}

.improve-text {
  margin-top: 9px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .improve-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .improve-grid { grid-template-columns: 1fr; }
}

/* ===================== CÓMO TRABAJAMOS ===================== */
.steps-list {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.step-item {
  position: relative;
  padding-top: 22px;
  border-top: 2px solid var(--petrol-500);
}
.step-item:nth-child(even) { border-top-color: var(--copper-500); }

@media (max-width: 1100px) {
  .steps-list { grid-template-columns: repeat(3, 1fr); gap: 26px 20px; }
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--copper-400);
  letter-spacing: 0.04em;
}

.step-title {
  margin-top: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--bone-primary);
}

.step-text {
  margin-top: 8px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--bone-faint);
}

@media (max-width: 860px) {
  .steps-list { grid-template-columns: 1fr; gap: 28px; }
  .step-item { padding-left: 20px; padding-top: 4px; border-top: none; border-left: 2px solid var(--petrol-500); }
  .step-item:nth-child(even) { border-top-color: transparent; border-left-color: var(--copper-500); }
}

/* ===================== CASOS REALES ===================== */
.cases-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.case-reverse .case-visual { order: 2; }
.case-reverse .case-content { order: 1; }

.case-visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-onlight-strong);
  box-shadow: var(--shadow-2);
  background: var(--bg-ink);
}
.case-visual img { width: 100%; height: auto; }

.case-title {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--petrol-700);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.case-tags li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--copper-700);
  background: rgba(168, 95, 43, 0.1);
  border: 1px solid rgba(168, 95, 43, 0.2);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}

.case-blocks {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-block h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--copper-600);
  margin-bottom: 4px;
}
.case-block p {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 58ch;
}

@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; gap: 24px; }
  .case-reverse .case-visual,
  .case-reverse .case-content { order: initial; }
}

/* ===================== TIPOS DE SOLUCIÓN ===================== */
.solutions-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-surface));
  border: 1.5px solid var(--line-ondark);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-dark-card);
  padding: 30px 28px;
  transition: transform var(--transition-base), border-color var(--transition-base);
}
.solution-card:hover { transform: translateY(-3px); border-color: var(--line-ondark-strong); }

.solution-featured {
  border-color: rgba(201, 122, 61, 0.5);
  box-shadow: var(--shadow-dark-card), 0 14px 34px rgba(201, 122, 61, 0.1);
}
.solution-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 2px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--petrol-500), var(--copper-500));
}

.badge {
  position: absolute;
  top: -11px;
  left: 28px;
  background: var(--bg-ink);
  border: 1px solid var(--copper-500);
  color: var(--copper-300);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}

.solution-title {
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  color: var(--bone-primary);
  margin-top: 4px;
}

.solution-desc {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--bone-faint);
}

.solution-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.solution-card > .solution-cta { margin-top: auto; }
.solution-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: var(--bone-faint);
}
.solution-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(221, 149, 82, 0.16);
}
.solution-list li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 8.5px;
  width: 6px;
  height: 3.5px;
  border-left: 1.6px solid var(--copper-400);
  border-bottom: 1.6px solid var(--copper-400);
  transform: rotate(-45deg);
}

.solution-cta { margin-top: 26px; width: 100%; }

@media (max-width: 1100px) and (min-width: 701px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid > .solution-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .solutions-grid { grid-template-columns: 1fr; }
}

/* ===================== FAQ ===================== */
.faq-list {
  margin-top: 44px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--line-onlight-strong);
  border-radius: var(--r-md);
  overflow: hidden;
}

.faq-heading { font-weight: 400; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.faq-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--copper-600); transition: transform var(--transition-base); }
.faq-icon-v { transition: opacity var(--transition-base); transform-origin: center; }
.faq-question[aria-expanded="true"] .faq-icon-v { opacity: 0; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-slow);
}
.faq-answer.is-open { grid-template-rows: 1fr; }

.faq-answer-inner {
  overflow: hidden;
  padding: 0 20px;
}
.faq-answer.is-open .faq-answer-inner { padding: 0 20px 18px; }

.faq-answer-inner p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 62ch;
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer { transition: none; }
}

/* ===================== CONTACTO ===================== */
.contact-form {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.fieldset-help {
  display: block;
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--bone-faint);
  margin-top: 4px;
}

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

.need-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  background: var(--bg-surface);
  border: 1.5px solid var(--line-ondark-strong);
  color: var(--bone-primary);
  border-radius: var(--r-md);
  padding: 12px 40px 12px 14px;
  font-size: 0.89rem;
  font-weight: 500;
  text-align: left;
  transition: border-color var(--transition-base), background var(--transition-base), color var(--transition-base);
}
.need-option:hover { border-color: rgba(201, 122, 61, 0.5); }

.need-icon { width: 19px; height: 19px; flex-shrink: 0; color: var(--bone-muted); transition: color var(--transition-base); }

.need-check {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) scale(0.6);
  width: 18px;
  height: 18px;
  color: var(--bg-white);
  opacity: 0;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.need-option[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--copper-600), var(--copper-700));
  border-color: var(--copper-500);
  color: var(--bg-white);
}
.need-option[aria-pressed="true"] .need-icon { color: var(--bg-white); }
.need-option[aria-pressed="true"] .need-check { opacity: 1; transform: translateY(-50%) scale(1); }

.need-option-unsure { grid-column: 1 / -1; }

.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field[hidden] { display: none; }

.wizard-panel > .form-field + .form-field,
.wizard-panel > .form-field + .form-row,
.wizard-panel > .form-row + .form-field,
.step2-panel > .form-field + .form-field,
.step2-panel > .form-field + .form-row,
.step2-panel > .form-row + .form-field {
  margin-top: 24px;
}
.step2-panel + .step2-panel { margin-top: 0; }

.form-field label { font-size: 0.92rem; font-weight: 500; color: var(--bone-primary); }

.field-hint { font-size: 0.85rem; color: var(--bone-faint); margin: -2px 0 2px; }

.form-field .optional,
.form-field .required { font-weight: 400; }
.form-field .optional { color: var(--bone-muted); }
.form-field .required { color: var(--copper-400); }

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--line-ondark-strong);
  border-radius: var(--r-md);
  color: var(--bone-primary);
  padding: 13px 16px;
  min-height: 48px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--bone-muted); }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--copper-500);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 4px rgba(201, 122, 61, 0.14);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #E08A85;
}

.form-field textarea { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #E08A85;
}
.field-error[hidden] { display: none; }
.field-error::before {
  content: "!";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.4px solid currentColor;
  font-size: 0.68rem;
  font-weight: 700;
}

.form-message {
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0;
  min-height: 0;
  border-radius: var(--r-md);
  transition: all var(--transition-base);
}
.form-message.is-error {
  padding: 14px 16px;
  background: rgba(224, 138, 133, 0.12);
  color: #F0908C;
  border: 1px solid rgba(240, 144, 140, 0.35);
}
.form-message.is-success {
  padding: 14px 16px;
  background: rgba(47, 191, 130, 0.12);
  color: #7FD8A6;
  border: 1px solid rgba(127, 216, 166, 0.35);
}
.form-message.is-loading {
  padding: 14px 16px;
  background: rgba(243, 241, 236, 0.08);
  color: var(--bone-primary);
}

.contact-alt-note {
  max-width: 720px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--bone-faint);
}
.contact-alt-note a {
  color: var(--bone-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}
.contact-alt-note a:hover { color: var(--copper-400); }

#submit-btn.is-loading { position: relative; color: transparent; pointer-events: none; }
#submit-btn.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--bg-white);
  animation: btn-spin 700ms linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  #submit-btn.is-loading::after { animation-duration: 1.2s; }
}

@media (max-width: 640px) {
  .needs-grid { grid-template-columns: 1fr; }
  .need-option-unsure { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===================== FOOTER ===================== */
.site-footer {
  position: relative;
  background: var(--bg-void);
  border-top: 1px solid var(--line-ondark);
  padding: 56px 0 36px;
  overflow: hidden;
  isolation: isolate;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 600px 300px at 10% 0%, rgba(201, 122, 61, 0.07), transparent 65%);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-ondark);
}

.footer-col-brand { display: flex; align-items: flex-start; }
.footer-logo { height: 38px; width: auto; }

.footer-nav,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 32px;
  border-left: 1px solid var(--line-ondark);
}

.footer-nav a,
.footer-social a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bone-faint);
  transition: color var(--transition-base);
}
.footer-nav a:hover,
.footer-social a:hover { color: var(--copper-400); }

.footer-social a { gap: 10px; }

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--bg-surface);
  border: 1px solid var(--line-ondark-strong);
  transition: border-color var(--transition-base), background var(--transition-base);
}
.footer-social a:hover .footer-social-icon { border-color: rgba(201, 122, 61, 0.45); background: var(--bg-elevated); }
.footer-social-icon svg { width: 17px; height: 17px; }

.footer-bottom { margin-top: 26px; text-align: center; }
.footer-copy { font-size: 0.82rem; color: var(--bone-muted); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-col-brand { justify-content: center; }
  .footer-nav, .footer-social {
    align-items: center;
    padding-left: 0;
    border-left: none;
    padding-top: 18px;
    border-top: 1px solid var(--line-ondark);
  }
}

/* ===================== SOLUCIONES Y PRECIOS ===================== */
.tile-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(221, 149, 82, 0.14);
  color: var(--copper-300);
  margin-bottom: 6px;
}
.tile-icon svg { width: 24px; height: 24px; }
.tile-icon-commerce { background: rgba(221, 149, 82, 0.16); color: var(--copper-300); }
.tile-icon-gestion, .solution-featured .tile-icon { background: rgba(243, 241, 236, 0.12); color: var(--bone-primary); }

.tile-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-400);
  margin-top: 14px;
}

.quote-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}
.quote-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  color: var(--bone-primary);
}
.quote-text {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--bone-faint);
}

.web-toggle {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.web-toggle-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--bg-surface);
  border: 1.5px solid var(--line-ondark-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
  text-align: left;
  transition: background var(--transition-base), border-color var(--transition-base);
}
.web-toggle-option:hover { border-color: rgba(201, 122, 61, 0.5); }
.web-toggle-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bone-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.web-toggle-option.is-selected {
  background: linear-gradient(135deg, var(--copper-600), var(--copper-700));
  border-color: var(--copper-500);
}
.web-toggle-option.is-selected .web-toggle-name { color: var(--bg-white); }

@media (max-width: 400px) {
  .web-toggle { flex-direction: column; }
}

.tile-helper {
  margin-top: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--bone-faint);
}

.tile-chips { margin-top: 22px; }
.tile-chips-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-400);
  margin-bottom: 10px;
}
.solution-featured .tile-chips-label { color: var(--copper-300); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--bone-primary);
  background: rgba(243, 241, 236, 0.08);
  border: 1px solid var(--line-ondark-strong);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}
.chip-more {
  background: transparent;
  border-style: dashed;
  color: var(--copper-300);
  transition: border-color var(--transition-base), color var(--transition-base);
}
.chip-more:hover { border-color: var(--copper-400); color: var(--bone-primary); }

.tile-wa-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 12px;
  background: transparent;
  border: none;
  padding: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bone-faint);
  transition: color var(--transition-base);
}
.tile-wa-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.tile-wa-link:hover { color: var(--copper-300); }

.price-disclaimer {
  max-width: 62ch;
  margin: 36px auto 0;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--bone-faint);
}

.badge { white-space: nowrap; }
@media (max-width: 420px) {
  .badge { left: 20px; }
}

/* ===================== SECCIÓN MODULAR ===================== */
.modules-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.module-group {
  background: var(--bg-white);
  border: 1px solid var(--line-onlight);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 24px 22px;
}

.module-group-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink-primary);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-onlight-strong);
}

.module-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.module-chip {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--copper-700);
  background: rgba(168, 95, 43, 0.08);
  border: 1px solid rgba(168, 95, 43, 0.18);
  padding: 5px 11px;
  border-radius: var(--r-pill);
}

@media (max-width: 980px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .modules-grid { grid-template-columns: 1fr; }
}

/* ===================== CTA INTERMEDIO ===================== */
.cta-banner {
  position: relative;
  background: var(--bg-ink);
  border-top: 1px solid var(--line-ondark);
  border-bottom: 1px solid var(--line-ondark);
  padding: clamp(48px, 6vw, 64px) 0;
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 560px 320px at 50% 0%, rgba(201, 122, 61, 0.1), transparent 65%);
}

.cta-banner-inner { max-width: 620px; margin: 0 auto; text-align: center; }

.cta-banner-title {
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.01em;
  color: var(--bone-primary);
}
.cta-banner-title::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  border-radius: var(--r-pill);
  margin: 0 auto 18px;
  background: linear-gradient(90deg, var(--copper-400), var(--copper-600));
}

.cta-banner-text { margin-top: 12px; font-size: 1rem; color: var(--bone-faint); }

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

@media (max-width: 480px) {
  .cta-banner-actions { flex-direction: column; align-items: stretch; }
}

/* ===================== FORMULARIO INTELIGENTE (WIZARD) ===================== */
.wizard { max-width: 760px; margin: 44px auto 0; }

.wizard-steps {
  display: flex;
  margin: 0 0 40px;
}
.wizard-step {
  position: relative;
  flex: 1;
  text-align: center;
}
.wizard-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--line-ondark-strong);
  z-index: 0;
}
.wizard-step.is-done:not(:last-child)::after { background: var(--copper-500); }

.wizard-step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1.5px solid var(--line-ondark-strong);
  color: var(--bone-faint);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}
.wizard-step-label {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bone-faint);
}
.wizard-step.is-active .wizard-step-num,
.wizard-step.is-done .wizard-step-num {
  background: var(--copper-600);
  border-color: var(--copper-500);
  color: var(--bg-white);
}
.wizard-step.is-active .wizard-step-label { color: var(--bone-primary); }

.wizard-panel[hidden] { display: none; }

.wizard-question { font-weight: 600; font-size: 1.05rem; color: var(--bone-primary); margin-bottom: 16px; }

.service-pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: var(--bg-surface);
  border: 1.5px solid var(--line-ondark-strong);
  border-radius: var(--r-md);
  padding: 16px 18px;
  min-height: 74px;
  text-align: left;
  transition: border-color var(--transition-base), background var(--transition-base), transform var(--transition-base);
}
.service-pick:hover { border-color: rgba(201, 122, 61, 0.5); transform: translateY(-2px); }
.service-pick-name { font-weight: 700; font-size: 0.97rem; color: var(--bone-primary); }
.service-pick-hint { font-size: 0.82rem; color: var(--bone-faint); }
.service-pick.is-selected {
  background: linear-gradient(135deg, var(--copper-600), var(--copper-700));
  border-color: var(--copper-500);
}
.service-pick.is-selected .service-pick-name,
.service-pick.is-selected .service-pick-hint { color: var(--bg-white); }
.service-pick-unsure { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .service-pick-grid { grid-template-columns: 1fr; }
}

.needs-grid-3 { grid-template-columns: repeat(3, 1fr); }
.needs-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) {
  .needs-grid-3, .needs-grid-2 { grid-template-columns: 1fr; }
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}
.form-actions-end { justify-content: flex-end; }
.form-actions .btn { min-width: 130px; }
@media (max-width: 480px) {
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--bone-primary);
  cursor: pointer;
}
.consent-check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--copper-600); }

.privacy-note { margin-top: 8px; font-size: 0.82rem; color: var(--bone-faint); }

.summary-card {
  margin-top: 28px;
  background: var(--bg-surface);
  border: 1.5px solid var(--line-ondark-strong);
  border-radius: var(--r-lg);
  padding: 22px;
}
.summary-title {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: var(--copper-400);
  margin-bottom: 14px;
}
.summary-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line-ondark);
}
.summary-row:first-of-type { border-top: none; padding-top: 0; }
.summary-label { flex: 0 0 150px; font-size: 0.85rem; color: var(--bone-faint); }
.summary-value { flex: 1; font-size: 0.92rem; font-weight: 500; color: var(--bone-primary); }
.summary-edit {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--copper-400);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 520px) {
  .summary-row { flex-wrap: wrap; }
  .summary-label { flex-basis: 100%; }
}

.success-panel { text-align: center; padding: 20px 0 8px; }
.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 216, 166, 0.14);
  color: #7FD8A6;
}
.success-icon svg { width: 32px; height: 32px; }
.success-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; color: var(--bone-primary); }
.success-text { margin-top: 10px; color: var(--bone-faint); max-width: 44ch; margin-left: auto; margin-right: auto; }
.success-actions { display: flex; justify-content: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
@media (max-width: 420px) {
  .success-actions { flex-direction: column; }
}

/* ===================== OVERFLOW SAFETY ===================== */
.hero-title, .section-title, .improve-title, .solution-title, .case-title, .step-title,
.cta-banner-title, .success-title, .quote-title {
  overflow-wrap: anywhere;
}

/* ===================== PRIVACIDAD Y MEDICIÓN ===================== */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-privacy-link,
.privacy-more {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--copper-300);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-banner {
  position: fixed;
  z-index: 1200;
  right: 22px;
  bottom: 22px;
  left: 22px;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line-ondark-strong);
  border-radius: var(--r-lg);
  background: rgba(18, 22, 31, 0.98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  color: var(--bone-primary);
}
.privacy-banner[hidden] { display: none; }
.privacy-banner-copy { max-width: 640px; }
.privacy-banner-copy strong { display: block; font-size: 0.98rem; }
.privacy-banner-copy p { margin-top: 5px; color: var(--bone-faint); font-size: 0.86rem; line-height: 1.55; }
.privacy-more { margin-top: 7px; }
.privacy-banner-actions,
.privacy-dialog-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.privacy-action { min-width: 150px; }

.privacy-settings {
  position: fixed;
  z-index: 1100;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line-ondark-strong);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--bone-faint);
  font-size: 0.75rem;
  box-shadow: var(--shadow-dark-card);
}
.privacy-settings[hidden] { display: none; }

.privacy-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid var(--line-ondark-strong);
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  color: var(--bone-primary);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.privacy-dialog::backdrop { background: rgba(5, 7, 11, 0.75); backdrop-filter: blur(4px); }
.privacy-dialog h2 { margin-top: 8px; font-family: var(--font-heading); font-size: 1.75rem; }
.privacy-dialog > p:not(.eyebrow) { margin-top: 14px; color: var(--bone-faint); line-height: 1.65; }
.privacy-dialog ul { margin-top: 16px; display: grid; gap: 10px; padding-left: 20px; color: var(--bone-faint); line-height: 1.55; }
.privacy-dialog strong { color: var(--bone-primary); }
.privacy-dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-ondark-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--bone-primary);
  font-size: 1.4rem;
  line-height: 1;
}
.privacy-dialog-actions { justify-content: flex-end; margin-top: 24px; }

@media (max-width: 720px) {
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .privacy-banner { align-items: stretch; flex-direction: column; gap: 16px; right: 12px; bottom: 12px; left: 12px; }
  .privacy-banner-actions { display: grid; grid-template-columns: 1fr; }
  .privacy-action { width: 100%; }
}

@media (max-width: 480px) {
  .privacy-dialog { padding: 26px 20px 20px; }
  .privacy-dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .privacy-dialog-actions .btn { width: 100%; }
}
