/* ==========================================================================
   CLABA Facility Services · Hoja de estilos
   Colores extraídos del logotipo: gris #595959 y naranja #F49625
   ========================================================================== */

/* Montserrat (SIL Open Font License, ver fonts/Montserrat-LICENSE.txt). Fuente variable: pesos 100-900. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Marca */
  --orange: #F49625;
  --orange-hover: #FFA63F;
  --orange-soft: #FDF0DD;
  --orange-text: #A85A07;          /* naranja oscuro apto para texto sobre fondo claro (contraste 5:1) */
  --gray: #595959;                 /* gris corporativo */

  /* Neutros */
  --ink: #262626;
  --ink-2: #1c1c1c;
  --muted: #595959;
  --line: #E6E4E1;
  --soft: #F6F5F3;
  --white: #FFFFFF;
  --error: #B42318;

  /* Forma y ritmo */
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --header-h: 76px;
  --shadow: 0 10px 30px -12px rgba(38, 38, 38, .25);

  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font: 700 .95rem/1 var(--font);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--orange); color: var(--ink-2); }
.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(244, 150, 37, .8);
}

.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); }

.btn-sm { padding: 11px 20px; font-size: .88rem; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--ink-2); color: #cfcfcf; font-size: .8rem; }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.topbar-group strong { color: var(--white); font-weight: 700; }
.topbar-contact { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
.topbar a { text-decoration: none; font-weight: 500; transition: color .2s; }
.topbar a:hover { color: var(--orange); }
@media (max-width: 899px) { .hide-md { display: none; } }
@media (max-width: 639px) { .hide-sm { display: none; } }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -16px rgba(0, 0, 0, .35);
}

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

.brand img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav li a {
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  background: linear-gradient(var(--orange), var(--orange)) left bottom / 0 3px no-repeat;
  transition: background-size .25s;
}
.main-nav li a:hover { background-size: 100% 3px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 11px;
  width: 22px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
  transition: transform .25s, opacity .2s, top .25s;
}
.nav-toggle-bars { top: 20px; }
.nav-toggle-bars::before { top: -7px; left: 0; }
.nav-toggle-bars::after  { top: 7px;  left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { top: 0; transform: rotate(-45deg); }

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 12px 20px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-header.nav-open .main-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    background: none;
  }
  .main-nav .btn { width: 100%; padding-block: 15px; }
}

/* ---------- Etiqueta de sección ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: "";
  width: 11px; height: 10px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.eyebrow-dark { color: var(--orange-text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(244, 150, 37, .14), transparent 60%),
    linear-gradient(160deg, #2e2e2e 0%, var(--ink-2) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
  padding-block: clamp(56px, 9vw, 120px);
}

.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero h1 .accent { color: var(--orange); }

.hero .lead {
  max-width: 54ch;
  margin-top: 24px;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  color: #d4d4d4;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  font-size: .9rem;
  font-weight: 500;
  color: #c9c9c9;
}
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before {
  content: "";
  width: 10px; height: 9px;
  background: var(--orange);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.hero-art { display: none; }
.hero-art svg { width: 100%; max-width: 440px; margin-inline: auto; overflow: visible; }
.art-ghost  { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 70; stroke-linejoin: round; }
.art-main   { fill: none; stroke: var(--gray);            stroke-width: 70; stroke-linejoin: round; }
.art-accent { fill: var(--orange); }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero-art { display: block; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-soft { background: var(--soft); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2,
.about-copy h2,
.contact-info h2,
.cta-inner h2 {
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.5rem);
  font-weight: 800;
}
.section-head p:not(.eyebrow) { margin-top: 16px; font-size: 1.05rem; color: var(--muted); }

/* ---------- Servicios ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.card {
  position: relative;
  padding: 32px 28px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card::after {
  content: "";
  position: absolute;
  left: 28px; right: 28px; bottom: -1px;
  height: 3px;
  background: var(--orange);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8d5d0; }
.card:hover::after { transform: scaleX(1); }

.card-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 22px;
  background: var(--orange-soft);
  border-radius: 14px;
}
.card-icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { margin-bottom: 10px; font-size: 1.15rem; font-weight: 700; }
.card p { font-size: .95rem; color: var(--muted); }

.sectors { margin-top: clamp(44px, 6vw, 68px); text-align: center; }
.sectors h3 { margin-bottom: 20px; font-size: 1.05rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li {
  padding: 9px 18px;
  font-size: .88rem;
  font-weight: 600;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ---------- Método ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { position: relative; }
.step-num {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink-2);
  background: var(--orange);
  border-radius: 50%;
}
.step h3 { margin-bottom: 8px; font-size: 1.05rem; font-weight: 700; }
.step p { font-size: .93rem; color: var(--muted); }

@media (min-width: 960px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22px;
    left: 62px; right: -12px;
    border-top: 2px dashed #cfccc7;
  }
}

/* ---------- Nosotros ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 960px) { .about { grid-template-columns: 1.1fr .9fr; gap: 72px; } }

.about-copy p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 1.02rem; }
.about-copy h2 + p { margin-top: 24px; }

.group-badge {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.group-badge img { flex: none; width: 84px; height: auto; }
.about-copy .group-badge p { margin-top: 0; font-size: 1rem; color: var(--ink); }

.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) { .values { grid-template-columns: repeat(2, 1fr); } }

.values li {
  padding: 24px 22px;
  background: var(--soft);
  border-left: 4px solid var(--orange);
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
}
.values h3 { margin-bottom: 6px; font-size: 1rem; font-weight: 700; }
.values p { font-size: .9rem; color: var(--muted); }

/* ---------- Banda de llamada a la acción ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 80px);
  color: var(--ink-2);
  background: var(--orange);
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -40px; bottom: -80px;
  width: min(420px, 60vw);
  aspect-ratio: 1 / .9;
  background: rgba(0, 0, 0, .08);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.cta-inner { position: relative; display: grid; gap: 14px; justify-items: start; }
.cta-inner p { max-width: 52ch; font-size: 1.05rem; font-weight: 500; }
.cta-inner .btn { margin-top: 10px; }

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 960px) { .contact { grid-template-columns: .85fr 1.15fr; gap: 72px; } }

.contact-info > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

.contact-list { display: grid; gap: 22px; margin-top: 36px; }
.contact-list dt {
  margin-bottom: 2px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-text);
}
.contact-list dd { font-size: 1.05rem; font-weight: 600; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; text-decoration-thickness: 2px; }

.form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 8px; }
.field label { font-size: .85rem; font-weight: 600; }

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font: 500 .97rem/1.4 var(--font);
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #cfccc7;
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:not([type="checkbox"]):hover,
.field select:hover,
.field textarea:hover { border-color: #a9a6a1; }
.field input:not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(244, 150, 37, .25);
}

.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); }
.field-check label { font-size: .88rem; font-weight: 500; color: var(--muted); }
.field-check a { color: var(--ink); font-weight: 600; }

.form.was-validated :invalid:not(fieldset) { border-color: var(--error); }
.form.was-validated .field-check input:invalid { outline: 2px solid var(--error); outline-offset: 2px; }

.hp { display: none !important; }

.form .btn { justify-self: start; }
.form .btn:disabled { opacity: .65; cursor: progress; transform: none; box-shadow: none; }
.form-status { min-height: 1.4em; font-size: .92rem; font-weight: 600; }
.form-status.is-ok    { color: #1d6b3a; }
.form-status.is-error { color: var(--error); }

/* ---------- Pie ---------- */
.site-footer { color: #c4c4c4; background: var(--ink-2); }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-block: clamp(48px, 7vw, 72px) 40px;
}
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; } }

.footer-brand > img { height: 36px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 36ch; font-size: .92rem; }

.footer-group {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  max-width: 300px;
}
.footer-group span {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a8a8a8;
}
.footer-group img { flex: none; width: 76px; height: auto; }

.footer-title {
  margin-bottom: 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
}
.site-footer li { margin-bottom: 10px; font-size: .92rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px 28px;
  font-size: .84rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom li { margin: 0; font-size: inherit; }

/* ---------- Páginas legales ---------- */
.page-head {
  padding-block: clamp(44px, 7vw, 80px);
  color: var(--white);
  background: linear-gradient(160deg, #2e2e2e 0%, var(--ink-2) 100%);
}
.page-head h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.page-head .eyebrow { margin-bottom: 12px; }

.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal-body { max-width: 840px; }
.legal-meta { margin-bottom: 8px; font-size: .88rem; color: var(--muted); }

.legal h2 { margin: 44px 0 4px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.legal p, .legal li { color: #3a3a3a; }
.legal p { margin-top: 14px; }
.legal ul { margin-top: 12px; padding-left: 1.3em; list-style: disc; }
.legal li { margin-top: 6px; padding-left: 4px; }
.legal li::marker { color: var(--orange); }
.legal a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.legal a:hover { background: var(--orange-soft); }

.legal .datos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.legal .datos dt {
  padding: 12px 18px 0;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-text);
  background: var(--soft);
}
.legal .datos dd { padding: 2px 18px 12px; font-weight: 600; background: var(--soft); border-bottom: 1px solid var(--line); }
.legal .datos dd:last-child { border-bottom: 0; }
@media (min-width: 640px) {
  .legal .datos { grid-template-columns: 240px 1fr; }
  .legal .datos dt { padding: 12px 18px; border-bottom: 1px solid var(--line); }
  .legal .datos dd { padding: 12px 18px; }
  .legal .datos dt:last-of-type { border-bottom: 0; }
}

/* Datos que aún hay que completar antes de publicar */
mark.pendiente {
  padding: 0 .3em;
  font-weight: 700;
  color: #5c4400;
  background: #FFE88A;
  border-radius: 3px;
}

/* ---------- Animación de entrada (solo si hay JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  .cards .reveal:nth-child(3n+2),
  .steps .reveal:nth-child(4n+2) { transition-delay: .08s; }
  .cards .reveal:nth-child(3n+3),
  .steps .reveal:nth-child(4n+3) { transition-delay: .16s; }
  .steps .reveal:nth-child(4n+4) { transition-delay: .24s; }

  /* El hover de las tarjetas no debe heredar el retardo de entrada */
  .js .card.is-visible { transition-delay: 0s; }
}
