/* ═══════════════════════════════════════════════════════════
   GRAFICIVIL CONSTRUCTORA SPA — Arriendo de herramientas
   Paleta y tipografías según Manual de Identidad Visual
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Marca */
  --navy: #0B2D5B;
  --navy-800: #082247;
  --navy-900: #051834;
  --yellow: #F4B400;
  --yellow-600: #DDA300;
  --cyan: #00B0F0;
  --gray: #6B7280;
  --white: #FFFFFF;
  --bg-light: #F3F6FA;

  /* Funcionales */
  --ok: #16A34A;
  --warn: #F59E0B;
  --error: #DC2626;
  --wa: #25D366;
  --wa-ink: #052E16;

  /* Texto */
  --ink: #1F2937;
  --ink-soft: #4B5563;
  --line: #DFE6EF;

  /* Forma */
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 2px 6px rgba(5, 24, 52, .06), 0 1px 2px rgba(5, 24, 52, .05);
  --shadow: 0 18px 40px -18px rgba(5, 24, 52, .28), 0 4px 12px rgba(5, 24, 52, .06);
  --shadow-lg: 0 36px 70px -28px rgba(5, 24, 52, .45), 0 10px 24px rgba(5, 24, 52, .08);

  --font-title: "Montserrat", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 72px;
  --container: 1200px;
}

/* ─────────── Base ─────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 800; line-height: 1.12; margin: 0; color: var(--navy); letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
use[href="#i-wa"], use[href="#i-star"] { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 860px; }
.center { display: flex; justify-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.break { overflow-wrap: anywhere; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--yellow); color: var(--navy-900); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ─────────── Botones ─────────── */
.btn {
  --bg: var(--navy); --fg: var(--white);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.4em;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, border-color .25s, color .25s;
  touch-action: manipulation; user-select: none;
}
.btn::after { /* brillo diagonal */
  content: ""; position: absolute; inset: 0 auto 0 -60%; width: 45%; z-index: -1;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease); pointer-events: none;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(5, 24, 52, .5); }
  .btn:hover::after { left: 120%; }
}
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { min-height: 46px; padding: .55em 1.05em; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: .95em 1.7em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--wa { --bg: var(--wa); --fg: var(--wa-ink); }
.btn--wa:hover { box-shadow: 0 16px 30px -12px rgba(37, 211, 102, .6); }
.btn--yellow { --bg: var(--yellow); --fg: var(--navy-900); }
.btn--navy { --bg: var(--navy); --fg: var(--white); }
.btn--ghost { --bg: rgba(255, 255, 255, .04); --fg: var(--white); border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--outline { --bg: transparent; --fg: var(--navy); border-color: var(--navy); }
.btn--outline:hover { --bg: var(--navy); --fg: var(--white); }
.btn .i { width: 1.2em; height: 1.2em; }

/* ─────────── Títulos de sección ─────────── */

.section { position: relative; padding: 80px 0; }
.section--light { background: var(--bg-light); }
.section--dark { background: var(--navy-800); color: rgba(255, 255, 255, .82); overflow: hidden; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .section-lead { color: rgba(255, 255, 255, .78); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.85rem, 4.6vw, 2.9rem); }
.section-lead { margin-top: 16px; font-size: 1.08rem; color: var(--ink-soft); }

/* Superficie sobre fondo oscuro (sin desenfoque decorativo) */
.glass {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
}

/* Franja de seguridad (identidad de marca, quieta) */
.stripe {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 16px, var(--navy-900) 16px 32px);
}

/* ─────────── Barra superior ─────────── */
.topbar { display: none; background: var(--navy-900); color: rgba(255, 255, 255, .78); font-size: .88rem; }
.topbar__inner { display: flex; align-items: center; gap: 28px; min-height: 40px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar a:hover { color: var(--yellow); }
.topbar .i { width: 15px; height: 15px; color: var(--yellow); }
.topbar__addr { margin-left: auto; display: none !important; }
@media (min-width: 1000px) { .topbar__addr { display: inline-flex !important; } }

/* ─────────── Header ─────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h); margin-bottom: calc(var(--header-h) * -1);
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.header.is-scrolled {
  background: rgba(5, 24, 52, .94);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5), inset 0 -1px 0 rgba(255, 255, 255, .06);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); margin-right: auto; }
.brand__mark { padding: 3px; display: grid; } /* área de protección del isotipo */
.brand__mark img { width: 42px; height: 42px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-title); font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; }
.brand__text small { font-size: .875rem; color: var(--yellow); font-weight: 600; letter-spacing: .02em; margin-top: 3px; line-height: 1.2; text-wrap: balance; max-width: 15em; }
@media (min-width: 440px) { .brand__text small { white-space: nowrap; max-width: none; } }

.nav { display: none; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
  position: relative; display: block; padding: 10px 12px; border-radius: 10px;
  color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: color .2s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease), opacity .3s;
}
.nav__list a:hover, .nav__list a.is-active { color: var(--white); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.header__cta { display: none; }

.burger {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: var(--white); cursor: pointer;
}
.burger .i { width: 24px; height: 24px; }

/* Menú lateral */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(3, 14, 31, .6); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
  display: flex; flex-direction: column; padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: var(--white);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .4);
  transform: translateX(100%); transition: transform .45s var(--ease); overflow-y: auto;
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer__close { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: var(--white); cursor: pointer; }
.drawer__close .i { width: 24px; height: 24px; }
.drawer__list li { border-bottom: 1px solid rgba(255, 255, 255, .08); opacity: 0; transform: translateX(16px); transition: opacity .4s, transform .4s var(--ease); }
.drawer.is-open .drawer__list li { opacity: 1; transform: none; }
.drawer.is-open .drawer__list li:nth-child(2) { transition-delay: .04s; }
.drawer.is-open .drawer__list li:nth-child(3) { transition-delay: .08s; }
.drawer.is-open .drawer__list li:nth-child(4) { transition-delay: .12s; }
.drawer.is-open .drawer__list li:nth-child(5) { transition-delay: .16s; }
.drawer.is-open .drawer__list li:nth-child(6) { transition-delay: .2s; }
.drawer__list a { display: flex; align-items: center; min-height: 56px; font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.drawer__list a.is-active { color: var(--yellow); }
.drawer__foot { margin-top: auto; padding-top: 24px; display: grid; gap: 14px; }
.drawer__contact { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .95rem; }
.drawer__contact .i { color: var(--yellow); }

/* ─────────── HERO ─────────── */
.hero {
  position: relative; padding: calc(var(--header-h) + 28px) 0 0;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-800) 60%, var(--navy-900) 100%);
  color: var(--white);
}
.hero__inner { display: grid; gap: 36px; padding-bottom: 56px; }
.hero__title { color: var(--white); font-size: clamp(2.1rem, 6.4vw, 3.7rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 18px; text-wrap: balance; }
.hl { color: var(--yellow); }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: rgba(255, 255, 255, .86); max-width: 52ch; }
.hero__ctas { margin-top: 26px; }
.hero__ctas .btn { width: 100%; }
.hero__quick { margin-top: 26px; }
.hero__quick-label { color: rgba(255, 255, 255, .74); margin-bottom: 10px; }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick a {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: var(--white);
  font-weight: 600; line-height: 1.2; text-decoration: none; transition: background-color .25s, border-color .25s;
}
.quick a:hover { background: rgba(255, 255, 255, .1); border-color: var(--yellow); }
.quick .i { width: 22px; height: 22px; color: var(--yellow); flex: none; }
.hero__figure { margin: 0; }
.hero__photo { overflow: hidden; border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.hero__figure img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 64%;
}
.hero__figure figcaption { margin-top: 12px; color: rgba(255, 255, 255, .78); }
.hero__figure figcaption strong { color: var(--white); }
.hero__figure figcaption a { color: var(--yellow); font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.hero__base { position: relative; }


/* ─────────── Catálogo ─────────── */
.chips {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 20px; scrollbar-width: none;
  margin: 0 -20px 30px; padding: 4px 20px 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 28px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; min-height: 46px; padding: 10px 20px; border-radius: 999px;
  background: var(--white); color: var(--navy); border: 1.5px solid var(--line); font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.chip:hover { border-color: var(--navy); transform: translateY(-1px); }
.chip.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: 0 10px 20px -10px rgba(11, 45, 91, .7); }

.catalog { display: grid; gap: 22px; grid-template-columns: 1fr; }
.product {
  position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r);
  border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, opacity .3s;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--yellow); }
.product.is-out { opacity: 0; transform: scale(.96); }
.product[hidden] { display: none; }
.product__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(150deg, #E8EEF6, #D7E1EE); }
.product__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product:hover .product__media img { transform: scale(1.06); }
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #5B6B82; font-weight: 600; font-size: .9rem;
}
.ph .i { width: 64px; height: 64px; stroke-width: 1.3; color: var(--navy); opacity: .45; transition: transform .6s var(--ease); }
.product:hover .ph .i { transform: scale(1.08); }
.product__tag, .badge-example {
  position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 12px; border-radius: 999px;
  font-size: .875rem; font-weight: 700; letter-spacing: .01em;
}
.product__tag { background: rgba(5, 24, 52, .85); color: var(--white); backdrop-filter: blur(6px); }
.badge-example { background: var(--yellow); color: var(--navy-900); box-shadow: 0 6px 14px -6px rgba(244, 180, 0, .8); }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.product__body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.product__body p { color: var(--ink-soft); }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); }
.product__body p { margin-bottom: 18px; }
.price { font-size: .95rem; color: var(--ink-soft); }
.price strong { color: var(--navy); }

.catalog-note {
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
  margin-top: 34px; padding: 22px; border-radius: var(--r);
  background: #FFF7DD; border: 1.5px solid rgba(244, 180, 0, .55);
}
.catalog-note__txt { display: flex; gap: 14px; }
.catalog-note__txt .i { width: 26px; height: 26px; color: #A16E00; margin-top: 2px; }
.catalog-note p { color: #4A3B10; }
.catalog-note strong { color: var(--navy-900); }

/* ─────────── Quiénes somos ─────────── */
.about { position: relative; display: grid; gap: 36px; }
.about__intro .section-title { margin-bottom: 18px; }
.about__intro p { color: rgba(255, 255, 255, .84); font-size: 1.08rem; max-width: 60ch; }
.about__intro p + p { margin-top: 14px; }
.about__list li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.about__list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.about__ico { color: var(--yellow); flex: none; padding-top: 2px; }
.about__ico .i { width: 26px; height: 26px; }
.about__list h3 { font-size: 1.1rem; margin-bottom: 4px; }
.about__list p { color: rgba(255, 255, 255, .78); }

/* Trabajos destacados: el resto se abre con “Ver los N trabajos” (solo con JS) */
.js .services.is-collapsed > .svc:nth-child(n+5) { display: none; }
.svc-all { display: flex; justify-content: center; margin-top: 28px; }
#svc-all[hidden] { display: none; }

/* ─────────── Cómo arrendar ─────────── */
.steps { position: relative; display: grid; gap: 34px; margin-bottom: 46px; counter-reset: s; }
.steps::before { /* línea punteada vertical (móvil) */
  content: ""; position: absolute; left: 39px; top: 40px; bottom: 40px; width: 0;
  border-left: 2.5px dashed rgba(11, 45, 91, .25);
}
.step { position: relative; display: grid; grid-template-columns: 80px 1fr; column-gap: 20px; align-items: start; }
.step__circle {
  position: relative; grid-row: span 2; display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #164a8c, var(--navy) 60%, var(--navy-800)); color: var(--yellow);
  box-shadow: 0 16px 30px -14px rgba(11, 45, 91, .8), 0 0 0 7px var(--white), 0 0 0 8.5px rgba(11, 45, 91, .12);
  transition: transform .45s var(--ease);
}
.step:hover .step__circle { transform: translateY(-4px) rotate(-4deg); }
.step__circle .i { width: 32px; height: 32px; }
.step__n { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--navy-900); font-family: var(--font-title); font-weight: 800; font-size: .95rem; box-shadow: 0 0 0 3px var(--white); }
.step h3 { font-size: 1.2rem; margin: 14px 0 6px; }
.step p { color: var(--ink-soft); }

/* ─────────── Servicios: enlace “Cotizar” y otros servicios ─────────── */
.area__cta { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin-top: auto; padding-top: 12px; align-self: flex-start; font-weight: 700; color: var(--navy); text-decoration: none; }
.area__cta .i { width: 18px; height: 18px; color: var(--yellow-600); transition: transform .3s var(--ease); }
.area__cta:hover .i, .svc:hover .area__cta .i { transform: translateX(4px); }
.svc-more { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.svc-more p { color: var(--ink-soft); max-width: 62ch; }
.svc-more strong { color: var(--navy); }



/* ─────────── FAQ ─────────── */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: var(--navy); box-shadow: var(--shadow); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 20px;
  font-family: var(--font-title); font-weight: 700; font-size: 1.05rem; color: var(--navy); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-light); color: var(--navy); flex: none; transition: transform .4s var(--ease), background-color .3s, color .3s; }
.faq details[open] .faq__ico { transform: rotate(45deg); background: var(--yellow); color: var(--navy-900); }
.faq__a { padding: 0 20px 20px; color: var(--ink-soft); }
.faq details[open] .faq__a { animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
.faq__a a { color: var(--navy); font-weight: 600; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ─────────── Contacto ─────────── */
.contact { position: relative; display: grid; gap: 28px; }
.ccards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.ccard {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-sm); text-decoration: none; color: var(--white); min-height: 76px;
  transition: transform .4s var(--ease), border-color .3s;
}
.ccard:hover { transform: translateY(-3px); border-color: rgba(244, 180, 0, .55); }
.ccard small { display: block; font-size: .875rem; color: rgba(255, 255, 255, .65); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ccard strong { display: block; font-size: 1rem; }
.ccard > span:last-child { min-width: 0; }
.ccards li:nth-child(n+3) { grid-column: 1 / -1; }
.ccard__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--yellow); color: var(--navy-900); flex: none; }
.ccard__ico--wa { background: var(--wa); color: var(--wa-ink); }
.hours { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: rgba(255, 255, 255, .8); }
.hours[hidden] { display: none; }
.form__status a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.hours .i { color: var(--yellow); }
.hours strong { color: var(--white); }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); background: var(--navy-800); }
.map iframe { display: block; width: 100%; height: 300px; border: 0; }

.form { position: relative; background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: 30px 22px 24px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); overflow: hidden; }
.form::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--yellow) 0 60%, var(--cyan) 60%); }
.form .form__title { font-size: 1.45rem; color: var(--navy); }
.form__sub { color: var(--ink-soft); margin: 6px 0 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field label span[aria-hidden] { color: var(--error); }
.opt { color: var(--gray); font-weight: 500; font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: 1rem; border-radius: 12px;
  border: 1.5px solid #CBD5E1; background: #FBFCFE; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2D5B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px rgba(0, 176, 240, .22); }
.field input::placeholder, .field textarea::placeholder { color: #667085; }
.field.has-error input, .field.has-error select { border-color: var(--error); background: #FEF6F6; }
.field__error { color: var(--error); font-size: .92rem; font-weight: 600; margin-top: 6px; min-height: 0; }
.field__error:empty { display: none; }
.form__actions { display: grid; gap: 10px; margin-top: 22px; }
.form__status { margin-top: 12px; font-weight: 600; color: #15803D; }
.form__status:empty { display: none; }
.form__privacy { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.form__privacy .i { width: 18px; height: 18px; margin-top: 2px; color: var(--navy); }

/* ─────────── Footer ─────────── */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding-bottom: 96px; }
.footer__grid { display: grid; gap: 34px; padding-top: 56px; padding-bottom: 36px; grid-template-columns: 1fr; }
.footer__brand img { width: 180px; padding: 8px; margin: -8px 0 14px -8px; }
.footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; letter-spacing: .02em; }
.footer ul { display: grid; gap: 8px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--yellow); }
.footer__contact a, .footer__contact li > span { display: inline-flex; align-items: flex-start; gap: 10px; }
.footer__contact .i { color: var(--yellow); margin-top: 3px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social[hidden] { display: none; }
.social a { display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-weight: 600; font-size: .9rem; }
.footer__bottom { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.footer__slogan { color: var(--yellow); font-weight: 600; }

/* ─────────── WhatsApp flotante + barra móvil ─────────── */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; display: none; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: var(--white); box-shadow: 0 16px 30px -10px rgba(37, 211, 102, .7);
  transition: transform .35s var(--ease);
}
.wa-float .i { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float.is-away { opacity: 0; transform: scale(.8); pointer-events: none; }

.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(5, 24, 52, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .4);
}
.mobilebar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 14px; font-weight: 700; text-decoration: none; font-size: 1.02rem; }
.mobilebar__call { background: rgba(255, 255, 255, .1); color: var(--white); border: 1px solid rgba(255, 255, 255, .2); }
.mobilebar__wa { background: var(--wa); color: var(--wa-ink); }
.mobilebar .i { width: 22px; height: 22px; }

/* ─────────── Aparición al hacer scroll ─────────── */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
/* Red de seguridad: si el JS no llegó a activar la animación, todo aparece igual a los 2,5 s */
.js:not(.reveal-ready) .reveal { animation: revealFallback .6s 2.5s forwards; }
@keyframes revealFallback { to { opacity: 1; transform: none; } }
.js .product.reveal.in { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, opacity .3s; }

/* ═══════════ Responsive ═══════════ */
@media (min-width: 600px) {
  .container { padding-inline: 28px; }
  .chips { margin-inline: -28px; padding-inline: 28px; scroll-padding-inline: 28px; }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .ccards { grid-template-columns: repeat(2, 1fr); }
  .catalog-note { flex-direction: row; align-items: center; justify-content: space-between; padding: 24px 28px; }
  .catalog-note .btn { flex: none; }
  .form { padding: 36px 34px 30px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .topbar { display: block; }
  .section { padding: 110px 0; }
  .header__cta { display: inline-flex; }
  .footer { padding-bottom: 0; }
  .mobilebar { display: none; }
  .wa-float { display: grid; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps::before { left: 12.5%; right: 12.5%; top: 40px; bottom: auto; height: 0; width: auto; border-left: 0; border-top: 2.5px dashed rgba(11, 45, 91, .25); }
  .step { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .step__circle { grid-row: auto; }
  .step h3 { margin-top: 22px; }
  .hero__inner { padding-bottom: 72px; }
}

@media (min-width: 1000px) {
  .catalog { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .about { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .contact { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
  .hero { padding-top: calc(var(--header-h) + 56px); }
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding-bottom: 88px; }
  .hero__ctas .btn { width: auto; }
  .quick { max-width: 520px; }
  .hero__figure img { aspect-ratio: 4 / 5; max-height: 620px; object-position: 50% 45%; }
}

@media (min-width: 1200px) {
  :root { --header-h: 80px; }
  .nav { display: block; }
  .burger { display: none; }
  body { font-size: 1.0625rem; }
}

/* Movimiento reducido: se detiene solo lo intrusivo */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Impresión */
@media print {
  .topbar, .header, .drawer, .wa-float, .mobilebar { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ─────────── Servicios con fotos reales ─────────── */
.services { display: grid; gap: 22px; grid-template-columns: 1fr; }
.svc {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); overflow: hidden;
  border: 1.5px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, opacity .3s;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--yellow); }
.svc.is-out { opacity: 0; transform: scale(.96); }
.svc[hidden] { display: none; }
.js .svc.reveal.in { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, opacity .3s; }
.svc__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; overflow: hidden; background: #DCE4EE; cursor: zoom-in; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.06); }
.svc__count, .product__photos {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; border: 0; background: rgba(5, 24, 52, .82); color: var(--white);
  font-size: .875rem; font-weight: 700; backdrop-filter: blur(6px);
}
.svc__count .i, .product__photos .i { width: 16px; height: 16px; }
.svc__count { padding: 8px 13px; }
.product__photos { min-height: 44px; padding: 8px 15px; cursor: zoom-in; transition: background-color .25s; }
.product__photos:hover { background: var(--navy); }
.svc__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.svc__body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.svc__body p { color: var(--ink-soft); }

/* ─────────── Galería ─────────── */
.gallery {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(3, 12, 26, .96); color: var(--white); overflow: hidden;
}
.gallery[open] { display: grid; grid-template-rows: auto 1fr; }
.gallery::backdrop { background: rgba(3, 12, 26, .9); }
.gallery__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.gallery__title { flex: 1; font-family: var(--font-title); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.gallery__count { color: var(--yellow); font-weight: 700; white-space: nowrap; }
.gallery__close { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer; flex: none; }
.gallery__close .i { width: 24px; height: 24px; }
.gallery__img { place-self: center; max-width: calc(100vw - 24px); max-height: calc(100dvh - 96px); object-fit: contain; border-radius: 10px; }
.gallery__nav {
  position: absolute; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  border: 0; background: var(--yellow); color: var(--navy-900); cursor: pointer; box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
}
.gallery__nav .i { width: 24px; height: 24px; stroke-width: 2.5; }
.gallery__prev { left: 12px; }
.gallery__prev .i { transform: rotate(180deg); }
.gallery__next { right: 12px; }
.gallery.is-single .gallery__nav, .gallery.is-single .gallery__count { display: none; }

@media (min-width: 600px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .js .services.is-collapsed > .svc:nth-child(n+5):nth-child(-n+6):not([hidden]) { display: flex; }
  .js .services.is-collapsed > .svc:nth-child(n+7) { display: none; }
}
@media (min-width: 1000px) {
  .services { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .gallery__bar { padding: 18px 28px; }
  .gallery__prev { left: 28px; }
  .gallery__next { right: 28px; }
  .gallery__img { max-width: calc(100vw - 200px); }
}
.svc__media--empty { cursor: default; }

/* ═════════════════ MOVIMIENTO ═════════════════
   Todo vive dentro de no-preference: quien pide menos movimiento ve la página quieta y completa. */

/* Cinta de servicios (contenido real, se desliza) */
.ticker { background: var(--navy-900); color: var(--white); overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ticker__track { display: flex; width: max-content; }
.ticker__list { display: flex; flex: none; align-items: center; gap: 0; padding: 16px 0; margin: 0; list-style: none; }
.ticker__list li { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--font-title); font-weight: 700; font-size: 1rem; letter-spacing: .01em; white-space: nowrap; }
.ticker__list li::after { content: ""; width: 9px; height: 9px; background: var(--yellow); transform: rotate(45deg); flex: none; }

@media (prefers-reduced-motion: no-preference) {
  /* ── Portada: entrada coreografiada al cargar ── */
  .js .hero__title, .js .hero__lead, .js .hero__ctas, .js .hero__quick-label, .js .quick li, .js .hero__figure figcaption {
    opacity: 0; transform: translateY(26px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
  }
  .js .hero__title { transform: translateY(34px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
  .js .hero__photo { clip-path: inset(100% 0 0 0 round var(--r)); transition: clip-path 1.3s var(--ease) .25s; }
  .js .hero__figure img { transform: scale(1.18) translateY(var(--py, 0px)); transition: transform 1.8s var(--ease) .25s; }
  .is-loaded.parallax-on .hero__figure img { transition: none; }
  .is-loaded .hero__title, .is-loaded .hero__lead, .is-loaded .hero__ctas, .is-loaded .hero__quick-label,
  .is-loaded .quick li, .is-loaded .hero__figure figcaption { opacity: 1; transform: none; filter: none; }
  .is-loaded .hero__lead { transition-delay: .15s; }
  .is-loaded .hero__ctas { transition-delay: .28s; }
  .is-loaded .hero__quick-label { transition-delay: .4s; }
  .is-loaded .quick li:nth-child(1) { transition-delay: .48s; }
  .is-loaded .quick li:nth-child(2) { transition-delay: .56s; }
  .is-loaded .quick li:nth-child(3) { transition-delay: .64s; }
  .is-loaded .quick li:nth-child(4) { transition-delay: .72s; }
  .is-loaded .hero__figure figcaption { transition-delay: 1s; }
  .is-loaded .hero__photo { clip-path: inset(0 0 0 0 round var(--r)); }
  .is-loaded .hero__figure img { transform: scale(1.06) translateY(var(--py, 0px)); }

  /* Subrayado amarillo que se dibuja bajo "nosotros vemos soluciones" */
  .hl { background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 .09em no-repeat; padding-bottom: .04em; transition: background-size 1s var(--ease) 1.05s; }
  .is-loaded .hl { background-size: 100% .09em; }

  /* ── Botón principal: brillo que pasa solo cada pocos segundos + anillo que respira ── */
  .hero__ctas .btn::after, .header__cta::after { animation: shine 5s var(--ease) 2.2s infinite; }
  @keyframes shine { 0% { left: -60%; } 22%, 100% { left: 130%; } }
  .hero__ctas .btn { animation: breathe 3.2s ease-out 2s infinite; }
  @keyframes breathe { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }
  .hero__ctas .btn:hover { animation: none; }

  /* Íconos de botones: pequeño impulso al pasar el mouse */
  .btn .i, .quick .i, .area__cta .i { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
  .btn:hover .i { transform: rotate(-12deg) scale(1.15); }
  .quick a { transition: background-color .25s, border-color .25s, transform .4s var(--ease); }
  .quick a:hover { transform: translateY(-3px); }
  .quick a:hover .i { transform: scale(1.25) rotate(-8deg); }
  .area__cta:hover .i { transform: translateX(5px); }
  .chip { transition: background-color .25s, color .25s, border-color .25s, transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
  .chip:hover { transform: translateY(-2px); }
  .chip:active { transform: scale(.95); }

  /* Botón flotante: aparece con rebote y late suave */
  .wa-float { animation: popIn .7s cubic-bezier(.34, 1.56, .64, 1) 1.6s both; }
  .wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.6s ease-out 2.4s infinite; pointer-events: none; }
  @keyframes popIn { from { opacity: 0; transform: scale(.3); } }
  @keyframes ring { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.65); opacity: 0; } }

  /* ── Franja de seguridad en movimiento, como cinta de obra ── */
  .stripe { background-size: 45.25px 100%; animation: stripeMove 1.6s linear infinite; }
  @keyframes stripeMove { to { background-position: 45.25px 0; } }

  /* ── Cinta de servicios ── */
  .ticker__track { animation: ticker 38s linear infinite; }
  .ticker:hover .ticker__track { animation-play-state: paused; }
  @keyframes ticker { to { transform: translateX(-50%); } }

  /* ── Títulos de sección: barra amarilla que se dibuja ── */
  .section-title::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 16px; border-radius: 4px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .25s; }
  .section-head--center .section-title::after { margin-inline: auto; transform-origin: center; }
  .js .section-head.in .section-title::after, html:not(.js) .section-title::after { transform: scaleX(1); }

  /* ── Tarjetas: suben con escala y la foto se acomoda ── */
  .js .svc.reveal, .js .product.reveal { transform: translateY(40px) scale(.97); }
  .js .svc.reveal.in, .js .product.reveal.in { transform: none; }
  .js .svc.reveal .svc__media img, .js .product.reveal .product__media img { transform: scale(1.15); transition: transform 1.4s var(--ease) calc(var(--d, 0s) + .1s); }
  .js .svc.reveal.in .svc__media img, .js .product.reveal.in .product__media img { transform: scale(1); }
  .js .svc.reveal.in:hover, .js .product.reveal.in:hover { transform: translateY(-6px); }
  .js .svc.reveal.in:hover .svc__media img, .js .product.reveal.in:hover .product__media img { transform: scale(1.06); transition-duration: .8s; transition-delay: 0s; }

  /* ── Pasos: la línea punteada se traza y los círculos aparecen con rebote ── */
  .js .steps::before { transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease) .2s; }
  .js .steps.in::before { transform: none; }
  .js .step .step__circle { transform: scale(.4); opacity: 0; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1), opacity .4s; transition-delay: calc(var(--d, 0s) + .15s); }
  .js .step.in .step__circle { transform: none; opacity: 1; }
  .js .step.in:hover .step__circle { transform: translateY(-4px) rotate(-6deg); transition-delay: 0s; }
  @media (min-width: 768px) {
    .js .steps::before { transform: scaleX(0); transform-origin: left; }
    .js .steps.in::before { transform: none; }
  }

  /* Tarjetas de contacto y "nosotros": leve inclinación del ícono */
  .about__ico .i { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
  .about__list li:hover .about__ico .i { transform: scale(1.2) rotate(-10deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn--lg, .header__cta, .wa-float { transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, border-color .25s, color .25s, translate .5s var(--ease), opacity .3s; }
  /* Red de seguridad: si el script no llega, la portada aparece igual */
  .js:not(.is-loaded) .hero__title, .js:not(.is-loaded) .hero__lead, .js:not(.is-loaded) .hero__ctas, .js:not(.is-loaded) .hero__quick-label,
  .js:not(.is-loaded) .quick li, .js:not(.is-loaded) .hero__figure figcaption { animation: revealFallback .6s 2.5s forwards; }
  .js:not(.is-loaded) .hero__photo { animation: unclip .6s 2.5s forwards; }
  @keyframes unclip { to { clip-path: inset(0 0 0 0 round var(--r)); } }
}
