/* =====================================================================
   Ateria Agro Services · VTC latina de Euro Truck Simulator 2
   Tema oscuro verde/lima. Cambia los tokens de :root para ajustar la identidad.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #07120a;
  --bg-alt: #0a1a0f;
  --surface: #102919;
  --surface-2: #15371f;
  --text: #f2f6ee;
  --muted: #b9c5b5;
  --line: rgba(183, 227, 27, .16);

  --brand: #123d20;
  --brand-2: #1f6b2d;
  --lime: #b7e31b;
  --yellow: #f3cf21;
  --cream: #f5f5e8;
  --on-lime: #0b1b0d;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --radius: 12px;
  --radius-lg: 22px;
  --max: 1180px;
  --gap: 1.25rem;
  --header-h: 72px;
}

/* ---------- 2. Reset y base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--lime); }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .6rem; }
h1, h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: .95; }
h1 { font-size: clamp(3.2rem, 9vw, 7rem); letter-spacing: -.01em; }
h1 span { color: var(--lime); }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; max-width: 70ch; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--lime); color: var(--on-lime); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: var(--radius);
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--primary { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn--dark { background: var(--on-lime); color: #fff; border-color: var(--on-lime); }

/* ---------- 4. Header y navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(7, 18, 10, .82); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--text); }
.brand img { height: 50px; width: auto; }
/* "VTC" al final del nombre, con el verde lima de la marca (mismo acento que la palabra Ateria en los títulos) */
.brand__vtc { color: var(--lime); }
.brand__tag { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; color: var(--text); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.nav a:hover { color: var(--lime); }
.nav a[aria-current="page"] { color: var(--lime); box-shadow: 0 2px 0 var(--yellow); }
.nav .nav__cta { color: var(--on-lime); box-shadow: none; padding: .65rem 1.1rem; border-radius: 999px; }
.nav .nav__cta:hover { color: var(--on-lime); }

.nav .nav__login { padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 999px; }
.nav .nav__login:hover { border-color: var(--lime); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

@media (max-width: 1260px) {
  .brand__tag { display: none; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: var(--header-h) 0 auto 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; padding: 1rem;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; }
  .nav .nav__cta { text-align: center; margin-top: .5rem; }
  .nav .nav__login { text-align: center; }
}

/* ---------- 5. Ticker (datos de la VTC) ---------- */
.ticker { background: var(--brand); border-bottom: 1px solid var(--line); font-size: .8rem; }
.ticker__inner { display: flex; flex-wrap: wrap; gap: .25rem 2rem; padding: .5rem 0; color: var(--muted); }
.ticker__inner strong { color: var(--lime); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-right: .35rem; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; min-height: 78vh; display: grid; align-items: center; overflow: hidden;
  background:
    radial-gradient(900px 520px at 82% 25%, rgba(31, 107, 45, .55), transparent 62%),
    radial-gradient(700px 400px at 5% 90%, rgba(183, 227, 27, .07), transparent 60%),
    linear-gradient(120deg, #0d2a16 0%, var(--bg) 72%);
  /* Foto opcional: descomenta y coloca la imagen en img/truck.jpg
     background-image: linear-gradient(90deg, rgba(5,15,8,.94), rgba(5,15,8,.45)), url("../img/truck.jpg"); background-size: cover; */
}
.hero--company { min-height: 50vh; }
.hero__media { position: absolute; inset: 0; pointer-events: none; }
.hero__media::before { /* línea central de la carretera, en movimiento */
  content: ""; position: absolute; left: 0; right: 0; bottom: 46px; height: 4px; opacity: .7;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 60px, transparent 60px 120px);
  animation: road 3s linear infinite;
}
.hero__media::after { /* asfalto */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .45));
  border-top: 1px solid var(--line);
}
@keyframes road { to { background-position: -120px 0; } }
.hero__content { position: relative; padding: 4.5rem 0 7rem; }
.hero--company .hero__content { padding: 3.5rem 0 6rem; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: center; }
.hero__logo {
  justify-self: center; width: min(100%, 320px); padding: 1.75rem;
  background: rgba(245, 245, 232, .06); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.hero__logo img { border-radius: 14px; }
.hero .section__kicker { color: var(--lime); }
.hero .section__lead { color: #e2e9df; font-size: 1.15rem; max-width: 56ch; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.pills { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.25rem 0 0; }
.pills li { border: 1px solid rgba(183, 227, 27, .35); border-radius: 999px; padding: .25rem .9rem; font-size: .85rem; font-weight: 600; color: var(--text); background: rgba(183, 227, 27, .06); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__logo { display: none; }
}

/* Hero con foto (home): captura del camión Ateria en ETS2. El degradado oscuro a la izquierda mantiene legible el texto. */
.hero--photo {
  background-color: #0d2a16;
  background-image:
    linear-gradient(90deg, rgba(5, 15, 8, .93) 0%, rgba(5, 15, 8, .74) 36%, rgba(5, 15, 8, .18) 70%, rgba(5, 15, 8, .04) 100%),
    linear-gradient(180deg, rgba(7, 18, 10, .5) 0%, transparent 24%, transparent 68%, var(--bg) 100%),
    url("../img/hero.jpg");
  background-image:
    linear-gradient(90deg, rgba(5, 15, 8, .93) 0%, rgba(5, 15, 8, .74) 36%, rgba(5, 15, 8, .18) 70%, rgba(5, 15, 8, .04) 100%),
    linear-gradient(180deg, rgba(7, 18, 10, .5) 0%, transparent 24%, transparent 68%, var(--bg) 100%),
    image-set(url("../img/hero.webp") type("image/webp"), url("../img/hero.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 72% 70%;
}
.hero--photo .hero__media { display: none; } /* la línea animada de carretera sobra con la foto */
.hero--photo .hero__grid { grid-template-columns: minmax(0, 660px); }
.hero--photo .hero__content { padding: 2.75rem 0 4rem; } /* más arriba: los botones deben verse en la primera pantalla */
.hero--photo h1 { font-size: clamp(3rem, 8vw, 6rem); margin: 14px 0 16px; }
.hero--photo .hero__actions { margin-top: 1.25rem; }
.hero--photo .pills { margin-top: 1rem; }
@media (max-width: 860px) {
  .hero--photo {
    background-image:
      linear-gradient(180deg, rgba(5, 15, 8, .82) 0%, rgba(5, 15, 8, .72) 60%, var(--bg) 100%),
      url("../img/hero.jpg");
    background-position: 68% center;
  }
}

/* Heros de fotos a pantalla completa (Convoyes, Comunidad, Requisitos): la foto llega hasta el borde inferior de la ventana.
   Cada página solo define su imagen (img/<nombre>.webp + .jpg); el degradado oscuro de la izquierda mantiene legible el texto. */
.hero--convoy, .hero--community, .hero--requirements, .hero--rules, .hero--recognition {
  --shade: linear-gradient(90deg, rgba(5, 15, 8, .93) 0%, rgba(5, 15, 8, .74) 38%, rgba(5, 15, 8, .17) 72%, rgba(5, 15, 8, .05) 100%),
           linear-gradient(180deg, rgba(7, 18, 10, .42) 0%, transparent 18%);
  --shade-mobile: linear-gradient(180deg, rgba(5, 15, 8, .84) 0%, rgba(5, 15, 8, .62) 65%, rgba(5, 15, 8, .38) 100%);
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  background-position: 63% bottom;
}
.hero--convoy .hero__content, .hero--community .hero__content, .hero--requirements .hero__content, .hero--rules .hero__content, .hero--recognition .hero__content { padding-bottom: 5rem; }

.hero--convoy { background-image: var(--shade), url("../img/convoy.jpg"); background-image: var(--shade), image-set(url("../img/convoy.webp") type("image/webp"), url("../img/convoy.jpg") type("image/jpeg")); background-position: 65% bottom; }
.hero--community { background-image: var(--shade), url("../img/community.jpg"); background-image: var(--shade), image-set(url("../img/community.webp") type("image/webp"), url("../img/community.jpg") type("image/jpeg")); }
.hero--requirements { background-image: var(--shade), url("../img/requirements.jpg"); background-image: var(--shade), image-set(url("../img/requirements.webp") type("image/webp"), url("../img/requirements.jpg") type("image/jpeg")); }
.hero--recognition {
  --shade: linear-gradient(90deg, rgba(5, 15, 8, .94) 0%, rgba(5, 15, 8, .78) 26%, rgba(5, 15, 8, .3) 48%, rgba(5, 15, 8, .06) 66%, rgba(5, 15, 8, 0) 100%),
           linear-gradient(180deg, rgba(7, 18, 10, .42) 0%, transparent 18%); /* más corto: se ven los carteles de la autopista */
  background-image: var(--shade), url("../img/recognition.jpg"); background-image: var(--shade), image-set(url("../img/recognition.webp") type("image/webp"), url("../img/recognition.jpg") type("image/jpeg"));
}
@media (max-width: 860px) {
  .hero--convoy { background-image: var(--shade-mobile), url("../img/convoy.jpg"); }
  .hero--community { background-image: var(--shade-mobile), url("../img/community.jpg"); }
  .hero--requirements { background-image: var(--shade-mobile), url("../img/requirements.jpg"); }
  .hero--recognition { background-image: var(--shade-mobile), url("../img/recognition.jpg"); }
}

/* Reglas: la foto se corre un poco a la derecha y su borde izquierdo se difumina (no se nota dónde empieza),
   y el degradado del texto es más corto para que la patrulla se vea mejor. La foto va en ::before y el degradado en ::after. */
.hero--rules {
  --shade: linear-gradient(90deg, rgba(5, 15, 8, .94) 0%, rgba(5, 15, 8, .78) 26%, rgba(5, 15, 8, .3) 48%, rgba(5, 15, 8, .06) 66%, rgba(5, 15, 8, 0) 100%),
           linear-gradient(180deg, rgba(7, 18, 10, .42) 0%, transparent 18%);
  background-image: none;
  background-color: var(--bg);
}
.hero--rules::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../img/rules.jpg") center bottom / cover no-repeat;
  background: image-set(url("../img/rules.webp") type("image/webp"), url("../img/rules.jpg") type("image/jpeg")) center bottom / cover no-repeat;
  transform: translateX(7%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}
.hero--rules::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--shade); }
.hero--rules .hero__content { z-index: 2; }
@media (max-width: 860px) {
  .hero--rules::before { transform: translateX(4%); }
  .hero--rules::after { background: var(--shade-mobile); }
}

/* ---------- 7. Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--brand { background: linear-gradient(100deg, var(--brand), #214f26); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 2.25rem; }
.section__head--row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.section__kicker { display: block; color: var(--yellow); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .6rem; }
.section__lead { color: var(--muted); font-size: 1.1rem; }

/* ---------- 8. Grillas y tarjetas ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid--5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.card {
  position: relative; overflow: hidden; padding: 1.5rem; border-radius: 18px;
  background: linear-gradient(145deg, var(--surface-2), #0c2113); border: 1px solid var(--line);
}
.card::before { content: ""; position: absolute; width: 90px; height: 90px; right: -25px; top: -25px; background: rgba(183, 227, 27, .09); border-radius: 50%; }
.card h3 { margin: .25rem 0 .5rem; position: relative; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; position: relative; }
.card__num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--lime); position: relative; }
.card__more { display: inline-block; margin-top: 1rem; color: var(--lime); font-weight: 800; font-size: .85rem; position: relative; }
.card--link { display: block; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.card--link:hover { border-color: var(--lime); transform: translateY(-3px); }
.badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem !important; }
.badge { border: 1px solid var(--line); border-radius: 6px; padding: .1rem .55rem; font-size: .78rem; font-weight: 700; color: var(--lime); }

.checklist { display: grid; gap: .75rem; margin-top: 1.25rem; }
.checklist li { position: relative; padding-left: 1.7rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--lime); font-weight: 900; }
.rules li::before { content: "▸"; }

/* Panel crema (contraste con el fondo oscuro) */
.panel { background: var(--cream); color: #102114; border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.panel .section__kicker { color: #7a5f00; }
.panel p { color: #4f5f52; }
.panel h2, .panel h3 { color: #102114; }
.panel .checklist li::before { color: var(--brand-2); }

/* ---------- 9. Pestañas (actividades) ---------- */
.tablist { display: flex; gap: .5rem; margin-bottom: 1.5rem; overflow-x: auto; padding-bottom: .25rem; }
.tablist--wrap { flex-wrap: wrap; overflow: visible; }
.tab {
  font: inherit; font-weight: 700; padding: .6rem 1.1rem; color: var(--text); cursor: pointer; white-space: nowrap;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px;
}
.tab:hover { border-color: var(--lime); }
.tab[aria-selected="true"] { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.service-detail { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; padding: 2rem; }
.service-detail__num { font-family: var(--font-display); font-size: clamp(5rem, 12vw, 9rem); line-height: .9; color: var(--lime); position: relative; }
.service-detail h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 2rem; }
.service-detail p { font-size: 1.05rem; }
.service-detail .hero__actions { margin-top: 1.25rem; }
@media (max-width: 720px) { .service-detail { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- 10. Contadores ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.1; color: var(--lime); }
.stat span { display: block; font-weight: 700; }
.stat small { color: var(--muted); }

/* ---------- 10b. Cifras (números con degradado sobre fondo claro) ----------
   Los colores de texto replican la paleta de la estructura de referencia (Tailwind):
   lime-500→green-600, blue-500→indigo-600, orange-400→red-500, slate-700→black; etiqueta slate-600; subtítulo slate-400. */
.cifras { padding: 6rem 0; background: var(--cream); }
.cifras__inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.cifras__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; text-align: center; }
@media (min-width: 768px) { .cifras__grid { gap: 4rem; } }
.cifra { display: flex; flex-direction: column; align-items: center; }
.cifra__num { display: flex; align-items: baseline; margin-bottom: .5rem; font-size: 3.75rem; line-height: 1; font-weight: 900; }
@media (min-width: 768px) { .cifra__num { font-size: 4.5rem; } }
.cifra__num > .counter { margin: 0; }
.cifra__plus { font-size: 2.25rem; font-weight: 700; margin-right: .25rem; line-height: 1; }
.cifra__plus--lime { color: #84cc16; }
.cifra__plus--blue { color: #3b82f6; }
.cifra__plus--slate { color: #334155; }
.cifra__value--lime, .cifra__value--blue, .cifra__value--orange, .cifra__value--slate {
  color: transparent; -webkit-background-clip: text; background-clip: text;
}
.cifra__value--lime   { background-image: linear-gradient(to bottom right, #84cc16, #16a34a); }
.cifra__value--blue   { background-image: linear-gradient(to bottom right, #3b82f6, #4f46e5); }
.cifra__value--orange { background-image: linear-gradient(to bottom right, #fb923c, #ef4444); }
.cifra__value--slate  { background-image: linear-gradient(to bottom right, #334155, #000); }
.cifra__label { margin: 0; font-size: .875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #475569; }
.cifra__sub { margin: .25rem 0 0; font-size: .75rem; color: #94a3b8; }

/* ---------- 11. Carrusel de etiquetas ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 1rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.chip {
  flex: 0 0 auto; padding: .75rem 1.5rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 12. Bloques a dos columnas ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.modules { display: grid; gap: 1.25rem; margin: 1.5rem 0; }
.modules li { border-left: 3px solid var(--lime); padding-left: 1rem; }
.modules h3 { margin-bottom: .2rem; }
.modules p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.bigfact { text-align: center; }
.bigfact strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(4rem, 10vw, 7rem); line-height: 1; color: var(--brand-2); }
.bigfact span { display: block; font-weight: 700; font-size: 1.1rem; }
.bigfact p { margin: .75rem auto 0; }

/* ---------- 13. Pasos ---------- */
.steps { counter-reset: step; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step::after { counter-increment: step; content: "0" counter(step); position: absolute; right: 1.25rem; top: .75rem; font-family: var(--font-display); font-size: 2.6rem; color: rgba(183, 227, 27, .25); }

/* ---------- 14. Calculadora de kilómetros ---------- */
.calc__row { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.calc label { font-weight: 800; }
.calc input { flex: 1; min-width: 140px; padding: .8rem 1rem; border: 1px solid #b9c2b3; border-radius: var(--radius); font: inherit; background: #fff; color: #102114; }
.calc__bar { height: 12px; border-radius: 999px; background: rgba(16, 33, 20, .12); overflow: hidden; margin-top: 1.25rem; }
.calc__bar span { display: block; height: 100%; width: 0; background: var(--brand-2); border-radius: inherit; transition: width .4s; }
.calc__result { margin: .75rem 0 0; font-weight: 700; color: #102114 !important; min-height: 1.6em; }

.calc__opts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
.calc__opts label { display: block; font-size: .78rem; margin-bottom: .3rem; }
.calc__opts select, .calc__opts input { width: 100%; padding: .7rem .8rem; border: 1px solid #b9c2b3; border-radius: var(--radius); font: inherit; background: #fff; color: #102114; }
.calc__time { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; margin: 1rem 0 0; padding: 1rem; border-radius: var(--radius); background: rgba(16, 33, 20, .06); font-size: .9rem; }
.calc__time[hidden] { display: none; }
.calc__time dt { color: #4f5f52; } .calc__time dd { margin: 0; font-weight: 800; text-align: right; color: #102114; }
.calc__ref { margin-top: 1.25rem; font-size: .9rem; }
.calc__ref summary { cursor: pointer; font-weight: 800; }
.calc__ref p { margin: .75rem 0 0; }
.calc__table { width: 100%; border-collapse: collapse; margin-top: .75rem; font-size: .85rem; }
.calc__table th, .calc__table td { padding: .4rem .5rem; text-align: left; border-bottom: 1px solid rgba(16, 33, 20, .15); color: #102114; }
.calc__note { font-size: .8rem; color: #4f5f52; } .calc__note a { color: var(--brand-2); }
@media (max-width: 480px) { .calc__opts { grid-template-columns: 1fr; } }

/* ---------- 15. Equipo ---------- */
.member { display: flex; gap: 1rem; align-items: center; }
.member__avatar { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-2); color: var(--lime); font-family: var(--font-display); font-size: 1.5rem; position: relative; }
.member h3 { margin: 0; }
.member__role { color: var(--yellow); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- 16. Banda CTA ---------- */
.cta-band { background: linear-gradient(100deg, var(--brand), #214f26); border-block: 1px solid var(--line); padding: 3.5rem 0; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.cta-band p { color: #d6e2d2; margin: 0; }

/* ---------- 17. Footer ---------- */
.site-footer { background: #050d07; color: var(--muted); padding-top: 3.5rem; font-size: .92rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.site-footer h4 { color: var(--lime); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer li { margin-bottom: .4rem; }
.footer__brand { display: flex; align-items: center; gap: .75rem; color: #fff; font-weight: 800; margin-bottom: .75rem; }
.footer__brand img { height: 48px; width: auto; }
.social { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.social a { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem; font-weight: 700; font-size: .82rem; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2.5rem; padding: 1.25rem 0 2rem; font-size: .8rem; }
.footer__legal p { max-width: none; margin: 0; }

/* ---------- 18. ¿Por qué Ateria? (logo central + tarjetas) ---------- */
.why { position: relative; overflow: hidden; }
.why__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.why__blob { position: absolute; width: 384px; height: 384px; border-radius: 50%; filter: blur(64px); }
.why__blob--a { top: 10%; left: 10%; background: rgba(183, 227, 27, .14); }
.why__blob--b { bottom: 10%; right: 10%; background: rgba(31, 107, 45, .5); }
.why__inner { position: relative; z-index: 1; }
.why__head { max-width: 56rem; margin: 0 auto 4rem; text-align: center; }
.why__head h2 { margin: 1.25rem 0 1rem; }
.why__head .section__lead { margin-inline: auto; }
.grad { background: linear-gradient(90deg, var(--cream), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill-badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.pill-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

/* Base (móvil / tablet): grilla simple, sin logo ni líneas */
.hub { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .hub { grid-template-columns: 1fr 1fr; } }
.hub__lines, .hub__center { display: none; }

.hub-card {
  padding: 1.5rem; border-radius: 20px; color: var(--text);
  background: linear-gradient(145deg, var(--surface-2), #0c2113);
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}
.hub-card__head { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.hub-card__icon { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--accent); }
.hub-card__icon svg { width: 24px; height: 24px; }
.hub-card h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.hub-card p { margin: 0; max-width: none; font-size: .9rem; color: #cbd5c8; }
.hub-card__badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem !important; }

/* Escritorio: logo al centro y tarjetas flotantes unidas por líneas punteadas */
@media (min-width: 1024px) {
  .hub { display: block; position: relative; height: 750px; margin-top: 2rem; }
  .hub__lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
  .hub__lines line { stroke-width: 3; stroke-dasharray: 8 8; stroke-linecap: round; }

  .hub__center { display: grid; place-items: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; }
  .hub__center > * { grid-area: 1 / 1; }
  .hub__ring { border-radius: 50%; }
  .hub__ring--ping { width: 256px; height: 256px; background: rgba(183, 227, 27, .1); animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
  .hub__ring--pulse { width: 208px; height: 208px; background: rgba(183, 227, 27, .12); animation: pulse 2s ease-in-out infinite; }
  .hub__logo { position: relative; width: 160px; height: 160px; padding: 12px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 4px solid var(--cream); box-shadow: 0 25px 50px rgba(0, 0, 0, .5); }
  .hub__logo img { width: 100%; height: auto; object-fit: contain; }

  .hub-card { position: absolute; width: 288px; z-index: 1; border: 1px solid var(--line); transition: transform .3s; }
  .hub-card:hover { transform: scale(1.05); }
  .hub-card--top { border-top: 4px solid var(--accent); }
  .hub-card--left { border-left: 4px solid var(--accent); }
  .hub-card--right { border-right: 4px solid var(--accent); }
  .hub-card--bottom { border-bottom: 4px solid var(--accent); }
  .hub-card__head { flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: .5rem; }
  .hub-card__icon { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 1rem; }
  .hub-card h3 { font-size: 1.15rem; }

  .hub-card--1 { top: 5%; left: 10%; }
  .hub-card--2 { top: 5%; right: 10%; }
  .hub-card--3, .hub-card--4 { top: 50%; transform: translateY(-50%); }
  .hub-card--3 { left: 2%; }
  .hub-card--4 { right: 2%; }
  .hub-card--3:hover, .hub-card--4:hover { transform: translateY(-50%) scale(1.05); }
  .hub-card--5 { bottom: 5%; left: 15%; }
  .hub-card--6 { bottom: 5%; right: 15%; }
}

/* ---------- 19. Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .hero__media::before, .pill-badge__dot, .hub__ring { animation: none; }
  .btn, .card--link, .hub-card { transition: none; }
}

/* ---------- 20. Idiomas (selector, ticker) ---------- */
.i18n-pending body { visibility: hidden; }   /* solo un instante, mientras se carga el diccionario (js/i18n.js) */
.i18n-note { margin: .35rem 0 0; font-size: .78rem; color: var(--muted); }
.i18n-note[hidden] { display: none; }

.lang { position: relative; flex: none; }
.lang__toggle {
  display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .7rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .03); color: var(--text); font: 700 .74rem/1 var(--font); cursor: pointer;
}
.lang__toggle:hover, .lang__toggle[aria-expanded="true"] { border-color: var(--lime); }
.lang__toggle:focus-visible, .lang__opt:focus-visible, .ticker__lang:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.lang__flag { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); flex: none; }
.lang__chev { transition: transform .15s; }
.lang__toggle[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; z-index: 60; top: calc(100% + 8px); inset-inline-end: 0; min-width: 11.5rem; margin: 0; padding: .35rem; list-style: none;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.lang__menu[hidden] { display: none; }
.lang__opt {
  display: flex; align-items: center; gap: .65rem; width: 100%; padding: .55rem .65rem; border: 0; border-radius: 10px; background: none;
  color: var(--text); font: 600 .9rem/1.2 var(--font); text-align: start; cursor: pointer;
}
.lang__opt:hover { background: rgba(183, 227, 27, .1); color: var(--lime); }
.lang__opt[aria-pressed="true"] { background: rgba(183, 227, 27, .16); color: var(--lime); }
.site-header .lang { margin-inline-start: auto; margin-inline-end: .25rem; }

.ticker__langs { display: inline-flex; align-items: center; gap: .1rem; }
.ticker__lang { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.ticker__lang:hover { color: var(--lime); }
.ticker__lang[aria-pressed="true"] { color: var(--text); font-weight: 700; text-decoration-color: var(--lime); }

@media (max-width: 1180px) { .nav { gap: 1rem; } .nav .nav__login { padding: .55rem .8rem; } }
@media (max-width: 1080px) { .nav { gap: .8rem; } .nav a { font-size: .74rem; letter-spacing: .04em; } .nav .nav__cta { padding: .6rem .9rem; } }

/* ---------- 21. Globo de aviso ("Próximamente") ---------- */
.toast {
  position: fixed; z-index: 100; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: min(92vw, 460px); display: flex; align-items: flex-start; gap: .75rem; padding: .9rem 1rem;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--lime); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55); animation: toast-in .25s ease-out;
}
.toast__icon { font-size: 1.3rem; line-height: 1.2; }
.toast__text { margin: 0; flex: 1; font-size: .92rem; line-height: 1.45; }
.toast__close { flex: none; background: none; border: 0; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.toast__close:hover { color: var(--lime); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

.soon-badge {
  display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; background: rgba(243, 207, 33, .15); color: var(--yellow); border: 1px solid rgba(243, 207, 33, .4);
}
.ticker__langs > span[aria-hidden] { margin: 0 .35rem; }
