
/* Tipografía corporativa incrustada (sin depender del sistema del visitante) */
@font-face {
  font-family: "Archivo";
  src: url('/fonts/archivo.woff2') format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════════════════════════════
   PAPELERÍA GUNDLACH — v4
   Identidad corporativa sobria: azul #334E7C (el de las fotos),
   grotesca neutra (Helvetica), aristas rectas, fotos completas.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --brand:      #334E7C;
  --brand-deep: #26395C;
  --brand-ink:  #1B2A46;
  --brand-soft: #4A6696;
  --gold:       #BE9459;

  --bg:         #F4F5F8;
  --surface:    #FFFFFF;
  --line:       #D9DDE5;
  --line-soft:  #E7EAEF;
  --text:       #1B2540;
  --text-2:     #4F5A74;
  --text-3:     #838DA3;
  --on-navy:    #F2F5FA;
  --on-navy-2:  #AEBDD9;

  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1220px;
  --gut: clamp(20px, 5vw, 60px);
  --r: 3px;
  --shadow: 0 1px 2px rgba(27,42,70,.06), 0 14px 34px -14px rgba(27,42,70,.16);
}

/* Tema azul (se activa con el botón del encabezado; el predeterminado es blanco) */
:root[data-theme="dark"] {
  --bg:        #14213C;
  --surface:   #1B2B4D;
  --line:      #31436C;
  --line-soft: #263759;
  --text:      #EAEEF6;
  --text-2:    #AAB6D0;
  --text-3:    #7B88A8;
  --brand-soft:#7C9AD4;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 14px 34px -14px rgba(0,0,0,.6);
}
:root[data-theme="light"] {
  --bg:        #F4F5F8;
  --surface:   #FFFFFF;
  --line:      #D9DDE5;
  --line-soft: #E7EAEF;
  --text:      #1B2540;
  --text-2:    #4F5A74;
  --text-3:    #838DA3;
  --brand-soft:#4A6696;
  --shadow: 0 1px 2px rgba(27,42,70,.06), 0 14px 34px -14px rgba(27,42,70,.16);
}

/* logo: navy en tema blanco, blanco en tema azul */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--brand-soft);
  outline-offset: 3px;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* ── Tipografía ── */
h1, h2 {
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: clamp(27px, 3.6vw, 40px); }
h3 { font-weight: 700; font-size: 17.5px; letter-spacing: -.008em; line-height: 1.3; margin: 0; }
p { margin: 0; }
.lede { font-size: clamp(16px, 1.6vw, 18px); color: var(--text-2); max-width: 64ch; line-height: 1.7; }

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600; letter-spacing: .02em;
  padding: 14px 26px;
  border-radius: var(--r);
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-deep); }
.btn-white { background: #fff; color: var(--brand-deep); }
.btn-white:hover { background: #E8EDF5; }
.btn-hollow { background: transparent; color: var(--on-navy); border-color: rgba(255,255,255,.35); }
.btn-hollow:hover { border-color: #fff; background: rgba(255,255,255,.07); }

/* ═══════════ ENCABEZADO ═══════════ */
.topbar {
  background: var(--brand-ink);
  color: var(--on-navy-2);
  font-size: 12.5px;
}
.topbar-in {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 36px;
}
.topbar a { color: var(--on-navy); text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar .group { display: flex; gap: 22px; align-items: center; }
@media (max-width: 720px) { .topbar .hide-m { display: none; } }

header.site {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 44px; width: auto; }
@media (max-width: 520px) { .brand img { height: 36px; } }

nav.main { display: flex; gap: 0; }
nav.main a {
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  color: var(--text-2); text-decoration: none;
  padding: 10px 15px;
  transition: color .15s;
}
nav.main a:hover { color: var(--brand-soft); }

.hdr-cta { display: flex; align-items: center; gap: 12px; }
.hdr-cta .btn { padding: 11px 20px; font-size: 13.5px; }
.themebtn {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r);
  color: var(--text-2); cursor: pointer;
}
.themebtn:hover { color: var(--text); border-color: var(--text-3); }
.burger { display: none; }

@media (max-width: 980px) {
  nav.main, .hdr-cta .btn { display: none; }
  .burger {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--line); border-radius: var(--r);
    color: var(--text); cursor: pointer;
  }
  nav.main.open {
    display: flex; flex-direction: column;
    position: absolute; top: 78px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 20px;
  }
  nav.main.open a { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
}

/* ═══════════ HERO ═══════════ */
.hero {
  background: linear-gradient(160deg, #3A5787 0%, #334E7C 48%, #273B61 100%);
  color: var(--on-navy);
  position: relative;
  overflow: clip;
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding-block: clamp(56px, 7.5vw, 96px);
}
.hero .eyebrow { color: #D9C6A0; }
.hero .eyebrow::before { background: #D9C6A0; }
.hero h1 {
  font-size: clamp(34px, 4.8vw, 58px);
  color: #fff;
  max-width: 17ch;
}
.hero .lede { color: var(--on-navy-2); margin-top: 20px; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }

/* carrusel: fotos completas, sin recorte — el fondo de las fotos ES el del hero */
.slider {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 460px;
  justify-self: end;
  width: 100%;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 30px 60px -22px rgba(8,16,34,.6);
  border: 1px solid rgba(255,255,255,.16);
  background: #334E7C;
}
.slider img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;           /* imagen completa, jamás cortada */
  opacity: 0;
  transition: opacity .8s ease;
}
.slider img.on { opacity: 1; }
.dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 8px;
}
.dots button {
  width: 26px; height: 4px;
  border: 0; border-radius: 2px;
  background: rgba(255,255,255,.32);
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.dots button.on { background: #fff; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .slider { justify-self: start; }
}

/* cinta de cifras */
.facts {
  border-top: 1px solid rgba(255,255,255,.16);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.fact { padding: 24px 22px 28px 0; border-left: 1px solid rgba(255,255,255,.16); padding-left: 24px; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b {
  display: block;
  font-size: clamp(25px, 2.8vw, 34px); font-weight: 700; letter-spacing: -.015em;
  color: #fff; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fact b i { font-style: normal; color: #D9C6A0; }
.fact span {
  display: block; margin-top: 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--on-navy-2); line-height: 1.6;
}
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); }
}

/* ═══════════ FRANJA DE CONFIANZA ═══════════ */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-in {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: 26px;
  gap: 18px;
}
.titem { display: flex; align-items: center; gap: 13px; }
.titem svg { flex: none; color: var(--brand-soft); }
.titem b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: .01em; }
.titem span { display: block; font-size: 12px; color: var(--text-3); margin-top: 1px; }
@media (max-width: 900px) { .trust-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-in { grid-template-columns: 1fr; } }

/* ═══════════ SECCIONES ═══════════ */
section.band { padding-block: clamp(60px, 7.5vw, 96px); }
.sec-head { max-width: 70ch; }
.sec-head .lede { margin-top: 16px; }

/* ── Catálogo: fotos completas ── */
.grid-cat {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
  margin-top: 44px;
}
.prod {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .22s ease, border-color .22s ease;
}
.prod:hover { box-shadow: var(--shadow); border-color: var(--text-3); }
.prod .ph { background: #334E7C; aspect-ratio: 4 / 5; }
.prod .ph img { width: 100%; height: 100%; object-fit: contain; }  /* nunca cortada */
.prod-body { padding: 17px 17px 19px; display: flex; flex-direction: column; gap: 7px; flex: 1; border-top: 1px solid var(--line); }
.prod-body h3 { font-size: 16px; }
.prod-body p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.prod-tags { margin-top: auto; padding-top: 11px; display: flex; flex-wrap: wrap; gap: 6px; }
.prod-tags span {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .04em;
  color: var(--text-2);
  background: var(--line-soft);
  border-radius: 2px;
  padding: 4px 8px;
}

/* ── Familias de producto con tabla de especificaciones ── */
.family {
  margin-top: 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
}
.family .fphoto {
  background: #334E7C;
  align-self: start;              /* la foto no se estira: sin franjas azules vacías */
  position: sticky; top: 96px;    /* acompaña al lector mientras revisa la tabla */
  border-bottom: 1px solid var(--line);
}
.family .fphoto img { width: 100%; height: auto; display: block; }
.family .fbody { padding: clamp(22px, 3vw, 34px); min-width: 0; }
.family .fbody > h3 { font-size: clamp(19px, 2vw, 23px); }
.family .fbody > p.fdesc { color: var(--text-2); font-size: 14.5px; line-height: 1.65; margin-top: 8px; max-width: 70ch; }
.fgroup {
  margin-top: 20px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-soft);
  display: flex; align-items: center; gap: 12px;
}
.fgroup::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 900px) {
  .family { grid-template-columns: 1fr; }
  .family .fphoto { position: static; }
  .family .fphoto img { max-height: 340px; margin-inline: auto; width: auto; }
}

.scrollx { overflow-x: auto; margin-top: 12px; }
table.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 520px;
}
table.specs th {
  text-align: left;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3);
  padding: 8px 12px 8px 2px;
  border-bottom: 2px solid var(--brand);
  white-space: nowrap;
}
table.specs td {
  padding: 9px 12px 9px 2px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
table.specs td:first-child { font-weight: 600; color: var(--text); }
table.specs tr:hover td { background: var(--line-soft); }
table.specs td:last-child { text-align: right; padding-right: 2px; }
.cot {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 5px 12px;
  background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.cot:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.fnote { margin-top: 14px; font-size: 12.5px; color: var(--text-3); }

/* ── Servicios con foto ── */
.srv-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
}
.srv-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .22s ease, border-color .22s ease;
}
.srv-card:hover { box-shadow: var(--shadow); border-color: var(--text-3); }
.srv-card .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #334E7C; }
.srv-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.srv-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.srv-body h3 { font-size: 18px; }
.srv-body p { color: var(--text-2); font-size: 14.5px; line-height: 1.65; }
.srv-body ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.srv-body li {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
}
.srv-body li::before { content: "—"; color: var(--gold); font-weight: 700; }

/* ── Nosotros ── */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about-grid .lede + .lede { margin-top: 14px; }
.values { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--brand); }
.values li {
  padding: 15px 2px;
  border-bottom: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 122px 1fr; gap: 16px;
  align-items: baseline;
}
.values b { font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--brand-soft); }
.values span { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .values li { grid-template-columns: 1fr; gap: 4px; }
}

/* ── Proceso ── */
.steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
  counter-reset: paso;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  border-top: 3px solid var(--brand);
  padding: 22px 20px 24px;
}
.step::before {
  counter-increment: paso;
  content: "Paso 0" counter(paso);
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.step h3 { font-size: 16px; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }

/* ── Preguntas frecuentes ── */
.faq { max-width: 780px; margin-top: 40px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 4px;
}
.faq details:first-child { border-top: 2px solid var(--brand); }
.faq summary {
  font-size: 16px; font-weight: 600;
  padding: 16px 34px 16px 2px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 21px; font-weight: 400;
  color: var(--brand-soft);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 2px 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.7; max-width: 66ch; }

/* ═══════════ CONTACTO ═══════════ */
.contact {
  background: linear-gradient(165deg, #334E7C 0%, #273B61 70%, #223455 100%);
  color: var(--on-navy);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact .eyebrow { color: #D9C6A0; }
.contact .eyebrow::before { background: #D9C6A0; }
.contact h2 { color: #fff; }
.contact .lede { color: var(--on-navy-2); margin-top: 16px; }

.cdata { list-style: none; margin: 34px 0 0; padding: 0; }
.cdata li {
  display: grid; grid-template-columns: 108px 1fr; gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.16);
  align-items: baseline;
}
.cdata li:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.cdata b { font-size: 10.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--on-navy-2); }
.cdata a, .cdata span { color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; }
.cdata a:hover { color: #D9C6A0; text-decoration: underline; text-underline-offset: 4px; }

.qcard {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r);
  padding: clamp(24px, 3.2vw, 34px);
  box-shadow: 0 28px 64px -24px rgba(6,12,26,.55);
  border-top: 3px solid var(--gold);
}
.qcard h3 { font-size: 20px; }
.qcard > p { color: var(--text-2); font-size: 13.5px; margin-top: 6px; }
.qcard form { display: grid; gap: 14px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--sans); font-size: 15px; color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 13px;
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand-soft); }
.field textarea { resize: vertical; min-height: 76px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field select { appearance: none; cursor: pointer; }
.selectwrap { position: relative; }
.selectwrap::after {
  content: "▾";
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qcard .btn { width: 100%; }
.qcard small { color: var(--text-3); font-size: 12px; line-height: 1.5; }
@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
}

/* ── Mapa de ubicación ── */
.mapcard {
  margin-top: clamp(36px, 5vw, 56px);
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 28px 64px -24px rgba(6,12,26,.55);
}
.mapcard img { width: 100%; height: clamp(240px, 32vw, 380px); object-fit: cover; }
.mapbar {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  padding: 18px 22px;
  color: var(--text);
}
.mapbar b { display: block; font-size: 15.5px; }
.mapbar span { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.mapbar .btn { padding: 11px 20px; font-size: 13.5px; }

/* ── Pie ── */
footer.site { border-top: 1px solid var(--line); padding-block: 44px 38px; background: var(--surface); }
.foot-top { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: center; }
.foot-top .brand img { height: 38px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.foot-nav a { font-size: 13.5px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.foot-nav a:hover { color: var(--brand-soft); }
.foot-bot {
  margin-top: 30px; padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}
.foot-bot p { font-size: 12.5px; color: var(--text-3); }

/* ── WhatsApp flotante ── */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px;
  background: #1B9E50; color: #fff;
  font-size: 14px; font-weight: 700;
  padding: 13px 20px;
  border-radius: 3px;
  text-decoration: none;
  box-shadow: 0 10px 26px -8px rgba(27,158,80,.55);
  transition: background .16s ease;
}
.wa:hover { background: #178A45; }
@media (max-width: 560px) { .wa span { display: none; } .wa { padding: 14px; } }

/* ── Aparición al hacer scroll ── */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
}

/* ── Cabecera de página interna ── */
.pagehead {
  background: linear-gradient(160deg, #3A5787 0%, #334E7C 55%, #273B61 100%);
  color: var(--on-navy);
  padding-block: clamp(44px, 6vw, 76px);
}
.pagehead h1 { color: #fff; font-size: clamp(30px, 4.4vw, 50px); max-width: 20ch; }
.pagehead .lede { color: var(--on-navy-2); margin-top: 16px; }
.pagehead .eyebrow { color: #D9C6A0; }
.pagehead .eyebrow::before { background: #D9C6A0; }
.crumbs { font-size: 12.5px; color: var(--on-navy-2); margin-bottom: 18px; }
.crumbs a { color: var(--on-navy-2); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { opacity: .55; margin-inline: 7px; }

/* ── Cierre con llamado a la acción ── */
.cta-end { background: var(--surface); border-top: 1px solid var(--line); }
.cta-end-in {
  padding-block: clamp(46px, 6vw, 72px);
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.cta-end h2 { font-size: clamp(23px, 3vw, 32px); max-width: 22ch; }
.cta-end p { color: var(--text-2); margin-top: 8px; font-size: 15px; }
.cta-end .acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Destacados de la portada ── */
.feat-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; }
.verlink {
  font-size: 14px; font-weight: 700; color: var(--brand-soft);
  text-decoration: none; white-space: nowrap;
}
.verlink:hover { text-decoration: underline; text-underline-offset: 4px; }
nav.main a.act { color: var(--brand-soft); }

/* ── Galería de la empresa (fotografías reales) ── */
.galeria {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.6vw, 18px);
  margin-top: 44px;
}
.gfoto {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface-2, #eee);
  margin: 0;
}
.gfoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gfoto figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 16px 13px;
  background: linear-gradient(transparent, rgba(15,22,38,.82));
  color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.g-ancha  { grid-column: span 7; aspect-ratio: 16 / 11; }
.g-alta   { grid-column: span 5; aspect-ratio: 4 / 3.6; }
.g-media  { grid-column: span 5; aspect-ratio: 4 / 3.1; }
.g-resto  { grid-column: span 7; aspect-ratio: 16 / 9.6; }
@media (max-width: 760px) {
  .galeria { grid-template-columns: 1fr; }
  .g-ancha, .g-alta, .g-media, .g-resto { grid-column: span 1; aspect-ratio: 4 / 3; }
}

/* ── Foto de fachada junto al mapa ── */
.sede {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
  margin-top: clamp(36px, 5vw, 56px);
}
.sede figure { margin: 0; border-radius: var(--r); overflow: hidden; position: relative; box-shadow: 0 28px 64px -24px rgba(6,12,26,.55); }
.sede figure img { width: 100%; height: 100%; object-fit: cover; }
.sede .mapcard { margin-top: 0; }
@media (max-width: 820px) { .sede { grid-template-columns: 1fr; } .sede figure { aspect-ratio: 4/3; } }

/* ── Aviso de sala de venta ── */
.aviso {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-top: 26px;
}
.aviso svg { flex: none; color: #D9C6A0; margin-top: 2px; }
.aviso b { display: block; color: #fff; font-size: 14.5px; }
.aviso span { display: block; color: var(--on-navy-2); font-size: 13.5px; margin-top: 3px; }

/* ── Ajustes finos para celular ── */
.cdata a, .cdata span, .foot-bot p { overflow-wrap: anywhere; }
@media (max-width: 620px) {
  /* los datos de contacto se apilan: la etiqueta arriba y el dato debajo */
  .cdata li { grid-template-columns: 1fr; gap: 4px; padding: 13px 0; }
  .cdata b { font-size: 10px; }
  .mapbar { padding: 16px; }
  .mapbar .btn { width: 100%; }
  .cta-end-in .acts { width: 100%; }
  .cta-end-in .acts .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 400px) {
  .btn { padding: 13px 18px; font-size: 14px; }
  .hero-actions .btn { width: 100%; }
}
