/* ==========================================================================
   FreeMinds — modern static stylesheet
   Consultoría y desarrollo de software. Cálido, claro y responsive, con la
   paleta ámbar + salvia de la identidad de marca (kit v1.2).
   Basado en la arquitectura de parqueelchiflon.com.ar (mismo enfoque: HTML
   estático, sin build step, un solo CSS y un solo JS compartidos).
   ========================================================================== */

/* ---- Design tokens ----
   Kit de marca v1.2 «Ámbar y grafito»:
   Ámbar #E07A3C · Salvia #5E7A57 · Grafito #22252A
   Bruma #F1F2F0 · Ámbar claro #F5A870 · Ámbar 700 #A8501E
   Los neutros son FRÍOS (derivados de grafito y bruma), no cálidos como en la
   paleta terracota anterior. Todos los pares texto/fondo están verificados
   contra WCAG AA — ver las notas de uso. */
:root {
  /* Acentos. En fondo oscuro el ámbar 700 (#a8501e) del manual es ilegible:
     sirve como color de texto sobre blanco, no sobre grafito. Por eso los
     enlaces y los íconos usan ámbares ACLARADOS. El #e07a3c oficial queda
     para el símbolo y los fondos de acento. */
  --ambar: #e07a3c;
  --ambar-ui: #e07a3c;
  --ambar-dark: #e28146;
  --ambar-darker: #e89d6f;
  --ambar-claro: #f5a870;
  --salvia: #5e7a57;
  --salvia-text: #8da188;

  /* Superficies escalonadas desde el grafito de marca, nunca desde negro
     puro: el negro absoluto con texto blanco cansa la vista y exagera el
     halo alrededor de las letras. */
  --bg: #191b1f;
  --surface: #22252a;        /* tarjetas, features, planes, fichas */
  --sand: #1e2125;           /* secciones alternas */
  --sand-2: #24272c;
  --cream: #24272c;
  --header-bg: rgba(25, 27, 31, .92);
  --footer-bg: #121417;
  --on-accent: #22252a;      /* texto sobre las bandas ámbar */

  --ink: #f4f5f4;            /* títulos */
  --text: #ced0d0;
  --muted: #9a9c9d;
  --line: #43464a;
  --line-strong: #7b7d7f;

  /* Sobre oscuro las sombras casi no elevan: el escalón de superficie y el
     borde hacen ese trabajo. Se mantienen suaves, para profundidad y nada más. */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, .45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);

  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  --wrap: 1120px;
  --header-h: 68px;

  /* Tipografía según el manual (kit v1.4):
     «Source Serif 4 Semibold para el nombre y titulares; Inter Tight para
     bajadas, textos e interfaz.»

     OJO CON EL PESO. Las versiones anteriores (Caprasimo, Calistoga) tenían
     un solo peso y bastaba con font-weight 400. Source Serif 4 es VARIABLE:
     si no se declara 600 explícito, el navegador la renderiza en Regular y el
     nombre pierde presencia. Por eso hay un token propio para el peso, y no
     un 600 suelto repetido en cada regla. */
  --font-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-display-weight: 600;
  --font-body: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---- Reset-ish ---- */
/* color-scheme le avisa al navegador que la página es oscura: pinta las
   barras de scroll, los controles nativos y el fondo del <details> acorde. */
:root { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Titulares (h1/h2) en Source Serif 4 Semibold, como pide el manual.
   El peso sale del token: la fuente es variable y sin declararlo cae a
   Regular, con lo que los titulares pierden jerarquía frente al cuerpo. */
h1, h2 {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
}
h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 1.95rem); }
h3 { font-size: 1.2rem; color: var(--ambar-dark); }
p { margin: 0 0 1rem; }

a { color: var(--ambar-dark); text-underline-offset: 2px; text-decoration-color: rgba(168, 80, 30, .35); }
a:hover { color: var(--ambar-darker); text-decoration-color: currentColor; }

strong, b { font-weight: 700; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

/* ---- Accessibility helpers ---- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ambar-dark); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); z-index: 200;
  transition: top .2s ease; font-weight: 600; text-decoration: none;
}
/* Ojo con la especificidad: :focus le gana al override oscuro de .skip-link,
   y el enlace solo se ve enfocado. Blanco sobre ámbar da 3,0:1 → grafito. */
.skip-link:focus { top: 12px; color: var(--on-accent); }

:focus-visible {
  outline: 3px solid var(--ambar-dark);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Sobre fondos oscuros (banda CTA, contacto destacado, footer) el foco pasa a
   blanco: contra ámbar/ámbar-dark/grafito el ámbar-dark no se ve. */
.cta-band :focus-visible,
.contact-hl :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Layout ---- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0; }
.section--sand { background: var(--sand); }

/* ==========================================================================
   Header + navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}

/* Lockup del imagotipo horizontal (manual, sección 01: es la versión primaria).
   Se arma con el isotipo SVG + texto real en HTML —en vez de incrustar el .svg
   del kit como <img>— por dos motivos: un <img> SVG no puede usar las webfonts
   de la página (caería a serif) y así el nombre de marca queda como texto
   seleccionable y legible para lectores de pantalla.
   Proporciones del archivo oficial imagotipo-horizontal.svg (v1.4):
   símbolo 100 : nombre 56 : bajada 11,4. En el lockup la bajada se justifica
   al ancho exacto del nombre con textLength, cosa que CSS no puede hacer: acá
   se aproxima con letter-spacing. Source Serif 4 angostó el nombre de 264 a
   241 unidades, así que el tracking bajó de .2em a .15em para acompañarlo.
   El cuerpo NO se achicó —al contrario, subió de .56 a .58rem—: 9px en
   mayúsculas ya era el piso de lo legible. */
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand__mark { flex: none; display: grid; place-items: center; line-height: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; gap: .18em; }
.brand__name { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 1.5rem; color: var(--ink); letter-spacing: -.015em; }
.brand__sub { font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; color: var(--salvia-text); font-weight: 600; }
/* "Consultoría y desarrollo de software" no entra al lado del botón Menú en
   pantallas chicas: se oculta y queda solo el nombre de marca. */
@media (max-width: 560px) {
  .header-inner .brand__sub { display: none; }
  .header-inner .brand__name { font-size: 1.32rem; }
}

/* Selector de idioma -------------------------------------------------------
   Es un enlace, no un botón ni un <select>: cambiar de idioma es navegar a
   otro documento, así que tiene que funcionar sin JS, abrirse en pestaña
   nueva con clic del medio y aparecer en el historial.

   Tres detalles de accesibilidad que no son decorativos:
   · lang y hreflang en el propio enlace, para que el lector de pantalla
     pronuncie "English" en inglés y no en español.
   · el texto va escrito en el idioma DESTINO, que es lo que espera alguien
     que no entiende el idioma actual de la página.
   · apunta a la página equivalente, no a la home. */
.lang-switch {
  display: inline-flex; align-items: center; gap: .38rem; flex: none;
  margin-left: auto; padding: .42rem .72rem;
  font-family: var(--font-head); font-weight: 600; font-size: .84rem;
  color: var(--ambar-dark); text-decoration: none;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.lang-switch:hover { background: var(--sand-2); border-color: var(--ambar-dark); color: var(--ambar-darker); }
.lang-switch svg { width: 15px; height: 15px; flex: none; }
/* En el ancho del nav de escritorio el selector va antes del menú; en móvil
   queda entre la marca y el botón, que es donde el pulgar lo alcanza. */
@media (max-width: 900px) { .lang-switch { margin-left: auto; margin-right: .1rem; } }
@media (max-width: 420px) { .lang-switch span { display: none; } .lang-switch { padding: .42rem .5rem; } }

/* Nav */
.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  background: var(--sand); border: 1px solid var(--line-strong);
  color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem;
  padding: .5rem .8rem; border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars span,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: var(--ambar-dark); transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { top: 10px; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; }
.main-nav a {
  display: block; text-decoration: none; color: var(--text);
  font-weight: 600; font-size: .95rem; padding: .55rem .8rem; border-radius: var(--radius-sm);
  transition: background .18s ease, color .18s ease;
}
.main-nav a:hover { background: var(--sand-2); color: var(--ambar-dark); }
.main-nav a[aria-current="page"] { color: var(--ambar-dark); background: var(--sand-2); }
.main-nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px;
  background: var(--salvia);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s ease, visibility .3s;
  }
  .main-nav.is-open { max-height: 80vh; visibility: visible; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
  .main-nav a { padding: .85rem .6rem; border-radius: 8px; font-size: 1.02rem; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
}

/* ==========================================================================
   Page headers (interior pages)
   ========================================================================== */
.page-header { background: linear-gradient(135deg, var(--sand-2), var(--sand)); border-bottom: 1px solid var(--line); }
.page-header__inner { padding: clamp(2rem, 1.4rem + 3vw, 3.4rem) 0 clamp(1.6rem, 1.2rem + 2vw, 2.6rem); }
.page-header .eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ambar-dark);
}
.page-header h1 { margin: .4rem 0 .45rem; font-size: clamp(1.75rem, 1.25rem + 2vw, 2.5rem); color: var(--ink); }
.page-header p { color: var(--muted); margin: 0; max-width: 62ch; }

/* Home split hero */
.home-hero { background: radial-gradient(1200px 520px at 82% -12%, var(--sand-2), var(--sand) 58%, #fff 100%); border-bottom: 1px solid var(--line); }
.home-hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(1.8rem, 1rem + 3vw, 3.6rem);
  padding: clamp(2.6rem, 1.6rem + 4vw, 5rem) 0;
}
@media (max-width: 860px) { .home-hero__inner { grid-template-columns: 1fr; } }
.home-hero__eyebrow { font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ambar-dark); }
.home-hero h1 { font-size: clamp(2rem, 1.3rem + 2.9vw, 3rem); margin: .6rem 0 .9rem; color: var(--ink); }
.home-hero__lead { font-size: 1.16rem; color: var(--muted); max-width: 52ch; margin-bottom: 1.6rem; }
.home-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.home-hero__media { position: relative; }
.home-hero__media img,
.home-hero__media svg { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--surface); }
.home-hero__tag {
  position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, .94);
  border-radius: var(--radius-pill); padding: .4rem .9rem; font-family: var(--font-head);
  font-weight: 700; font-size: .82rem; color: var(--ambar-dark); box-shadow: var(--shadow-sm);
}

/* Section headings, feature cards, CTA band */
.section-head { max-width: 62ch; margin: 0 auto clamp(1.6rem, 1rem + 2vw, 2.6rem); text-align: center; }
/* Cuando una misma <section> contiene dos bloques (encabezado + grilla, dos
   veces), el segundo encabezado necesita respirar lo mismo que el primero.
   El valor iguala el padding superior de .section, así el ritmo no se rompe. */
.section-head--split { margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section-head .eyebrow { font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ambar-dark); }
.section-head h2 { margin: .4rem 0 .5rem; }
.section-head p { color: var(--muted); margin: 0; }

.feature {
  display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); color: inherit; }
.feature__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--sand-2); color: var(--ambar-dark); margin-bottom: .3rem; }
.feature__icon--salvia { color: var(--salvia-text); }
/* El nivel del encabezado depende del contexto (h3 dentro de una sección con h2,
   h2 en 404.htm donde no hay h2 por encima). El tamaño visual es el mismo. */
.feature h2, .feature h3 { margin: 0; color: var(--ink); font-size: 1.2rem; font-weight: 700; }
.feature p { margin: 0; font-size: .95rem; color: var(--muted); }
.feature__more { margin-top: auto; padding-top: .7rem; color: var(--ambar-dark); font-weight: 600; font-size: .9rem; }
.feature:hover .feature__more { text-decoration: underline; }

/* El gradiente arranca en ámbar-dark, no en ámbar: blanco sobre ámbar
   (#e07a3c) da 3,0:1 y no llega a WCAG AA para texto normal.
   Sobre ámbar-dark → ámbar-darker el texto queda entre 5,5:1 y 7,3:1. */
.cta-band { background: linear-gradient(135deg, var(--ambar-dark), var(--ambar-darker)); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 1.4rem + 3vw, 3.6rem); text-align: center; box-shadow: var(--shadow-md); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .92); max-width: 56ch; margin: 0 auto 1.5rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .8rem 1.4rem; border-radius: var(--radius-pill);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary { background: var(--ambar-dark); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--ambar-darker); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }
.btn--outline { background: var(--surface); color: var(--ambar-dark); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ambar-dark); color: var(--ambar-darker); transform: translateY(-2px); }
.btn--sm { padding: .5rem 1rem; font-size: .88rem; }
.btn--block { width: 100%; justify-content: center; }

/* ==========================================================================
   Content layout: main + sidebar
   ========================================================================== */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
}
.layout--reverse { grid-template-columns: 340px minmax(0, 1fr); }
@media (max-width: 860px) { .layout, .layout--reverse { grid-template-columns: 1fr; } }

.prose { max-width: 68ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin: .4rem 0 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }

.lead { font-size: 1.15rem; color: var(--muted); }

/* Sidebar / aside */
.sidebar { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1.2rem; }
@media (max-width: 860px) { .sidebar { position: static; } }

.card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h3 { color: var(--ambar-dark); margin-bottom: .7rem; }
.card--accent { border-left: 4px solid var(--salvia); }
.card p { font-size: .96rem; }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.info-list li { display: flex; gap: .55rem; align-items: baseline; font-size: .96rem; }
.info-list li::before { content: "›"; color: var(--ambar-dark); font-weight: 700; }

.data-block { font-size: .95rem; }
.data-block b { display: block; color: var(--ambar-dark); margin-top: .8rem; }
.data-block b:first-child { margin-top: 0; }

/* ==========================================================================
   Grids + service cards (módulos de Andamio)
   ========================================================================== */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .7rem;
  padding: 1.5rem; transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
/* Grafito sobre ámbar (blanco sobre ámbar-dark da 2,8:1, no llega ni a 3:1
   para gráficos). Sobre salvia es al revés: el blanco rinde más (4,8:1). */
.service-card__icon {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--on-accent); background: var(--ambar-dark);
}
.service-card__icon--salvia { background: var(--salvia); color: #fff; }
.service-card__tag {
  align-self: flex-start; font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ambar-dark); background: var(--sand-2);
  padding: .25rem .6rem; border-radius: var(--radius-pill);
}
.service-card__title { font-size: 1.12rem; margin: 0; color: var(--ink); }
.service-card p { font-size: .95rem; margin: 0; color: var(--text); }
.service-card ul { margin: 0; padding-left: 1.1rem; font-size: .92rem; color: var(--text); }
.service-card li { margin-bottom: .3rem; }

/* Steps ("cómo trabajamos") */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.steps li { position: relative; padding-left: 3.2rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--ambar-dark); color: var(--on-accent); font-family: var(--font-head); font-weight: 700;
  display: grid; place-items: center; font-size: .95rem;
}
.steps h3 { margin-bottom: .2rem; }
.steps p { margin: 0; font-size: .95rem; }

/* ==========================================================================
   Planes (pricing tiers, sin montos)
   ========================================================================== */
.plans-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.plan-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  position: relative;
}
.plan-card--featured {
  border-color: var(--ambar-dark); box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--sand-2), var(--surface) 40%);
}
.plan-card__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--ambar-dark); color: var(--on-accent); font-family: var(--font-head); font-weight: 700;
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .9rem;
  border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); white-space: nowrap;
}
.plan-card__name { font-size: 1.3rem; margin-bottom: .3rem; }
.plan-card__desc { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }
.plan-card__list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .6rem; flex: 1; }
.plan-card__list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .94rem; color: var(--text); }
.plan-card__list svg { flex: none; width: 18px; height: 18px; margin-top: .15rem; color: var(--salvia); }
.plan-note {
  background: var(--sand); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; font-size: .92rem; color: var(--text);
}

/* FAQ (details/summary nativo, accesible sin JS) */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.1rem .2rem; font-family: var(--font-head); font-weight: 700;
  color: var(--ink); font-size: 1.02rem; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-size: 1.4rem; line-height: 1; color: var(--ambar-dark);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 .2rem 1.1rem; margin: 0; color: var(--text); max-width: 68ch; }

/* ==========================================================================
   Founders (Nosotros)
   ========================================================================== */
.founders { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.founder {
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ambar);
  border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; text-align: left;
}
/* Retrato circular. Los archivos de images/equipo/ son cuadrados de 440px
   (2x del tamaño de pantalla) y ya vienen encuadrados a la misma escala. */
.founder__photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none;
  margin: 0 0 1rem; border: 4px solid var(--sand-2); background: var(--sand-2);
  box-shadow: var(--shadow-sm);
}
.founder__name { font-family: var(--font-head); font-weight: 800; font-size: 1.14rem; color: var(--ink); margin-bottom: .25rem; }
.founder__role {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ambar-dark); margin-bottom: .9rem;
}
.founder__bio { font-size: .93rem; color: var(--text); margin: 0 0 1.1rem; }
.founder__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: .45rem;
  font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--ambar-dark);
}
.founder__link:hover { text-decoration: underline; }
.founder__link svg { width: 16px; height: 16px; flex: none; }

/* Ilustración dentro del contenido */
.figure { margin: 1.6rem 0 0; }
.figure img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); background: var(--surface);
}
.figure figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }

/* ==========================================================================
   Contact page bits
   ========================================================================== */
/* Mismo motivo que .cta-band: el gradiente arranca en ámbar-dark para que
   el texto blanco pase WCAG AA en todo el ancho de la banda. */
.contact-hl {
  background: linear-gradient(135deg, var(--ambar-dark), var(--ambar-darker)); color: #fff;
  border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow-md);
}
.contact-hl h2, .contact-hl strong { color: #fff; }
.contact-hl a { color: #fff; }
.contact-methods { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.contact-methods li { display: flex; gap: .6rem; align-items: baseline; }
.contact-methods .label { font-family: var(--font-head); font-weight: 700; color: var(--ambar-dark); min-width: 68px; }
/* Dentro de la banda oscura las etiquetas van en blanco (así el HTML no
   necesita style="color:#fff" inline en cada <li>). */
.contact-hl .contact-methods .label { color: #fff; }
.callout {
  background: var(--sand); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  padding: .8rem 1rem; font-size: .9rem; color: var(--muted);
}

/* ==========================================================================
   Back-to-top + footer
   ========================================================================== */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ambar-dark); color: #fff; font-size: 1.3rem; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--ambar-darker); }

.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, .82); padding: 3rem 0 1.6rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.site-footer h4 { font-family: var(--font-head); color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .9rem; }
.site-footer p { color: rgba(255, 255, 255, .72); font-size: .92rem; margin: 0 0 .5rem; }
.site-footer a { color: var(--ambar-claro); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: .55rem; margin-bottom: .9rem; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 1.35rem; letter-spacing: -.015em; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2rem; padding-top: 1.2rem;
  font-size: .82rem; color: rgba(255, 255, 255, .55);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}

/* Site wrapper for sticky footer */
body { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

/* ==========================================================================
   Scroll-in animation (respects reduced motion)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .service-card, .feature, .btn, .to-top, .plan-card { transition: none !important; }
}

/* ==========================================================================
   Ajustes propios del fondo oscuro
   Cosas que no se resuelven cambiando un token: cambian de lógica.
   ========================================================================== */

/* La banda de acento va en ámbar pleno con texto grafito. El gradiente oscuro
   que funcionaba sobre fondo claro acá casi no se despega del fondo.
   El remate es #ea9257 y no #c96a31: sobre el tono oscuro el grafito quedaba
   en 4,1:1 y ningún color de texto llegaba a AA. Aclarando el remate, el
   grafito da ≥5,1:1 en todo el ancho de la banda. */
.cta-band,
.contact-hl { background: linear-gradient(135deg, var(--ambar), #ea9257); color: var(--on-accent); }
.cta-band h2,
.cta-band p,
.contact-hl h2,
.contact-hl strong,
.contact-hl a,
.contact-hl .contact-methods .label { color: var(--on-accent); }
/* El párrafo va en grafito pleno: con alfa .86 caía a 4,2:1 sobre el ámbar. */
.cta-band :focus-visible,
.contact-hl :focus-visible { outline-color: var(--on-accent); }

.btn--primary { background: var(--ambar); color: var(--on-accent); }
.btn--primary:hover { background: var(--ambar-claro); color: var(--on-accent); }
.btn--ghost { color: var(--on-accent); border-color: rgba(34, 37, 42, .7); }
.btn--ghost:hover { background: rgba(34, 37, 42, .12); color: var(--on-accent); border-color: var(--on-accent); }

.skip-link { background: var(--ambar); color: var(--on-accent); }
.to-top { background: var(--ambar); color: var(--on-accent); }
.to-top:hover { background: var(--ambar-claro); }

.home-hero { background: radial-gradient(1200px 520px at 82% -12%, #24272c, #1e2125 58%, var(--bg) 100%); }
.home-hero__tag { background: rgba(34, 37, 42, .94); color: var(--ambar-claro); }
.nav-toggle__bars span,
.nav-toggle__bars::before,
.nav-toggle__bars::after { background: var(--ambar-dark); }

/* El footer usa blancos con alfa sobre su propio fondo, que es el más oscuro
   de la página: no dependen de los tokens. */
.site-footer h4 { color: #fff; }
