/* ECONE Asesoría de Empresa · estilos v1
   Concepto: banda naranja de entrada con la «e» del logo cortada por el borde izquierdo, como en la tarjeta;
   debajo, bloques cortos y escaneables. Colores tomados de la tarjeta (naranja, gris y verde del logo). */

@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/jost-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Code Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/source-code-pro-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #FCFBFA;
  --surface: #FFFFFF;
  --sunk: #F3F2F0;
  --ink: #232427;
  --ink-2: #5E6167;
  --line: #DEDCD9;
  --logo-word: #5E6167;
  --brand: #F46C25;
  --brand-ink: #B84A14;
  --on-brand: #1E1F22;
  --paper: #FFFFFF;
  --green: #7DA22A;
  --btn-bg: #232427;
  --btn-fg: #FFFFFF;
  --font-display: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Source Code Pro", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141518; --surface: #1C1D21; --sunk: #18191C; --ink: #ECECEE; --ink-2: #A9ACB2;
    --line: #2F3137; --logo-word: #D9DADC; --brand-ink: #FF8A4C;
    --btn-bg: #F46C25; --btn-fg: #1E1F22; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141518; --surface: #1C1D21; --sunk: #18191C; --ink: #ECECEE; --ink-2: #A9ACB2;
  --line: #2F3137; --logo-word: #D9DADC; --brand-ink: #FF8A4C;
  --btn-bg: #F46C25; --btn-fg: #1E1F22; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p, ul, ol, dl { margin: 0; }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 20;
  padding: 10px 16px; background: var(--btn-bg); color: var(--btn-fg); border-radius: 4px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 4px; border: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.15); }
.num { font-variant-numeric: tabular-nums; }
/* Botón «Mostrar email» (protección contra robots) */
.reveal {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.reveal:hover { color: var(--brand-ink); }
.reveal-card {
  justify-self: start; text-decoration: none;
  font: 600 16px/1.2 var(--font-body); color: var(--brand-ink);
  border: 1px solid currentColor; border-radius: 4px; padding: 10px 16px;
}
.reveal-card:hover { background: var(--sunk); }
.todo { display: inline-block; padding: 0 6px; border: 1px dashed var(--brand-ink); border-radius: 3px; color: var(--brand-ink); font-weight: 600; }

/* Cabecera */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { display: block; color: var(--logo-word); line-height: 0; }
.logo svg { height: 40px; width: auto; aspect-ratio: 103.7 / 33.67; display: block; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 16px; }
.main-nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) {
  .main-nav a:not(.btn) { display: none; }
  .logo svg { height: 34px; }
  .main-nav .btn { padding: 10px 14px; font-size: 15px; }
}

/* Entrada */
.hero { background: var(--brand); color: var(--on-brand); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(20px, 5vw, 80px);
  max-width: 1440px;
  margin-inline: auto;
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.hero-e { display: block; height: clamp(150px, 28vw, 380px); width: auto; aspect-ratio: 15.55 / 31.27; }
.hero-copy { display: grid; gap: 18px; padding-block: clamp(40px, 6vw, 80px); max-width: 640px; min-width: 0; }
.hero .kicker { color: var(--on-brand); opacity: 0.8; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 500; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 6px; }
.hero .btn { background: var(--on-brand); color: var(--paper); }
.hero :focus-visible { outline-color: var(--on-brand); }
.hero-phone { display: flex; flex-direction: column; line-height: 1.2; }
.hero-phone span { font-size: 14px; opacity: 0.8; }
.hero-phone a { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .hero-grid { align-items: start; }
  .hero-e { height: 116px; margin-top: 40px; }
}

/* Secciones */
.section { padding-block: clamp(56px, 8vw, 96px); }
.band { background: var(--sunk); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; max-width: 62ch; margin-bottom: clamp(32px, 4vw, 44px); }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
.section-head p:not(.kicker) { color: var(--ink-2); font-size: 1.08rem; }

/* Servicios: casillas de formulario */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
@media (max-width: 1080px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }
.svc {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 22px 22px;
  display: grid; gap: 16px; align-content: start;
}
.svc-tag {
  position: absolute; top: -0.8em; left: 16px;
  padding-inline: 8px; background: var(--bg);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink);
}
.svc h3 { font-size: 1.45rem; }
.ticks { list-style: none; padding: 0; display: grid; gap: 8px; }
.ticks li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; width: 8px; height: 8px; background: var(--brand); transform: translateY(-1px); }
.mod {
  font-family: var(--font-mono); font-size: 0.82em; font-weight: 500;
  font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap;
}

/* Calendario fiscal: tira de meses + detalle del mes elegido */
.year { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .year { grid-template-columns: minmax(0, 1fr); } }
.months { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.mo {
  width: 100%; display: grid; gap: 10px; justify-items: start;
  padding: 12px 12px 14px; border-radius: 4px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  font: 600 15px/1 var(--font-body); text-align: left;
}
.mo::after { content: ""; width: 100%; height: 6px; border-radius: 1px; background: var(--line); }
.mo.has::after { background: var(--brand); }
.mo:not(.has) { color: var(--ink-2); }
.mo.is-now { color: var(--brand-ink); }
.mo[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mo:hover { border-color: var(--ink-2); }
.mo-detail { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px 24px; display: grid; gap: 12px; min-width: 0; }
.mo-detail h3 { font-size: 1.6rem; }
.mo-detail ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.mo-detail li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.mo-detail li::before { content: ""; width: 8px; height: 8px; background: var(--brand); transform: translateY(-1px); }
.mo-detail li.none { color: var(--ink-2); }
.mo-detail li.none::before { background: var(--line); }
.year-note { margin-top: 16px; font-size: 14px; color: var(--ink-2); max-width: 70ch; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Quiénes somos y cómo trabajamos */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }
.about-text { display: grid; gap: 16px; max-width: 52ch; }
.about-text h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
.about-text p:not(.kicker) { color: var(--ink-2); font-size: 1.08rem; }
.steps-label { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; margin-bottom: 14px; }
.steps { list-style: none; padding: 0; display: grid; counter-reset: paso; }
.steps li {
  counter-increment: paso;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center;
  padding-block: 14px; border-top: 1px solid var(--line);
  font-weight: 600; font-size: 1.08rem;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(paso);
  font-family: var(--font-display); font-size: 1.9rem; line-height: 1; font-weight: 500;
  color: var(--brand-ink); font-variant-numeric: tabular-nums;
}

/* Contacto */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .ways { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.way {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 22px 24px 24px; display: grid; gap: 10px; align-content: start; min-width: 0;
}
.way-label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.way-value {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.25;
  text-decoration: none; overflow-wrap: anywhere;
}
a.way-value:hover { color: var(--brand-ink); }
.way-note { color: var(--ink-2); font-size: 15px; }
.way-link { color: var(--brand-ink); font-weight: 600; text-underline-offset: 3px; justify-self: start; }
.hours { margin-top: 20px; color: var(--ink-2); }

/* Pie */
.site-foot { border-top: 1px solid var(--line); padding-block: 44px 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-grid p, .foot-grid li { color: var(--ink-2); font-size: 15px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand .logo svg { height: 34px; }
.foot-list { list-style: none; padding: 0; display: grid; gap: 6px; align-content: start; }
.foot-list a { text-decoration: none; }
.foot-list a:hover { text-decoration: underline; }
.foot-base { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }

/* Páginas legales */
.legal { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.legal-body { max-width: 72ch; display: grid; gap: 16px; }
.legal-body h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 4px; }
.legal-body h2 { font-size: 1.35rem; margin-top: 20px; }
.legal-body ul { padding-left: 1.2em; display: grid; gap: 6px; }
.legal-body .updated { color: var(--ink-2); font-size: 15px; }
.legal-body dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; }
.legal-body dt { color: var(--ink-2); }
.legal-body dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .legal-body dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal-body dd { margin-bottom: 10px; }
}
.back { color: var(--brand-ink); font-weight: 600; text-underline-offset: 3px; }
