/* ============================================================
   Valentramites — Hoja de estilos principal
   Identidad: azul marino de despacho + acento dorado.
   Principio de diseño: mostrar poco de entrada. El visitante
   elige su área y despliega solo lo que le interesa.
   ============================================================ */

:root {
  /* Colores de marca */
  --color-bg: #f7f8fa;
  --color-bg-alt: #eef1f5;
  --color-surface: #ffffff;
  --color-ink: #10243d;          /* azul marino corporativo */
  --color-ink-soft: #56657a;
  --color-primary: #163a63;
  --color-primary-dark: #0d2545;
  --color-accent: #c08a3e;       /* dorado sobrio */
  --color-accent-soft: #f2e5cf;
  --color-line: rgba(16, 36, 61, 0.1);

  /* Tipografía */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Métricas */
  --container: 1150px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(16, 36, 61, 0.1);
  --shadow-sm: 0 4px 16px rgba(16, 36, 61, 0.07);
  --header-h: 74px;
}

/* ===== Reset básico ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* El atributo hidden debe ganar a cualquier display de componente.
   Sin esto, una regla como .grant { display: flex } lo anula y las
   convocatorias que el guion retira al cerrarse el plazo se siguen
   viendo: el atributo está puesto, pero la tarjeta se pinta igual. */
[hidden] { display: none !important; }

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 600; }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.icon { width: 1.15em; height: 1.15em; flex: none; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(22, 58, 99, 0.28);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--color-ink);
  border: 1.5px solid rgba(16, 36, 61, 0.22);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--color-ink); color: var(--color-ink); transform: translateY(-2px); }

/* Ocupa el sitio de un botón que ya no lleva a ninguna parte.
   No es un enlace: no se pulsa, no recibe el foco y no promete nada. */
.btn--inerte {
  background: transparent;
  border: 1px dashed var(--color-line);
  color: var(--color-ink-soft);
  cursor: default;
}
.btn--inerte:hover { transform: none; }

.btn--block { width: 100%; }

/* ===== Cabecera ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 248, 250, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--color-line);
  box-shadow: 0 4px 22px rgba(16, 36, 61, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--color-ink); }
.brand:hover { color: var(--color-ink); }
.brand__mark { width: 40px; height: 40px; }
.brand__logo { height: 40px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.brand__tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* Navegación */
.nav { display: flex; align-items: center; gap: 1.8rem; }

.nav__link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  padding-block: 0.25rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav__link:hover { color: var(--color-ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--color-ink); }

.nav__cta { color: #fff; padding: 0.6rem 1.4rem; font-size: 0.9rem; }
.nav__cta:hover { color: #fff; }
.nav__cta::after { display: none; }

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.3s 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;
  padding: calc(var(--header-h) + 5rem) 0 4.5rem;
  overflow: hidden;
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(192, 138, 62, 0.25), transparent 60%),
    radial-gradient(700px 500px at 90% 100%, rgba(72, 122, 180, 0.35), transparent 65%),
    linear-gradient(160deg, #0d2545 0%, #163a63 55%, #1b4778 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}

.hero__inner { position: relative; max-width: 900px; }

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  margin-bottom: 1.2rem;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.hero__title em { font-style: italic; color: #e8c68d; }

.hero__lead {
  margin-top: 1.5rem;
  max-width: 60ch;
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
}

/* Selector rápido de área en el hero */
.picker {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.picker__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.1rem;
}
.picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 500;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.chip svg { width: 22px; height: 22px; flex: none; color: #e8c68d; }
.chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(232, 198, 141, 0.6);
  transform: translateY(-2px);
}

/* ===== Secciones ===== */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-ink); color: #fff; }

.section__head { max-width: 720px; margin-bottom: 3rem; }

.section__eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.8rem;
}

.section__title {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  letter-spacing: -0.01em;
}

.section__lead {
  margin-top: 1rem;
  font-weight: 300;
  color: var(--color-ink-soft);
  font-size: 1.03rem;
}
.section--dark .section__lead { color: rgba(255, 255, 255, 0.75); }
.section--dark .section__eyebrow { color: #e8c68d; }

/* ============================================================
   EXPLORADOR DE ÁREAS
   Columna de pestañas + panel del área seleccionada.
   ============================================================ */
.explorer {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

/* --- Columna de pestañas --- */
/* min-width: 0 evita que el ancho mínimo de las pestañas desborde la rejilla
   cuando pasan a fila desplazable en pantallas medianas. */
.explorer__aside { min-width: 0; }
.explorer__tabs { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }

.etab {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  padding: 1rem 1.1rem;
  text-align: left;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.etab:hover { transform: translateX(3px); border-left-color: var(--color-accent-soft); }

.etab__num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  padding-top: 0.18rem;
}

.etab__body { display: flex; flex-direction: column; gap: 0.1rem; }
.etab__title { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; line-height: 1.3; }
.etab__desc { font-size: 0.82rem; font-weight: 300; line-height: 1.45; color: var(--color-ink-soft); }

.etab.is-active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  border-left-color: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transform: none;
}
.etab.is-active .etab__num { color: #e8c68d; }
.etab.is-active .etab__desc { color: rgba(255, 255, 255, 0.72); }

.explorer__aside-note {
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-ink-soft);
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
}

/* --- Panel del área --- */
.explorer__stage { min-width: 0; }

.epanel {
  padding: 2rem 2rem 1.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
/* Con JS solo se ve el área seleccionada; sin JS se ven todas. */
.js .epanel { display: none; }
.js .epanel.is-active { display: block; animation: panel-in 0.4s ease both; }
.js .epanel + .epanel { margin-top: 0; }
html:not(.js) .epanel + .epanel { margin-top: 1.5rem; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.epanel__head { padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-line); }
.epanel__head h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.epanel__head p {
  margin-top: 0.7rem;
  max-width: 58ch;
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--color-ink-soft);
}

/* --- Acordeón de subáreas --- */
.acc { display: flex; flex-direction: column; }

.acc__item { border-bottom: 1px solid var(--color-line); }
.acc__item h4 { font: inherit; }

.acc__btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.05rem 0;
  background: none;
  border: 0;
  text-align: left;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}
.acc__btn:hover { color: var(--color-primary); }

.acc__title { flex: 1; line-height: 1.35; }

.acc__count {
  flex: none;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.acc__ico {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--color-line);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.35s ease;
}
.acc__ico::before,
.acc__ico::after {
  content: "";
  position: absolute;
  inset: 50% 6px auto 6px;
  height: 1.5px;
  background: var(--color-ink);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: transform 0.3s ease, background 0.25s ease;
}
.acc__ico::after { transform: translateY(-50%) rotate(90deg); }

.acc__item.is-open .acc__ico { background: var(--color-ink); border-color: var(--color-ink); }
.acc__item.is-open .acc__ico::before,
.acc__item.is-open .acc__ico::after { background: #fff; }
.acc__item.is-open .acc__ico::after { transform: translateY(-50%) rotate(0deg); }
.acc__item.is-open .acc__count { background: var(--color-accent-soft); color: #8a6224; }

/* Despliegue suave sin alturas fijas */
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
html:not(.js) .acc__panel { grid-template-rows: 1fr; }

.acc__list { overflow: hidden; list-style: none; }
.acc__item.is-open .acc__list { padding-bottom: 1.2rem; }

.acc__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-ink-soft);
}
.acc__list li + li { margin-top: 0.4rem; }
.acc__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--color-accent);
  opacity: 0.75;
}

/* --- Llamada a la acción del panel --- */
.epanel__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.93rem;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.epanel__cta svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.epanel__cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(22, 58, 99, 0.28);
}
.epanel__cta:hover svg { transform: translateX(4px); }

/* ===== Pasos ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  list-style: none;
}
.step {
  position: relative;
  padding: 1.8rem 1.5rem 1.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #10243d;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
.step p { font-size: 0.93rem; font-weight: 300; color: rgba(255, 255, 255, 0.75); }

/* ===== Ventajas ===== */
.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem 2.4rem;
}
.perk { padding-top: 1.3rem; border-top: 2px solid var(--color-accent-soft); }
.perk h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.perk p { font-size: 0.93rem; font-weight: 300; color: var(--color-ink-soft); }

/* ===== Contacto ===== */
.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 2.5rem;
  align-items: start;
}

.contact__list { list-style: none; display: flex; flex-direction: column; gap: 1.3rem; }
.contact__list li { display: flex; gap: 0.9rem; }
.contact__list .icon { width: 22px; height: 22px; margin-top: 0.25rem; color: var(--color-accent); }
.contact__list strong {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}
.contact__list div > span,
.contact__list div > a { font-size: 1.02rem; }

.pending { color: var(--color-ink-soft); font-style: italic; opacity: 0.75; }

.contact__note {
  margin-top: 2rem;
  padding: 1.1rem 1.3rem;
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 300;
}

.contact__form {
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-ink);
}
.field__opt { font-weight: 400; color: var(--color-ink-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus { background: #fff; border-color: var(--color-primary); }
.field input.is-invalid,
.field textarea.is-invalid { border-color: #c0392b; background: #fdf3f2; }
/* Resalte cuando el área llega preseleccionada desde un panel */
.field select.is-prefilled { border-color: var(--color-accent); background: #fffaf1; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-ink-soft);
  cursor: pointer;
}
.check input { margin-top: 0.3rem; accent-color: var(--color-primary); flex: none; }
.check.is-invalid span { color: #c0392b; }

.form__hint { font-size: 0.8rem; color: var(--color-ink-soft); text-align: center; }
.form__hint.is-error { color: #c0392b; font-weight: 500; }
.form__hint.is-ok { color: #1e7a4b; font-weight: 500; }

/* ===== Pie ===== */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
  font-weight: 300;
}
.footer__inner { display: grid; gap: 2rem; }
.footer__brand { display: flex; align-items: center; gap: 0.9rem; }
.footer__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #fff; }
.footer__tag { font-size: 0.85rem; }
.footer__logo { height: 44px; width: auto; margin-bottom: 0.5rem; }

.footer__nav { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; }
.footer__nav a { color: rgba(255, 255, 255, 0.72); }
.footer__nav a:hover { color: #e8c68d; }

.footer__legal {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== Volver arriba ===== */
.to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--color-primary-dark); color: #fff; }

/* ===== Animaciones de aparición ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  /* Las pestañas pasan a fila desplazable sobre el panel */
  .explorer { grid-template-columns: 1fr; gap: 1.5rem; }

  .explorer__tabs {
    flex-direction: row;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .etab {
    flex: 0 0 auto;
    width: auto;
    min-width: 210px;
    scroll-snap-align: start;
    border-left-width: 1px;
    border-top: 3px solid transparent;
  }
  .etab:hover { transform: none; }
  .etab.is-active { border-top-color: var(--color-accent); }
  .etab__desc { display: none; }

  .explorer__aside-note { margin-top: 0; }
}

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

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    background: var(--color-bg);
    border-bottom: 1px solid transparent;
    transition: max-height 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
  }
  .nav.is-open {
    max-height: 70vh;
    padding: 0.75rem 1.25rem 1.5rem;
    border-bottom-color: var(--color-line);
    box-shadow: 0 12px 28px rgba(16, 36, 61, 0.1);
    overflow-y: auto;
  }

  .nav__link { padding: 0.85rem 0; border-bottom: 1px solid var(--color-line); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 1rem; border-bottom: 0; text-align: center; }
}

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .contact__form { padding: 1.5rem 1.2rem; }
  .epanel { padding: 1.5rem 1.25rem 1.3rem; }
  .brand__tag { display: none; }
  .brand__logo { height: 32px; }
  .acc__count { display: none; }
  .epanel__cta { width: 100%; justify-content: center; }
}

/* ===== Preferencia de movimiento reducido ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
