/* ============================================================
   ISMIND.AI — estilos
   Editorial, limpio y premium: serif expresiva, acento verde
   profundo, grano sutil y detalles de alto contraste
   ============================================================ */

:root {
  --bg: #f7f5f0;
  --bg-alt: #efece4;
  --surface: #ffffff;
  --ink: #101c19;
  --ink-soft: #51605b;
  --accent: #0a5c54;
  --accent-deep: #07433d;
  --accent-bright: #15baa5;
  --accent-soft: #e0f0ec;
  --gold: #c89b3c;
  --line: #e1ddd2;
  --line-dark: rgba(255, 255, 255, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px -18px rgba(10, 92, 84, 0.28);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Schibsted Grotesk", "Segoe UI", sans-serif;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

/* Grano sutil sobre toda la página */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.018em;
}

h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: 1.24rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--accent);
}

.section__lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 56ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--primary:hover::after { transform: translateX(100%); }

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--lg { padding: 16px 30px; font-size: 1.03rem; }
.btn--block { width: 100%; justify-content: center; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: 0.01em;
}
.logo__mark { width: 27px; height: 27px; color: var(--accent); }
.logo__mark svg { width: 100%; height: 100%; }
.logo__dot { color: var(--accent); font-style: italic; }

.nav { display: flex; align-items: center; gap: 32px; }

.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.18s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 9px;
}
.nav-toggle span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vh, 120px) 0 clamp(72px, 11vh, 130px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 480px at 86% 10%, rgba(21, 186, 165, 0.13), transparent 64%),
    radial-gradient(520px 420px at 4% 92%, rgba(10, 92, 84, 0.1), transparent 60%);
}
/* Retícula sutil */
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(16, 28, 25, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 28, 25, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(720px 560px at 70% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(720px 560px at 70% 30%, black 30%, transparent 75%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(40px, 6vw, 84px);
}

.hero__title {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  margin-bottom: 24px;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
/* Subrayado dibujado a mano */
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9 Q 30 3 60 7 T 118 5' fill='none' stroke='%2315baa5' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.hero__subtitle {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
}
.hero__stats li {
  display: grid;
  gap: 2px;
  position: relative;
  padding-left: 18px;
}
.hero__stats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2.5px;
  border-radius: 2px;
  background: linear-gradient(var(--accent-bright), var(--accent));
}
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--accent);
}
.hero__stats span { font-size: 0.86rem; color: var(--ink-soft); }

/* Tarjeta de chat del hero */

.hero__visual { position: relative; }
/* Anillo decorativo tras la tarjeta */
.hero__visual::before {
  content: "";
  position: absolute;
  width: 130%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(10, 92, 84, 0.22);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.chat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 36px 80px -32px rgba(16, 28, 25, 0.4);
  overflow: hidden;
  transform: rotate(1.6deg);
  transition: transform 0.35s ease;
}
.chat-card:hover { transform: rotate(0deg) scale(1.01); }

.chat-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent-soft), #eef7f4);
}
.chat-card__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
}
.chat-card__avatar svg { width: 22px; height: 22px; }
.chat-card__header strong { display: block; font-size: 0.95rem; }
.chat-card__header small { color: var(--ink-soft); font-size: 0.78rem; }
.chat-card__status {
  margin-left: auto;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2fa56b;
  box-shadow: 0 0 0 4px rgba(47, 165, 107, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(47, 165, 107, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(47, 165, 107, 0.08); }
}

.chat-card__body {
  padding: 22px 20px;
  display: grid;
  gap: 12px;
}

.bubble {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.bubble--in {
  background: var(--bg-alt);
  justify-self: start;
  border-bottom-left-radius: 4px;
}
.bubble--out {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  justify-self: end;
  border-bottom-right-radius: 4px;
}

.hero__badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 17px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  color: var(--accent);
}
.hero__badge svg { width: 16px; height: 16px; }
.hero__badge--top { top: -16px; left: -26px; animation: float 5s ease-in-out infinite; }
.hero__badge--bottom { bottom: -14px; right: -12px; animation: float 6s ease-in-out 1.2s infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Cinta de sectores ---------- */

.ticker {
  background: var(--ink);
  color: #d8e2de;
  overflow: hidden;
  padding: 16px 0;
  transform: rotate(-1deg) scale(1.02);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  white-space: nowrap;
}
.ticker i {
  font-style: normal;
  color: var(--accent-bright);
  font-size: 0.8rem;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- Secciones ---------- */

.section { padding: clamp(80px, 11vh, 130px) 0; }
.section--alt { background: var(--bg-alt); }

.section__header {
  max-width: 660px;
  margin-bottom: clamp(44px, 6vh, 70px);
}
.section__header h2 { margin-bottom: 16px; }

/* ---------- Servicios ---------- */

.grid--services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px 30px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.card:hover::before { transform: scaleX(1); }

.card__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  opacity: 0.07;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.card:hover .card__num { opacity: 0.18; color: var(--accent); }

.card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.card__icon svg { width: 27px; height: 27px; }
.card:hover .card__icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(-5deg) scale(1.05);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Casos de uso ---------- */

.grid--cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.case:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.case__tag {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 13px;
  border-radius: 999px;
}
.case__tag--other { color: #8a6514; background: #f6ecd3; }

.case h3 { font-size: 1.2rem; }

/* Línea de tiempo problema → solución → resultado */
.case dl { display: grid; gap: 0; }
.case dl > div {
  position: relative;
  padding: 0 0 18px 22px;
}
.case dl > div::before {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 8px;
  bottom: -2px;
  width: 1.5px;
  background: var(--line);
}
.case dl > div:last-child::before { display: none; }
.case dl > div::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--surface);
}
.case dl > div:last-child::after { background: var(--accent); }
.case dl > div:last-child { padding-bottom: 0; }

.case dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 3px;
}
.case dd { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- Solicita una demo ---------- */

.demo { padding-top: 0; }

.demo__box {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: linear-gradient(135deg, var(--accent-soft), #fdfcf8 60%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.demo__box::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1.5px dashed rgba(10, 92, 84, 0.25);
  pointer-events: none;
}

.demo__content h2 { margin-bottom: 14px; }

.demo__points {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.demo__points li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.demo__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.demo__action {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}
.demo__hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Contacto (sección oscura) ---------- */

.section--dark {
  background:
    radial-gradient(700px 500px at 88% 0%, rgba(21, 186, 165, 0.12), transparent 62%),
    radial-gradient(560px 460px at 2% 100%, rgba(21, 186, 165, 0.07), transparent 58%),
    var(--ink);
  color: #eef2f0;
}

.section--dark .eyebrow { color: var(--accent-bright); }
.section--dark .eyebrow::before { background: var(--accent-bright); }
.section--dark .section__lead { color: #a9b8b2; }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.contact__info h2 { margin-bottom: 14px; }
.contact__calendly { margin: 32px 0 36px; }

.section--dark .btn--primary {
  background: var(--accent-bright);
  color: var(--ink);
  box-shadow: 0 14px 40px -14px rgba(21, 186, 165, 0.5);
}
.section--dark .btn--primary:hover { background: #2fd2bd; }

.contact__channels { display: grid; gap: 16px; }
.contact__channels a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #eef2f0;
  transition: color 0.18s ease;
}
.contact__channels a:hover { color: var(--accent-bright); }
.contact__channels svg { width: 20px; height: 20px; color: var(--accent-bright); }

.contact__form {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 42px);
  backdrop-filter: blur(8px);
  display: grid;
  gap: 20px;
}

.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 13px 16px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: #eef2f0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  resize: vertical;
}
.field select {
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 13px 16px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: #eef2f0;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2315baa5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}
.field select:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(21, 186, 165, 0.14);
}
.field select option {
  background: var(--ink);
  color: #eef2f0;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(21, 186, 165, 0.14);
}
.field ::placeholder { color: #7d8c86; }

.contact__note {
  text-align: center;
  font-size: 0.85rem;
  color: #a9b8b2;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: #e8ece9;
  padding: 56px 0;
  border-top: 1px solid var(--line-dark);
}

.footer__inner {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.logo--footer { color: #fff; }
.logo--footer .logo__mark,
.logo--footer .logo__dot { color: var(--accent-bright); }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}
.footer__nav a {
  color: #b9c4bf;
  font-size: 0.92rem;
  transition: color 0.18s ease;
}
.footer__nav a:hover { color: #fff; }

.footer__copy { font-size: 0.82rem; color: #8a958f; }

.footer__nav--legal a { font-size: 0.84rem; color: #8a958f; }

/* Honeypot anti-spam: oculto para humanos */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* ---------- Banner de cookies ---------- */

.cookie-banner {
  position: fixed;
  z-index: 100;
  left: 20px;
  right: 20px;
  bottom: 20px;
  margin-inline: auto;
  max-width: 680px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -24px rgba(16, 28, 25, 0.45);
  padding: 20px 24px;
  animation: cookie-in 0.45s ease;
}
.cookie-banner.is-leaving {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner__text {
  flex: 1 1 320px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.cookie-banner__text strong { color: var(--ink); display: block; margin-bottom: 2px; }
.cookie-banner__text a { color: var(--accent); font-weight: 600; text-decoration: underline; }

.cookie-banner__actions {
  display: flex;
  gap: 10px;
}
.cookie-banner__actions .btn { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Páginas legales ---------- */

.legal {
  padding: clamp(48px, 8vh, 80px) 0 clamp(64px, 10vh, 100px);
}
.legal .container { max-width: 760px; }

.legal h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 10px;
}
.legal__updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 1.35rem;
  margin: 36px 0 12px;
}
.legal p { color: var(--ink-soft); margin-bottom: 14px; }
.legal ul {
  list-style: disc;
  padding-left: 22px;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.legal a { color: var(--accent); font-weight: 600; }
.legal strong { color: var(--ink); }

.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 18px 0;
}
.legal__table th,
.legal__table td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}
.legal__table th { background: var(--bg-alt); color: var(--ink); }
.legal__table code {
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.85em;
}

/* ---------- Animaciones de entrada ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__badge--top, .hero__badge--bottom,
  .ticker__track, .hero__visual::before, .chat-card__status { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--cases { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 480px; margin-inline: auto; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    box-shadow: 0 24px 40px -24px rgba(16, 28, 25, 0.25);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__link {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 18px; justify-content: center; }
  .nav-toggle { display: flex; }

  .hero__stats { flex-wrap: wrap; gap: 20px 32px; }
  .hero__badge--top { left: -6px; }
  .hero__badge--bottom { right: -4px; }
  .hero__visual::before { display: none; }

  .demo__box { grid-template-columns: 1fr; }
  .demo__action { justify-items: start; text-align: left; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
}

@media (max-width: 560px) {
  .grid--services { grid-template-columns: 1fr; }
  .container { width: min(1160px, 100% - 36px); }
}
