/*
Theme Name: Urbaca
Theme URI: https://urbaca.com.mx
Author: Vualaá
Author URI: https://vualaa.com/
Description: Tema base profesional para Urbaca - Infraestructura Hidráulica
Version: 2.5.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: urbaca
Domain Path: /languages
*/


/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --navy:   #002842;
  --mid:    #003F5F;
  --slate:  #4B728C;
  --mist:   #8EA8BA;
  --orange: #B06E0E;
  --ink:    #111111;
  --gray:   #6b7280;
  --border: #e5e7eb;
  --bg:     #ffffff;
  --bg2:    #f8f9fa;
  --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'Noto Sans Mono', monospace; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 68px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 1px 24px rgba(0,40,66,0.07); }

.nav-logo {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.2em; color: var(--navy);
  text-decoration: none; text-transform: uppercase;
}
.nav-logo span { color: var(--orange); }

.nav-logo-img {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 50px;
  object-fit: contain;
}

.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: 0.82rem; color: var(--gray); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-quote-cta { margin-left: 2.5rem; order: 3; }
.btn-ghost { font-size: 0.82rem; color: var(--gray); text-decoration: none; transition: color 0.2s; }
.btn-ghost:hover { color: var(--ink); }
.btn-primary {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.72rem; font-weight: 500;
  background: var(--navy); color: #fff;
  text-decoration: none; padding: 0.55rem 1.3rem;
  border-radius: 100px; letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--mid); transform: translateY(-1px); }

.nav-main {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-left: auto;
  order: 2;
}

.nav-menu-toggle {
  display: none;
  order: 3;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--navy);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

body.nav-menu-open .nav-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-menu-open .nav-menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-menu-open .nav-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 9rem 2rem 6rem;
  position: relative; overflow: hidden;
}
#hero > *:not(.hero-bg-media):not(.hero-bg-overlay):not(.ring) {
  position: relative;
  z-index: 2;
}
.hero-bg-media,
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-media img,
.hero-bg-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg-overlay {
  background: var(--hero-overlay-color, rgba(0, 40, 66, 0.35));
  z-index: 1;
}
.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(0,40,66,0.055);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}


.hero-eyebrow {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.88rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--slate);
  margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp 0.9s 0.1s var(--ease) forwards;
}

.hero-title {
  font-family: 'Noto Sans Mono', monospace;
  font-size: clamp(2.4rem, 5.5vw, 5.6rem);
  font-weight: 300; line-height: 1.1;
  letter-spacing: -0.03em; color: var(--ink);
  max-width: 840px;
  opacity: 0; animation: fadeUp 0.9s 0.25s var(--ease) forwards;
}
.hero-title strong { font-weight: 600; color: var(--navy); }

.hero-sub {
  font-size: 1rem; font-weight: 300;
  line-height: 1.8; color: var(--gray);
  max-width: 480px; margin-top: 2rem;
  opacity: 0; animation: fadeUp 0.9s 0.4s var(--ease) forwards;
}

.hero-actions {
  display: flex; gap: 1rem; align-items: center; margin-top: 3rem;
  opacity: 0; animation: fadeUp 0.9s 0.55s var(--ease) forwards;
}
.hero-cta {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.78rem; font-weight: 500;
  background: var(--navy); color: #fff;
  text-decoration: none; padding: 0.9rem 2.2rem;
  border-radius: 100px; letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 16px rgba(0,40,66,0.18);
}
.hero-cta:hover { background: var(--mid); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,40,66,0.22); }
.hero-link {
  font-size: 0.88rem; color: var(--gray);
  text-decoration: none; display: flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
}
.hero-link:hover { color: var(--ink); }
.hero-link-arrow { transition: transform 0.2s; display: inline-block; }
.hero-link:hover .hero-link-arrow { transform: translateX(4px); }

.hero-stats {
  display: flex; gap: 4rem; margin-top: 5rem;
  padding-top: 3rem; border-top: 1px solid var(--border);
  opacity: 0; animation: fadeUp 0.9s 0.7s var(--ease) forwards;
}
.hero-stat-n {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 2.6rem; font-weight: 600;
  color: var(--navy); line-height: 1; letter-spacing: -0.03em;
}
.hero-stat-n sup { font-size: 1.1rem; font-weight: 400; }
.hero-stat-l { font-size: 0.72rem; color: var(--gray); margin-top: 0.4rem; line-height: 1.45; }

/* ─── LOGOS STRIP ─── */
.logos-strip {
  padding: 3rem; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); text-align: center;
}
.logos-label {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mist); margin-bottom: 1.8rem;
}
.logos-row { display: flex; align-items: center; justify-content: center; gap: 4rem; flex-wrap: wrap; }
.logo-client {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: #cacaca;
  font-weight: 500; transition: color 0.2s;
}
.logo-client:hover { color: var(--slate); }

/* ─── SECTION SHARED ─── */
.section-wrap { max-width: 1100px; margin: 0 auto; padding: 7rem 3rem; }

.section-eyebrow {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 1.2rem;
}

.section-title {
  font-family: 'Noto Sans Mono', monospace;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 300; line-height: 1.15; letter-spacing: -0.03em; color: var(--ink);
}
.section-title strong { font-weight: 600; color: var(--navy); }

.section-body {
  font-size: 0.95rem; font-weight: 300;
  line-height: 1.8; color: var(--gray); max-width: 460px; margin-top: 1.2rem;
}

/* ─── PHOTO FEATURE ─── */
.photo-feature {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.photo-feature.reverse { direction: rtl; }
.photo-feature.reverse > * { direction: ltr; }

.photo-pane { position: relative; overflow: hidden; background: var(--bg2); min-height: 560px; }
.photo-pane img {
  width: 100%; height: 130%; object-fit: cover; display: block;
  position: absolute; top: -15%; left: 0;
  transition: transform 0.7s var(--ease);
  filter: grayscale(12%) contrast(1.04);
}
.photo-pane:hover img { transform: scale(1.04); }
.photo-pane-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,40,66,0.2), transparent);
  pointer-events: none;
}
.photo-feature.reverse .photo-pane-overlay {
  background: linear-gradient(to left, rgba(0,40,66,0.2), transparent);
}

.photo-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 4.5rem; background: var(--bg);
}

.photo-tag {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 1.5rem;
}

.photo-title {
  font-family: 'Noto Sans Mono', monospace;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 300; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 1.2rem;
}
.photo-title strong { font-weight: 600; color: var(--navy); }

.photo-desc {
  font-size: 0.9rem; font-weight: 300;
  line-height: 1.8; color: var(--gray); margin-bottom: 2rem;
}


.photo-specs { display: grid; grid-template-columns: 1fr; column-gap: clamp(2.5rem, 6vw, 5rem); row-gap: 1rem; margin-bottom: 2.2rem; align-items: start; }
.photo-specs--has-video { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.photo-spec { display: flex; gap: 1rem; align-items: baseline; grid-column: 1; }
.photo-specs--no-video .photo-spec { grid-column: 1 / -1; }
.photo-specs-action { grid-column: 1; justify-self: start; margin-top: .8rem; }
.photo-specs--no-video .photo-specs-action { grid-column: 1 / -1; }
.photo-spec:first-child { margin-top: 0; }
.photo-spec-label {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.57rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mist); min-width: 78px; flex-shrink: 0;
}
.photo-spec-val { font-size: 0.82rem; color: var(--ink); }

.btn-outline {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.72rem; font-weight: 500; color: var(--navy);
  border: 1.5px solid var(--navy); padding: 0.65rem 1.5rem;
  border-radius: 100px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background 0.2s, color 0.2s; width: fit-content; letter-spacing: 0.04em;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ─── PRODUCTOS ─── */
.products-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; }

.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}

.product-card {
  background: var(--bg); padding: 2.5rem 2rem;
  transition: background 0.25s; position: relative; overflow: hidden; z-index: 1;
}
.product-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--navy);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.product-card:hover { background: #fafbfc; }
.product-card:hover::after { transform: scaleX(1); }

.product-icon-wrap { width: 48px; height: 48px; margin-bottom: 1.8rem; }
.product-icon-wrap svg { width: 100%; height: 100%; stroke: var(--navy); fill: none; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.product-icon-wrap .product-icon { display: block; width: 100%; height: 100%; }
.product-icon-wrap img { object-fit: contain; }
.product-icon--navy { color: var(--product-icon-color, var(--navy)); }
.product-icon--mask { background: currentColor; -webkit-mask: var(--product-icon-url) center / contain no-repeat; mask: var(--product-icon-url) center / contain no-repeat; }

.product-num {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.57rem; letter-spacing: 0.15em;
  color: var(--mist); position: absolute; top: 1.8rem; right: 1.8rem;
}

.product-name {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.88rem; font-weight: 600;
  color: var(--ink); margin-bottom: 0.7rem; letter-spacing: -0.01em;
}

.product-desc { font-size: 0.83rem; font-weight: 300; line-height: 1.75; color: var(--gray); }

.product-more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.67rem; font-weight: 500; color: var(--navy);
  text-decoration: none; margin-top: 1.5rem; letter-spacing: 0.03em;
  transition: gap 0.2s;
}
.product-more:hover { gap: 0.7rem; }

/* ─── NOSOTROS ─── */
#nosotros { background: var(--bg2); border-top: 1px solid var(--border); }

.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }

.ventajas-list { margin-top: 3rem; list-style: none; }
.ventaja-item {
  display: flex; gap: 1.5rem; padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.ventaja-item.visible { opacity: 1; transform: translateY(0); }

.ventaja-num {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.1em;
  color: var(--mist); flex-shrink: 0; padding-top: 3px; min-width: 24px;
}
.ventaja-title {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem;
}
.ventaja-desc { font-size: 0.84rem; font-weight: 300; line-height: 1.7; color: var(--gray); }

.nos-panel { position: sticky; top: 100px; }

.nos-decades { display: flex; align-items: baseline; gap: 0.5rem; }
.nos-num {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 5.5rem; font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -0.04em;
}
.nos-num-suffix { font-family: 'Noto Sans Mono', monospace; font-size: 2.2rem; color: var(--orange); font-weight: 600; }
.nos-num-label { font-size: 0.82rem; color: var(--gray); font-weight: 300; line-height: 1.5; max-width: 110px; }

.nos-quote-block { border-left: 2px solid var(--navy); padding: 1.8rem 0 1.8rem 2rem; margin-top: 2.5rem; }
.nos-quote {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 1rem; font-weight: 300; font-style: italic;
  line-height: 1.65; color: var(--navy); letter-spacing: -0.01em;
}
.nos-quote-attr {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.57rem; color: var(--mist); margin-top: 1rem; letter-spacing: 0.1em;
}

.nos-panel .section-body { margin-bottom: 1.6rem; }
.nos-panel .hero-cta { display: inline-flex; margin-top: 0.2rem; }

/* ─── PRESENCIA ─── */
.presencia-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; align-items: start; }

.cities-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 0; padding: 0;
}
.city-item { background: var(--bg); padding: 1.2rem 1rem; transition: background 0.2s; text-align: left; display: block; min-width: 0; }
button.city-item { border: 0; border-radius: 0; cursor: pointer; font: inherit; color: inherit; width: 100%; margin: 0; appearance: none; }
.city-item:hover { background: #eef3f7; }
.city-item--interactive:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.city-name { font-family: 'Noto Sans Mono', monospace; font-size: 0.75rem; font-weight: 600; color: var(--navy); margin-bottom: 0.2rem; display: block; }
.city-brand { font-family: 'Noto Sans Mono', monospace; font-size: 0.56rem; letter-spacing: 0.1em; color: var(--mist); text-transform: uppercase; display: block; }
.city-lightbox { position: fixed; inset: 0; z-index: 12000; background: rgba(2, 8, 18, 0.82); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.city-lightbox[hidden] { display: none !important; }
.city-lightbox__dialog { width: min(980px, 94vw); max-height: min(760px, 88vh); background: var(--bg); border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35); }
.city-lightbox__media { min-height: 420px; background: var(--navy); }
.city-lightbox__media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; filter: grayscale(8%) contrast(1.04); }
.city-lightbox__content { padding: clamp(2rem, 4vw, 3.4rem); display: flex; flex-direction: column; justify-content: center; }
.city-lightbox__eyebrow, .city-lightbox__label { font-family: 'Noto Sans Mono', monospace; font-size: 0.68rem; letter-spacing: 0.14em; color: var(--orange); text-transform: uppercase; margin: 0 0 0.8rem; }
.city-lightbox__title { font-family: 'Noto Sans Mono', monospace; color: var(--navy); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 0.95; margin: 0 0 2rem; }
.city-lightbox__label { color: var(--mist); margin-top: 0.5rem; }
.city-lightbox__address { color: var(--ink); font-size: 1rem; line-height: 1.7; margin: 0; white-space: pre-line; }
.city-lightbox__close { position: absolute; right: 1.2rem; top: 1rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; z-index: 1; }
body.city-lightbox-open { overflow: hidden; }

/* ─── CONTACTO ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6rem; align-items: start; }

.contact-info-list { margin-top: 2.5rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.contact-info-label {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mist); min-width: 72px; padding-top: 2px; flex-shrink: 0;
}
.contact-info-val { font-size: 0.88rem; color: var(--ink); line-height: 1.5; }
.contact-info-val a { color: var(--ink); text-decoration: none; }
.contact-info-val a:hover { color: var(--navy); }

/* ── Form: each field is a full box; rows share walls ── */
.lead-form { display: flex; flex-direction: column; }

.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}

.field {
  display: flex; flex-direction: column;
  background: var(--bg); padding: 1.2rem;
  border: 1px solid var(--border);
  border-top: none;
  transition: background 0.15s;
  position: relative;
}
.field:focus-within { background: #f5fafd; z-index: 1; }

/* First standalone field (top of form) gets its top border */
.lead-form > .field:first-of-type { border-top: 1px solid var(--border); }

/* Inside a row: left cell removes right border, right cell keeps its left */
.form-row .field { border-top: none; }
.form-row .field:first-child { border-right: none; }

/* Standalone field after a row */
.form-row + .field { border-top: none; }

.field label {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.57rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 0.45rem;
}

.field input,
.field select,
.field textarea {
  background: transparent; border: none; outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 300; color: var(--ink);
  resize: none; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #d0d0d0; }
.field select { appearance: none; cursor: pointer; }
.field select option { background: #fff; }

.form-submit {
  margin-top: 1.5rem; background: var(--navy); color: #fff;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.78rem; font-weight: 500; border: none;
  padding: 0.95rem 2.2rem; border-radius: 100px; cursor: pointer;
  display: flex; align-items: center; gap: 0.5rem; width: fit-content;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 16px rgba(0,40,66,0.15); letter-spacing: 0.04em;
}
.form-submit:hover { background: var(--mid); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,40,66,0.2); }

.form-note {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.58rem; color: var(--mist); margin-top: 1rem; letter-spacing: 0.06em;
}

.success-msg {
  display: none; padding: 2.5rem; border: 1px solid var(--border);
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.92rem; font-weight: 300; color: var(--navy); text-align: center;
}

.success-msg.is-visible { display: block; }
.lead-form.is-hidden { display: none; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo { font-family: 'Noto Sans Mono', monospace; font-size: 0.92rem; letter-spacing: 0.2em; color: var(--navy); font-weight: 600; }
.footer-logo span { color: var(--orange); }
.footer-logo-img {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 34px;
  object-fit: contain;
}

.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 0.78rem; color: var(--gray); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-family: 'Noto Sans Mono', monospace; font-size: 0.57rem; letter-spacing: 0.08em; color: var(--mist); }
.footer-social { display: flex; gap: 1rem; align-items: center; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); color: var(--gray); transition: color 0.2s, border-color 0.2s, background 0.2s; text-decoration: none; }
.footer-social a:hover { color: var(--navy); border-color: var(--navy); background: var(--bg2); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes drawLine {
  from { stroke-dashoffset: 500; opacity: 0; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.04; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.09; transform: translate(-50%, -50%) scale(1.04); }
}

/* ─── RESPONSIVE ─── */

@media (max-width: 960px) {
  nav { padding: 0 1.5rem; }
  .nav-menu-toggle { display: inline-flex; }
  .nav-quote-cta {
    order: 2;
    margin-left: auto;
    margin-right: 0.75rem;
  }
  .nav-main {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.2rem 1.5rem 1.4rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  body.nav-menu-open .nav-main {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav-actions { width: 100%; justify-content: space-between; }
  .section-wrap { padding: 5rem 1.5rem; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .products-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .nosotros-grid, .contact-grid, .presencia-grid { grid-template-columns: 1fr; gap: 3rem; }
  .nos-panel { position: static; }
  .form-row { grid-template-columns: 1fr; border-top: none; }
  .form-row .field { border-top: none; border-right: 1px solid var(--border); }
  .photo-feature { grid-template-columns: 1fr; }
  .photo-pane { min-height: 320px; }
  .photo-content { padding: 3rem 2rem; }
  .cities-grid { grid-template-columns: repeat(3, 1fr); }
  .city-lightbox__dialog { grid-template-columns: 1fr; overflow-y: auto; }
  .city-lightbox__media, .city-lightbox__media img { min-height: 280px; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; justify-content: center; }
  .logos-row { gap: 2rem; }
}
@media (max-width: 600px) {
  .products-grid, .cities-grid { grid-template-columns: 1fr; }
  .city-lightbox { padding: 1rem; }
  .city-lightbox__content { padding: 1.8rem; }
}

/* ─── ANIMACIONES SCROLL GSAP ─── */

/* Estados iniciales para elementos que se animarán — GSAP los sobrescribe */
.gsap-ready .reveal-up { opacity: 0; transform: translateY(40px); }
.gsap-ready .reveal-left { opacity: 0; transform: translateX(-50px); }
.gsap-ready .reveal-right { opacity: 0; transform: translateX(50px); }
.gsap-ready .reveal-scale { opacity: 0; transform: scale(0.92); }
.gsap-ready .reveal-fade { opacity: 0; }
.gsap-ready .product-card { opacity: 0; transform: translateY(30px); }
.gsap-ready .logo-client { opacity: 0; transform: translateY(10px); }
.gsap-ready .nos-num { opacity: 0; transform: translateY(30px); }
.gsap-ready .hero-stat-n { opacity: 0; transform: translateY(20px); }

/* Parallax container */
.parallax-img { will-change: transform; }

/* Línea divisora animada */
.animated-line { width: 0; height: 1px; background: var(--navy); display: block; margin: 2rem 0; }

/* Contador animado */
.hero-stat-n.counting { display: inline-block; }

.custom-cursor {
  width: 12px;
  height: 12px;
  background: var(--navy);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%);
}
.custom-cursor.hovering {
  width: 36px;
  height: 36px;
  background: rgba(65, 71, 14, 0.5);
  opacity: 1;
}

.photo-video-trigger { position: relative; border: 0; padding: 0; background: transparent; width: 100%; max-width: none; aspect-ratio: 16 / 9; cursor: pointer; border-radius: 8px; overflow: hidden; margin-left: 0; grid-column: 2; grid-row: 1 / span 10; align-self: flex-start; }
.photo-video-trigger img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(12, 42, 79, 0.72); color: #fff; font-size: 1.35rem; display: inline-flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.8); }
.video-lightbox { position: fixed; inset: 0; z-index: 12000; background: rgba(2, 8, 18, 0.82); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.video-lightbox__dialog { width: min(960px, 94vw); aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; }
.video-lightbox__dialog iframe { width: 100%; height: 100%; border: 0; }
.video-lightbox__close { position: absolute; right: 1.2rem; top: 1rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
body.video-lightbox-open { overflow: hidden; }

.video-lightbox[hidden] { display: none !important; }

@media (max-width: 1299px) {
  .photo-specs--has-video { grid-template-columns: 1fr; gap: 30px; }
  .photo-specs--has-video .photo-spec { grid-column: auto; }
  .photo-specs--has-video .photo-specs-action { grid-column: auto; }
  .photo-specs--has-video .photo-video-trigger { grid-column: auto; grid-row: auto; }
}

@media (max-width: 1024px) {
  .custom-cursor {
    display: none;
  }
}

/* Barra de progreso de scroll */
.scroll-progress {
  position: fixed;
  top: 68px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--navy));
  z-index: 199;
  transition: none;
}

/* Grid items de productos */
.product-card {
  opacity: 0;
  transform: translateY(30px);
}

/* Logos strip items */
.logo-client {
  opacity: 0;
  transform: translateY(10px);
}

/* Número grande nosotros */
.nos-num {
  opacity: 0;
  transform: translateY(30px);
}

/* Secciones hero-stats */
.hero-stat-n {
  opacity: 0;
  transform: translateY(20px);
}

/* ───────── THANK YOU TEMPLATE ───────── */
.thank-you-page {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 68px);
  padding: 9rem 2rem 6rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-page .ring {
  animation: ringPulse 6s ease-in-out infinite;
}

.thank-you-wrap {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.check-wrap {
  width: 80px;
  height: 80px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.6rem;
  opacity: 0;
  animation: scaleIn 0.7s 0.15s var(--ease) forwards;
}

.check-wrap svg {
  width: 32px;
  height: 32px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-wrap svg polyline {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawLine 0.6s 0.7s var(--ease) forwards;
}

.ty-eyebrow {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.3s var(--ease) forwards;
}

.ty-title {
  font-family: 'Noto Sans Mono', monospace;
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.9s 0.45s var(--ease) forwards;
}
.ty-title strong { font-weight: 600; color: var(--navy); }

.ty-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--gray);
  max-width: 620px;
  margin: 1.8rem auto 0;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s var(--ease) forwards;
}

.ty-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 3rem auto;
  opacity: 0;
  animation: fadeUp 0.7s 0.7s var(--ease) forwards;
}

.ty-contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s var(--ease) forwards;
}

.ty-contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ty-contact-label {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

.ty-contact-value {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.ty-contact-value:hover { color: var(--navy); }

.ty-contact-sep {
  width: 1px;
  height: 38px;
  background: var(--border);
}

.ty-actions {
  margin-top: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.95s var(--ease) forwards;
}

.btn-back {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 0.75rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-back:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}
.btn-back svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.btn-back:hover svg { transform: translateX(-3px); }

/* ───────── GENERIC PAGE TEMPLATE ───────── */
.legal-page-hero-shell {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.page-hero {
  padding: 9rem 3rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.page-title {
  font-family: 'Noto Sans Mono', monospace;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp 0.8s 0.1s var(--ease) forwards;
}

.content-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 5rem;
  padding: 5rem 3rem 8rem;
  opacity: 0;
  animation: fadeIn 0.7s 0.5s ease forwards;
}

.toc {
  position: sticky;
  top: 100px;
  height: fit-content;
  align-self: start;
}

.toc-label {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1.2rem;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.toc-item a {
  display: block;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  color: var(--gray);
  text-decoration: none;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}

.toc-item a:hover,
.toc-item a.active {
  color: var(--navy);
  padding-left: 0.5rem;
}

.article-body {
  min-width: 0;
}

.article-body h1 {
  font-family: 'Noto Sans Mono', monospace;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.4rem;
  scroll-margin-top: 100px;
}

.article-body h1 strong {
  font-weight: 600;
  color: var(--navy);
}

.article-body h2,
.article-body h3 {
  font-family: 'Noto Sans Mono', monospace;
}

.article-body h2 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-top: 2.2rem;
  margin-bottom: 1.1rem;
  scroll-margin-top: 100px;
}

.article-body h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

.article-body h4 {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.article-body h5 {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.article-body h6 {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.article-body p {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--gray);
  margin-bottom: 1.1rem;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body strong {
  font-weight: 500;
  color: var(--ink);
}

.article-body em {
  font-style: italic;
  color: var(--slate);
}

.article-body code {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.78rem;
  background: var(--bg2);
  color: var(--navy);
  padding: 0.15em 0.5em;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.article-body a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.article-body a:hover {
  color: var(--mid);
  border-color: var(--navy);
}

.article-body ul {
  list-style: none;
  margin: 1rem 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.article-body ul li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray);
}

.article-body ul li::before {
  content: '—';
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.7rem;
  color: var(--mist);
  flex-shrink: 0;
}

.article-body ol {
  list-style: none;
  counter-reset: legal-counter;
  margin: 1rem 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.article-body ol li {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray);
  counter-increment: legal-counter;
}

.article-body ol li::before {
  content: counter(legal-counter, decimal-leading-zero);
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--navy);
  flex-shrink: 0;
  padding-top: 0.22rem;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--navy);
  background: var(--bg2);
}

.article-body blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 0;
}

.article-body pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.86rem;
}

.article-body thead tr {
  border-bottom: 2px solid var(--navy);
}

.article-body th {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: left;
  padding: 0.6rem 1rem 0.6rem 0;
}

.article-body td {
  font-weight: 300;
  color: var(--gray);
  line-height: 1.7;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.article-body tbody tr:last-child td {
  border-bottom: none;
}

.article-body figure {
  margin: 2rem 0;
  border: 1px solid var(--border);
  overflow: hidden;
}

.article-body figure img {
  width: 100%;
  display: block;
}

.article-body figcaption {
  padding: 0.8rem 1rem;
  background: var(--bg2);
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  border-top: 1px solid var(--border);
}

.article-body .wp-block-group {
  margin-bottom: 1.5rem;
}

/* ───────── SINGLE POST TEMPLATE ───────── */
.post-hero-shell {
  overflow: hidden;
}

.single-post-hero {
  width: calc(100% - 6rem);
  max-width: 1100px;
  padding-left: 0;
  padding-right: 0;
}

.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.2rem;
  margin-top: 1.5rem;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0;
  animation: fadeUp 0.8s 0.22s var(--ease) forwards;
}

.single-post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.single-post-meta-item + .single-post-meta-item::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--mist);
  opacity: 0.75;
}

.single-post-meta a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.single-post-meta a:hover {
  color: var(--navy);
}

.single-post-featured-image {
  width: calc(100% - 6rem);
  max-width: 1100px;
  margin: 3rem auto 0;
  max-height: 680px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
}

.single-post-featured-image img {
  display: block;
  width: 100%;
  height: clamp(260px, 42vw, 620px);
  object-fit: cover;
}

.single-post-content-wrap {
  display: block;
  max-width: 760px;
  padding-top: 4.5rem;
}

.single-post-article {
  width: 100%;
}

.single-post-article .page-links {
  margin-top: 2rem;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

.single-post-article .page-links a,
.single-post-article .page-links .post-page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  margin-left: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--navy);
  text-decoration: none;
}

.single-post-article .page-links .current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}


@media (max-width: 960px) {
  .thank-you-page {
    padding-top: 7rem;
  }

  .ty-contact-strip {
    gap: 1.6rem;
  }

  .ty-contact-sep {
    display: none;
  }

  .page-hero {
    padding: 8rem 1.5rem 3rem;
  }

  .content-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem 6rem;
  }

  .single-post-hero {
    width: calc(100% - 3rem);
  }

  .single-post-featured-image {
    width: calc(100% - 3rem);
    margin-top: 2rem;
  }

  .toc { position: static; }
}

/* Detalle de Productos */
.urbaca-product-detail .product-resources,
.urbaca-product-detail .product-categories-detail {
  margin-top: 3rem;
}

.product-section-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 1.2rem;
}

.product-resource-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-resource-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.25s ease, background 0.25s ease, gap 0.25s ease;
}

.product-resource-link:hover {
  background: #fafbfc;
  border-color: var(--navy);
}

.product-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-category-detail {
  border: 1px solid var(--border);
  padding: 1.4rem;
  background: #fff;
}

.product-category-detail h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 1rem;
  color: var(--navy);
}

.product-subproduct-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-subproduct-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding: 0.8rem 0;
  color: var(--gray);
  font-size: 0.92rem;
}

.product-subproduct-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.product-subproduct-list a {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}


@media (max-width: 960px) {
  .product-resource-list,
  .product-category-list {
    grid-template-columns: 1fr;
  }
}


/* ─────────────────────────────────────────
   SINGLE PRODUCTO — Template
───────────────────────────────────────── */

/* ── Hero ── */
.prod-hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 10rem 3rem 5rem;
  margin-top: 68px; /* nav height */
}

.prod-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.prod-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}
.prod-breadcrumb a { color: var(--mist); text-decoration: none; transition: color 0.2s; }
.prod-breadcrumb a:hover { color: #fff; }
.prod-breadcrumb span[aria-current] { color: rgba(255,255,255,0.5); }

.prod-hero__eyebrow {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.2rem;
}

.prod-hero__title {
  font-family: 'Noto Sans Mono', monospace;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 700px;
}

/* decorative grid dots */
.prod-hero__grid-deco {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  pointer-events: none;
  opacity: 0.06;
}
.prod-hero__grid-deco span {
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

/* ── Shared section layout ── */
.prod-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.prod-section-eyebrow {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1rem;
}

.prod-section-title {
  font-family: 'Noto Sans Mono', monospace;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 3rem;
}
.prod-section-title strong { font-weight: 600; color: var(--navy); }

/* ── Resources ── */
.prod-resources {
  border-bottom: 1px solid var(--border);
}

.prod-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.prod-resource-card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: var(--bg);
  padding: 2rem 2rem;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: background 0.2s;
  overflow: hidden;
}
.prod-resource-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.prod-resource-card:hover { background: #f5fafd; }
.prod-resource-card:hover::after { transform: scaleX(1); }

.prod-resource-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--navy);
}
.prod-resource-card__icon svg { width: 100%; height: 100%; }

.prod-resource-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.prod-resource-card__label {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.prod-resource-card__sub {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--gray);
}

.prod-resource-card__arrow {
  font-size: 1.1rem;
  color: var(--navy);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.prod-resource-card:hover .prod-resource-card__arrow { transform: translateY(3px); }

/* ── Categories ── */
.prod-cats {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.prod-cats-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.prod-cat {
  border-bottom: 1px solid var(--border);
}
.prod-cat:last-child { border-bottom: none; }

.prod-cat__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.prod-cat__header:hover { background: #f0f6fb; }

.prod-cat__num {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--mist);
  flex-shrink: 0;
  min-width: 24px;
}

.prod-cat__name {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  letter-spacing: -0.01em;
}

.prod-cat__toggle {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--slate);
  transition: transform 0.3s var(--ease);
}
.prod-cat__toggle svg { width: 100%; height: 100%; }
.prod-cat__header[aria-expanded="false"] .prod-cat__toggle { transform: rotate(180deg); }

.prod-cat__body {
  border-top: 1px solid var(--border);
  overflow: hidden;
  transition: max-height 0.35s var(--ease), opacity 0.25s;
}
.prod-cat__body.is-collapsed {
  max-height: 0 !important;
  opacity: 0;
}

/* Subproduct list */
.prod-subproduct-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.prod-subproduct {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem 1rem 4.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.prod-subproduct:last-child { border-bottom: none; }
.prod-subproduct:hover { background: #f8fafc; }

.prod-subproduct__index {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--mist);
  flex-shrink: 0;
  min-width: 20px;
}

.prod-subproduct__name {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink);
  flex: 1;
}

.prod-subproduct__link {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--navy);
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.prod-subproduct__link:hover { background: var(--navy); color: #fff; }

/* ── CTA ── */
.prod-cta {
  background: var(--navy);
  padding: 7rem 3rem;
  text-align: center;
}

.prod-cta__inner {
  max-width: 680px;
  margin: 0 auto;
}

.prod-cta__eyebrow {
  color: var(--mist);
  margin-bottom: 1rem;
}

.prod-cta__title {
  font-family: 'Noto Sans Mono', monospace;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.5rem;
}
.prod-cta__title strong { font-weight: 600; color: #fff; }

.prod-cta__desc {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--mist);
  margin-bottom: 2.5rem;
}

.prod-cta__actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* override hero-link color in dark bg */
.prod-cta .hero-link { color: var(--mist); }
.prod-cta .hero-link:hover { color: #fff; }

/* ── Responsive ── */

@media (max-width: 960px) {
  .prod-hero { padding: 9rem 1.5rem 4rem; }
  .prod-section-inner { padding: 4rem 1.5rem; }
  .prod-resource-grid { grid-template-columns: 1fr; }
  .prod-cta { padding: 5rem 1.5rem; }
  .prod-cat__header { padding: 1.2rem 1.5rem; }
  .prod-subproduct { padding-left: 48px; }
}

@media (max-width: 600px) {
  .prod-hero { padding: 8rem 1.2rem 3rem; }
  .prod-resource-card { padding: 1.5rem 1.2rem; }
  .prod-subproduct { flex-wrap: wrap; gap: 0.8rem; padding-left: 2rem; }
  .prod-cta__actions { flex-direction: column; }
}

/* Nested product categories */
.prod-subcats-list {
  border-top: 1px solid var(--border);
}

.prod-subcats-list .prod-cat {
  border-left: 3px solid rgba(0, 67, 112, 0.12);
}

.prod-subcats-list .prod-cat__header {
  background: #fbfdff;
  padding-left: 48px;
}

.prod-subcats-list .prod-subcats-list .prod-cat__header {
  padding-left: 4rem;
}

.prod-subcats-list .prod-subproduct {
  padding-left: 5.5rem;
}

.prod-cat__header:disabled {
  cursor: default;
}

.prod-cat__header:disabled:hover {
  background: var(--bg);
}

.product-subcategory-list {
  border-left: 3px solid var(--border);
  margin-top: 1rem;
  padding-left: 1rem;
}

.product-subcategory-list .product-category-detail {
  margin-top: 1rem;
}

/* ─── Ajustes Productos dinámicos y archivo ─── */
.product-card--link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.product-card--link .product-name,
.product-card--link .product-desc,
.product-card--link .product-more {
  display: block;
}

.product-card--link .product-more {
  margin-top: auto;
  padding-top: 1.5rem;
}

.product-card__media {
  display: block;
  width: calc(100% + 4rem);
  aspect-ratio: 16 / 10;
  margin: -2.5rem -2rem 1.8rem;
  background: var(--bg2);
  overflow: hidden;
}

.product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}

.product-card--link:hover .product-card__media img {
  transform: scale(1.04);
  filter: grayscale(10%) contrast(1.04);
}

.products-grid--dynamic,
.products-grid--archive {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prod-archive-hero {
  margin-bottom: 0;
}

.prod-archive-menu {
  border-bottom: 1px solid var(--border);
}

.prod-archive-menu__inner {
  padding-top: 4rem;
}

.prod-cat__resources {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: #fbfdff;
}

.prod-cat__brochure {
  width: fit-content;
}

.prod-empty-state {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fc 100%);
}

.prod-empty-state__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

.prod-empty-state__title {
  font-family: 'Noto Sans Mono', monospace;
  font-size: clamp(1.1rem, 2.3vw, 1.6rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.prod-empty-state__desc {
  max-width: 70ch;
  color: var(--gray);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Base visible; .gsap-ready applies the animated initial state only when JS is active. */
.product-card,
.logo-client,
.nos-num,
.hero-stat-n {
  opacity: 1;
  transform: none;
}


@media (max-width: 960px) {
  .products-grid--dynamic,
  .products-grid--archive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-form .form-row {
    border-top: none;
  }

  .lead-form .field,
  .lead-form .form-row .field {
    border: 1px solid var(--border);
    border-top: none;
  }

  .lead-form > .field:first-child,
  .lead-form > .form-row:first-child .field:first-child {
    border-top: 1px solid var(--border);
  }

  .lead-form .form-row .field:first-child {
    border-right: 1px solid var(--border);
  }
}

@media (max-width: 600px) {
  .products-grid--dynamic,
  .products-grid--archive {
    grid-template-columns: 1fr;
  }

  .prod-cat__resources {
    justify-content: flex-start;
    padding: 1rem 1.5rem;
  }
}


@media (max-width: 960px) {
  .lead-form > .form-row:first-of-type .field:first-child {
    border-top: 1px solid var(--border);
  }
}

/* ─── HOME LOGO TRANSITION (desktop only) ─── */
.home-logo-hero {
  display: none;
}

@media (min-width: 1001px) {
  body.home .home-logo-hero,
  body.page-template-home .home-logo-hero {
    position: absolute;
    top: var(--home-logo-top, 50vh);
    left: var(--home-logo-left, 0);
    transform: translateY(calc(var(--home-logo-shift, 0px) * -1));
    z-index: 150;
    display: block;
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  }

  .home-logo-hero__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--navy);
  }

  .home-logo-hero__img {
    width: auto;
    height: var(--home-logo-height, 160px);
    max-height: none;
    object-fit: contain;
  }

  #mainNav.home-nav .nav-logo {
    opacity: 0;
    transform: scale(0.86);
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }

  body.home-logo-compact #mainNav.home-nav .nav-logo {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  body.home-logo-compact .home-logo-hero {
    opacity: 0;
    transform: translateY(calc(-50% - var(--home-logo-shift, 0px))) scale(0.88);
    pointer-events: none;
  }
}

/* ─── ABOUT US TEMPLATE ─── */
#hero-nos { padding: 10rem 3rem 6rem; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: center; }
.hero-nos-tag { font-family: 'Noto Sans Mono', monospace; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); margin-bottom: 1.5rem; display: block; }
.hero-nos-title { font-family: 'Noto Sans Mono', monospace; font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); }
.hero-nos-title strong { font-weight: 600; color: var(--navy); }
.hero-nos-body { font-size: 1rem; font-weight: 300; line-height: 1.8; color: var(--gray); margin-top: 1.8rem; }
.hero-nos-panel { background: var(--bg2); border: 1px solid var(--border); padding: 2.5rem; }
.hero-stat-block { padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.hero-stat-block:last-child { border-bottom: none; }
.hero-stat-n sup { font-size: 1rem; font-weight: 400; }
.hero-stat-l { font-size: 0.78rem; color: var(--gray); margin-top: 0.3rem; line-height: 1.45; }

#mision { background: var(--navy); padding: 5rem 3rem; }
.mision-wrap { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.mision-tag { font-family: 'Noto Sans Mono', monospace; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist); margin-bottom: 1.2rem; }
.mision-title { font-family: 'Noto Sans Mono', monospace; font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 300; line-height: 1.2; color: #fff; letter-spacing: -0.02em; }
.mision-title strong { font-weight: 600; }
.mision-body { font-size: 0.95rem; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,0.65); margin-top: 1.2rem; }
.mision-quote { font-family: 'Noto Sans Mono', monospace; font-size: 1.1rem; font-weight: 300; font-style: italic; line-height: 1.65; color: #fff; letter-spacing: -0.01em; border-left: 2px solid var(--orange); padding: 1.5rem 0 1.5rem 2rem; }
.mision-attr { font-family: 'Noto Sans Mono', monospace; font-size: 0.57rem; color: rgba(255,255,255,0.35); margin-top: 1rem; letter-spacing: 0.1em; }

#timeline { background: var(--bg2); border-top: 1px solid var(--border); }
.timeline-list { margin-top: 4rem; position: relative; }
.timeline-list::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 3rem; padding: 2.5rem 0; border-bottom: 1px solid var(--border); position: relative; opacity: 0; transform: translateX(-20px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-item::before { content: ''; position: absolute; left: -4px; top: 2.8rem; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); border: 2px solid var(--bg2); }
.timeline-year { font-family: 'Noto Sans Mono', monospace; font-size: 1.3rem; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; padding-left: 1.5rem; align-self: start; }
.timeline-content-title { font-family: 'Noto Sans Mono', monospace; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.timeline-content-desc { font-size: 0.88rem; font-weight: 300; line-height: 1.7; color: var(--gray); }
.timeline-badge { display: inline-block; margin-top: 0.7rem; font-family: 'Noto Sans Mono', monospace; font-size: 0.57rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); border: 1px solid var(--orange); padding: 0.2rem 0.6rem; }

#grupo { border-top: 1px solid var(--border); }
.grupo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 4rem; }
.grupo-card { background: var(--bg); padding: 2.5rem 2rem; transition: background 0.25s; position: relative; overflow: hidden; }
.grupo-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.grupo-card:hover { background: #fafbfc; }
.grupo-card:hover::after { transform: scaleX(1); }
.grupo-card-num { font-family: 'Noto Sans Mono', monospace; font-size: 0.57rem; letter-spacing: 0.15em; color: var(--mist); margin-bottom: 1.8rem; }
.grupo-card-name { font-family: 'Noto Sans Mono', monospace; font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.6rem; }
.grupo-card-desc { font-size: 0.88rem; font-weight: 300; line-height: 1.7; color: var(--gray); }
.grupo-card-founded { font-family: 'Noto Sans Mono', monospace; font-size: 0.57rem; letter-spacing: 0.1em; color: var(--mist); margin-top: 1.5rem; }

#certificaciones { background: var(--bg2); border-top: 1px solid var(--border); }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; margin-top: 3rem; }
.cert-grid--full { display: block; width: 100%; }
.cert-grid--full .cert-list { width: 100%; }
.cert-list { margin-top: 2rem; list-style: none; }
.cert-item { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.2rem 0; border-bottom: 1px solid var(--border); }
.cert-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--navy); }
.cert-title { font-family: 'Noto Sans Mono', monospace; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 0.2rem; }
.cert-desc { font-size: 0.82rem; font-weight: 300; color: var(--gray); line-height: 1.6; }
.cert-highlight { background: var(--navy); padding: 3rem; }
.cert-hl-subtitle { font-family: 'Noto Sans Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--mist); margin-bottom: 0.6rem; text-transform: uppercase; }
.cert-hl-text { font-size: 0.88rem; font-weight: 300; color: rgba(255,255,255,0.65); line-height: 1.7; }

#cta-final { border-top: 1px solid var(--border); text-align: center; padding: 6rem 3rem; }
.cta-tag { font-family: 'Noto Sans Mono', monospace; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate); margin-bottom: 1.5rem; display: block; }
.cta-title { font-family: 'Noto Sans Mono', monospace; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 300; line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 1.2rem; }
.cta-title strong { font-weight: 600; color: var(--navy); }
.cta-body { font-size: 0.95rem; font-weight: 300; line-height: 1.8; color: var(--gray); max-width: 420px; margin: 0 auto 2.5rem; }
.cta-actions { display: flex; gap: 1rem; align-items: center; justify-content: center; }
.btn-cta-primary { font-family: 'Noto Sans Mono', monospace; font-size: 0.78rem; font-weight: 500; background: var(--navy); color: #fff; text-decoration: none; padding: 0.9rem 2.2rem; border-radius: 100px; letter-spacing: 0.04em; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; box-shadow: 0 2px 16px rgba(0,40,66,0.18); }
.btn-cta-primary:hover { background: var(--mid); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,40,66,0.22); }
.btn-cta-outline { font-family: 'Noto Sans Mono', monospace; font-size: 0.72rem; font-weight: 500; color: var(--navy); border: 1.5px solid var(--navy); padding: 0.65rem 1.5rem; border-radius: 100px; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: background 0.2s, color 0.2s; letter-spacing: 0.04em; }
.btn-cta-outline:hover { background: var(--navy); color: #fff; }

.fade-in { opacity: 0; animation: fadeUp 0.9s var(--ease) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }


@media (max-width: 960px) {
  #hero-nos { grid-template-columns: 1fr; gap: 3rem; padding: 9rem 1.5rem 4rem; }
  .mision-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .timeline-item { grid-template-columns: 80px 1fr; gap: 1.5rem; }
  .grupo-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; gap: 3rem; }
  .section-wrap { padding: 5rem 1.5rem; }
}
@media (max-width: 600px) {
  .cta-actions { flex-direction: column; }
}

/* ───────── BLOG INDEX TEMPLATE ───────── */
.blog-page-hero-shell {
  overflow: hidden;
}

.blog-page-hero {
  padding-bottom: 4.25rem;
}

.blog-index-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 5rem;
  padding: 5rem 3rem 8rem;
  opacity: 0;
  animation: fadeIn 0.7s 0.5s ease forwards;
}

.blog-index-wrap--full {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.blog-categories {
  position: sticky;
  top: 100px;
  height: fit-content;
  align-self: start;
}

.blog-categories-title {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}

.blog-categories-separator {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 0.8rem;
}

.blog-categories-nav {
  position: static;
  inset: auto;
  z-index: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  height: auto;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  border: 0;
  box-shadow: none;
  transition: none;
}

.blog-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  color: var(--gray);
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}

.blog-category-link::after {
  content: '→';
  color: var(--mist);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.blog-category-link:hover,
.blog-category-link.is-active {
  color: var(--navy);
  padding-left: 0.5rem;
}

.blog-category-link:hover::after,
.blog-category-link.is-active::after {
  color: var(--navy);
  opacity: 1;
  transform: translateX(0);
}

.blog-posts-area {
  min-width: 0;
}

.blog-posts-area {
  position: relative;
}

.blog-posts-results {
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.blog-posts-area.is-loading .blog-posts-results {
  opacity: 0.35;
  transform: translateY(6px);
  pointer-events: none;
}

.blog-posts-loading {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 40, 66, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(0, 40, 66, 0.12);
  color: var(--navy);
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -0.8rem);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.blog-posts-area.is-loading .blog-posts-loading {
  opacity: 1;
  transform: translate(-50%, 0);
}

.blog-posts-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(0, 40, 66, 0.16);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: blogSpin 0.75s linear infinite;
}

.blog-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.blog-load-more-wrap.is-hidden {
  display: none;
}

.blog-load-more {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease), opacity 0.2s;
}

.blog-load-more:hover:not(:disabled) {
  background: var(--mid);
  border-color: var(--mid);
  transform: translateY(-2px);
}

.blog-load-more:disabled {
  cursor: wait;
  opacity: 0.65;
}

@keyframes blogSpin {
  to { transform: rotate(360deg); }
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 961px) {
  .blog-index-wrap--full .blog-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  min-width: 0;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.blog-card:hover {
  border-color: rgba(0, 40, 66, 0.25);
  box-shadow: 0 18px 42px rgba(0, 40, 66, 0.08);
  transform: translateY(-3px);
}

.blog-card-image {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg2);
  overflow: hidden;
  text-decoration: none;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(10%) contrast(1.04);
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}

.blog-card:hover .blog-card-image img {
  filter: grayscale(0%) contrast(1.06);
  transform: scale(1.04);
}

.blog-card-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--mist);
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 40, 66, 0.08), transparent 32%),
    linear-gradient(135deg, var(--bg2), #fff);
}

.blog-card-body {
  padding: 1.6rem;
}

.blog-card-date {
  display: block;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.85rem;
}

.blog-card-title {
  font-family: 'Noto Sans Mono', monospace;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1.35rem;
}

.blog-card-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-title a:hover {
  color: var(--navy);
}

.blog-card-read-more {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, gap 0.2s;
}

.blog-card-read-more:hover {
  gap: 0.7rem;
  border-color: var(--navy);
}

.blog-posts-area .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
}

.blog-posts-area .page-numbers {
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.68rem;
  color: var(--navy);
  text-decoration: none;
}

.blog-posts-area .page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.blog-empty-state .section-body {
  max-width: none;
}

@media (max-width: 960px) {
  .blog-index-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem 6rem;
  }

  .blog-categories {
    position: static;
  }

  .blog-categories-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
  }
}

@media (max-width: 700px) {
  .blog-posts-grid,
  .blog-categories-nav {
    grid-template-columns: 1fr;
  }

  .blog-card-body {
    padding: 1.35rem;
  }
}

/* Verificación del formulario de contacto. */
.form-submit:disabled, .form-submit:disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.urbaca-turnstile { margin-bottom: 12px; }
