/* ============================================================
   InovaLog360 Landing — light, flat, crimson/navy
   ============================================================ */

:root {
  --brand: #c22f3d;
  --brand-strong: #a5252f;
  --brand-soft: #f9e9ea;
  --brand-softer: #fdf5f5;
  --navy: #27355c;
  --navy-strong: #1c2947;
  --navy-soft: #e9ecf4;
  --bg: #f6f6f8;
  --surface: #ffffff;
  --surface-2: #fafafc;
  --border: #e8e8ef;
  --border-strong: #d9dae4;
  --ink: #252c42;
  --ink-2: #4c5570;
  --muted: #8b92a9;
  --sev-1: #8e9bae; --sev-2: #c39a3a; --sev-3: #cd7a3d; --sev-4: #c4504b; --sev-5: #9e2b33;
  --ok: #3e8e5a;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--navy-strong); letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.hl { color: var(--brand); }
.hl-light { color: #f2a7ae; }

::selection { background: rgba(194, 47, 61, 0.16); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.15s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px -10px rgba(194, 47, 61, 0.55); }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(194, 47, 61, 0.6); }

.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--muted); color: var(--ink); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--navy-strong); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.4); }

/* ---------- Kicker ---------- */
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}
.kicker-light { background: rgba(255, 255, 255, 0.1); color: #f2a7ae; }
.kicker-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  margin-right: 9px;
  vertical-align: middle;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194, 47, 61, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(194, 47, 61, 0); }
}

/* Encabezado de sección: etiqueta, título y bajada, siempre igual. */
.section-head { text-align: center; max-width: 660px; margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: 14px;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong));
}
.eyebrow::after { background: linear-gradient(90deg, var(--border-strong), transparent); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.d-1 { transition-delay: 0.08s; }
.d-2 { transition-delay: 0.16s; }
.d-3 { transition-delay: 0.24s; }
.d-4 { transition-delay: 0.32s; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.nav.scrolled {
  background: rgba(246, 246, 248, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--navy-strong);
}
.brand em { font-style: normal; color: var(--brand); }
.brand-text { font-weight: inherit; }
.brand-mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px;
  /* Isotipo: cuadro navy con la orbita en el color de marca. */
  background: var(--navy-strong);
  color: var(--brand);
}
.brand-mark svg { width: 19px; height: 19px; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 700; color: var(--ink-2); transition: color 0.14s ease; }
.nav-links a:hover { color: var(--brand-strong); }

@media (max-width: 760px) { .nav-links { display: none; } .nav-inner { justify-content: space-between; } }

/* ============================================================
   Hero
   ============================================================ */
/* El menú es fijo (72px): el aire de arriba se mide desde ahí, no desde el borde. */
.hero { position: relative; padding: 118px 0 0; overflow: hidden; }
@media (max-width: 760px) { .hero { padding: 96px 0 0; } }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 14s ease-in-out infinite alternate;
}
.blob-1 { width: 480px; height: 480px; background: #f3d3d6; top: -140px; right: 4%; }
.blob-2 { width: 420px; height: 420px; background: #dbe2f2; top: 180px; right: 30%; animation-delay: -6s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-50px, 36px) scale(1.08); }
}
.grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 20%, transparent 75%);
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 50px;
  align-items: center;
  padding-bottom: 84px;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
}

h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.12; margin-bottom: 22px; }
.lead { font-size: 17px; max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* Fila de respaldo: hechos del producto, sin promesas que no se puedan sostener.
   Una sola línea con filetes; si el ancho no da, cae en dos renglones parejos. */
.trust-row {
  list-style: none;
  padding: 26px 0 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 10px;
  max-width: 540px;
}
.trust-row li {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
.trust-row li + li::before {
  content: '';
  width: 1px;
  height: 13px;
  background: var(--border-strong);
  margin: 0 16px;
}

/* Al envolver, el filete quedaba colgando al inicio del renglón: en pantalla
   angosta se cambian por pastillas, que envuelven sin dejar cabos sueltos. */
@media (max-width: 760px) {
  .trust-row { gap: 8px; max-width: none; }
  .trust-row li {
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 12.5px;
    background: var(--surface);
  }
  .trust-row li + li::before { display: none; }
}

/* Floating mockups */
.hero-visual { position: relative; height: 460px; }

.mock {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -24px rgba(28, 41, 71, 0.28);
}
.float-a { animation: floaty 7s ease-in-out infinite; }
.float-b { animation: floaty 7s ease-in-out -2.5s infinite; }
.float-c { animation: floaty 7s ease-in-out -5s infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* La burbuja del agente vive arriba a la derecha; el panel principal baja para
   que ninguna tape el título de la otra. */
.mock-main { top: 74px; left: 0; width: 78%; padding: 18px 20px; }
.mock-head { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.mock-title { margin-left: 10px; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--navy-strong); }

.mock-stats { display: flex; gap: 10px; margin-bottom: 16px; }
.mock-stat {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.mock-stat b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--navy-strong); }
.mock-stat i { font-style: normal; font-size: 10.5px; color: var(--muted); font-weight: 700; }

.mock-rows { display: flex; flex-direction: column; gap: 10px; }
.mock-row { display: flex; align-items: center; gap: 10px; }
.sev { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sev-1 { background: var(--sev-1); } .sev-2 { background: var(--sev-2); } .sev-3 { background: var(--sev-3); }
.sev-4 { background: var(--sev-4); } .sev-5 { background: var(--sev-5); }
.mock-line { height: 9px; border-radius: 5px; background: var(--navy-soft); }
.w-70 { width: 70%; } .w-62 { width: 62%; } .w-55 { width: 55%; } .w-48 { width: 48%; }
.mock-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.p-new { background: #ecf0f8; color: #3d5a9e; }
.p-rev { background: #f8f2e2; color: #a5802c; }
.p-ok { background: #e9f4ee; color: #3e8e5a; }

.mock-chat { right: 0; top: 0; width: 58%; padding: 14px 16px; }
.chat-ai { display: flex; gap: 10px; }
.chat-spark {
  width: 30px; height: 30px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, #8f1f3f 100%);
  color: #fff;
}
.chat-spark svg { width: 15px; height: 15px; }
.chat-ai b { font-size: 12px; color: var(--navy-strong); display: block; margin-bottom: 3px; }
.chat-ai p { font-size: 12px; line-height: 1.5; min-height: 36px; }
.typing-target::after { content: '▍'; color: var(--brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.mock-timeline { right: 6%; bottom: 26px; width: 56%; padding: 14px 18px; }
.mock-timeline b { font-family: var(--font-display); font-size: 12px; color: var(--navy-strong); }
.tl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 6px;
  position: relative;
}
.tl::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--border); }
.tl-node {
  position: relative;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--border-strong);
}
/* Los grados van bajo cada punto: dejan claro que la historia cruza los años. */
.tl-years {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}
.n-2 { background: var(--sev-2); } .n-3 { background: var(--sev-3); } .n-4 { background: var(--sev-4); } .n-5 { background: var(--sev-5); }
.mock-timeline i { font-style: normal; font-size: 10.5px; color: var(--muted); font-weight: 700; }

/* En pantalla angosta la composición no se esconde: se apila conservando el
   traslape, que es lo que le da profundidad. Va después de las posiciones de
   escritorio porque comparten especificidad y gana la última. */
@media (max-width: 960px) {
  .hero-visual {
    height: auto;
    margin-top: 46px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .mock { position: static; width: 100%; }
  .float-a, .float-b, .float-c { animation: none; }

  .mock-main { order: 1; }
  .mock-chat {
    order: 2;
    width: 86%;
    align-self: flex-end;
    margin: -20px -4px 0 0;
    z-index: 2;
  }
  .mock-timeline {
    order: 3;
    width: 82%;
    align-self: flex-start;
    margin: -12px 0 0 -4px;
    z-index: 1;
  }
}

/* Marquee */
.marquee {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  padding: 15px 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: scroll 26s linear infinite;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   Sections
   ============================================================ */
section h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; }
.section-sub { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* Features */
.features { padding: 104px 0 96px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 52px;
}
.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--navy));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -20px rgba(28, 41, 71, 0.25); border-color: var(--border-strong); }
.feature:hover::before { opacity: 1; }
.f-icon {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--brand-soft), var(--brand-softer));
  border: 1px solid rgba(194, 47, 61, 0.14);
  color: var(--brand-strong);
  margin-bottom: 18px;
  transition: transform 0.18s ease;
}
.feature:hover .f-icon { transform: scale(1.06) rotate(-3deg); }
.f-icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 17px; margin-bottom: 9px; }
.feature p { font-size: 14px; }

/* How — banda blanca, para dar ritmo entre secciones */
.how {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 56px;
}
@media (max-width: 860px) { .steps { flex-direction: column; align-items: center; } .step-arrow { transform: rotate(90deg); } }
.step {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px 26px;
  text-align: left;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -22px rgba(28, 41, 71, 0.3); }
.step-num {
  position: absolute;
  top: -16px; left: 24px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 14px -4px rgba(194, 47, 61, 0.5);
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13.5px; }
.step-arrow { align-self: center; color: var(--border-strong); flex: none; }
.step-arrow svg { width: 26px; height: 26px; }

/* AI section */
.ai {
  background: linear-gradient(160deg, var(--navy-strong) 0%, var(--navy) 70%, #33456e 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.ai::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  right: -200px; bottom: -260px;
}
.ai-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .ai-inner { grid-template-columns: 1fr; } }
.ai h2 { color: #fff; margin-bottom: 18px; }
.ai-copy p { font-size: 16px; max-width: 480px; }
.ai-list { list-style: none; padding: 0; margin: 24px 0 30px; display: flex; flex-direction: column; gap: 10px; }
.ai-list li {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 16px;
}

.ai-chat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-msg { border-radius: 12px; padding: 12px 15px; font-size: 13.5px; }
.ai-msg.user {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-radius: 12px 12px 4px 12px;
  font-weight: 700;
}
.ai-msg.bot {
  display: flex;
  gap: 12px;
  background: #fff;
  color: var(--ink-2);
  border-radius: 4px 12px 12px 12px;
}
.ai-msg.bot b { color: var(--navy-strong); font-family: var(--font-display); font-size: 13px; display: block; margin-bottom: 8px; }
.ai-msg.bot p { font-size: 12.5px; line-height: 1.55; }
.ai-bars { display: flex; align-items: flex-end; gap: 6px; height: 44px; margin-bottom: 10px; }
.ai-bars span {
  width: 18px;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--brand) 0%, #8f1f3f 100%);
  opacity: 0.85;
  transform-origin: bottom;
  animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.ai-bars span:nth-child(2) { animation-delay: 0.1s; background: linear-gradient(180deg, #cd7a3d, #a55a24); }
.ai-bars span:nth-child(3) { animation-delay: 0.2s; }
.ai-bars span:nth-child(4) { animation-delay: 0.3s; background: linear-gradient(180deg, #8e9bae, #6d7a8e); }
.ai-bars span:nth-child(5) { animation-delay: 0.4s; background: linear-gradient(180deg, #c39a3a, #97742a); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.ai-actions { display: flex; gap: 14px; margin-top: 10px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.ai-typing {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.55);
}
.ai-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #f2a7ae;
  animation: bounce 1.2s infinite ease-in-out;
}
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; margin-right: 6px; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Security */
.security { padding: 104px 0 96px; }
.sec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 52px;
}
.sec-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  padding: 22px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.sec-item:hover { transform: translateY(-4px); box-shadow: 0 14px 32px -18px rgba(28, 41, 71, 0.25); }
.sec-item b { font-family: var(--font-display); color: var(--navy-strong); font-size: 15px; display: block; margin-bottom: 6px; }
.sec-item p { font-size: 13.5px; }

/* Preguntas frecuentes */
.faq { padding: 96px 0; background: var(--surface); border-top: 1px solid var(--border); }
.faq-list {
  max-width: 800px;
  margin: 52px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 26px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.faq-item:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.faq-item[open] {
  border-color: rgba(194, 47, 61, 0.28);
  box-shadow: 0 16px 40px -24px rgba(28, 41, 71, 0.35);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy-strong);
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-strong); }

/* El signo de interrogación numera visualmente cada pregunta y da un punto de
   color a una sección que, con puro texto, se ve plana. */
.faq-item summary::before {
  content: '?';
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 15px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}
.faq-item[open] summary::before { background: var(--brand); color: #fff; }

/* La cruz gira hasta volverse un "menos" al abrir. */
.faq-item summary::after {
  content: '';
  flex: none;
  margin-left: auto;
  width: 13px;
  height: 13px;
  background:
    linear-gradient(var(--brand), var(--brand)) center/13px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center/2px 13px no-repeat;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.faq-item[open] summary::after { transform: rotate(135deg); }

.faq-item p {
  /* Sangrado a la altura del texto de la pregunta, no del icono. */
  margin: 0 0 24px 44px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  padding-left: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
  animation: faq-open 0.25s ease both;
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-item p::first-line { color: var(--ink); }

@media (max-width: 560px) {
  .faq-item { padding: 0 18px; }
  .faq-item p { margin-left: 0; }
}

/* CTA */
.cta { padding: 40px 0 110px; }
.cta-inner {
  background:
    radial-gradient(ellipse 80% 120% at 80% -20%, rgba(194, 47, 61, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-strong), var(--navy));
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 70px 30px;
}
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { margin-bottom: 30px; font-size: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 54px 0 26px; }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 0.7fr));
  gap: 40px;
  align-items: start;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; } .footer-brand { grid-column: 1 / -1; } }

.footer-claim {
  margin-top: 16px;
  max-width: 340px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav b {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-strong);
  margin-bottom: 2px;
}
.footer-nav a { font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: color 0.14s ease; }
.footer-nav a:hover { color: var(--brand-strong); }

.footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 12.5px; color: var(--muted); }

/* ============================================================
   Contact page
   ============================================================ */
.contact-hero { position: relative; padding: 150px 0 70px; overflow: hidden; }
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-copy h1 { font-size: clamp(30px, 3.8vw, 44px); }
.contact-points { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-direction: column; gap: 14px; }
.contact-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.contact-points svg { width: 19px; height: 19px; color: var(--ok); flex: none; margin-top: 2px; }

.contact-channels { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.channel {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.channel svg { width: 17px; height: 17px; color: var(--brand-strong); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 24px 60px -30px rgba(28, 41, 71, 0.25);
}
.form-card h2 { font-size: 20px; margin-bottom: 6px; }
.form-card > p { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { height: auto; padding: 12px 13px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(194, 47, 61, 0.12);
}

.form-submit { margin-top: 22px; width: 100%; }
.form-note { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 10px;
}
.form-success.show { display: block; animation: pop 0.35s cubic-bezier(0.2, 0.7, 0.3, 1.2) both; }
@keyframes pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.success-icon {
  width: 60px; height: 60px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #e9f4ee;
  color: var(--ok);
  margin-bottom: 18px;
}
.success-icon svg { width: 28px; height: 28px; }
.form-success h3 { font-size: 20px; margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--muted); }
