/* ==========================================================================
   OMBU Renovaciones · Sistema de marca
   Colores y tipografía extraídos del kit global de omburenovaciones.com
   (Elementor, post-6.css) y del logo original. Ver README.
   ========================================================================== */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300i.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/poppins-900.woff2") format("woff2"); }

:root {
  /* Marca (valores exactos del sitio actual) */
  --ombu-carbon:   #363840;  /* Global «14d4955»: logo, fondos oscuros, titulares */
  --ombu-lavanda:  #D7DAEF;  /* Global «0cf1c55»: texto sobre carbón, círculo de acento */
  --ombu-pizarra:  #6D7180;  /* Botones del sitio actual */
  --ombu-lila:     #C1C6E5;  /* Acento secundario del inicio */
  --ombu-niebla:   #F2F2F2;  /* Superficie clara del sitio actual */
  --ombu-blanco:   #FFFFFF;

  /* Derivados funcionales (misma familia, solo transparencias) */
  --ombu-carbon-90: rgb(54 56 64 / .9);
  --ombu-carbon-60: rgb(54 56 64 / .6);
  --ombu-carbon-12: rgb(54 56 64 / .12);
  --ombu-carbon-06: rgb(54 56 64 / .06);
  --ombu-lavanda-24: rgb(215 218 239 / .24);
  --ombu-lavanda-12: rgb(215 218 239 / .12);

  --text:       var(--ombu-carbon);
  --text-soft:  var(--ombu-pizarra);   /* 4.86:1 sobre blanco (AA) */
  --line:       var(--ombu-carbon-12);
  --text-soft-on-mist: #5E6270; /* pizarra oscurecido: 5.4:1 sobre #F2F2F2 (el original da 4.3:1) */

  /* Tipografía: Poppins, la misma del sitio */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs:   .8125rem;
  --fs-sm:   .9375rem;
  --fs-base: 1rem;
  --fs-md:   clamp(1.0625rem, .98rem + .35vw, 1.1875rem);
  --fs-lg:   clamp(1.25rem, 1.1rem + .7vw, 1.5rem);
  --fs-xl:   clamp(1.625rem, 1.3rem + 1.6vw, 2.375rem);
  --fs-2xl:  clamp(2rem, 1.45rem + 2.8vw, 3.25rem);
  --fs-3xl:  clamp(2.375rem, 1.5rem + 4.6vw, 4.5rem);

  /* Espaciado y forma */
  --gutter: clamp(1rem, .6rem + 2vw, 2rem);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --max: 1200px;
  --radius-sm: 10px;   /* imágenes del sitio actual */
  --radius:    20px;
  --radius-lg: 40px;   /* comparador del sitio actual */
  --pill: 999px;       /* botones del sitio actual */

  --shadow-sm: 0 1px 2px rgb(54 56 64 / .06), 0 2px 8px rgb(54 56 64 / .06);
  --shadow:    0 8px 30px rgb(54 56 64 / .12);
  --shadow-lg: 0 24px 60px rgb(54 56 64 / .22);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --tap: 48px;
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--ombu-blanco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
em { font-style: italic; }

::selection { background: var(--ombu-lavanda); color: var(--ombu-carbon); }

:focus-visible { outline: 3px solid var(--ombu-pizarra); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--ombu-lavanda); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 1rem; top: -100px; z-index: 1000;
  background: var(--ombu-carbon); color: #fff; padding: .75rem 1.25rem; border-radius: var(--pill);
  text-decoration: none; font-weight: 500; transition: top .2s;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Superficies niebla: el texto secundario usa la variante oscurecida para cumplir AA */
.on-mist { --text-soft: var(--text-soft-on-mist); }

/* ---------- Tipos de marca ----------
   El sitio actual combina titulares en Poppins 900 con una segunda línea
   en Poppins 300 cursiva. Se conserva como firma visual. */
.display { font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.display em, .title em { font-weight: 300; font-style: italic; letter-spacing: -.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-soft);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow { color: var(--ombu-lavanda); }
.title { font-size: var(--fs-2xl); font-weight: 900; letter-spacing: -.02em; }
.lead { font-size: var(--fs-md); font-weight: 300; color: var(--text-soft); line-height: 1.65; }
.on-dark { color: #fff; }
.on-dark .lead { color: var(--ombu-lavanda); }

/* ---------- Botones (píldora, como en el sitio actual) ---------- */
.btn {
  --btn-bg: var(--ombu-pizarra);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--tap); padding: .8rem 1.6rem;
  border: 0; border-radius: var(--pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { --btn-bg: var(--ombu-carbon); }
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: var(--fs-base); }
.btn--light { --btn-bg: var(--ombu-lavanda); --btn-fg: var(--ombu-carbon); }
.btn--light:hover { --btn-bg: #fff; }
.btn--white { --btn-bg: #fff; --btn-fg: var(--ombu-carbon); }
.btn--white:hover { --btn-bg: var(--ombu-lavanda); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { --btn-bg: var(--ombu-carbon-06); }
.on-dark .btn--ghost:hover { --btn-bg: rgb(255 255 255 / .12); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; text-decoration: none;
  min-height: var(--tap);
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
