/* ============ TIPOGRAFÍAS PROPIAS (subconjunto latino; antes se cargaban desde Google Fonts) ============ */
@font-face{
  font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../assets/fonts/source-serif-4-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'Public Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../assets/fonts/public-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../assets/fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../assets/fonts/ibm-plex-mono-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ TOKENS ============ */
:root{
  --graphite: #2B2622;
  --graphite-soft: #4A4238;
  --copper: #856628; /* antes #8A6A2E: oscurecido para llegar a 4,5:1 sobre el fondo marfil */
  --copper-dark: #6B5122;
  --stone: #F5F1EA;
  --stone-dark: #E7DFD2;
  --white: #FFFFFF;
  --ink-muted: #6B6259;
  --border: #E7DFD2;

  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Public Sans", -apple-system, Segoe UI, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --max-width: 1180px;
  --radius: 4px;
  --shadow-soft: 0 20px 40px -24px rgba(43,38,34,0.16);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
h1,h2,h3{ font-family: var(--font-display); font-weight:600; line-height:1.15; margin:0 0 .5em; color: var(--graphite); }
p{ margin:0 0 .85em; }
/* Texto justificado en los párrafos de lectura. Quedan fuera los centrados, las listas cortas
   y las columnas angostas (sectores; tarjetas en celular), donde justificar abre huecos entre palabras. */
.hero-sub,
.section-lead,
.about-content > p,
.service-card > p,
.testimonial-card p,
.blog-card p,
.contact-info > p,
.map-placeholder__note,
.contact-form .consent-notice,
.contact-form .consent-label span,
.cookie-banner__desc{
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
}
ul{ margin:0; padding:0; list-style:none; }

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow{
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--copper);
  margin: 0 0 .6em;
}

.section{ padding: 44px 0; }
.section-head{ max-width: 640px; margin: 0 0 24px; }
.section-head h2{ font-size: clamp(1.7rem, 2.4vw, 2.3rem); }
.section-lead{ color: var(--ink-muted); font-size: 1.02rem; }

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight:600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor:pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--copper);
  color: var(--white);
}
.btn-primary:hover{ background: var(--copper-dark); }
.btn-ghost{
  border-color: rgba(255,255,255,.5);
  color: inherit;
}
.hero .btn-ghost{ border-color: rgba(43,38,34,.3); color: var(--graphite); }
.hero .btn-ghost:hover{ background: rgba(43,38,34,.06); }
.btn-block{ width:100%; }

/* ============ HEADER ============ */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 0 rgba(43,38,34,0);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled{
  box-shadow: 0 8px 24px -18px rgba(43,38,34,.3);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  min-height: 74px;
  padding-block: 10px;
}
.brand{ display:flex; align-items:center; }
/* Isotipo antes del logotipo y el eslogan */
.brand-mark{ display:block; flex:none; height:44px; width:auto; margin-right:12px; }
.brand-text{ display:flex; flex-direction:column; line-height:1.2; }
.brand-name{ font-family: var(--font-display); font-weight:700; font-size: 1.6rem; letter-spacing:.01em; margin:0; color:#4A3824; }
.brand-tagline{
  font-family: var(--font-display);
  font-style: italic;
  font-size: .95rem;
  color: var(--copper);
  margin-top: 2px;
}

.main-nav{ display:flex; align-items:center; gap: 30px; }
.main-nav a{ font-size:.93rem; font-weight:500; color: var(--graphite-soft); }
.main-nav a:hover{ color: var(--copper); }
.main-nav a:not(.btn-nav){ position:relative; padding-bottom: 2px; }
.main-nav a:not(.btn-nav)::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:-2px;
  height:1px; background: var(--copper);
  transition: right .28s cubic-bezier(.4,0,.2,1);
}
.main-nav a:not(.btn-nav):hover::after{ right:0; }
.btn-nav{ padding: 10px 22px; }
.main-nav .btn-nav,
.main-nav .btn-nav:hover{ color: var(--white); }

.nav-toggle{
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; padding:8px;
}
.nav-toggle span{ width:22px; height:2px; background: var(--graphite); display:block; }

/* ============ HERO ============ */
.hero{
  background: linear-gradient(160deg, #FFFFFF 0%, var(--stone) 100%);
  color: var(--graphite);
  padding: 40px 0 32px;
  position: relative;
  overflow:hidden;
  border-bottom: 1px solid var(--border);
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 85% 20%, rgba(138,106,46,.07), transparent 55%);
  pointer-events:none;
}
/* Sin animación de entrada: el bloque principal se ve completo desde el primer pintado (mejor índice de velocidad). */
.hero-inner{ position:relative; max-width: 760px; }
.hero-sub{
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--graphite);
  max-width: 680px;
  margin-bottom: 1em;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 24px; }
.hero-actions .btn{ padding: 8px 16px; font-size: .82rem; border-radius: 6px; }
.hero-stats{ display:flex; gap: 48px; flex-wrap:wrap; }
.hero-stats li{ display:flex; flex-direction:column; }
.stat-num{ font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.9rem; color: var(--copper); font-weight:600; }
.stat-label{ font-size:.85rem; color: var(--ink-muted); margin-top:2px; }

/* ============ ABOUT ============ */
.about-content{ max-width: 760px; }
.about-content p{ color: var(--graphite-soft); }
.credentials{ margin-top: 14px; display:flex; flex-direction:column; gap: 8px; }
.credentials li{
  padding-left: 26px;
  position: relative;
  font-weight: 500;
  color: var(--graphite);
}
.credentials li::before{
  content:"";
  position:absolute; left:0; top:8px;
  width:10px; height:10px;
  border: 2px solid var(--copper);
  border-radius:2px;
  transform: rotate(45deg);
}

/* ============ CARDS ============ */
.cards{ display:grid; gap: 20px; }
.card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.cards .card:hover{ box-shadow: var(--shadow-soft); transform: translateY(-4px); }

/* ============ SERVICES ============ */
.services-grid{ grid-template-columns: repeat(3, 1fr); }
.card-icon{
  width: 46px; height:46px;
  color: var(--copper);
  margin-bottom: 14px;
}
.service-card h3{ font-size: 1.3rem; }
.service-card > p{ color: var(--ink-muted); }
.service-points{ margin-top: 12px; display:flex; flex-direction:column; gap:7px; border-top:1px solid var(--border); padding-top:12px; }
.service-points li{
  font-size:.92rem;
  padding-left: 18px;
  position:relative;
  color: var(--graphite-soft);
}
.service-points li::before{
  content:"—";
  position:absolute; left:0; color: var(--copper);
}

/* ============ SECTORS ============ */
.sectors{ background: var(--stone); color: var(--graphite); }
.section-head-light h2{ color: var(--graphite); }
.section-head-light .section-lead{ color: var(--ink-muted); }
.sectors-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--stone-dark);
  border: 1px solid var(--stone-dark);
}
.sector-item{
  background: var(--white);
  padding: 24px 22px;
}
.sector-item h3{
  color: var(--copper);
  font-size: 1.1rem;
  margin-bottom: .5em;
}
.sector-item p{ color: var(--ink-muted); font-size:.92rem; margin:0; }

/* ============ TESTIMONIALS ============ */
.testimonials-grid{ grid-template-columns: repeat(3, 1fr); }
.testimonial-card{ background: var(--stone); border-color: var(--stone-dark); }
.testimonial-card p{
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--graphite);
}
.testimonial-card footer{
  margin-top: 12px;
  font-size:.85rem;
  color: var(--copper-dark);
  font-weight:600;
}
.testimonials-note{
  margin-top: 14px;
  font-size:.82rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* ============ BLOG ============ */
.blog{ background: var(--stone); }
.blog-grid{ grid-template-columns: repeat(3, 1fr); }
.blog-card{ background:#fff; }
.blog-tag{
  display:inline-block;
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color: var(--copper-dark);
  background: rgba(138,106,46,.08);
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 10px;
  font-weight:600;
}
.blog-card h3{ font-size: 1.15rem; }
.blog-card p{ color: var(--ink-muted); font-size:.93rem; }
.blog-link{ font-weight:600; color: var(--copper-dark); font-size:.9rem; }
.blog-link:hover{ color: var(--copper); }
.blog-viewall{ text-align:center; margin-top:24px; }
.blog-viewall .btn-ghost{ border-color: rgba(43,38,34,.3); color: var(--graphite); }
.blog-viewall .btn-ghost:hover{ background: rgba(43,38,34,.06); }

/* ============ ARTÍCULO DE BLOG ============ */
.article-hero{
  background: linear-gradient(160deg, #FFFFFF 0%, var(--stone) 100%);
  border-bottom: 1px solid var(--border);
  padding: 34px 0 28px;
}
.article-hero .container{ max-width: 760px; }
.breadcrumb{ font-size:.85rem; color: var(--ink-muted); margin-bottom: 14px; }
.breadcrumb a{ color: var(--copper-dark); font-weight:600; }
.breadcrumb a:hover{ color: var(--copper); }
.article-hero h1{ font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 14px 0 12px; }
.article-meta{ color: var(--ink-muted); font-size:.85rem; }

.article-body{ max-width: 720px; margin: 0 auto; padding: 32px 28px 4px; }
.article-body h2{ font-size: 1.35rem; margin-top: 1.4em; }
.article-body h3{ font-size: 1.05rem; margin-top: 1.3em; color: var(--copper-dark); }
.article-body p{ color: var(--graphite-soft); line-height: 1.75; text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3; }
.article-body ul, .article-body ol{ margin: 0 0 1.2em; padding-left: 22px; color: var(--graphite-soft); line-height: 1.7; }
.article-body ul{ list-style: disc; }
.article-body ol{ list-style: decimal; }
.article-body li{ margin-bottom: .4em; }
.article-body strong{ color: var(--graphite); }

.article-cta{
  background: var(--stone);
  border: 1px solid var(--stone-dark);
  border-radius: 14px;
  padding: 24px;
  margin: 30px 0 8px;
  text-align: center;
}
.article-cta h3{ margin: 0 0 8px; color: var(--graphite); }
.article-cta p{ color: var(--ink-muted); margin: 0 0 18px; }
.article-cta-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.article-cta-actions .btn-ghost{ border-color: rgba(43,38,34,.3); color: var(--graphite); }
.article-cta-actions .btn-ghost:hover{ background: rgba(43,38,34,.06); }

.article-footer-nav{ max-width: 720px; margin: 0 auto; padding: 8px 28px 44px; }
.article-footer-nav a{ font-weight:600; color: var(--copper-dark); font-size:.92rem; }
.article-footer-nav a:hover{ color: var(--copper); }

@media (max-width: 720px){
  .article-body{ padding: 24px 20px 4px; }
  .article-footer-nav{ padding: 8px 20px 36px; }
}

/* ============ CONTACT ============ */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}
.contact-grid > *{ min-width: 0; }
.contact-details{ margin: 18px 0; display:flex; flex-direction:column; gap: 12px; }
.contact-details li{ display:flex; flex-direction:column; gap:2px; }
.contact-details strong{ font-size:.8rem; text-transform:uppercase; letter-spacing:.06em; color: var(--copper-dark); }
.map-frame{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--border);
  filter: grayscale(15%);
}

.contact-form{
  background: var(--stone);
  border: 1px solid var(--stone-dark);
  border-radius: var(--radius);
  padding: 28px;
}
.form-row{ margin-bottom: 14px; display:flex; flex-direction:column; gap:6px; }
.hp-field{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}
.form-row-split{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.form-row-split > div{ display:flex; flex-direction:column; gap:6px; min-width: 0; }
.contact-form label{ font-size:.85rem; font-weight:600; color: var(--graphite-soft); }
.contact-form input,
.contact-form select,
.contact-form textarea{
  width: 100%;
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--graphite);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  outline: 3px solid var(--copper);
  outline-offset: 2px;
  border-color: var(--copper);
}
.form-status{ margin-top: 14px; font-size:.88rem; min-height: 1.2em; }
.form-status.success{ color: #2f7a3d; }
.form-status.error{ color: #b3312c; }

/* ============ FOOTER ============ */
.site-footer{
  background: var(--graphite);
  color: rgba(255,255,255,.7);
  padding: 22px 0;
}
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 24px;
}
.footer-brand{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.footer-mark{ display:block; flex:none; height:28px; width:auto; margin-right:2px; }
.footer-inner .brand-name{ color:#fff; font-size:1rem; }
.footer-slogan{ margin:0; font-family: var(--font-display); font-style:italic; font-size:.85rem; color: rgba(255,255,255,.75); }
.footer-nav{ display:flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-nav a:hover{ color: #fff; }
.footer-copy{ font-size:.78rem; margin:0; color: rgba(255,255,255,.6); }

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float{
  position: fixed;
  right: 24px; bottom: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  color:#fff;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  z-index: 200;
  transition: transform .2s ease;
}
.whatsapp-float svg{ width: 30px; height:30px; }
.whatsapp-float:hover{ transform: scale(1.08); }

/* ============ SCROLL REVEAL ============ */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }

.cards .reveal:nth-child(2){ transition-delay: .1s; }
.cards .reveal:nth-child(3){ transition-delay: .2s; }
.sectors-grid .reveal:nth-child(2){ transition-delay: .08s; }
.sectors-grid .reveal:nth-child(3){ transition-delay: .16s; }
.sectors-grid .reveal:nth-child(4){ transition-delay: .24s; }
.sectors-grid .reveal:nth-child(5){ transition-delay: .32s; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  .card:hover{ transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px){
  .contact-grid{ grid-template-columns: 1fr; }
  .services-grid,
  .testimonials-grid,
  .blog-grid{ grid-template-columns: repeat(2, 1fr); }
  .sectors-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px){
  .brand-mark{ height:38px; margin-right:10px; }
  .main-nav{
    position:absolute; top:100%; left:0; right:0;
    background:#fff;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    border-bottom: 1px solid var(--border);
    max-height:0;
    overflow:hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open{ max-height: 420px; }
  .main-nav a{ padding: 16px 28px; border-top:1px solid var(--border); }
  .btn-nav{ margin: 16px 28px; }
  .nav-toggle{ display:flex; }

  .services-grid,
  .testimonials-grid,
  .blog-grid,
  .sectors-grid{ grid-template-columns: 1fr; }

  .hero{ padding: 28px 0 22px; }
  .hero-sub{ margin-bottom: .9em; }
  .hero-actions{ margin-bottom: 20px; }
  .hero-actions .btn{ flex: 1 1 0; min-width: 0; padding: 8px 10px; font-size: .82rem; border-radius: 6px; white-space: normal; text-align: center; }
  .hero-stats{ gap: 32px; }
  .section{ padding: 28px 0; }
  .section-head{ margin-bottom: 18px; }
  .form-row-split{ grid-template-columns: 1fr; }
  .contact-form{ padding: 22px; }
  .card{ padding: 24px 22px; }
  .header-inner{ min-height: 64px; }
  .container{ padding: 0 20px; }
  .main-nav a{ padding: 14px 20px; }
  .btn-nav{ margin: 14px 20px; }
  /* En celular las tarjetas y el texto grande del bloque principal son angostos: alineación a la izquierda para no abrir huecos */
  .hero-sub,
  .service-card > p,
  .testimonial-card p,
  .blog-card p{ text-align: left; }
}

/* ===== LEGAL-COOKIES-BLOCK: banner de cookies, pie legal, casilla de autorización y páginas legales ===== */

/* Banner de cookies */
.cookie-banner{
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 760px; margin: 0 auto;
  background: var(--white); color: var(--graphite);
  border: 1px solid var(--border); border-top: 3px solid var(--copper); border-radius: var(--radius);
  box-shadow: 0 18px 44px -12px rgba(43,38,34,.35);
  padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
}
.cookie-banner__text{ flex: 1 1 320px; min-width: 0; }
.cookie-banner__title{ font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin: 0 0 4px; }
.cookie-banner__desc{ margin: 0; font-size: .86rem; line-height: 1.5; color: var(--graphite-soft); }
.cookie-banner__desc a{ color: var(--copper-dark); text-decoration: underline; font-weight: 600; }
.cookie-banner__actions{ display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-banner__btn{
  font: inherit; font-size: .85rem; font-weight: 600; min-width: 104px;
  padding: 9px 18px; border-radius: 6px; cursor: pointer;
  border: 2px solid var(--graphite); background: var(--white); color: var(--graphite);
}
.cookie-banner__btn:hover{ background: var(--stone); }
.cookie-banner__btn--accept{ background: var(--copper); border-color: var(--copper); color: #fff; }
.cookie-banner__btn--accept:hover{ background: var(--copper-dark); border-color: var(--copper-dark); }
.cookie-banner__btn:focus-visible{ outline: 3px solid var(--copper-dark); outline-offset: 2px; }
@media (max-width: 560px){
  .cookie-banner{ padding: 16px; }
  .cookie-banner__actions{ width: 100%; }
  .cookie-banner__btn{ flex: 1 1 0; min-width: 0; }
}

/* Pie legal */
.footer-legal{
  width: 100%; display: flex; flex-wrap: wrap; gap: 6px 20px;
  padding-top: 14px; margin-top: 4px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .78rem;
}
.footer-legal a,
.footer-legal__btn{
  color: rgba(255,255,255,.78); text-decoration: underline; text-underline-offset: 3px;
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}
.footer-legal a:hover,
.footer-legal__btn:hover{ color: #fff; }
.footer-legal a:focus-visible,
.footer-legal__btn:focus-visible{ outline: 2px solid #fff; outline-offset: 3px; }

/* Casilla de autorización del formulario */
.contact-form .form-consent .consent-label{
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .82rem; font-weight: 400; line-height: 1.5; color: var(--graphite-soft);
}
.contact-form .form-consent input[type="checkbox"]{
  width: 18px; height: 18px; flex: none; margin: 2px 0 0; padding: 0; accent-color: var(--copper);
}
.form-consent .consent-label a{ color: var(--copper-dark); text-decoration: underline; font-weight: 600; }
.contact-form .consent-notice{
  margin: 0 0 12px; padding: 10px 12px; background: var(--stone); border-left: 3px solid var(--copper);
  font-size: .78rem; line-height: 1.55; color: var(--graphite-soft);
}

/* Páginas legales */
.legal-body h3{ margin-top: 1.1em; }
.legal-body code{ font-family: var(--font-mono); font-size: .85em; background: var(--stone); padding: 1px 5px; border-radius: 3px; }
.legal-table-wrap{ overflow-x: auto; margin: 0 0 1.4em; }
.legal-table{ width: 100%; min-width: 560px; border-collapse: collapse; font-size: .86rem; }
.legal-table th,
.legal-table td{ border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; color: var(--graphite-soft); }
.legal-table th{ background: var(--stone); color: var(--graphite); font-weight: 600; }
.draft-note{
  background: #FFF4D6; border: 1px solid #D9B65B; color: #5C4300;
  padding: 14px 18px; border-radius: var(--radius); font-size: .9rem; line-height: 1.55; margin: 0 0 28px;
}
mark.ph{ background: #FFE08A; color: #3B2C00; padding: 0 3px; border-radius: 2px; }

/* ===== MEJORAS-2026-10: enlace de salto, mapa con clic, artículos relacionados, página 404 ===== */
.skip-link{
  position: absolute; left: 16px; top: -64px; z-index: 2000;
  background: var(--graphite); color: #fff; padding: 10px 16px; border-radius: 0 0 6px 6px;
  font-size: .9rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus{ top: 0; outline: 3px solid var(--copper); outline-offset: 2px; }
#contenido:focus{ outline: none; }

.map-frame .map-placeholder{
  min-height: 230px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px;
  background: var(--stone); color: var(--graphite-soft);
}
.map-placeholder__addr{ margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--graphite); }
.map-placeholder__note{ margin: 0; font-size: .82rem; line-height: 1.5; max-width: 46ch; }
.map-placeholder__note a, .map-placeholder__link{ color: var(--copper-dark); text-decoration: underline; font-weight: 600; font-size: .85rem; }
.map-placeholder__btn{ padding: 8px 16px; font-size: .85rem; border-radius: 6px; cursor: pointer; font-family: inherit; }
.map-frame iframe{ display: block; width: 100%; height: 230px; border: 0; }

.related-articles{ max-width: 720px; margin: 0 auto; padding: 8px 28px 24px; }
.related-articles h2{ font-size: 1.15rem; margin: 0 0 12px; }
.related-articles ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.related-articles li{ display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.related-articles li .blog-tag{ margin: 0; }
.related-articles a{ color: var(--graphite); font-weight: 600; line-height: 1.35; }
.related-articles a:hover{ color: var(--copper-dark); text-decoration: underline; }
@media (max-width: 720px){ .related-articles{ padding: 8px 20px 20px; } }

.error-page{ text-align: center; padding: 56px 0 60px; }
.error-page .container{ max-width: 640px; }
.error-code{ font-family: var(--font-mono); font-size: 3.2rem; font-weight: 600; color: var(--copper); margin: 0 0 8px; }
.error-page h1{ font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; }
.error-page p{ color: var(--graphite-soft); }
.error-actions{ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.error-actions .btn-ghost{ border: 1px solid var(--border); background: var(--white); color: var(--graphite); }
.error-actions .btn-ghost:hover{ background: var(--stone); }