/* ============================================================
   Arbola House — arbola.house
   Sistema de diseño: editorial · madera · bosque
   ============================================================ */

:root {
  --primary: #2e463a;
  --primary-dark: #1f3129;
  --accent: #b3854f;
  --accent-dark: #966c3b;
  --text: #262319;
  --text-muted: #6f695c;
  --white: #ffffff;
  --off-white: #f7f4ed;
  --cream-dark: #efe8da;
  --border: #e3dccc;
  --serif: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.7rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-light { background: var(--white); color: var(--primary); }
.btn-light:hover { background: var(--cream-dark); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(247, 244, 237, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -18px rgba(38, 35, 25, 0.35);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}
.nav-logo svg { width: 34px; height: 34px; }
.nav-logo .logo-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.nav-logo .logo-name em { font-style: normal; color: var(--accent-dark); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.nav-cta { display: inline-flex; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

/* Menú móvil: fixed, no desplaza contenido (CLS agéntico) */
.nav-mobile {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 950;
  background: var(--primary-dark);
  transform: translateX(-102%);
  transition: transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 6.5rem 2rem 2rem;
  overflow-y: auto;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  color: var(--off-white);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.45rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(247, 244, 237, 0.12);
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .nav-mobile-close {
  position: absolute;
  top: 1.1rem; right: 1.3rem;
  background: none;
  border: 1px solid rgba(247, 244, 237, 0.3);
  border-radius: 2px;
  width: 44px; height: 44px;
  color: var(--off-white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
}
.nav-mobile .nav-mobile-sub {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding-left: 1.2rem;
  border-bottom: 1px solid rgba(247, 244, 237, 0.08);
}

/* ---------- Hero home ---------- */
.hero {
  padding: 76px 0 0;
  background: var(--off-white);
}
.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 3rem;
  align-items: center;
  min-height: min(88vh, 780px);
}
.hero-copy { padding: 4.5rem 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.45rem 0.9rem;
  margin-bottom: 1.6rem;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 { margin-bottom: 1.3rem; }
.hero h1 em { font-style: italic; color: var(--accent-dark); }
.hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 420px;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 90px;
  background: linear-gradient(90deg, var(--off-white), rgba(247, 244, 237, 0));
  pointer-events: none;
}
.hero-note {
  position: absolute;
  left: 1.5rem; bottom: 1.5rem;
  background: rgba(31, 49, 41, 0.88);
  color: var(--off-white);
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  max-width: 250px;
  border-left: 3px solid var(--accent);
}
.hero-note strong { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.15rem; }

/* Hero interior (páginas pilar / contacto) */
.page-hero {
  padding: calc(76px + 4rem) 0 3.5rem;
  background: var(--primary-dark);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); max-width: 48rem; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero .page-hero-sub {
  color: rgba(247, 244, 237, 0.82);
  max-width: 42rem;
  margin-top: 1.1rem;
  font-size: 1.08rem;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -140px; top: -140px;
  width: 460px; height: 460px;
  border: 1px solid rgba(179, 133, 79, 0.35);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 300px; height: 300px;
  border: 1px solid rgba(179, 133, 79, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}
.page-hero .breadcrumb { color: rgba(247, 244, 237, 0.66); }
.breadcrumb a { color: var(--accent-dark); text-decoration: none; }
.page-hero .breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 0.4rem; }

/* ---------- Secciones ---------- */
.section { padding: 5.5rem 0; }
.section-tight { padding: 4rem 0; }
.section-head { max-width: 42rem; margin-bottom: 3rem; }
.section-head p { color: var(--text-muted); margin-top: 0.9rem; font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Franja de ventajas ---------- */
.features-band {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.feature {
  padding: 2.6rem 2rem;
  border-left: 1px solid var(--border);
}
.feature:first-child { border-left: none; }
.feature svg { width: 34px; height: 34px; color: var(--accent-dark); margin-bottom: 1.1rem; }
.feat-title {
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.feature p:not(.feat-title) { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Nosotros ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 4rem;
  align-items: center;
}
.about-media { position: relative; }
.about-media img { border-radius: 2px; }
.about-media::before {
  content: "";
  position: absolute;
  left: -1.2rem; top: 1.2rem;
  width: 100%; height: 100%;
  border: 1px solid var(--accent);
  border-radius: 2px;
  z-index: -1;
}
.about-list { list-style: none; margin-top: 1.6rem; }
.about-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}
.about-list li:last-child { border-bottom: none; }
.about-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem; top: 1.05rem;
  width: 0.9rem; height: 1px;
  background: var(--accent-dark);
}

/* ---------- Grid de modelos / servicios ---------- */
.models-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.4rem;
}
.model-card {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-radius: 2px;
  grid-column: span 2;
  aspect-ratio: 4 / 3;
  background: var(--primary-dark);
}
.model-card.wide { grid-column: span 3; aspect-ratio: 16 / 9; }
.model-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.4s;
  opacity: 0.92;
}
.model-card:hover img { transform: scale(1.04); opacity: 1; }
.model-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(31, 49, 41, 0) 30%, rgba(31, 49, 41, 0.86) 100%);
}
.model-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.6rem;
  z-index: 1;
  color: var(--off-white);
}
.model-num {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}
.model-card-body .model-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.model-card-body p { font-size: 0.88rem; color: rgba(247, 244, 237, 0.8); }
.model-card-body .model-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ---------- Proceso ---------- */
.process { background: var(--primary-dark); color: var(--off-white); }
.process .section-head h2, .process .section-head { color: var(--white); }
.process .section-head p { color: rgba(247, 244, 237, 0.72); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid rgba(247, 244, 237, 0.14);
}
.step {
  padding: 0 2rem 0.5rem;
  border-right: 1px solid rgba(247, 244, 237, 0.14);
  position: relative;
}
.step-num {
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.85;
  display: block;
  margin-bottom: 1.2rem;
}
.step-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.step p:not(.step-title) { font-size: 0.92rem; color: rgba(247, 244, 237, 0.72); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 46rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text);
  padding: 1.3rem 3rem 1.3rem 0.2rem;
  cursor: pointer;
  position: relative;
  line-height: 1.4;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent-dark);
  transition: transform 0.3s var(--ease);
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a-inner {
  padding: 0 0.2rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ---------- Galería ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 2px;
}
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ---------- Estadísticas ---------- */
.stats-band {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 2.8rem 2rem;
  border-left: 1px solid var(--border);
  text-align: left;
}
.stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}
.stat-num em { font-style: normal; color: var(--accent-dark); font-size: 1.6rem; }
.stat p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Zonas / cobertura ---------- */
.coverage { background: var(--cream-dark); }
.coverage-list {
  columns: 4;
  column-gap: 2.5rem;
  list-style: none;
  font-size: 0.93rem;
  color: var(--text-muted);
}
.coverage-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  break-inside: avoid;
}

/* ---------- Banner CTA ---------- */
.cta-banner {
  background: var(--primary);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  left: -120px; bottom: -180px;
  width: 380px; height: 380px;
  border: 1px solid rgba(179, 133, 79, 0.3);
  border-radius: 50%;
}
.cta-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(247, 244, 237, 0.78); margin-top: 0.8rem; }
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}
.cta-actions .btn { width: 100%; justify-content: center; max-width: 320px; }
.cta-mail {
  font-size: 0.95rem;
  color: rgba(247, 244, 237, 0.85);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.cta-mail:hover { color: var(--white); }

/* ---------- Layout servicio (2 columnas) ---------- */
.service-layout {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 4rem;
  align-items: start;
}
.service-main h2 { margin: 2.6rem 0 1rem; }
.service-main h2:first-child { margin-top: 0; }
.service-main p { margin-bottom: 1.1rem; color: var(--text); }
.service-main p.muted { color: var(--text-muted); }
.service-main img { border-radius: 2px; margin: 1.6rem 0; }
.service-main ul { margin: 0 0 1.2rem 1.3rem; }
.service-main ul li { margin-bottom: 0.45rem; }

.sidebar { position: sticky; top: 100px; }
.sidebar-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}
.sidebar-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-nav { list-style: none; }
.sidebar-nav li { border-bottom: 1px solid var(--border); }
.sidebar-nav li:last-child { border-bottom: none; }
.sidebar-nav a {
  display: block;
  padding: 0.6rem 0.2rem;
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.sidebar-nav a:hover { color: var(--accent-dark); padding-left: 0.5rem; }
.sidebar-nav a[aria-current="page"] { color: var(--accent-dark); font-weight: 600; }
.sidebar-cta {
  background: var(--primary-dark);
  color: var(--off-white);
  border: none;
}
.sidebar-cta .sidebar-title { color: var(--white); border-bottom-color: rgba(247, 244, 237, 0.18); }
.sidebar-cta p { font-size: 0.92rem; color: rgba(247, 244, 237, 0.78); margin-bottom: 1.1rem; }
.sidebar-cta .btn { width: 100%; justify-content: center; }
.sidebar-cta .cta-mail { display: inline-block; margin-top: 0.9rem; font-size: 0.88rem; }

/* Beneficios (grid 2x2 en páginas de detalle) */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 1.8rem 0;
}
.benefit {
  padding: 1.7rem;
  background: var(--white);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.benefit:nth-child(2n) { border-right: none; }
.benefit:nth-child(n+3) { border-bottom: none; }
.benefit svg { width: 28px; height: 28px; color: var(--accent-dark); margin-bottom: 0.8rem; }
.benefit .feat-title { font-size: 1.05rem; }
.benefit p:not(.feat-title) { font-size: 0.9rem; color: var(--text-muted); }

/* Pasos compactos en páginas de detalle */
.mini-steps { counter-reset: paso; list-style: none; margin: 1.8rem 0; }
.mini-steps li {
  counter-increment: paso;
  position: relative;
  padding: 1rem 0 1rem 3.4rem;
  border-bottom: 1px solid var(--border);
}
.mini-steps li:last-child { border-bottom: none; }
.mini-steps li::before {
  content: "0" counter(paso);
  position: absolute;
  left: 0; top: 1rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--accent-dark);
}
.mini-steps strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.05rem; }
.mini-steps span { font-size: 0.92rem; color: var(--text-muted); }

/* Relacionados */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.6rem;
}
.related-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.4rem;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.related-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.related-card .model-name {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.related-card p { font-size: 0.88rem; color: var(--text-muted); }
.related-card .model-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-list { list-style: none; }
.contact-info-list li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.contact-info-list svg { width: 22px; height: 22px; color: var(--accent-dark); flex: none; margin-top: 0.2rem; }
.contact-info-list .ci-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.contact-info-list a { color: var(--text); text-decoration: none; }
.contact-info-list a:hover { color: var(--accent-dark); }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2.2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.form-group label { font-size: 0.88rem; font-weight: 600; }
.form-group label .req { color: var(--accent-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--off-white);
  color: var(--text);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-msg {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}
.form-msg.ok { display: block; background: #e8f0e8; color: #2c5236; border: 1px solid #b9d0bd; }
.form-msg.error { display: block; background: #f4e7e2; color: #7c3a24; border: 1px solid #ddb9a9; }
.form-legal { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.9rem; }
.form-legal a { color: var(--accent-dark); }

.map-wrap { margin-top: 3.5rem; }
.map-wrap iframe { width: 100%; border: 1px solid var(--border); border-radius: 2px; display: block; }

/* ---------- Legales ---------- */
.legal-content { max-width: 46rem; }
.legal-content h2 { margin: 2.4rem 0 0.9rem; font-size: 1.45rem; }
.legal-content p, .legal-content li { color: var(--text-muted); margin-bottom: 0.9rem; font-size: 0.97rem; }
.legal-content ul { margin-left: 1.3rem; }
.legal-content table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1.2rem 0; }
.legal-content th, .legal-content td { border: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: left; }
.legal-content th { background: var(--cream-dark); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(247, 244, 237, 0.75);
  padding: 4.5rem 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .nav-logo { color: var(--off-white); margin-bottom: 1rem; }
.footer-brand p { max-width: 20rem; font-size: 0.9rem; }
.footer-heading {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.55rem; }
.footer a { color: rgba(247, 244, 237, 0.75); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(247, 244, 237, 0.12);
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer-bottom button {
  background: none;
  border: none;
  color: rgba(247, 244, 237, 0.6);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.footer-bottom button:hover { color: var(--accent); }

/* ---------- Barra CTA móvil ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 890;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -6px 18px rgba(38, 35, 25, 0.18);
}
.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
}
.mobile-bar a svg { width: 18px; height: 18px; }
.mobile-bar .mb-quote { background: var(--primary); }
.mobile-bar .mb-mail { background: var(--accent-dark); }

/* ---------- Cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 990;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: 0 18px 40px -18px rgba(38, 35, 25, 0.4);
  padding: 1.4rem;
  max-width: 460px;
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1rem; }
.cookie-banner p a { color: var(--accent-dark); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-actions .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 995;
  background: rgba(31, 49, 41, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.cookie-modal-overlay.visible { display: flex; }
.cookie-modal {
  background: var(--white);
  border-radius: 2px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
}
.cookie-modal-title { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 1.2rem; }
.cookie-cat {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.cookie-cat-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.cookie-cat p:not(.cookie-cat-title) { font-size: 0.83rem; color: var(--text-muted); }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; margin-top: 0.2rem; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.25s;
}
.switch .slider::before {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.25s var(--ease);
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { background: var(--accent-dark); cursor: not-allowed; }
.cookie-modal-actions { display: flex; gap: 0.7rem; margin-top: 1.4rem; flex-wrap: wrap; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.post-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.post-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.post-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}
.post-card .post-title {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.55rem;
}
.post-card p:not(.post-title):not(.post-date) { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.post-card .model-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
}
.post-card.featured { grid-column: span 3; flex-direction: row; }
.post-card.featured img { width: 46%; aspect-ratio: auto; }
.post-card.featured .post-card-body { padding: 2.2rem 2.4rem; justify-content: center; }
.post-card.featured .post-title { font-size: 1.6rem; }

.post-content { max-width: 46rem; }
.post-content > img { border-radius: 2px; margin: 0 0 2rem; }
.post-content h2 { margin: 2.4rem 0 0.9rem; font-size: 1.5rem; }
.post-content p { margin-bottom: 1.1rem; }
.post-content p.muted { color: var(--text-muted); }
.post-content ul, .post-content ol { margin: 0 0 1.2rem 1.3rem; }
.post-content li { margin-bottom: 0.45rem; }
.post-content .table-scroll { margin: 1.2rem 0; }
.post-content table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: left; }
.post-content th { background: var(--cream-dark); font-weight: 600; }
.post-cta {
  background: var(--primary-dark);
  color: var(--off-white);
  border-radius: 2px;
  padding: 1.8rem;
  margin: 2.5rem 0;
}
.post-cta p { color: rgba(247, 244, 237, 0.8); margin: 0.4rem 0 1.2rem; }
.post-cta .post-cta-title { font-family: var(--serif); font-size: 1.25rem; color: var(--white); margin: 0; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: calc(76px + 3rem) 0 3rem;
}
.error-code {
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
  color: var(--cream-dark);
  -webkit-text-stroke: 1px var(--accent);
}

/* ---------- Utilidades ---------- */
.mt-2 { margin-top: 2rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature { border-bottom: 1px solid var(--border); }
  .feature:nth-child(odd) { border-left: none; }
  .process-grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: none; }
  .stat { border-bottom: 1px solid var(--border); }
  .coverage-list { columns: 3; }
  .models-grid { grid-template-columns: 1fr 1fr; }
  .model-card, .model-card.wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .service-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .post-card.featured { grid-column: span 2; }
}

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding: 3rem 0 2.5rem; }
  .hero-media { min-height: 300px; margin: 0 -1.5rem; }
  .hero-media::after { display: none; }
  .about-grid, .contact-grid, .cta-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-media::before { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .coverage-list { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .section { padding: 3.5rem 0; }
  .mobile-bar { display: grid; }
  body { padding-bottom: 54px; }
  .cookie-banner { bottom: 5rem; left: 0.8rem; right: 0.8rem; }
  .related-grid { grid-template-columns: 1fr; }
  .models-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit { border-right: none; }
  .benefit:nth-child(3) { border-bottom: 1px solid var(--border); }
  .features-grid { grid-template-columns: 1fr; }
  .feature { border-left: none; padding: 1.8rem 1.5rem; }
  .process-grid { grid-template-columns: 1fr; }
  .step { border-right: none; padding: 0 1.2rem 0.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-column: span 1; flex-direction: column; }
  .post-card.featured img { width: 100%; aspect-ratio: 4 / 3; }
  .post-card.featured .post-card-body { padding: 1.4rem 1.5rem 1.6rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-auto-rows: 130px; }
  .g-wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .coverage-list { columns: 2; font-size: 0.85rem; }
  .hero-note { display: none; }
}
