/* ==========================================================================
   PALZER — Comercializadora, Construcción y Mantenimiento
   Hoja de estilos principal. Tokens derivados del Brand Style Guide oficial.
   ========================================================================== */

/* ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  /* Marca — primarios */
  --navy:        #18374C;
  --navy-dark:   #0F2435;
  --navy-light:  #244D68;
  --gold:        #FEBD11;
  --gold-dark:   #D9A00A;
  --gold-light:  #FECE4D;
  --gold-ink:    #8A6408; /* variante oscurecida de gold-dark: texto/íconos dorados sobre fondos claros (≥4.5:1) */
  --steel:       #6997AC;
  --steel-dark:  #4E7A8E;
  --steel-light: #93B5C6;
  --white:       #FFFFFF;
  --pearl:       #F4F4F5;
  --charcoal:    #182F3E;
  --gray-dark:   #5A6E7A;
  --gray-mid:    #A8BECA;
  --gray-light:  #EAEAEB;
  --page-bg:     #EEF1F3;

  /* Semántica */
  --color-text:        var(--charcoal);
  --color-text-muted:  var(--gray-dark);
  --color-surface:     var(--white);
  --color-surface-alt: var(--page-bg);
  --color-border:      #DCE3E8;

  /* Tipografía */
  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaciado */
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  --section-pad-y: clamp(3.5rem, 7vw, 7rem);
  --container-pad-x: clamp(1.25rem, 5vw, 2.75rem);
  --container-max: 1288px;

  /* Radios */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-pill: 100px;

  /* Sombras */
  --shadow-sm: 0 2px 10px rgba(15,36,53,.10);
  --shadow-md: 0 10px 30px rgba(15,36,53,.14);
  --shadow-lg: 0 24px 60px rgba(15,36,53,.20);

  /* Escala z-index semántica */
  --z-dropdown: 20;
  --z-sticky: 30;
  --z-overlay: 40;
  --z-modal: 50;
  --z-toast: 60;

  /* Duración / easing */
  --ease-out-expo: cubic-bezier(.16,1,.3,1);
  --dur-sm: .2s;
  --dur-md: .45s;
  --dur-lg: .8s;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--color-surface-alt);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.4vw + 1rem, 4.4rem); font-weight: 700; letter-spacing: .5px; }
h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 2.75rem); font-weight: 700; letter-spacing: .3px; }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); font-weight: 600; letter-spacing: .2px; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: .3px; }

p { text-wrap: pretty; }
.lede { font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem); color: var(--color-text-muted); max-width: 62ch; }
main p, .prose p { max-width: 68ch; }

.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -60px; background: var(--gold); color: var(--navy);
  padding: .75rem 1.25rem; border-radius: var(--radius-md); z-index: var(--z-toast);
  font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; font-size: .85rem;
  transition: top var(--dur-sm) var(--ease-out-expo);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.hero :focus-visible, .section--navy :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible { outline-color: var(--gold); }

/* ── Layout utilities ─────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-x);
}
.section { padding-block: var(--section-pad-y); }
.section--tight { padding-block: calc(var(--section-pad-y) * .6); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--pearl { background: var(--pearl); }
.section--white { background: var(--white); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-heading); font-size: .78rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-ink);
  margin-bottom: var(--space-sm);
}
.section--navy .eyebrow, .hero .eyebrow { color: var(--gold); }
.eyebrow::before { content: ''; width: 22px; height: 3px; background: var(--gold); border-radius: 2px; flex-shrink: 0; }

.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (min-width: 601px) and (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-heading); font-weight: 600; font-size: .82rem;
  letter-spacing: 0; text-transform: uppercase;
  padding: 15px 30px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform var(--dur-sm) var(--ease-out-expo), box-shadow var(--dur-sm) var(--ease-out-expo), background-color var(--dur-sm), color var(--dur-sm);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 13px 28px; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost-invert { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); padding: 13px 28px; }
.btn-ghost-invert:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: .72rem; }
.btn-lg { padding: 19px 40px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-sm), color var(--dur-sm); } .btn:hover { transform: none; } }

/* ── Badges ───────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; padding: 5px 14px;
  border-radius: var(--radius-pill); font-family: var(--font-heading);
  font-size: .68rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}
.badge-gold { background: var(--gold); color: var(--navy); }
.badge-navy { background: var(--navy); color: var(--white); }
.badge-outline { background: transparent; border: 1.5px solid rgba(255,255,255,.5); color: var(--white); }
.badge-outline-navy { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }

/* ── Ícono base ───────────────────────────────────────────────────────── */
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon-sm { width: 17px; height: 17px; }
.icon-lg { width: 30px; height: 30px; }
.icon-xl { width: 40px; height: 40px; }

/* ── Encabezado ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--dur-sm) var(--ease-out-expo);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__word {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem;
  letter-spacing: 3px; color: var(--navy);
}
.brand--footer .brand__word { color: var(--white); }

.nav__list { display: flex; align-items: center; gap: var(--space-lg); }
.nav__link {
  font-family: var(--font-heading); font-size: .82rem; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase; color: var(--charcoal);
  padding: 12px 2px; position: relative;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-sm) var(--ease-out-expo);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--navy); }

.site-header__actions { display: flex; align-items: center; gap: var(--space-lg); }
.header-phone { display: flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; font-size: .92rem; }
.header-phone .icon { color: var(--gold-ink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; height: 24px; justify-content: center; }
.nav-toggle__bar { display: block; height: 2.5px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform var(--dur-sm) var(--ease-out-expo), opacity var(--dur-sm); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav { position: fixed; inset: 84px 0 0 0; background: var(--navy); z-index: var(--z-overlay);
    display: flex; align-items: flex-start; padding: var(--space-2xl) var(--container-pad-x);
    transform: translateX(100%); transition: transform var(--dur-md) var(--ease-out-expo);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: var(--space-lg); width: 100%; }
  .nav__link { color: var(--white); font-size: 1.5rem; }
  .nav__link.is-active { color: var(--gold); }
  .site-header__actions .btn-primary { padding: 12px 20px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) { .nav, .nav-toggle__bar { transition: none; } }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative; background: var(--navy); color: var(--white); overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; min-height: 640px;
}
.hero__content {
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-lg);
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  position: relative; z-index: 2;
}
/* Coreografía de entrada: cada hijo directo aparece en cascada al cargar. */
.js-motion .hero__content > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
}
.js-motion .hero__content > *:nth-child(1) { transition-delay: .05s; }
.js-motion .hero__content > *:nth-child(2) { transition-delay: .16s; }
.js-motion .hero__content > *:nth-child(3) { transition-delay: .27s; }
.js-motion .hero__content > *:nth-child(4) { transition-delay: .38s; }
.js-motion .hero__content > *:nth-child(5) { transition-delay: .48s; }
.js-motion .hero.is-loaded .hero__content > * { opacity: 1; transform: none; }
.js-motion .hero__media { opacity: 0; transform: scale(1.045); transition: opacity 1s var(--ease-out-expo) .1s, transform 1.1s var(--ease-out-expo) .1s; }
.js-motion .hero.is-loaded .hero__media { opacity: 1; transform: scale(1); }
.js-motion .hero__diamonds .diamond { opacity: 0; transform: rotate(45deg) scale(.4); transition: opacity .5s var(--ease-out-expo), transform .5s var(--ease-out-expo); }
.js-motion .hero__diamonds .diamond:nth-child(1) { transition-delay: .55s; }
.js-motion .hero__diamonds .diamond:nth-child(2) { transition-delay: .63s; }
.js-motion .hero__diamonds .diamond:nth-child(3) { transition-delay: .71s; }
.js-motion .hero.is-loaded .hero__diamonds .diamond { opacity: .5; transform: rotate(45deg) scale(1); }
.hero__content h1 { color: var(--white); }
.hero__content h1 .accent { color: var(--gold); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-sm); }
.hero__content .lede { color: var(--gray-mid); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin-top: var(--space-lg); }
.hero__meta-item { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--gray-mid); }
.hero__meta-item .icon { color: var(--gold); }

.hero__media {
  position: relative;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
  background: var(--navy-dark);
}
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,36,53,.15) 0%, rgba(15,36,53,.55) 100%);
}
.hero__seam {
  position: absolute; top: 0; bottom: 0; left: calc(14% - 5px); width: 10px;
  background: var(--gold); z-index: 3; transform: skewX(-9deg);
  display: none;
}

.hero__diamonds { position: absolute; top: 8%; left: 4%; display: flex; gap: 14px; z-index: 1; opacity: .5; }
.diamond { width: 26px; height: 26px; transform: rotate(45deg); border-radius: 3px; }
.diamond--gold { background: var(--gold); }
.diamond--steel { background: var(--steel); opacity: .6; }
.diamond--outline { border: 2px solid var(--gold); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { clip-path: none; min-height: 320px; order: -1; }
  .hero__seam { display: none; }
  .hero__content { padding-top: var(--space-2xl); }
}

/* ── Franja de estadísticas ──────────────────────────────────────────── */
.stats-band { background: var(--navy-dark); }
.stats-band .grid { padding-block: var(--space-2xl); }
.stat { text-align: center; border-left: 1px solid rgba(255,255,255,.12); padding-inline: var(--space-md); }
.stat:first-child { border-left: none; }
.stat__value { font-family: var(--font-heading); font-size: clamp(2rem, 3vw, 2.9rem); font-weight: 700; color: var(--gold); line-height: 1; }
.stat__label { font-size: .85rem; color: var(--gray-mid); margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-heading); }
@media (max-width: 700px) { .stat { border-left: none; border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--space-md); } .stat:first-child { border-top: none; } }

/* ── Tarjetas de servicio ─────────────────────────────────────────────── */
.service-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%;
  position: relative;
  transition: transform var(--dur-md) var(--ease-out-expo), box-shadow var(--dur-md) var(--ease-out-expo);
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-md) var(--ease-out-expo); z-index: 2;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .service-card::after { transition: none; } }
.service-card__media { position: relative; }
.service-card__media-frame { aspect-ratio: 4/3; overflow: hidden; }
.service-card__media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-lg) var(--ease-out-expo); }
.service-card:hover .service-card__media-frame img { transform: scale(1.06); }
.service-card__icon {
  position: absolute; bottom: -22px; left: 20px; width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--gold); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
  z-index: 2;
}
.service-card__icon .icon { color: var(--navy); }
.service-card__body { padding: var(--space-xl) var(--space-lg) var(--space-lg); flex: 1; display: flex; flex-direction: column; }
.service-card__body h3 { margin-bottom: var(--space-xs); }
.service-card__body p { color: var(--color-text-muted); font-size: .95rem; flex: 1; }
.service-card__link { margin-top: var(--space-md); display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 600; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); }
.service-card__link .icon { width: 16px; height: 16px; transition: transform var(--dur-sm) var(--ease-out-expo); }
.service-card:hover .service-card__link .icon { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .service-card, .service-card__media img, .service-card__link .icon { transition: none; } .service-card:hover { transform: none; } .service-card:hover .service-card__media img { transform: none; } }

/* ── Valores / íconos con texto ──────────────────────────────────────── */
.value-item { display: flex; gap: var(--space-md); align-items: flex-start; }
.value-item__icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--pearl); display: flex; align-items: center; justify-content: center;
}
.value-item__icon .icon { color: var(--navy); }
.value-item h3 { margin-bottom: 4px; font-size: 1.05rem; font-weight: 600; letter-spacing: .3px; }
.value-item p { color: var(--color-text-muted); font-size: .93rem; }

/* ── Tarjetas de estadística (stat-card estilo guía) ──────────────────── */
.stat-card {
  background: var(--white); border-radius: var(--radius-lg); padding: var(--space-lg);
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold);
  border-top-left-radius: 0; border-top-right-radius: 0;
}
.stat-card__icon {
  width: 44px; height: 44px; background: var(--navy); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-md);
}
.stat-card__icon .icon { color: var(--gold); }
.stat-card__value { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-card__label { font-family: var(--font-heading); font-size: .78rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }

/* ── Panel Visión / Misión ────────────────────────────────────────────── */
.vm-panel { background: var(--gold); border-radius: var(--radius-lg); padding: var(--space-xl); position: relative; }
.vm-panel__label {
  display: inline-block; background: var(--navy); color: var(--white); padding: 8px 18px;
  border-radius: var(--radius-sm); font-family: var(--font-heading); font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; font-size: .85rem; margin-bottom: var(--space-md);
}
.vm-panel p { color: var(--navy-dark); font-weight: 500; }

/* ── Franja de marcas / logotipos ─────────────────────────────────────── */
.brand-wall { background: var(--white); border-radius: var(--radius-lg); padding: var(--space-xl); box-shadow: var(--shadow-sm); }
.brand-wall__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--space-lg); align-items: center; }
.brand-wall__item {
  display: flex; align-items: center; justify-content: center; height: 64px;
  font-family: var(--font-heading); font-weight: 600; letter-spacing: .5px;
  color: var(--gray-dark); text-align: center; font-size: .95rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-sm);
  transition: color var(--dur-sm), border-color var(--dur-sm);
}
.brand-wall__item:hover { color: var(--navy); border-color: var(--steel); }

/* ── Franja CTA ───────────────────────────────────────────────────────── */
.cta-band { background: var(--navy-light); background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--white); }
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl);
  padding-block: var(--space-2xl); flex-wrap: wrap;
}
.cta-band__text h2 { color: var(--white); max-width: 24ch; }
.cta-band__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* ── Pie de página ────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); color: var(--gray-mid); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-xl);
  padding-block: var(--space-2xl);
}
.footer-col h3 { color: var(--white); font-size: .82rem; letter-spacing: 1.5px; margin-bottom: var(--space-md); }
.footer-col p { font-size: .9rem; line-height: 1.7; max-width: 34ch; }
.footer-col--brand .brand { margin-bottom: var(--space-md); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .9rem; transition: color var(--dur-sm); }
.footer-links a:hover { color: var(--gold); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: .9rem; }
.footer-contact .icon { color: var(--gold); margin-top: 2px; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); padding-block: var(--space-lg); font-size: .82rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur-sm), transform var(--dur-sm), visibility var(--dur-sm);
  z-index: var(--z-sticky);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy-light); }

/* ── Formularios ──────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-label { font-family: var(--font-heading); font-size: .74rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); }
.form-label .req { color: var(--gold-ink); }
.form-input, .form-textarea, .form-select {
  font-family: var(--font-body); font-size: .95rem; padding: 13px 16px;
  border: 2px solid var(--gray-mid); border-radius: var(--radius-md);
  background: var(--white); color: var(--charcoal); outline: none;
  transition: border-color var(--dur-sm);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-dark); opacity: .8; }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--gold-ink); }
.form-input.is-invalid, .form-textarea.is-invalid { border-color: #C0392B; }
.form-error { font-size: .8rem; color: #C0392B; min-height: 1.1em; }
.form-textarea { resize: vertical; min-height: 130px; }
.form-hint { font-size: .78rem; color: var(--color-text-muted); }
.form-consent { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--color-text-muted); }
.form-consent input { margin-top: 4px; }

.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-md); }

.alert { padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); font-size: .92rem; margin-bottom: var(--space-lg); display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: #EAF7EE; color: #1E6B36; border: 1px solid #BFE6CB; }
.alert-error { background: #FDECEA; color: #A32C1A; border: 1px solid #F5C6C0; }

/* ── Contacto: bloque info + mapa ─────────────────────────────────────── */
.contact-info-item { display: flex; gap: var(--space-md); align-items: flex-start; padding-block: var(--space-md); border-bottom: 1px solid var(--color-border); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon { color: var(--gold-ink); }
.contact-info-item h3 { margin-bottom: 2px; font-size: 1.05rem; font-weight: 600; letter-spacing: .3px; }
.contact-info-item p, .contact-info-item a { color: var(--color-text-muted); font-size: .93rem; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 0; width: 100%; height: 320px; filter: grayscale(.15); }

/* ── FAQ / acordeón ───────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding-block: var(--space-lg); text-align: left; font-family: var(--font-heading);
  font-weight: 600; font-size: 1.02rem; color: var(--navy);
}
.faq-q .icon { color: var(--gold-ink); transition: transform var(--dur-sm) var(--ease-out-expo); flex-shrink: 0; }
.faq-item[data-open="true"] .faq-q .icon { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-md) var(--ease-out-expo); }
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a__inner { overflow: hidden; min-height: 0; }
.faq-a__inner > p { padding-bottom: var(--space-lg); color: var(--color-text-muted); max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { .faq-a { transition: none; } }

/* ── Migas de pan ─────────────────────────────────────────────────────── */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--gray-mid); align-items: center; }
.breadcrumbs a { color: var(--gray-mid); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { opacity: .5; }
.section--navy .breadcrumbs, .page-hero .breadcrumbs { color: var(--gray-mid); }

/* ── Encabezado de página interior ────────────────────────────────────── */
.page-hero {
  background: var(--navy); color: var(--white); position: relative; overflow: hidden;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.page-hero__diamonds { position: absolute; top: -10px; right: -10px; display: flex; gap: 10px; opacity: .35; }
.page-hero h1 { color: var(--white); margin-top: var(--space-sm); max-width: 30ch; }
.page-hero .lede { color: var(--gray-mid); margin-top: var(--space-md); }

/* ── Timeline / pasos numerados (uso genuino: proceso de trabajo) ────── */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: var(--space-xl); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading); font-weight: 700; font-size: 2.2rem; color: var(--gold);
  display: block; margin-bottom: var(--space-sm);
}
.step h3 { margin-bottom: 6px; font-size: 1.05rem; font-weight: 600; letter-spacing: .3px; }
.step p { color: var(--color-text-muted); font-size: .92rem; }

/* ── Franja de patrón de diamantes (divisor de marca) ─────────────────── */
.pattern-divider { background: var(--navy); padding-block: var(--space-lg); display: flex; justify-content: center; gap: var(--space-lg); }

/* ── Reveal on scroll ─────────────────────────────────────────────────── */
.reveal { opacity: 1; transform: none; }
.js-motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-lg) var(--ease-out-expo), transform var(--dur-lg) var(--ease-out-expo); }
.js-motion .reveal.is-visible { opacity: 1; transform: none; }
.js-motion .reveal-stagger.is-visible > * { transition-delay: calc(var(--stagger-i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) { .js-motion .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Tabla de categorías de producto ──────────────────────────────────── */
.category-card {
  background: var(--white); border-radius: var(--radius-lg); padding: var(--space-lg);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--space-sm);
}
.category-card__icon { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--navy); display: flex; align-items: center; justify-content: center; }
.category-card h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: .3px; }
.category-card__icon .icon { color: var(--gold); }
.category-card ul { margin-top: var(--space-xs); display: flex; flex-direction: column; gap: 6px; }
.category-card li { font-size: .88rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 8px; }
.category-card li .icon { width: 14px; height: 14px; color: var(--steel-dark); flex-shrink: 0; }

/* ── Página de error 404 ──────────────────────────────────────────────── */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-page .code { font-family: var(--font-heading); font-size: clamp(4rem, 12vw, 8rem); color: var(--gold); line-height: 1; }

/* ── Filas de servicio detallado (alternadas) ─────────────────────────── */
[id] { scroll-margin-top: 100px; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.service-row + .service-row { margin-top: clamp(3rem, 7vw, 5.5rem); }
.service-row--reverse .service-row__media { order: 2; }
.service-row__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.service-row__icon { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-md); }
.service-row__icon .icon { color: var(--gold); }
.service-row__list { margin-top: var(--space-md); display: flex; flex-direction: column; gap: 10px; }
.service-row__list li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; }
.service-row__list .icon { color: var(--steel-dark); margin-top: 3px; }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; } .service-row--reverse .service-row__media { order: -1; } }

/* ── Utilidades ───────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--color-text-muted); }
.visually-divided { border-top: 1px solid var(--color-border); }
