/* ============================================================
   JOVI GRUP · E3 — main.css
   Lenguaje visual de la plataforma B2B de Elektro3 (tokens,
   eyebrow con disco amarillo, tarjetas, hero cinema, banda CTA
   amarilla, footer oscuro) aplicado al contenido de JOVI Grup.
   El azul de marca JOVI sustituye al naranja de acento de E3.

   INDICE: tokens · base · utilidades · eyebrow · botones · card ·
   header (topbar/nav/drop/mega/movil) · hero cinema · page hero ·
   section heads · familias (home) · intro · servicios · novedades ·
   partners · social · ubicacion · materiales · ficha/articulo ·
   prose · logos · formularios · delegaciones · contacto · valores ·
   historia · CTA final · footer · animaciones
   ============================================================ */

:root {
  --ink: #0E1116;
  --ink-2: #1A1F26;
  --ink-3: #2A3038;
  --paper: #FAFAF7;
  --paper-2: #F2EFE8;
  --paper-3: #ECE8DC;
  --line: #E2DED2;
  --heading: #4A3C24;
  --yellow: #FFCC00;
  --yellow-deep: #E8B500;
  --accent: #1A45E5;        /* azul JOVI (logo) */
  --accent-deep: #1235B8;
  --green: #1F8A5B;
  --muted: #6B6F75;
  --muted-2: #8A8E94;

  --display: "Wix Madefor Display", system-ui, sans-serif;
  --body: "Wix Madefor Text", system-ui, sans-serif;

  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px;
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;

  --section-y: clamp(2.5rem, 1.8rem + 2.4vw, 4rem);
  --section-y-sm: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  --hero-y: clamp(2.5rem, 1.8rem + 2.4vw, 3.5rem);
  --container-max: 1320px;
  --container-px: clamp(1.125rem, .5rem + 2vw, 2rem);
  --stack-head: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  --gap-cards: var(--sp-4);
  --gap-flow: var(--sp-7);
  --gap-2col: 56px;
  --pad-card: 1.75rem 1.5rem;
  --topbar-h: 38px;

  --hero-title-shadow: 0 2px 14px rgba(0,0,0,.45);
  --hero-text-shadow: 0 1px 8px rgba(0,0,0,.55);
  --grad-ink: linear-gradient(135deg, var(--ink), var(--ink-3));
  --shadow-card: 0 14px 30px -26px rgba(14,17,22,.2);
  --shadow-neu-yellow: -3px -3px 6px rgba(255,250,220,.9), 3px 3px 7px rgba(150,110,20,.32);
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.55;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-px); }
section.tone-light { background: var(--paper); }
section.tone-soft { background: var(--paper-2); }
section.tone-light, section.tone-soft { padding-block: var(--section-y); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: .875rem; transition: top .15s; }
.skip-link:focus { top: 8px; }
.ico { display: inline-block; flex: 0 0 auto; }
.eyebrow { font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 1100px) { .hide-tablet { display: none !important; } }
@media (max-width: 720px) { .hide-mobile { display: none !important; } }

/* ---------- EYEBROW ---------- */
.e3-eyebrow {
  display: flex; align-items: center; gap: 14px;
  width: 100%; max-width: 500px; margin: 0 0 10px;
  font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: #161616;
}
.e3-eyebrow__disc {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow); color: #161616; box-shadow: var(--shadow-neu-yellow);
}
.e3-eyebrow__label { white-space: nowrap; }
.e3-eyebrow__rule { flex: 1; height: 2px; min-width: 40px; background: var(--line); border-radius: 2px; }
.e3-eyebrow--dark { color: #fff; }
.e3-eyebrow--dark .e3-eyebrow__rule { background: rgba(255,255,255,.22); }
.e3-eyebrow--dark .e3-eyebrow__disc { box-shadow: -3px -3px 6px rgba(0,0,0,.45), 3px 3px 7px rgba(255,238,170,.3); }
.e3-eyebrow + h1, .e3-eyebrow + h2, .e3-eyebrow + h3 { margin-top: 0; }
@media (max-width: 600px) { .e3-eyebrow { max-width: 100%; } .e3-eyebrow__label { white-space: normal; } }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; padding: 12px 18px; border-radius: 999px;
  font-size: .90625rem; line-height: 1; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
@media (max-width: 560px) { .btn { min-height: 44px; } }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-deep); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px rgba(26,69,229,.6); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-ghost-ink { background: transparent; color: var(--ink); border-color: rgba(14,17,22,.25); }
.btn-ghost-ink:hover { background: rgba(14,17,22,.06); }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; justify-content: center; padding: 16px; }
.btn-arrow::after {
  content: ""; display: inline-block; width: 14px; height: 10px; background: currentColor;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'><path d='M0 5h12M8 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'><path d='M0 5h12M8 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
}
.btn-arrow:hover::after, .btn-arrow:focus-visible::after { transform: translateX(4px); }
.link-go { display: inline-flex; margin-top: auto; padding-top: 14px; font-family: var(--display); font-weight: 700; font-size: .875rem; color: var(--ink); transition: transform .18s; }

/* ---------- CARD ---------- */
.card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--pad-card); color: var(--ink);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
a.card:hover, .card.is-hover:hover { transform: translateY(-3px); border-color: var(--ink-3); box-shadow: 0 20px 40px -24px rgba(14,17,22,.18); }
.card h3 { font-weight: 700; font-size: 1.0625rem; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 8px; }
.card p { font-size: .875rem; line-height: 1.5; color: var(--muted); margin: 0; }
.card--dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: #fff; }
.card--dark p { color: rgba(255,255,255,.68); }
a.card--dark:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.card--media { padding: 0; overflow: hidden; }
.card--cta { background: var(--paper-3); box-shadow: 0 14px 30px -22px rgba(14,17,22,.25); }
.card--cta:hover { background: #fff; }
.tag-state { position: absolute; top: 14px; left: 14px; font-size: .65625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: var(--yellow); }
.tag-state.is-new { background: #E6F6EC; color: #155F3D; }
.tag-state.is-brico { background: var(--yellow); color: var(--ink); }

/* ---------- HEADER ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: transform .32s ease; }
.site-header.is-condensed { transform: translateY(calc(-1 * var(--topbar-h))); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.topbar { background: var(--ink); color: #D8D8D6; font-size: .8125rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); gap: 24px; }
.topbar-claim { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.topbar-claim .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.topbar-claim strong { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-right a { display: inline-flex; align-items: center; gap: 6px; color: #D8D8D6; }
.topbar-right a:hover { color: #fff; }
.tb-langs { display: inline-flex; gap: 10px; }
.topbar-right .lang { color: var(--muted-2); }
.topbar-right .lang.is-active { color: #fff; font-weight: 600; }
.topbar-right .b2b { background: var(--yellow); color: var(--ink); font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.topbar-right .b2b:hover { background: #fff; color: var(--ink); }
@media (max-width: 900px) { .topbar-claim { display: none; } .topbar-inner { justify-content: flex-end; } }
@media (max-width: 720px) { .topbar-right .tb-extra { display: none; } .topbar-right { gap: 16px; } }

.nav { background: rgba(250,250,247,.92); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); position: relative; }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: inline-flex; color: var(--accent); flex: 0 0 auto; }
.logo svg { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 0 0 4px; padding: 0; list-style: none; height: 100%; }
.nav-item { height: 100%; display: flex; align-items: center; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px;
  font-weight: 600; font-size: .96875rem; color: var(--ink-2); white-space: nowrap; position: relative;
  transition: background .15s, color .15s;
}
.nav-trigger:hover, .nav-item:hover > .nav-trigger, .nav-item:focus-within > .nav-trigger { background: var(--paper-2); color: var(--ink); }
.nav-trigger.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-trigger .caret { transition: transform .2s; opacity: .6; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* portátil estrecho: el logo grande y el menú completo no caben con el botón Delegaciones (ya está en el menú) */
@media (max-width: 1240px) { .nav-inner { gap: 18px; } .nav-cta .btn-ghost { display: none; } }

/* desplegables */
.drop { position: absolute; top: 100%; padding-top: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility 0s .18s; z-index: 60; }
.nav-item:hover > .drop, .nav-item:focus-within > .drop, .nav-item.is-open > .drop { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.drop-inner { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(14,17,22,.35); padding: 10px; }
.drop-list { list-style: none; margin: 0; padding: 0; min-width: 300px; }
.drop-list a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 14px; border-radius: 10px; font-weight: 600; font-size: .9375rem; color: var(--ink-2); }
.drop-list a .ico { opacity: 0; transform: translateX(-4px); transition: .18s; color: var(--accent); }
.drop-list a:hover { background: var(--paper-2); color: var(--ink); }
.drop-list a:hover .ico { opacity: 1; transform: none; }
.nav-item.is-mega { position: static; }
.is-mega > .drop { left: 0; right: 0; }
.is-mega .drop-inner { max-width: var(--container-max); margin: 0 auto; border-radius: 0 0 var(--r-lg) var(--r-lg); border-top: 0; padding: 28px var(--container-px) 30px; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 28px; }
.mega-head { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 8px; }
.mega-head:hover { color: var(--accent); }
.mega-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--yellow); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-neu-yellow); color: #161616; }
.mega-col ul { list-style: none; margin: 0; padding: 0 0 0 40px; display: grid; gap: 4px; }
.mega-col ul a { font-size: .90625rem; color: var(--muted); font-weight: 500; }
.mega-col ul a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* móvil */
.nav-burger { display: none; }
.nav-mobile { display: none; }
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
  .nav-burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav.is-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-mobile.is-open {
    display: flex; flex-direction: column; gap: 2px; position: fixed; left: 0; right: 0; bottom: 0;
    top: calc(var(--topbar-h) + 74px); z-index: 49; overflow-y: auto; padding: 18px 18px 36px;
    background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 52%, var(--paper-3) 100%);
  }
  .nav-mobile .nav-trigger, .nav-mobile summary { font-family: var(--display); font-weight: 700; font-size: 1.1875rem; color: var(--ink); padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; display: flex; justify-content: space-between; cursor: pointer; list-style: none; }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile summary::after { content: "+"; font-weight: 500; color: var(--muted); }
  .nav-mobile details[open] summary::after { content: "–"; }
  .m-sub { display: grid; padding: 8px 0 14px 8px; }
  .m-link { padding: 8px 4px; font-weight: 600; color: var(--ink-2); }
  .m-link.is-leaf { padding: 5px 4px 5px 18px; font-weight: 500; color: var(--muted); font-size: .9375rem; }
  .nav-mobile-extra { display: flex; gap: 6px; padding: 16px 0 6px; }
  .nav-mobile-extra a { flex: 1 1 0; text-align: center; font-size: .8125rem; font-weight: 600; padding: 9px 8px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
  .nav-mobile-cta { justify-content: center; margin-top: 10px; padding: 15px; }
}
@media (max-width: 720px) {
  .nav-inner { height: 60px; gap: 14px; }
  .logo svg { height: 30px; }
  .nav-main-cta { display: none; }
  .nav-mobile.is-open { top: calc(var(--topbar-h) + 60px); }
}

/* ---------- HERO CINEMA (home) ---------- */
.hero-cinema { position: relative; min-height: 640px; color: #fff; overflow: hidden; isolation: isolate; display: flex; align-items: stretch; background: var(--ink); }
.hc-bg { position: absolute; inset: 0; z-index: -2; }
.hc-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: contrast(1.03) saturate(.9) brightness(.62); }
/* vídeo de fondo: cubre el hero como object-fit: cover (16:9 escalado al lado mayor) */
.hc-bg { container-type: size; }
.hc-video { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.hc-video.is-ready { opacity: 1; }
.hc-video iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 0;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  filter: contrast(1.03) saturate(.9) brightness(.62);
}
.hc-tint {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 700px at 16% 70%, rgba(0,0,0,.7), transparent 72%),
    linear-gradient(90deg, rgba(8,10,14,.96) 0%, rgba(8,10,14,.86) 32%, rgba(14,17,22,.55) 62%, rgba(14,17,22,.45) 100%),
    linear-gradient(180deg, rgba(8,10,14,.6) 0%, rgba(14,17,22,.1) 30%, rgba(8,10,14,.1) 50%, rgba(8,10,14,.92) 100%);
}
.hc-tint::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--yellow); }
.hc-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 3px 3px; mix-blend-mode: overlay; opacity: .6; }
.hc-inner { width: 100%; padding-block: calc(var(--hero-y) + 40px) var(--hero-y); display: flex; flex-direction: column; justify-content: flex-end; }
.hc-inner .e3-eyebrow { margin-bottom: 18px; }
.hc-title { font-weight: 700; font-size: clamp(2.5rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 20px; max-width: 14ch; text-wrap: balance; text-shadow: var(--hero-title-shadow); }
.hc-acc, .hc-title em { color: var(--yellow); font-style: italic; }
.hc-sub { font-size: 1.0625rem; line-height: 1.55; color: rgba(255,255,255,.9); max-width: 60ch; margin: 0 0 26px; text-shadow: var(--hero-text-shadow); }
.hc-sub strong { color: #fff; }
.hc-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hc-ctas .btn { padding: 16px 22px; font-size: .9375rem; }
.hc-trust { display: grid; grid-template-columns: repeat(5, 1fr); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.hc-trust-item { padding: 4px 22px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.hc-trust-item:last-child { border-right: 0; }
.hc-trust-item strong { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.625rem, 2.4vw, 2.5rem); letter-spacing: -.025em; color: var(--yellow); line-height: 1; }
.hc-trust-item strong em { font-style: normal; font-size: 1.125rem; color: rgba(255,255,255,.7); margin-left: 3px; letter-spacing: 0; }
.hc-trust-item span { display: block; margin-top: 6px; font-size: .78125rem; color: rgba(255,255,255,.92); font-weight: 600; letter-spacing: .02em; }
@media (max-width: 1100px) {
  .hero-cinema { min-height: 560px; }
  .hc-trust { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .hc-trust-item:nth-child(3n) { border-right: 0; }
}
@media (max-width: 720px) {
  .hc-inner { align-items: center; text-align: center; padding-block: 40px 30px; }
  .hc-inner .e3-eyebrow { justify-content: center; }
  .hc-inner .e3-eyebrow__rule { display: none; }
  .hc-title, .hc-sub { margin-inline: auto; }
  .hc-ctas { justify-content: center; }
  .hc-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 0; }
  .hc-trust-item { flex: 0 0 33.333%; padding: 0 8px; border-right: 0; }
  .hc-trust-item strong { font-size: 1.375rem; }
  .hc-trust-item span { font-size: .6875rem; }
}

/* ---------- PAGE HERO (interiores) ---------- */
.page-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: #fff; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-tint { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,10,14,.82) 0%, rgba(8,10,14,.45) 70%), linear-gradient(180deg, rgba(14,17,22,.35) 0%, rgba(14,17,22,.55) 55%, rgba(14,17,22,.92) 100%); }
.page-hero-tint::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--yellow); }
.page-hero-inner { position: relative; z-index: 2; width: 100%; padding-block: var(--hero-y); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 22px; text-shadow: var(--hero-text-shadow); }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: #fff; }
.page-hero .e3-eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-weight: 800; font-size: clamp(2.375rem, 5.2vw, 4.5rem); letter-spacing: -.03em; line-height: .98; margin: 0 0 20px; max-width: 18ch; text-shadow: var(--hero-title-shadow); text-wrap: balance; }
.page-hero h1 em { font-style: normal; color: var(--yellow); }
.page-hero-lead { font-size: clamp(1rem, 1.4vw, 1.1875rem); line-height: 1.55; color: rgba(255,255,255,.84); max-width: 62ch; margin: 0; text-shadow: var(--hero-text-shadow); }
.page-hero-lead strong { color: #fff; }
.page-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.page-hero-chips span { display: inline-flex; align-items: baseline; gap: 7px; font-size: .84375rem; font-weight: 600; padding: 9px 15px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(4px); }
.page-hero-chips strong { font-family: var(--display); font-weight: 800; color: var(--yellow); font-size: .9375rem; }
.page-hero.hero-compact { min-height: 0; }
.hero-compact .page-hero-inner { padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.page-hero.hero-compact h1 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); margin: 0; max-width: none; }
.hero-compact .page-hero-lead { margin-top: 12px; }

/* ---------- SECTION HEADERS ---------- */
.sec-head { margin-block-end: var(--stack-head); }
.sec-head h2 { font-weight: 700; letter-spacing: -.025em; line-height: 1.05; margin: 0; color: var(--heading); }
.sec-head h2 em { font-style: normal; color: var(--accent); }
.sec-head p.sub { color: var(--muted); line-height: 1.55; margin: 0; }
.sec-head.v1 { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 62%; }
.sec-head.v1 .e3-eyebrow { margin-bottom: 0; }
.sec-head.v1 h2 { font-size: clamp(2rem, 3.6vw, 3.125rem); max-width: 18ch; }
.sec-head.v1 p.sub { font-size: 1.0625rem; max-width: 52ch; }
.sec-head.v2 { display: grid; grid-template-columns: 1.5fr .85fr; column-gap: var(--gap-flow); row-gap: 10px; align-items: stretch; }
.sec-head.v2 .e3-eyebrow { grid-column: 1 / -1; grid-row: 1; margin-bottom: 0; }
.sec-head.v2 h2 { grid-column: 1; grid-row: 2; align-self: start; font-size: clamp(2rem, 3.6vw, 3rem); max-width: 16ch; }
.sec-head.v2 .sec-cta { grid-column: 2; grid-row: 2; }
.sec-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.sec-cta .sub { font-size: .9375rem; color: var(--muted); line-height: 1.5; margin: 0; }
.sec-cta .go { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; color: var(--ink); }
.sec-cta .arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); display: inline-flex; align-items: center; justify-content: center; transition: transform .18s; }
.sec-cta:hover .arrow { transform: translateX(3px); }
.sec-head.on-dark h2 { color: #fff; }
.sec-head.on-dark h2 em { color: var(--yellow); }
.sec-head.v2.on-dark .sec-cta { background: var(--ink-2); border-color: rgba(255,255,255,.06); color: #fff; }
.sec-head.v2.on-dark .sec-cta:hover { background: var(--ink-3); border-color: rgba(255,255,255,.12); }
.sec-head.v2.on-dark .sec-cta .sub { color: rgba(255,255,255,.7); }
.sec-head.v2.on-dark .sec-cta .go { color: #fff; }
.sec-head.v2.on-dark .sec-cta .arrow { color: var(--ink); }
@media (max-width: 900px) {
  .sec-head.v1 { max-width: 100%; }
  .sec-head.v2 { grid-template-columns: 1fr; row-gap: 18px; }
  .sec-head.v2 .sec-cta { grid-column: 1; grid-row: 3; }
}

/* ---------- MARCA PROPIA (Cualix, bajo el hero) ---------- */
section.brand-own { padding-bottom: 0; }
.own-card {
  display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden;
  border-radius: var(--r-xl); background: var(--grad-ink); color: #fff;
  box-shadow: 0 30px 60px -36px rgba(14,17,22,.55); position: relative;
}
.own-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--yellow); }
.own-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; }
.own-body .e3-eyebrow { margin-bottom: 22px; }
.own-logo { height: clamp(44px, 5vw, 64px); width: auto; margin-bottom: 18px; }
.own-body h2 { font-weight: 800; font-size: clamp(2.125rem, 4vw, 3.5rem); letter-spacing: -.03em; line-height: 1; margin: 0 0 16px; }
.own-body h2 em { font-style: italic; color: var(--yellow); }
.own-body p { color: rgba(255,255,255,.76); font-size: 1.03125rem; line-height: 1.6; margin: 0 0 22px; max-width: 48ch; }
.own-body p strong { color: #fff; }
.own-body .btn-row { margin-top: 26px; }
.chips.chips--dark a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.88); }
.chips.chips--dark a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.own-media { position: relative; min-height: 380px; background: var(--ink-2); }
.own-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.own-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(14,17,22,.55) 0%, rgba(14,17,22,0) 35%); }
.own-media .tag-state { z-index: 2; left: auto; right: 18px; top: 18px; background: var(--yellow); color: var(--ink); }
@media (max-width: 900px) {
  .own-card { grid-template-columns: 1fr; }
  .own-media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .own-media::before { background: linear-gradient(0deg, rgba(14,17,22,.6) 0%, rgba(14,17,22,0) 40%); }
}

/* ---------- FAMILIAS (home) ---------- */
.fam-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-cards); }
.fam-card { display: flex; flex-direction: column; }
.fam-card:hover { transform: translateY(-3px); border-color: var(--ink-3); box-shadow: 0 20px 40px -24px rgba(14,17,22,.18); }
.fam-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.fam-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.fam-card:hover .fam-media img { transform: scale(1.05); }
.fam-ico { position: absolute; left: 16px; bottom: -17px; width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); color: #161616; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px -10px rgba(14,17,22,.5); }
.fam-media { overflow: visible; }
.fam-media img { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.fam-body { padding: 30px 20px 22px; }
.fam-body h3 { font-size: 1.1875rem; margin-bottom: 12px; }
.fam-body h3 a:hover { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips a { display: inline-block; font-size: .8125rem; font-weight: 600; color: var(--ink-3); padding: 6px 11px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); transition: .15s; }
.chips a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
@media (max-width: 1100px) { .fam-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fam-grid { grid-template-columns: 1fr; } }

/* ---------- INTRO ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(280px, .82fr) 1.18fr; gap: var(--gap-2col); align-items: start; }
.intro h2 { font-weight: 700; font-size: clamp(2.125rem, 3.8vw, 3.25rem); letter-spacing: -.025em; line-height: 1.05; margin: 0 0 28px; color: var(--heading); max-width: 14ch; }
.intro-body p { font-size: 1.03125rem; line-height: 1.68; color: var(--ink-3); margin: 0 0 18px; }
.intro-body strong { color: var(--ink); }
.intro-body .lead { font-size: 1.25rem; line-height: 1.5; color: var(--ink); font-weight: 500; }
.stat-card { background: var(--grad-ink); color: #fff; border-radius: var(--r-lg); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.125rem); color: var(--yellow); letter-spacing: -.02em; line-height: 1; }
.stat span { display: block; margin-top: 6px; font-size: .8125rem; color: rgba(255,255,255,.72); font-weight: 600; }
.pull { margin: 28px 0 0; padding: 22px 26px; border-left: 4px solid var(--yellow); background: #fff; border-radius: 0 var(--r-md) var(--r-md) 0; font-family: var(--display); font-weight: 700; font-size: 1.1875rem; line-height: 1.35; color: var(--heading); box-shadow: var(--shadow-card); }
.pull span { display: block; margin-top: 6px; font-family: var(--body); font-weight: 500; font-size: .9375rem; color: var(--muted); }
@media (max-width: 1100px) { .intro-grid { grid-template-columns: 1fr; gap: 32px; } .intro h2 { max-width: none; } }

/* ---------- SERVICIOS (home, sección oscura) ---------- */
.svc-dark { background: var(--ink); background-image: radial-gradient(circle at 85% 0%, #1A2230 0%, var(--ink) 55%); color: #fff; padding-block: var(--section-y); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-cards); }
.svc-card { display: flex; flex-direction: column; min-height: 240px; }
.svc-card .link-go { color: var(--yellow); }
.svc-card:hover .link-go { transform: translateX(3px); }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.svc-ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--yellow); color: #161616; box-shadow: -3px -3px 6px rgba(0,0,0,.45), 3px 3px 7px rgba(255,238,170,.25); }
.svc-num { font-family: var(--display); font-weight: 800; font-size: 1.375rem; color: rgba(255,255,255,.25); font-variant-numeric: tabular-nums; }
.svc-card h3 { font-size: 1.3125rem; }
.svc-card--cta { display: flex; flex-direction: column; gap: 10px; justify-content: center; border-radius: var(--r-lg); padding: var(--pad-card); background: var(--yellow); color: var(--ink); background-image: repeating-linear-gradient(135deg, transparent 0 28px, rgba(0,0,0,.04) 28px 30px); }
.svc-card--cta h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.svc-card--cta p { margin: 0 0 8px; color: var(--ink-3); font-size: .9375rem; }
.svc-card--cta .btn { align-self: flex-start; }
.svc-card--cta:hover .btn { background: var(--ink-2); }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- NOVEDADES ---------- */
.feat { display: grid; grid-template-columns: 1.25fr 1fr; }
.feat-media { position: relative; min-height: 340px; background: var(--paper-3); }
.feat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
.feat-logo { max-height: 56px; width: auto; margin-bottom: 14px; }
.feat-body h3 { font-size: clamp(1.75rem, 2.6vw, 2.375rem); font-weight: 800; letter-spacing: -.025em; color: var(--heading); margin: 0 0 8px; }
.feat-body p { font-size: 1rem; line-height: 1.6; color: var(--ink-3); margin: 0 0 20px; max-width: 46ch; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; } .feat-media { min-height: 240px; } }

/* ---------- PARTNERS ---------- */
.partners { padding-block: var(--section-y-sm) !important; }
.partners-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.partners-inner .eyebrow { margin: 0; max-width: 32ch; line-height: 1.5; }
.partners-logos { display: flex; align-items: center; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap; }
.partner img { height: 46px; width: auto; filter: grayscale(1); opacity: .8; transition: .2s; }
.partner img:hover { filter: none; opacity: 1; }

/* ---------- SOCIAL ---------- */
.social-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--gap-2col); align-items: center; }
.social-grid h2 { font-size: clamp(2rem, 3.4vw, 2.875rem); letter-spacing: -.025em; line-height: 1.05; color: var(--heading); margin: 0 0 14px; }
.social-grid .sub { color: var(--muted); font-size: 1.0625rem; margin: 0 0 24px; max-width: 44ch; }
.social-feed { display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); transition: transform .2s; }
.social-feed:hover { transform: translateY(-3px); }
.social-feed img { width: 100%; }
@media (max-width: 900px) { .social-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- UBICACIÓN ---------- */
.locate-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--gap-cards); align-items: stretch; }
.locate-card h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); letter-spacing: -.025em; margin: 0 0 18px; color: var(--heading); }
.locate-card .btn { margin-top: 22px; }
.prose .map-frame { margin-top: 32px; }
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--paper-3); }
.map-frame iframe, .dele-map iframe, .map-band iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--ink-3); line-height: 1.45; }
.contact-list .ico { color: var(--accent); margin-top: 2px; }
.contact-list a:hover { color: var(--accent); }
.contact-list.is-sm li { font-size: .875rem; gap: 10px; }
@media (max-width: 900px) { .locate-grid { grid-template-columns: 1fr; } }

/* ---------- MATERIALES (familias + tarjetas) ---------- */
.family-grid { display: grid; grid-template-columns: minmax(260px, .7fr) 2fr; gap: var(--gap-cards); align-items: stretch; }
.family-cover { position: sticky; top: 140px; display: flex; align-items: flex-end; min-height: 340px; height: 100%; max-height: 520px; border-radius: var(--r-lg); overflow: hidden; color: #fff; background: var(--ink); isolation: isolate; }
.family-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.family-cover:hover img { transform: scale(1.05); }
.family-cover-tint { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,17,22,.05) 20%, rgba(14,17,22,.88) 100%); }
.family-cover-body { padding: 26px; display: grid; gap: 8px; }
.family-cover-body strong { font-family: var(--display); font-weight: 800; font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.05; }
.family-cover-body em { font-style: normal; color: var(--yellow); font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap-cards); align-content: start; }
.mat-grid.is-row { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mat-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.mat-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.mat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.mat-card:hover .mat-thumb img { transform: scale(1.05); }
.mat-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.mat-body h3 { font-size: 1.125rem; }
.mat-card:hover .link-go { transform: translateX(3px); }
@media (max-width: 900px) { .family-grid { grid-template-columns: 1fr; } .family-cover { position: relative; top: 0; min-height: 220px; } }

/* ---------- FICHA / ARTÍCULO ---------- */
.article-grid { display: grid; grid-template-columns: 1.45fr .85fr; gap: var(--gap-2col); align-items: start; }
.article-title { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.025em; line-height: 1.1; color: var(--heading); margin: 0 0 22px; }
.article-aside { position: sticky; top: 140px; display: grid; gap: var(--gap-cards); }
.aside-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); }
.aside-photo img { width: 100%; height: 100%; object-fit: cover; }
.aside-card { background: var(--grad-ink); color: #fff; border-radius: var(--r-lg); padding: 28px 26px; }
.aside-card h3 { font-size: 1.375rem; letter-spacing: -.02em; line-height: 1.15; margin: 4px 0 10px; }
.aside-card p { color: rgba(255,255,255,.72); font-size: .9375rem; margin: 0 0 18px; }
.aside-line { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: rgba(255,255,255,.85); font-weight: 600; font-size: .9375rem; }
.aside-line .ico { color: var(--yellow); }
.aside-line:hover { color: var(--yellow); }
.aside-nav { padding: 18px; display: grid; gap: 2px; }
.aside-nav .eyebrow { padding: 4px 10px 8px; margin: 0; }
.aside-nav a { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; font-weight: 600; font-size: .9375rem; color: var(--ink-2); }
.aside-nav a .ico { color: var(--muted); }
.aside-nav a:hover { background: var(--paper-2); }
.aside-nav a.is-active { background: var(--yellow); color: var(--ink); }
.aside-nav a.is-active .ico { color: var(--ink); }
@media (max-width: 1000px) { .article-grid { grid-template-columns: 1fr; } .article-aside { position: static; } }

/* ---------- PROSE (contenido editable) ---------- */
.prose { font-size: 1.03125rem; line-height: 1.72; color: var(--ink-3); max-width: 76ch; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--ink); }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; line-height: 1.15; color: var(--heading); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.3125rem; letter-spacing: -.015em; color: var(--heading); margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.0625rem; color: var(--ink); margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.2em; list-style: none; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; position: relative; padding-left: 34px; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 7px; background: var(--yellow); font-weight: 700; font-size: .8125rem; display: grid; place-items: center; color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r-md); }
.prose figure { margin: 1.6em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin: 0 0 1.4em; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-2); color: var(--ink); }
.legal-wrap { display: flex; justify-content: center; }
.legal .prose { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 56px); max-width: 920px; width: 100%; }

/* ---------- LOGOS ---------- */
.logo-grid, .brands-wall .wp-block-gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px !important; margin: 0; padding: 0; }
.logo-cell, .brands-wall .wp-block-image { display: flex !important; align-items: center; justify-content: center; aspect-ratio: 3 / 2; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; margin: 0 !important; width: auto !important; transition: border-color .18s, box-shadow .18s, transform .18s; }
.logo-cell:hover, .brands-wall .wp-block-image:hover { border-color: var(--ink-3); transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(14,17,22,.35); }
.logo-cell img, .brands-wall .wp-block-image img { max-height: 64px !important; max-width: 100% !important; width: auto !important; height: auto !important; object-fit: contain !important; filter: grayscale(1); opacity: .85; transition: .2s; border-radius: 0; }
.logo-cell:hover img, .brands-wall .wp-block-image:hover img { filter: none; opacity: 1; }
.brands-wall figcaption { display: none; }

/* ---------- FORMULARIOS ---------- */
.req-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--gap-2col); align-items: start; }
.req-aside h2 { font-size: clamp(1.875rem, 3vw, 2.625rem); letter-spacing: -.025em; line-height: 1.08; color: var(--heading); margin: 0 0 14px; }
.req-aside h2 em { font-style: normal; color: var(--accent); }
.req-aside .sub { color: var(--muted); font-size: 1.0625rem; margin: 0 0 26px; }
.req-form { padding: clamp(22px, 3vw, 36px); }
.form-title { font-size: 1.375rem !important; margin-bottom: 18px !important; color: var(--heading); }
.jform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jfield { display: grid; gap: 6px; }
.jfield.is-wide { grid-column: 1 / -1; }
.jfield span { font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.jfield b, .jcheck b { color: var(--accent); }
.form-control { width: 100%; font-family: var(--body); font-size: .9375rem; color: var(--ink); padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .15s, box-shadow .15s, background .15s; }
.form-control:focus { outline: 0; border-color: var(--ink-3); background: #fff; box-shadow: 0 0 0 4px rgba(255,204,0,.35); }
.form-control.is-area { resize: vertical; min-height: 120px; }
.jcheck { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; line-height: 1.45; color: var(--muted); margin: 16px 0 0; cursor: pointer; }
.jcheck input { margin-top: 2px; accent-color: var(--ink); width: 16px; height: 16px; flex: 0 0 auto; }
.jcheck a { color: var(--ink); text-decoration: underline; }
.jform .btn-block { margin-top: 20px; }
.jform-hp { position: absolute; left: -9999px; }
.form-ok { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: #E6F6EC; color: #155F3D; font-weight: 600; font-size: .9375rem; margin-bottom: 16px; }
@media (max-width: 1000px) { .req-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .jform-grid { grid-template-columns: 1fr; } }

/* ---------- DELEGACIONES (mapa a pantalla completa) ---------- */
.dmap { position: relative; height: calc(100svh - 112px); min-height: 560px; background: var(--paper-3); border-bottom: 4px solid var(--yellow); }
.admin-bar .dmap { height: calc(100svh - 144px); }
.dmap-canvas { position: absolute; inset: 0; z-index: 0; }
.dmap-panel {
  position: absolute; z-index: 5; top: 24px; left: max(24px, calc((100vw - var(--container-max)) / 2 + var(--container-px)));
  bottom: 24px; width: 380px; display: flex; flex-direction: column;
  background: rgba(250,250,247,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(14,17,22,.45); overflow: hidden;
}
.dmap-head { padding: 24px 24px 18px; border-bottom: 1px solid var(--line); }
.breadcrumb.is-light { color: var(--muted); text-shadow: none; margin-bottom: 12px; }
.breadcrumb.is-light a:hover { color: var(--accent); }
.breadcrumb.is-light .current { color: var(--ink); }
.dmap-head h1 { font-weight: 800; font-size: clamp(1.75rem, 2.4vw, 2.25rem); letter-spacing: -.03em; line-height: 1; margin: 0 0 10px; color: var(--heading); }
.dmap-head h1 em { font-style: normal; color: var(--accent); }
.dmap-head p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.dmap-head p strong { color: var(--ink); }
.dmap-toggle { display: none; }
.dmap-list { list-style: none; margin: 0; padding: 10px; overflow-y: auto; flex: 1; display: grid; gap: 4px; align-content: start; }
.dmap-item { width: 100%; text-align: left; display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.dmap-item:hover { background: #fff; border-color: var(--line); }
.dmap-item.is-active { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 2px var(--yellow); }
.dmap-pin { width: 22px; height: auto; flex: 0 0 auto; margin-top: 1px; }
.dmap-txt { display: grid; gap: 2px; min-width: 0; }
.dmap-txt strong { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.dmap-txt span { font-size: .8125rem; color: var(--muted); line-height: 1.4; }
.dmap-txt .dmap-phone { color: var(--ink-3); font-weight: 600; }
.dmap-tag { font-style: normal; font-family: var(--body); font-size: .625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--yellow); color: var(--ink); padding: 3px 8px; border-radius: 999px; vertical-align: 2px; margin-left: 4px; }
/* popup (Leaflet y Google) */
.dpop { display: grid; gap: 4px; font-family: var(--body); min-width: 220px; padding: 2px; }
.dpop-name { font-family: var(--display); font-weight: 800; font-size: 1.125rem; letter-spacing: -.01em; color: var(--heading); margin-bottom: 2px; }
.dpop-note { font-size: .75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.dpop-row { font-size: .8125rem; color: var(--ink-3); line-height: 1.4; }
a.dpop-row { color: var(--ink); font-weight: 600; text-decoration: none; }
a.dpop-row:hover { color: var(--accent); }
.dpop .dpop-btn { justify-self: start; margin-top: 10px; padding: 10px 14px; font-size: .8125rem; color: var(--ink); text-decoration: none; }
.dpop .dpop-more { justify-self: start; margin-top: 6px; font-size: .8125rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.dpop .dpop-more:hover { text-decoration: underline; }
.dpop-wrap .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(14,17,22,.45); padding: 6px 4px; }
.dpop-wrap .leaflet-popup-content { margin: 12px 14px; }
.dpop-wrap a.leaflet-popup-close-button { top: 8px; right: 8px; }
.leaflet-container { font-family: var(--body); background: var(--paper-3); }
.dmap .leaflet-tile-pane { filter: saturate(.55) contrast(1.02) brightness(1.03); }
.leaflet-bar a { border-radius: 10px !important; }
@media (max-width: 900px) {
  .dmap { height: auto; min-height: 0; border-bottom: 0; display: flex; flex-direction: column; }
  .dmap-canvas { position: relative; height: 62svh; min-height: 380px; order: 1; }
  .dmap-list { order: 2; padding: 12px var(--container-px) 24px; border-top: 4px solid var(--yellow); }
  .dmap-panel { display: contents; }
  .dmap-head { order: 0; padding: 22px var(--container-px) 18px; }
  .dmap-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .dmap-list { grid-template-columns: 1fr; } }

/* ---------- SERVICIOS (hub) ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap-cards); }
.hub-card { grid-column: span 2; display: flex; flex-direction: column; }
.hub-card:nth-child(4), .hub-card:nth-child(5) { grid-column: span 3; }
.hub-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.hub-media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.hub-card:hover .hub-media img { transform: scale(1.05); }
.hub-num { position: absolute; right: 16px; top: 14px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hub-body { display: flex; flex-direction: column; padding: 0 24px 24px; flex: 1; }
.hub-body .svc-ic { margin-top: -22px; margin-bottom: 16px; box-shadow: var(--shadow-neu-yellow); position: relative; }
.hub-body h3 { font-size: 1.3125rem; }
.hub-card:hover .link-go { transform: translateX(3px); }
@media (max-width: 1000px) { .hub-grid { grid-template-columns: 1fr 1fr; } .hub-card, .hub-card:nth-child(4), .hub-card:nth-child(5) { grid-column: span 1; } }
@media (max-width: 600px) { .hub-grid { grid-template-columns: 1fr; } }

/* ---------- CONTACTO ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--gap-2col); align-items: start; }
.contact-methods h2 { font-size: clamp(1.875rem, 3vw, 2.625rem); letter-spacing: -.025em; color: var(--heading); margin: 0 0 24px; }
.cm-cards { display: grid; gap: 10px; }
.cm-card { display: flex; gap: 16px; align-items: center; padding: 16px 18px; }
.cm-card small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cm-card strong { display: block; font-family: var(--display); font-size: 1.0625rem; color: var(--ink); word-break: break-word; }
.vr-ic { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--yellow); color: #161616; box-shadow: var(--shadow-neu-yellow); }
.cm-follow { margin-top: 26px; }
.e3-social { display: flex; gap: 8px; }
.e3-social a { width: 42px; height: 42px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; transition: .15s; }
.e3-social a:hover { background: var(--yellow); border-color: var(--yellow); }
.map-band { line-height: 0; border-top: 4px solid var(--yellow); }
.map-band iframe { min-height: 420px; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- VALORES / CLAIM / HISTORIA ---------- */
.values-cols { display: grid; grid-template-columns: minmax(280px, .82fr) 1.18fr; gap: var(--gap-2col); align-items: start; }
.values-cols .sec-head.v1 { max-width: none; }
.values-list { list-style: none; margin: 0; padding: 0; }
.value-row { display: grid; grid-template-columns: auto auto 1fr; align-items: start; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.value-row:first-child { padding-top: 0; }
.value-row:last-child { border-bottom: 0; padding-bottom: 0; }
.vr-num { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--muted); line-height: 1; padding-top: 9px; font-variant-numeric: tabular-nums; }
.vr-body { padding-top: 4px; }
.vr-body h3 { font-size: 1.3125rem; letter-spacing: -.015em; margin: 0 0 7px; line-height: 1.15; color: var(--heading); }
.vr-body p { font-size: .9375rem; line-height: 1.6; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .values-cols { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 700px) { .value-row { gap: 12px 16px; } }
.claim-band { background: radial-gradient(90% 150% at 50% 50%, #1D2C5E 0%, var(--ink) 65%); color: #fff; padding-block: clamp(44px, 5vw, 76px); text-align: center; }
.claim-lead { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.5rem); letter-spacing: -.03em; line-height: 1.06; margin: 0 auto; max-width: 22ch; text-wrap: balance; }
.claim-lead em { font-style: normal; color: var(--yellow); }

.history-body { display: grid; gap: var(--gap-cards); }
.history-body > .wp-block-media-text, .history-body > .hist-step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.history-body .wp-block-media-text { grid-template-columns: 42% 1fr !important; }
.history-body .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr 42% !important; }
.history-body .wp-block-media-text__media { background: var(--paper-2); height: 100%; display: flex; align-items: center; justify-content: center; padding: 28px; margin: 0; }
.history-body .wp-block-media-text__media img, .history-body .wp-block-media-text__media video { max-height: 420px; width: auto !important; max-width: 100%; object-fit: contain; border-radius: var(--r-md); }
.history-body .wp-block-media-text__content { padding: clamp(24px, 3.5vw, 48px) !important; }
.history-body h2 { font-size: clamp(1.5rem, 2.4vw, 2.125rem); letter-spacing: -.02em; line-height: 1.1; color: var(--heading); margin: 0 0 14px; }
.history-body h2::before { content: ""; display: block; width: 28px; height: 3px; background: var(--yellow); border-radius: 2px; margin-bottom: 14px; }
.history-body p { color: var(--ink-3); line-height: 1.7; margin: 0 0 1em; }
.history-body ul { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.history-body ul li { position: relative; padding-left: 28px; color: var(--ink-3); }
.history-body ul li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.history-body .wp-block-buttons { margin-top: 18px; }
.history-body .wp-block-button__link { background: var(--ink); color: #fff; border-radius: 999px; font-weight: 700; font-size: .90625rem; padding: 13px 20px; }
.history-body .wp-block-button__link:hover { background: var(--ink-2); }
.history-body .logos-pair { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
@media (max-width: 781px) { .history-body .wp-block-media-text, .history-body .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr !important; } }

/* ---------- CTA FINAL ---------- */
.cta-final { background: var(--yellow); color: var(--ink); padding-block: var(--section-y); position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(135deg, transparent 0 28px, rgba(0,0,0,.04) 28px 30px); }
.cta-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--gap-flow); align-items: center; position: relative; }
.cta-grid h2 { font-weight: 800; font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: .98; letter-spacing: -.03em; margin: 0 0 18px; text-wrap: balance; }
.cta-grid h2 em { font-style: italic; }
.cta-grid p { font-size: 1.125rem; line-height: 1.45; max-width: 50ch; margin: 0; }
.cta-grid .actions { display: flex; flex-direction: column; gap: 10px; }
.cta-grid .actions .btn { justify-content: center; padding: 18px 22px; font-size: .9375rem; }
.cta-grid .small { font-size: .8125rem; color: var(--ink-2); text-align: center; }
.cta-grid .small a { font-weight: 700; text-decoration: underline; }
@media (max-width: 1100px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
footer.foot { background: var(--ink); color: #B8BCC2; padding-block: var(--sp-8) var(--sp-5); }
.foot-news { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.foot-news-txt h5 { font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.25rem; margin: 0 0 6px; }
.foot-news-txt p { font-size: .875rem; margin: 0; }
.news-form { flex: 0 1 480px; }
.news-form-row { display: flex; gap: 10px; }
.news-form-row input { flex: 1; min-width: 0; padding: 12px 15px; font-size: .875rem; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.06); color: #fff; font-family: var(--body); }
.news-form-row input::placeholder { color: var(--muted-2); }
.news-form-row input:focus { outline: 0; border-color: var(--yellow); }
.news-form .jcheck { color: #8A8E94; margin-top: 10px; font-size: .75rem; }
.news-form .jcheck a { color: #B8BCC2; }
.news-form .jcheck input { accent-color: var(--yellow); }
.foot .form-ok { flex-basis: 100%; }
@media (max-width: 560px) { .news-form-row { flex-direction: column; } .news-form-row .btn { justify-content: center; } }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.25fr 1.35fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.foot-grid h2 { font-family: var(--display); font-weight: 700; color: #fff; font-size: .875rem; margin: 0 0 18px; letter-spacing: .02em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-grid ul a { font-size: .875rem; color: #B8BCC2; }
.foot-grid ul a:hover { color: var(--yellow); }
.foot-logo { display: inline-flex; color: #fff; }
.foot-logo svg { height: 34px; width: auto; }
.foot-claim { font-size: .875rem; line-height: 1.55; max-width: 34ch; margin: 18px 0 22px; }
.foot-social { display: flex; gap: 8px; }
.foot-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--ink-2); border: 1px solid rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: .15s; }
.foot-social a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.fc-row { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; line-height: 1.45; }
.fc-row .ico { color: var(--yellow); margin-top: 2px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 22px; font-size: .78125rem; color: #8A8E94; }
.foot-bottom .links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-bottom a:hover { color: var(--yellow); }
@media (max-width: 1100px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 720px) { .foot-bottom { flex-direction: column; align-items: flex-start; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- ANIMACIONES ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hc-inner > *, .page-hero-inner > * { animation: rise .7s cubic-bezier(.16,1,.3,1) both; }
  .hc-inner > *:nth-child(2), .page-hero-inner > *:nth-child(2) { animation-delay: .08s; }
  .hc-inner > *:nth-child(3), .page-hero-inner > *:nth-child(3) { animation-delay: .16s; }
  .hc-inner > *:nth-child(4), .page-hero-inner > *:nth-child(4) { animation-delay: .24s; }
  .hc-inner > *:nth-child(5), .page-hero-inner > *:nth-child(5) { animation-delay: .32s; }
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
