/* ═══════════════════════════════════════════════════════════
   Any2Cloud — Sistema de diseño
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Colores */
  --bg: #FBF4F7;
  --surface: #FFFFFF;
  --text: #2B2B2B;
  --text-muted: #6b5d66;
  --border: #EDE4E9;
  --footer-bg: #2B2B2B;
  --footer-muted: #B6A7B0;

  /* Acento (gradiente) */
  --accent-from: #E39D3C;
  --accent-to: #AF2D76;
  --accent-gradient: linear-gradient(100deg, #E39D3C 0%, #AF2D76 100%);

  /* Tipografía */
  --font-body: Carlito, Calibri, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Radios y sombras */
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(43, 43, 43, 0.06);
  --shadow: 0 8px 24px rgba(43, 43, 43, 0.08);
  /* Sombra de color al hover: combina naranja + lila (estilo AWS) */
  --shadow-hover:
    0 10px 28px rgba(227, 157, 60, 0.28),
    0 18px 48px rgba(175, 45, 118, 0.30);

  /* Layout */
  --maxw: 1200px;
  --header-h: 72px;
}

/* ── Reset básico ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Utilidades ───────────────────────────────────────────── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent-to);
  font-weight: 600;
}
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 620px; }

/* ── Botones ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--accent-gradient); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-light { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-light:hover { background: rgba(255,255,255,0.25); }

/* ── Header ───────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(251, 244, 247, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
/* Compensar el espacio del header fijo */
main { padding-top: var(--header-h); }

/* Sombra de color (naranja + lila) al pasar el cursor sobre las cajas */
.stats-bar, .presencia, .robotica, .cta-final, .aws-badge-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stats-bar:hover, .presencia:hover, .robotica:hover, .aws-badge-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; flex-shrink: 0; }
.logo img { flex-shrink: 0; max-width: none; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-gradient);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 700;
  flex-shrink: 0;
}
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; min-width: 0; }
.nav a {
  padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 500;
  color: var(--text-muted); transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--text); background: rgba(175, 45, 118, 0.07); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-toggle {
  display: flex; border: 1px solid var(--border); border-radius: 999px;
  overflow: hidden; background: var(--surface);
}
.lang-toggle button {
  border: none; background: transparent; padding: 6px 12px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.lang-toggle button.active { background: var(--accent-gradient); color: #fff; }
.hamburger {
  display: none; background: transparent; border: none;
  width: 40px; height: 40px; border-radius: 10px;
}
.hamburger span {
  display: block; width: 20px; height: 2px; background: var(--text);
  margin: 4px auto; transition: 0.3s;
}

/* ── Carrusel Hero (tarjeta central con glow, estilo AWS) ──── */
.hero-carousel { padding: 36px 0 24px; }
.hc-viewport {
  position: relative; max-width: 1180px; margin: 0 auto; padding: 0 24px;
}
/* Resplandor degradado de marca detrás de la tarjeta */
.hc-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: calc(100% - 10px); height: calc(100% + 26px);
  border-radius: 32px; z-index: 0; filter: blur(26px); opacity: 0.75;
  background: var(--accent-gradient);
}
.hc-stage {
  position: relative; z-index: 1;
  height: clamp(340px, 42vw, 460px);
}
.hc-slide {
  position: absolute; top: 0; height: 100%;
  border-radius: 26px; overflow: hidden; cursor: pointer;
  box-shadow: 0 20px 50px rgba(43,43,43,0.28);
  transition: left 0.5s ease, width 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
  background: #1c1320;
}
/* Slide central: ocupa el grueso del viewport */
.hc-slide.is-center { left: 7%; width: 86%; opacity: 1; z-index: 3; cursor: default; }
/* Slides laterales asomándose */
.hc-slide.is-prev  { left: -6%; width: 16%; opacity: 0.55; z-index: 2; }
.hc-slide.is-next  { left: 90%; width: 16%; opacity: 0.55; z-index: 2; }
.hc-slide.is-hidden { left: 50%; width: 16%; opacity: 0; z-index: 1; pointer-events: none; }

.hc-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center; object-fit: cover;
}
.hc-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.75) 100%);
}
.hc-badge {
  position: absolute; top: 22px; left: 26px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: #fff; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  padding: 6px 12px; border-radius: 6px;
}
/* El contenido solo se ve en el slide central */
.hc-content {
  position: absolute; left: 36px; right: 36px; bottom: 30px; z-index: 2;
  color: #fff; opacity: 0; transition: opacity 0.4s ease 0.15s;
}
.hc-slide.is-center .hc-content { opacity: 1; }
.hc-slide:not(.is-center) .hc-badge { opacity: 0; }
.hc-title { color: #fff; font-size: clamp(1.3rem, 2.2vw, 2rem); margin: 0 0 10px; max-width: 30ch; }
.hc-link {
  display: inline-flex; align-items: center; gap: 8px; color: #fff;
  font-weight: 600; font-size: 15px;
}
.hc-link span { transition: transform 0.2s; }
.hc-link:hover span { transform: translateX(4px); }

/* Controles inferiores centrados con contador */
.hc-controls {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 22px;
}
.hc-nav {
  width: 34px; height: 34px; border-radius: 999px; border: 2px solid var(--accent-to);
  background: var(--surface); color: var(--accent-to); font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.hc-nav:hover { background: var(--accent-gradient); color: #fff; border-color: transparent; }
.hc-counter { font-weight: 600; font-size: 15px; color: var(--text); min-width: 48px; text-align: center; }

@media (max-width: 760px) {
  .hc-slide.is-center { left: 2%; width: 96%; }
  .hc-slide.is-prev { left: -14%; } .hc-slide.is-next { left: 98%; }
  .hc-content { left: 20px; right: 20px; bottom: 20px; }
}

/* ── Modal de Reel (video vertical) ───────────────────────── */
.reel-modal-bg {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn 0.2s ease;
}
.reel-modal {
  position: relative; width: min(92vw, 420px); aspect-ratio: 9 / 16;
  max-height: 88vh;
}
.reel-modal video { display: block; }
.reel-modal-close {
  position: absolute; top: -44px; right: 0; z-index: 2;
  width: 38px; height: 38px; border-radius: 999px; border: none;
  background: rgba(255,255,255,0.2); color: #fff; font-size: 24px; line-height: 1;
  cursor: pointer; transition: background 0.2s;
}
.reel-modal-close:hover { background: rgba(255,255,255,0.35); }
.reel-modal-title {
  position: absolute; bottom: -36px; left: 0; right: 0; text-align: center;
  color: #fff; font-weight: 600; font-size: 0.95rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 90px 0 64px; }
.hero .eyebrow { margin-bottom: 18px; display: inline-block; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin: 20px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Stats bar ────────────────────────────────────────────── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow-sm);
}
.stat { text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 700; }
.stat .label { font-size: 0.9rem; color: var(--text-muted); }
.stat-ico { font-size: 1.6rem; margin-bottom: 6px; }

/* ── Presencia regional (mapa + países) ───────────────────── */
.presencia {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 40px; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 32px; align-items: center;
}
.presencia-paises { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pais-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pais-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pais-flag { font-size: 1.1rem; }
.presencia-mapa { display: flex; justify-content: center; }
.mapa-svg { width: 100%; max-width: 340px; height: auto; }
/* Países: base en gris claro, los de operación resaltados */
.mapa-svg .pais-base { fill: #EDE4E9; stroke: #e0d2db; stroke-width: 0.4; }
.mapa-svg .pais-destacado { fill: #d9b8cb; stroke: #AF2D76; stroke-width: 0.5; }
/* Malla de conexiones entre los países de operación */
.mapa-linea {
  stroke: url(#mapaGrad); stroke-width: 0.8; opacity: 0.7;
  stroke-dasharray: 4 3; animation: mapaDash 18s linear infinite;
}
@keyframes mapaDash { to { stroke-dashoffset: -70; } }
.mapa-nodo { fill: url(#mapaGrad); stroke: #fff; stroke-width: 0.8; }
@media (max-width: 760px) {
  .presencia { grid-template-columns: 1fr; padding: 28px 24px; text-align: center; }
  .presencia-paises { justify-content: center; }
  .mapa-svg { max-width: 220px; }
}
/* Stats con texto (ej. "Well-Architected") en vez de cifras cortas */
.aws-stat .num { font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.2; }

/* Badges de credenciales AWS */
.aws-badges {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center;
}
.aws-badge-item { text-align: center; flex: 0 1 auto; }
.aws-badge-item img {
  height: 110px; width: auto; object-fit: contain; display: block; margin: 0 auto 8px;
}
.aws-badge-title { font-weight: 600; font-size: 0.95rem; }
.aws-badge-sub { font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 560px) {
  .aws-badges { gap: 20px; justify-content: center; }
  .aws-badge-item img { height: 84px; }
}

/* ── Grid de tarjetas ─────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  background: rgba(175, 45, 118, 0.09); display: flex; align-items: center;
  justify-content: center; font-size: 22px;
}
.card p { color: var(--text-muted); margin: 0; }

/* ── Robótica ─────────────────────────────────────────────── */
.robotica {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow-sm);
}

/* ── Reels ────────────────────────────────────────────────── */
.reels-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.reels-nav { display: flex; gap: 8px; }
.reels-nav button {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-size: 18px; transition: 0.2s;
}
.reels-nav button:hover { background: var(--accent-gradient); color: #fff; border-color: transparent; }
.reels-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth;
  padding-bottom: 12px; scrollbar-width: none;
}
.reels-track::-webkit-scrollbar { display: none; }
.reel {
  flex: 0 0 auto; width: 230px; aspect-ratio: 9 / 16;
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(160deg, #3a2740, #1c1320); color: #fff;
  border: 1px solid var(--border);
}
.reel .reel-meta {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
}
.reel .reel-title { font-weight: 600; font-size: 0.95rem; }
.reel .reel-sub { font-family: var(--font-mono); font-size: 11px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Casos de éxito ───────────────────────────────────────── */
.caso {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.caso:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.caso-img { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #E39D3C22, #AF2D7622); position: relative; overflow: hidden; }
/* La imagen llena todo el frame (cover). Se centra y recorta lo que sobra
   para no dejar franjas vacías. */
.caso-img img, .caso-img video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
}
.caso-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  background: var(--accent-gradient); color: #fff; padding: 4px 10px; border-radius: 999px;
}
.caso-body { padding: 22px; }
.caso-sector { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--accent-to); letter-spacing: 0.1em; }
.caso-result { color: var(--text-muted); max-height: 0; overflow: hidden; transition: max-height 0.3s ease, margin 0.3s; margin: 0; }
.caso.open .caso-result { max-height: 200px; margin-top: 12px; }

/* ── Marquee de logos ─────────────────────────────────────── */
.marquee { overflow: hidden; position: relative; padding: 12px 0; }
.marquee-track { display: flex; align-items: center; gap: 110px; width: max-content; animation: scroll 32s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee .logo-item { font-weight: 700; font-size: 4.2rem; color: var(--text-muted); white-space: nowrap; opacity: 0.7; display: flex; align-items: center; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Alianza AWS ──────────────────────────────────────────── */
.aws-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.aws-point { display: flex; gap: 12px; align-items: flex-start; }
.aws-point .check { color: var(--accent-to); font-weight: 700; }

/* ── CTA final ────────────────────────────────────────────── */
.cta-final {
  background: var(--accent-gradient); border-radius: var(--radius-lg);
  padding: 56px; color: #fff;
}
.cta-final h2 { color: #fff; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border);
  font-family: inherit; font-size: 15px; background: var(--surface); color: var(--text);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent-to); border-color: transparent; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: #2b2b2b; }
.form-status.error { color: #c0392b; }
/* Sobre el CTA final (fondo degradado oscuro) el gris oscuro no contrasta:
   mantener los mensajes en claro para que sigan siendo legibles. */
.cta-final .form-status.ok { color: #eafaf0; }
.cta-final .form-status.error { color: #ffd9d9; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: var(--footer-bg); color: var(--footer-muted); padding: 64px 0 28px; margin-top: 64px; }
.footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono); margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer a { display: block; padding: 5px 0; color: var(--footer-muted); transition: color 0.2s, transform 0.2s; }
.footer a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Redes sociales en el footer */
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social .social-ico {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px; padding: 0;
  background: rgba(255,255,255,0.08); color: var(--footer-muted);
  transition: all 0.2s ease;
}
.footer-social .social-ico:hover {
  background: var(--accent-gradient); color: #fff; transform: translateY(-2px);
}

/* ── Vistas (ruteo SPA) ───────────────────────────────────── */
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Páginas internas ─────────────────────────────────────── */
.page-head { padding: 56px 0 32px; }
.list-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform 0.2s, box-shadow 0.2s; }
.list-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-to); }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 14px; background: var(--accent-gradient); color: #fff; flex: 0 0 auto; }
.event-date .d { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-date .m { font-family: var(--font-mono); font-size: 11px; }

/* ── Contenido enriquecido (tablas, listas desde el CMS) ──── */
.caso-result table, .card table, .list-item table, #legalBody table {
  border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 0.9rem;
}
.caso-result th, .caso-result td,
.card th, .card td,
.list-item th, .list-item td,
#legalBody th, #legalBody td {
  border: 1px solid var(--border); padding: 7px 11px; text-align: left;
}
.caso-result th, .card th, .list-item th, #legalBody th {
  background: var(--bg); font-weight: 600;
}
.card ul, .card ol, .caso-result ul, .caso-result ol,
.list-item ul, .list-item ol, #legalBody ul, #legalBody ol {
  padding-left: 20px; margin: 6px 0;
}
.card a, .caso-result a, .list-item a, #legalBody a {
  color: var(--accent-to); text-decoration: underline;
}

/* ── Filtros de soluciones (pestañas) ─────────────────────── */
.sol-filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.sol-filtro {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); font-weight: 600; font-size: 14px;
  transition: all 0.2s ease;
}
.sol-filtro:hover { border-color: var(--accent-to); color: var(--text); transform: translateY(-1px); }
.sol-filtro.active { background: var(--accent-gradient); color: #fff; border-color: transparent; }

/* ── Filtros de soluciones (panel lateral + acordeón) ─────── */
.sol-layout {
  display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start;
}
.sol-aside { align-self: start; }
.sol-filtros-head {
  margin: 0 0 14px; font-size: 20px; font-weight: 800; color: var(--text);
}
.sol-filtros-head .sol-count { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-left: 4px; }

/* Acordeón de grupos */
.sol-acc { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.sol-acc-group + .sol-acc-group { border-top: 1px solid var(--border); }
.sol-acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: 0; padding: 15px 16px; cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 700; color: var(--text); font-family: inherit;
}
.sol-acc-btn:hover { color: var(--accent-to); }
.sol-acc-group.open > .sol-acc-btn { color: var(--accent-to); }
.sol-acc-ico {
  width: 24px; height: 24px; flex: none; border-radius: 7px;
  display: grid; place-items: center; color: #fff; font-size: 17px; line-height: 1;
  background: var(--accent-gradient);
}
.sol-acc-body { display: none; padding: 2px 16px 14px; }
.sol-acc-group.open > .sol-acc-body { display: block; }

/* Checkbox de valor */
.sol-chk {
  display: flex; align-items: center; gap: 10px; padding: 7px 2px;
  font-size: 14px; color: var(--text); cursor: pointer;
}
.sol-chk:hover { color: var(--accent-to); }
.sol-chk input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex: none; }
.sol-mostrar {
  display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600;
  color: var(--accent-to); cursor: pointer;
}
.sol-mostrar:hover { text-decoration: underline; }
.sol-limpiar {
  display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600;
  color: var(--accent-to); cursor: pointer;
}
.sol-limpiar:hover { text-decoration: underline; }

/* Pills de filtros activos (encima de la grilla de resultados) */
.sol-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sol-pills:empty { margin-bottom: 0; }
.sol-pill {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--accent-gradient); color: #fff; border-radius: 999px;
  padding: 5px 12px; font-size: 13px; font-weight: 600;
}
.sol-pill .x { opacity: 0.85; font-size: 12px; }
.sol-pill:hover .x { opacity: 1; }

/* ── Legal ────────────────────────────────────────────────── */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.legal-toc a { display: block; padding: 6px 0; font-size: 0.9rem; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.legal-table th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .sol-layout { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .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(--border);
    padding: 12px; transform: translateY(-120%); transition: transform 0.3s;
    box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .hamburger { display: block; margin-left: auto; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .aws-points, .form-row { grid-template-columns: 1fr; }
  .cta-final, .robotica { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
}
