:root {
    --fg: #1a1a1a;
    --muted: #5a5f6b;
    --bg: #fff;
    --surface: #f7f7fa;
    --border: #e3e4ea;
    --violeta: #3F2B96;
    --magenta: #A63A8F;
    --accent: #3F2B96;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--fg);
    background: var(--bg);
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--violeta) 0%, var(--magenta) 100%) 1;
  }
  a { color: var(--accent); }

  header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
    z-index: 10;
  }
  header img { height: 2.4rem; width: auto; display: block; }
  header nav { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
  header nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
  }
  header nav a:hover { color: var(--fg); }
  .boton-acceso {
    padding: 0.45rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--fg) !important;
    white-space: nowrap;
  }
  .boton-acceso:hover { border-color: var(--violeta); }

  main { max-width: 66rem; margin: 0 auto; padding: 0 1.2rem; }

  section { padding: 3.5rem 0 1rem; }
  h1 { font-size: 2.3rem; line-height: 1.2; margin: 0 0 1rem; }
  h2 { font-size: 1.6rem; margin: 0 0 0.4rem; }
  h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
  .kicker {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--magenta);
    margin: 0 0 0.6rem;
  }
  .muted { color: var(--muted); }

  /* Hero */
  .hero { padding: 5rem 0 3rem; position: relative; }
  .hero h1 { max-width: 44rem; }
  .lema {
    font-size: 1.35rem;
    line-height: 1.5;
    max-width: 40rem;
    margin: 0 0 1rem;
    color: var(--violeta);
    font-weight: 600;
  }
  .hero p.sub { max-width: 42rem; margin: 0 0 2rem; color: var(--muted); }
  .cta {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: linear-gradient(90deg, var(--violeta), var(--magenta));
    color: #fff;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
  }
  .cta.secundario {
    background: none;
    color: var(--fg);
    border: 1px solid var(--border);
    margin-left: 0.8rem;
  }
  .marca-agua {
    position: absolute;
    right: -4rem;
    top: 2rem;
    width: 24rem;
    max-width: 45vw;
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
  }

  /* Banda de independencia */
  .banda {
    margin: 2.5rem 0 0;
    padding: 1.6rem 1.8rem;
    border-left: 4px solid var(--magenta);
    background: var(--surface);
    border-radius: 0 0.6rem 0.6rem 0;
  }
  .banda h2 { font-size: 1.25rem; }
  .banda p { margin: 0.4rem 0 0; max-width: 52rem; }

  /* Tarjetas */
  .tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    margin-top: 1.6rem;
  }
  .tarjeta {
    padding: 1.3rem 1.4rem;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    background: var(--bg);
  }
  .tarjeta p { margin: 0.3rem 0 0; font-size: 0.95rem; color: var(--muted); }
  .tarjeta.destacada { border-color: var(--violeta); box-shadow: 0 1px 0 var(--violeta) inset; }
  .tarjeta .etiqueta {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.15rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--violeta);
    border: 1px solid var(--violeta);
    border-radius: 1rem;
  }

  /* Listas de dominio */
  ul.limpia { list-style: none; padding: 0; margin: 0.6rem 0 0; }
  ul.limpia li { padding-left: 1.2rem; position: relative; margin-bottom: 0.35rem; }
  ul.limpia li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.45em;
    height: 0.45em;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--violeta), var(--magenta));
  }

  /* IA */
  .caja-agentes {
    margin-top: 1.4rem;
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    background: var(--surface);
  }

  /* Contacto */
  .contacto {
    margin: 3rem 0 0;
    padding: 2.5rem 0 3rem;
    border-top: 1px solid var(--border);
  }
  .contacto .datos { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 1rem; }

  footer {
    padding: 1.2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
  }

  @media (max-width: 720px) {
    h1 { font-size: 1.7rem; }
    .hero { padding-top: 3rem; }
    .marca-agua { display: none; }
    /* Solo los anclas de seccion: el acceso y los idiomas quedan. */
    header nav > a:not(.boton-acceso) { display: none; }
  }

/* Selector de idioma */
.idiomas { display: flex; gap: 0.3rem; align-items: center; font-size: 0.85rem; }
.idiomas a { color: var(--muted); text-decoration: none; padding: 0.2rem 0.4rem; }
.idiomas a.activo { color: var(--fg); font-weight: 600; }
.idiomas span { color: var(--border); }

/* Formulario de contacto */
.formulario { max-width: 40rem; margin: 1.2rem 0 2rem; }
.formulario label {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.formulario input,
.formulario textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.7rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
}
.formulario textarea { resize: vertical; }
.formulario input:focus-visible,
.formulario textarea:focus-visible {
  outline: 2px solid var(--violeta);
  outline-offset: 1px;
}
.formulario .cta { border: none; font-size: 1rem; cursor: pointer; }
.formulario .cta:disabled { opacity: 0.6; }
.campos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
@media (max-width: 720px) { .campos { grid-template-columns: 1fr; } }
/* La trampa para robots: fuera de la vista, sin display:none, que los bots
   mas cuidadosos lo respetan. */
.trampa { position: absolute !important; left: -9999px; height: 1px; width: 1px; }
.aviso { margin-top: 0.8rem; font-weight: 600; color: var(--violeta); }
