/* ===== Tokens ===== */
:root {
  --navy: #132A4C;
  --navy-deep: #0D1F38;
  --petrol: #2F6690;
  --sky: #6BB8D6;
  --sky-pale: #E7F2F6;
  --orange: #F4691E;
  --orange-dark: #D6540F;
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --ink-soft: #4A5A72;
  --border: #E1E7EE;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1160px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 600;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

.eyebrow-free {
  color: var(--orange);
}

/* ===== Focus visibility ===== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(244, 105, 30, 0.28);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: rgba(19, 42, 76, 0.22);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn-ghost-light:hover { border-color: var(--white); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }

/* --- Language switcher --- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
  background: var(--white);
}
.lang-switch a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch a svg { border-radius: 3px; display: block; }
.lang-switch a.active { background: var(--sky-pale); color: var(--navy); }
.lang-switch a:not(.active):hover { color: var(--navy); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .header-actions .btn-ghost { display: none; }
}

/* ===== Hero ===== */
.hero {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -220px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(107, 184, 214, 0.28), transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  color: var(--navy);
}
.hero-sub {
  margin-top: 22px;
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-ctas {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* --- Demo widget: réplica del panel real de la extensión --- */
.demo-card {
  background: linear-gradient(180deg, rgba(7, 20, 48, 0.97) 0%, rgba(5, 15, 36, 0.985) 100%);
  border: 1px solid rgba(126, 167, 255, 0.20);
  border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(13, 31, 56, 0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  position: relative;
  overflow: hidden;
  max-width: 420px;
  margin-left: auto;
}
.demo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(66, 153, 255, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 98, 0, 0.12), transparent 26%);
}
.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(126, 167, 255, 0.14);
  position: relative;
}
.demo-header-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.demo-title-row { display: flex; align-items: center; gap: 9px; }
.demo-wordmark img { height: 22px; width: auto; display: block; }
.demo-ai-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 20px;
  background: rgba(107,184,214,0.14);
  color: var(--sky);
  border: 1px solid rgba(107,184,214,0.3);
}
.demo-version-pill {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  color: rgba(244,248,255,0.4);
  border: 1px solid rgba(255,255,255,0.14);
}
.demo-subtitle {
  font-size: 0.82rem;
  color: rgba(244,248,255,0.55);
  display: flex;
  align-items: center;
  gap: 7px;
}
.demo-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 rgba(52,211,153,0.5);
  animation: pulse-green 1.8s infinite;
  flex-shrink: 0;
}
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); }
  70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.demo-header-controls { display: flex; gap: 7px; flex-shrink: 0; }
.demo-header-controls span {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.demo-header-controls span.on {
  background: var(--petrol);
  border-color: transparent;
}

.demo-body {
  padding: 18px 16px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  position: relative;
}
.demo-bubble {
  align-self: flex-end;
  max-width: 88%;
  background: linear-gradient(135deg, var(--petrol), #23507a);
  color: #f4f8ff;
  border-radius: 14px 14px 3px 14px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
}
.demo-bubble .redacted {
  display: inline-block;
  background: rgba(244, 105, 30, 0.22);
  color: #ffb385;
  border: 1px solid rgba(244, 105, 30, 0.45);
  border-radius: 5px;
  padding: 0px 6px;
  font-size: 0.85em;
}
.demo-cursor {
  display: inline-block;
  width: 6px;
  height: 1em;
  background: rgba(244,248,255,0.7);
  vertical-align: text-bottom;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.demo-composer {
  margin: 0 16px 16px;
  border: 1px solid rgba(126,167,255,0.18);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.demo-composer-text {
  font-size: 0.82rem;
  color: rgba(244,248,255,0.35);
}
.demo-send {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 14px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
}
.demo-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--sky);
}
.demo-status .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 rgba(107,184,214,0.5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(107,184,214,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(107,184,214,0); }
  100% { box-shadow: 0 0 0 0 rgba(107,184,214,0); }
}

/* --- AI compatibility row --- */
.hero-trust {
  margin-top: 30px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-trust img { height: 18px; width: auto; flex-shrink: 0; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
}

/* ===== Problem section ===== */
.problem {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}
.problem .container {
  max-width: 780px;
  text-align: center;
}
.problem h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.problem p {
  margin-top: 20px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.problem .callout {
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  border-left: 3px solid var(--orange);
  padding-left: 20px;
  text-align: left;
  display: inline-block;
}

/* ===== Steps ===== */
.steps {
  padding: 90px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 640px;
  margin-bottom: 54px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.step {
  padding: 0 30px 0 0;
  position: relative;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  right: -2px;
  width: 40px;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--sky) 0 6px, transparent 6px 11px);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--orange);
  margin-bottom: 14px;
}
.step h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}
.step p { color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 800px) {
  .steps-grid { grid-template-columns: 1fr; gap: 36px; }
  .step:not(:last-child)::after { display: none; }
}

/* ===== Video ===== */
.video-section {
  padding: 90px 0;
  text-align: center;
}
.video-section h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.video-frame {
  margin: 40px auto 0;
  max-width: 860px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  background: var(--navy-deep);
  box-shadow: 0 30px 70px -25px rgba(13,31,56,0.45);
  cursor: pointer;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(244,105,30,0.4);
  transition: transform 0.2s ease;
}
.video-frame:hover .play-btn { transform: translate(-50%, -50%) scale(1.06); }
.play-btn svg { margin-left: 4px; }

/* ===== Data table ===== */
.data-section {
  padding: 90px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.data-table-wrap {
  margin-top: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
table.data-table thead th {
  text-align: left;
  padding: 16px 22px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
}
table.data-table thead th.center, table.data-table td.center { text-align: center; }
table.data-table tbody td {
  padding: 15px 22px;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
}
table.data-table tbody tr:nth-child(even) { background: var(--bg); }
table.data-table tbody td:first-child { color: var(--navy); font-weight: 500; }
.check-yes { color: var(--petrol); font-weight: 600; }
.check-no { color: #C3CBD6; }
.row-highlight td { background: rgba(244,105,30,0.06) !important; }
.row-highlight td:first-child { color: var(--orange-dark); }
.data-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ===== Pillars ===== */
.pillars { padding: 90px 0; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.pillar {
  background: var(--white);
  padding: 34px 30px;
}
.pillar:nth-child(2) { background: var(--navy); color: var(--white); }
.pillar:nth-child(2) .pillar-title { color: var(--white); }
.pillar:nth-child(2) .pillar-text { color: rgba(255,255,255,0.72); }
.pillar-icon { margin-bottom: 18px; }
.pillar-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.pillar-text { color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* ===== Security teaser ===== */
.security-section {
  padding: 90px 0;
  background: var(--navy-deep);
  color: var(--white);
}
.security-section .section-head h2 { color: var(--white); }
.security-section .section-head p { color: rgba(255,255,255,0.62); }
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.security-item {
  border-top: 2px solid var(--orange);
  padding-top: 20px;
}
.security-item h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 10px;
}
.security-item p {
  color: rgba(255,255,255,0.65);
  font-size: 0.94rem;
}
@media (max-width: 800px) {
  .security-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ===== Resources teaser ===== */
.resources-section { padding: 90px 0; }
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.resource-card:hover { border-color: var(--sky); transform: translateY(-2px); }
.resource-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--orange);
  margin-bottom: 12px;
  display: block;
}
.resource-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.resource-card p { color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 800px) {
  .resources-grid { grid-template-columns: 1fr; }
}
.plans {
  padding: 90px 0 100px;
  background: var(--navy-deep);
  color: var(--white);
}
.plans .section-head h2 { color: var(--white); }
.plans .section-head p { color: rgba(255,255,255,0.62); }
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.plan-card {
  border-radius: 16px;
  padding: 36px 32px;
  border: 1px solid rgba(255,255,255,0.12);
}
.plan-free { background: rgba(255,255,255,0.03); }
.plan-corp {
  background: linear-gradient(165deg, #1C3A63, #12274A);
  border-color: rgba(244,105,30,0.4);
  position: relative;
}
.plan-tag {
  position: absolute;
  top: -13px; right: 28px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}
.plan-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--sky);
  margin-bottom: 10px;
}
.plan-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.plan-desc {
  color: rgba(255,255,255,0.65);
  font-size: 0.96rem;
  margin-bottom: 26px;
}
.plan-features { list-style: none; padding: 0; margin: 0 0 30px; }
.plan-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  font-size: 0.94rem;
  color: rgba(255,255,255,0.85);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.plan-features li:first-child { border-top: none; }
.plan-features svg { flex-shrink: 0; margin-top: 3px; }

@media (max-width: 800px) {
  .plans-grid { grid-template-columns: 1fr; }
}

/* ===== Footer CTA ===== */
.footer-cta {
  padding: 80px 0;
  text-align: center;
}
.footer-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 620px; margin: 0 auto; }
.footer-cta .hero-ctas { justify-content: center; margin-top: 30px; }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 50px 0 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 24px; display: block; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 0.88rem; padding: 5px 0; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Contact Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  z-index: 200;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: var(--white);
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  padding: 36px 34px 32px;
  position: relative;
  box-shadow: 0 40px 80px -20px rgba(13,31,56,0.4);
  animation: modal-in 0.22s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
}
.modal-close:hover { background: var(--sky-pale); color: var(--navy); }
.modal-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  padding-right: 30px;
}
.modal-sub {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 26px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
}
.form-field label .req { color: var(--orange); }
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--petrol);
}
.form-field textarea { resize: vertical; min-height: 80px; font-family: var(--font-body); }
.form-actions {
  grid-column: 1 / -1;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.form-actions .btn { width: 100%; justify-content: center; }
.form-note {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.form-error {
  grid-column: 1 / -1;
  font-size: 0.86rem;
  color: var(--orange-dark);
  background: rgba(244,105,30,0.08);
  border: 1px solid rgba(244,105,30,0.25);
  border-radius: 8px;
  padding: 10px 13px;
  display: none;
}
.form-error.show { display: block; }

.modal-success {
  display: none;
  text-align: center;
  padding: 20px 0 8px;
}
.modal-success.show { display: block; }
.modal-success .check-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(52,211,153,0.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.modal-success h3 { font-size: 1.25rem; margin-bottom: 10px; }
.modal-success p { color: var(--ink-soft); font-size: 0.96rem; }

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 30px 22px 26px; }
}

/* ===================================================================
   MOBILE — refuerzo general de responsive (sin alterar vista desktop)
   =================================================================== */
html, body { overflow-x: hidden; }

@media (max-width: 900px) {
  .demo-card { max-width: 100%; margin-left: 0; }
}

@media (max-width: 640px) {
  .hero { padding: 60px 0 70px; }
  .container { padding: 0 20px; }

  /* Header */
  .brand img { height: 24px; }
  .lang-switch a span.lang-label { display: none; }
  .lang-switch { gap: 2px; }
  .lang-switch a { padding: 5px 7px; }

  /* Hero */
  .hero h1 { font-size: 1.85rem; }
  .hero-sub { font-size: 1rem; }
  .hero-trust { flex-wrap: wrap; font-size: 0.82rem; }

  /* Demo panel */
  .demo-header { padding: 12px 14px; flex-wrap: wrap; gap: 10px; }
  .demo-version-pill { display: none; }
  .demo-wordmark img { height: 18px; }
  .demo-ai-pill { font-size: 0.68rem; padding: 3px 9px; }
  .demo-body { padding: 14px 12px; min-height: 150px; }
  .demo-bubble { font-size: 0.78rem; overflow-wrap: break-word; word-break: break-word; }
  .demo-composer { margin: 0 12px 12px; }
  .demo-footer { padding: 0 14px 12px; font-size: 0.66rem; flex-wrap: wrap; gap: 6px; }

  /* Video */
  .video-frame img { padding: 30px !important; }
  .play-btn { width: 58px; height: 58px; }

  /* Data table: permite scroll horizontal en vez de romper el layout */
  .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.data-table { min-width: 560px; }

  /* Pillars / security / resources ya colapsan a 1 columna en 800/900px */
  .pillar, .security-item, .resource-card { padding: 24px 20px; }

  /* Plans */
  .plan-card { padding: 28px 22px; }

  /* Footer */
  .footer-cols { gap: 34px; }
  .footer-top { flex-direction: column; }

  /* Modal */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-card { border-radius: 18px 18px 0 0; max-height: 92vh; overflow-y: auto; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.6rem; }
  .header-actions { gap: 8px; }
  .btn { padding: 11px 16px; font-size: 0.9rem; }
}
