/* ==========================================================
   Comomoda · Boceto — style.css  (versión negra + neón)
   WP: este archivo pasará a ser el style.css del tema hijo
   (añadir la cabecera "Theme Name:" arriba al migrar).
   Para cambiar el color neón basta con tocar --neon.
   ========================================================== */

:root {
  --bg: #070708;
  --bg-2: #0f0f11;
  --surface: #141417;
  --surface-2: #1b1b1f;
  --text: #f3f1ee;
  --text-soft: #a3a0a8;
  --line: #26262b;

  --neon: #ffffff;                       /* neón blanco */
  --neon-soft: rgba(255, 255, 255, .45);
  --glow: rgba(255, 255, 255, .9);       /* luz blanca */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(44px, 7vw, 88px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3, .h3 { font-size: 26px; }
h1 em, h2 em { font-style: italic; color: var(--neon); text-shadow: 0 0 18px var(--neon-soft); }
p { margin: 0 0 1em; }
::selection { background: #fff; color: #000; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

.eyebrow { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: #d9d6de; font-weight: 500; margin-bottom: 1.2em; text-shadow: 0 0 12px var(--neon-soft); }
.eyebrow--light { color: var(--neon); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-soft); max-width: 36em; }
.muted { color: var(--text-soft); }
.link { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--neon); transition: text-shadow .3s; }
.link:hover { text-shadow: 0 0 12px var(--glow); }
.note { font-size: 14px; color: var(--text-soft); margin-top: 2em; text-align: center; }

/* ==========================================================
   LUZ BLANCA AL PASAR EL RATÓN
   Cualquier elemento con la clase .glow recibe un foco de luz
   blanca por detrás que sigue al cursor (posición en main.js)
   y un halo exterior.
   ========================================================== */
.glow { position: relative; isolation: isolate; transition: box-shadow .45s var(--ease), transform .45s var(--ease), border-color .45s; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), rgba(255,255,255,.06) 40%, transparent 70%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.glow:hover::before { opacity: 1; }
.glow:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 0 40px rgba(255,255,255,.18), 0 0 90px rgba(255,255,255,.08); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 15px 30px; border: 1px solid var(--text); background: var(--text); color: var(--bg);
  font: 500 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { background: #fff; border-color: #fff; box-shadow: 0 0 18px rgba(255,255,255,.7), 0 0 50px rgba(255,255,255,.35); }
.btn--ghost, .btn--light { background: transparent; color: var(--text); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover, .btn--light:hover { color: var(--bg); }
.btn--neon { background: transparent; color: var(--text); border-color: var(--neon); box-shadow: 0 0 12px var(--neon-soft), inset 0 0 12px rgba(255,255,255,0.15); }
.btn--neon:hover { color: var(--bg); }
.btn--small { padding: 11px 20px; }
.btn--block { width: 100%; }

/* ---------- Cabecera ---------- */
.topbar { background: #000; color: var(--text-soft); font-size: 13px; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { text-decoration: none; transition: color .3s, text-shadow .3s; }
.topbar a:hover { color: #fff; text-shadow: 0 0 10px var(--glow); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7,7,8,.82); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; position: relative; }
.brand { display: inline-flex; text-decoration: none; margin: 0; }
.brand__logo { height: 52px; width: auto; transition: filter .4s; }
.brand:hover .brand__logo { filter: drop-shadow(0 0 6px rgba(255,255,255,.8)) drop-shadow(0 0 18px rgba(255,255,255,.4)); }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; }
.main-nav a:not(.btn) { text-decoration: none; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; position: relative; padding: 6px 0; color: var(--text-soft); transition: color .3s, text-shadow .3s; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--neon); box-shadow: 0 0 8px var(--neon); transition: right .35s var(--ease); }
.main-nav a:not(.btn):hover { color: #fff; text-shadow: 0 0 10px var(--glow), 0 0 22px rgba(255,255,255,.5); }
.main-nav a:not(.btn):hover::after, .main-nav a.is-current::after { right: 0; }
.main-nav a.is-current { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle__bar { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform .3s, top .3s; }
.nav-toggle__bar:first-child { top: 17px; }
.nav-toggle__bar:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Portada con logo neón ---------- */
.hero-neon { position: relative; min-height: min(86vh, 820px); display: grid; place-items: center; text-align: center; overflow: hidden; padding: 80px 0 100px; }
.hero-neon__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px circle at var(--mx, 50%) var(--my, 45%), rgba(255,255,255,.07), transparent 60%),
    radial-gradient(900px 500px at 50% 110%, rgba(255,255,255,0.10), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px; }
.hero-neon__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 80%); }
.hero-neon__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.neon-logo { width: min(620px, 86vw); height: auto; margin: 10px 0 34px;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 8px rgba(255,255,255,.8)) drop-shadow(0 0 24px rgba(255,255,255,.45)) drop-shadow(0 0 60px rgba(255,255,255,.2));
  animation: neon-on 2.4s ease-out both, neon-flicker 7s 2.4s infinite; }
@keyframes neon-on {
  0%, 8% { opacity: .05; filter: none; } 10% { opacity: 1; } 12% { opacity: .2; } 16% { opacity: 1; } 18% { opacity: .4; } 24%, 100% { opacity: 1; }
}
@keyframes neon-flicker { 0%, 91%, 93%, 96%, 100% { opacity: 1; } 92%, 95% { opacity: .55; } }
.hero-neon h1 { font-size: clamp(26px, 3.2vw, 40px); font-style: italic; font-weight: 400; color: var(--text); margin-bottom: .4em; }
.hero-neon .lead { margin: 0 auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2em; justify-content: center; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1; width: 1px; height: 54px; background: linear-gradient(var(--neon), transparent); box-shadow: 0 0 10px var(--neon); animation: hint 2.2s ease-in-out infinite; }
@keyframes hint { 0%,100% { opacity: .3; transform: translate(-50%, 0); } 50% { opacity: 1; transform: translate(-50%, 8px); } }

/* ---------- Carrusel de marcas ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); padding: 22px 0 22px 38px; white-space: nowrap; color: var(--text-soft); transition: color .3s, text-shadow .3s; }
.marquee__track span:hover { color: #fff; text-shadow: 0 0 10px var(--glow), 0 0 26px rgba(255,255,255,.5); }
.marquee__track span::after { content: "✦"; font-size: 12px; margin-left: 38px; color: var(--neon); text-shadow: 0 0 8px var(--neon); vertical-align: middle; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: var(--section) 0; }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: #000; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.pillar__num { font-family: var(--serif); font-size: 18px; color: var(--neon); display: block; margin-bottom: 18px; text-shadow: 0 0 10px var(--neon-soft); }
.pillar p { color: var(--text-soft); margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { aspect-ratio: 3/4; border-radius: var(--radius); text-decoration: none; display: flex; flex-direction: column; padding: 24px 22px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.tile--accent { border-color: var(--neon); box-shadow: 0 0 16px rgba(255,255,255,0.15), inset 0 0 22px rgba(255,255,255,0.07); }
.tile__num { font-family: var(--serif); font-size: 18px; color: var(--text-soft); }
.tile__icon { width: 58%; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8; transition: transform .6s var(--ease), filter .6s; }
.tile__label { font-family: var(--serif); font-size: 26px; display: flex; justify-content: space-between; align-items: center; line-height: 1.1; }
.tile__label i { font-style: normal; font-family: var(--sans); transition: transform .3s; }
.tile__desc { font-size: 14px; line-height: 1.45; color: var(--text-soft); margin-top: 8px; }
.tile:hover { transform: translateY(-6px); }
.tile:hover .tile__icon { transform: scale(1.08) rotate(-3deg); filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 16px rgba(255,255,255,.5)); opacity: 1; }
.tile:hover .tile__label i { transform: translateX(6px); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat { padding: 30px 12px; border-radius: var(--radius); }
.stat strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 6vw, 72px); line-height: 1; color: #fff; text-shadow: 0 0 14px rgba(255,255,255,.35), 0 0 36px var(--neon-soft); }
.stat span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--media { align-items: start; }
.split__img { margin: 0; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split h2 + p { margin-bottom: 2em; }

.press-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.press-strip > * { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.press-strip img { aspect-ratio: 3/4; object-fit: cover; width: 100%; filter: grayscale(1) contrast(1.05); transition: filter .5s; }
.press-strip > *:hover img { filter: none; }
.press-strip > *:nth-child(2) { transform: translateY(28px); }
.press-strip > *:nth-child(2):hover { transform: translateY(22px); }

.cta { text-align: center; }
.cta__inner { max-width: 680px; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px); background: var(--surface); }
.cta p { color: var(--text-soft); margin-bottom: 2em; }

/* ---------- Cabecera de página interior ---------- */
.page-hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 320px at 15% 0%, rgba(255,255,255,0.07), transparent 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); }

/* ---------- Marcas ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip { font: 400 14px/1 var(--sans); letter-spacing: .06em; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-soft); cursor: pointer; transition: all .3s; }
.chip:hover { border-color: #fff; color: #fff; box-shadow: 0 0 16px rgba(255,255,255,.35); }
.chip.is-active { background: transparent; color: #fff; border-color: var(--neon); box-shadow: 0 0 12px var(--neon-soft), inset 0 0 10px rgba(255,255,255,0.12); }
.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brand-card { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.brand-card:hover { transform: translateY(-3px); }
.brand-card.is-hidden { display: none; }
/* WP: .brand-card__logo pasará a ser la imagen destacada (logo) de cada marca */
.brand-card__logo { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); height: 150px; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .14em; color: var(--text-soft); transition: color .4s, text-shadow .4s; }
.brand-card:hover .brand-card__logo { color: #fff; text-shadow: 0 0 10px var(--glow), 0 0 28px rgba(255,255,255,.45); }
.brand-card__body { padding: 18px 20px; text-align: center; }
.brand-card__body h2 { font-size: 24px; margin: 0; }
.brand-card__body p:last-child { margin: 0; color: var(--text-soft); font-size: 16px; }
.brand-card__body strong { color: var(--text); font-weight: 500; }
.brand-card__meta { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--neon); margin-bottom: .6em; }
.tag-pending { font: 400 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; border: 1px dashed var(--neon); color: var(--neon); padding: 5px 8px; border-radius: 3px; vertical-align: middle; }
.empty-msg { text-align: center; color: var(--text-soft); }

/* ---------- Logos de marca (recorte + invertido a blanco) ----------
   Los logos originales son negros sobre blanco: invert() los deja
   blancos sobre negro. WP: al migrar, subir versiones PNG blancas
   con fondo transparente y quitar el filtro. */
.blogo { position: relative; overflow: hidden; aspect-ratio: var(--r); width: min(100%, calc(var(--h, 70px) * var(--r))); flex: none; }
.brand-card__logo .blogo { width: min(78%, calc(var(--h, 70px) * var(--r))); }
.blogo img { position: absolute; max-width: none; width: var(--iw); left: var(--il); top: var(--it); filter: grayscale(1) invert(1) contrast(var(--c, 1.15)) brightness(var(--b, .92)); transition: filter .4s; }
.brand-card__logo { background: #000; }
.brand-card:hover .blogo img { filter: grayscale(1) invert(1) contrast(calc(var(--c, 1.15) + .1)) brightness(calc(var(--b, .92) + .25)) drop-shadow(0 0 6px rgba(255,255,255,.5)); }
.marquee--logos .marquee__track { align-items: center; animation-duration: 45s; }
.marquee--logos .marquee__item { display: flex; align-items: center; justify-content: center; padding: 22px 40px; min-height: 104px; }
.marquee--logos .blogo { width: calc(var(--h, 44px) * var(--r) * var(--k, 1)); max-width: none; }
.marquee--logos .blogo--px img { max-width: 100%; }
@media (max-width: 560px) {
  .marquee--logos { --k: .72; }
  .marquee--logos .marquee__item { padding: 16px 24px; min-height: 80px; }
}
.marquee--logos .marquee__item + .marquee__item { border-left: 1px solid var(--line); }
.marquee--logos { background: #000; }
.marquee--logos .blogo img { filter: grayscale(1) invert(1) contrast(var(--c, 1.15)) brightness(calc(var(--b, .92) - .15)); }
.marquee--logos .marquee__item:hover .blogo img { filter: grayscale(1) invert(1) contrast(calc(var(--c, 1.15) + .15)) brightness(calc(var(--b, .92) + .3)); }
/* Logos ya recortados y en blanco (los genera el tema en el servidor): sin filtros, ligeros en móvil */
.blogo--px img { position: static; display: block; width: 100%; height: 100%; object-fit: contain; filter: none; opacity: .92; transition: opacity .4s; }
.brand-card:hover .blogo--px img { filter: drop-shadow(0 0 6px rgba(255,255,255,.5)); opacity: 1; }
.marquee__track .blogo { padding: 0; }
.marquee__track .blogo::after { content: none; }
.marquee--logos .blogo--px img { filter: none; opacity: .76; }
.marquee--logos .marquee__item:hover .blogo--px img { filter: none; opacity: 1; }

/* ---------- Galería prensa ---------- */
.gallery { columns: 4 240px; column-gap: 16px; }
.gallery__item { break-inside: avoid; margin: 0 0 16px; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery__item img { width: 100%; filter: grayscale(.85); transition: transform .6s var(--ease), filter .6s; }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: 13px; letter-spacing: .06em; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); opacity: 0; transition: opacity .3s; }
.gallery__item:hover img { transform: scale(1.04); filter: none; }
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { opacity: 1; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.contact__info .card { margin-bottom: 40px; }
.contact__info .card h2 { font-size: 30px; }
.reps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rep { display: flex; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rep__avatar { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--neon); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 20px; font-weight: 600; box-shadow: 0 0 10px var(--neon-soft), inset 0 0 8px rgba(255,255,255,0.18); }
.rep strong { display: block; font-weight: 500; }
.rep a { display: block; text-decoration: none; color: var(--text-soft); font-size: 15px; overflow-wrap: anywhere; transition: color .3s, text-shadow .3s; }
.rep a:hover { color: #fff; text-shadow: 0 0 10px var(--glow); }

.form h2 { font-size: 34px; }
.field { margin-bottom: 18px; position: relative; }
.field label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; font-weight: 400; color: var(--text-soft); }
.field input, .field textarea { width: 100%; font: 300 16px/1.5 var(--sans); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; transition: border-color .3s, box-shadow .3s; }
.field input:hover, .field textarea:hover { border-color: #55555c; }
.field input:focus, .field textarea:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 0 22px rgba(255,255,255,.15); }
.field textarea { resize: vertical; }
.counter { position: absolute; right: 10px; bottom: 8px; font-size: 12px; color: var(--text-soft); }
.field__error { display: none; color: #ff6b7d; font-size: 13px; margin-top: 4px; }
.field.has-error input, .field.has-error textarea { border-color: #ff6b7d; }
.field.has-error .field__error { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 6px 0 4px; color: var(--text-soft); }
.check a { color: var(--text); }
.check input { margin-top: 5px; accent-color: var(--neon); }
.form.check-error .field__error--check { display: block; margin-bottom: 10px; }
.form .btn { margin-top: 16px; }
.form__ok { margin-top: 16px; padding: 14px; border: 1px solid #3f7a52; color: #9be0b0; border-radius: var(--radius); font-size: 15px; }

.map { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) grayscale(.7) contrast(.95); }

/* ---------- Pie ---------- */
.site-footer { background: #000; color: var(--text-soft); padding: 72px 0 0; font-size: 15px; border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.site-footer a { text-decoration: none; transition: color .3s, text-shadow .3s; }
.site-footer a:hover { color: #fff; text-shadow: 0 0 10px var(--glow); }
.site-footer .muted { max-width: 30em; margin-top: 16px; }
.site-footer .brand__logo { height: 64px; }
.footer-title { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #fff; font-weight: 500; margin-bottom: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.social { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.social a { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: border-color .3s, box-shadow .3s, color .3s; }
.social a:hover { border-color: #fff; color: #fff; box-shadow: 0 0 16px rgba(255,255,255,.6), 0 0 40px rgba(255,255,255,.25); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.social svg .fill { fill: currentColor; stroke: none; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line); font-size: 13px; color: #6f6c74; }

.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: #fff; display: grid; place-items: center; text-decoration: none; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s; z-index: 40; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: #fff; box-shadow: 0 0 18px rgba(255,255,255,.6); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.95); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; box-shadow: 0 0 60px rgba(255,255,255,.12); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; width: 56px; height: 56px; line-height: 1; transition: text-shadow .3s; }
.lightbox button:hover { text-shadow: 0 0 14px #fff; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

.img-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 180px; background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 24px); color: var(--text-soft); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 16px; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s var(--ease), box-shadow .45s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.is-in.glow:hover { transform: translateY(-4px); }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .neon-logo, .scroll-hint { animation: none; }
  html { scroll-behavior: auto; }
}
@media (hover: none) { .glow::before { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .brands { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brand-card__body { padding: 12px 10px; }
  .brand-card__body h2 { font-size: 18px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 28px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .main-nav a:not(.btn) { font-size: 16px; }
  .split, .contact { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .topbar__inner span { display: none; }
  .topbar__inner { justify-content: flex-end; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand__logo { height: 40px; }
  .brand-card__logo { height: 120px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 16px 14px; }
  .tile__label { font-size: 19px; }
  .tile__desc { display: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .lightbox { padding: 60px 12px; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .gallery__item { margin-bottom: 10px; }
  .hero-neon { min-height: 78vh; }
}

/* Llegada desde la pantalla de entrada (después del zoom) */
.from-entrada body { animation: arrive 1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes arrive { from { opacity: 0; transform: scale(1.06); filter: brightness(1.6); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .from-entrada body { animation: none; } }

/* Paso entre páginas sin corte (navegadores que lo admiten) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* Texto sobre las marcas (Nuestras marcas): discreto, bajo la cuadrícula */
.brands-seo { max-width: 820px; margin: 48px auto 0; text-align: center; color: var(--text-soft); font-size: 16px; line-height: 1.7; }
.brands-seo strong { color: var(--text); font-weight: 400; }

/* ==========================================================
   Añadidos para WordPress
   ========================================================== */
.cm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin-top: 16px; padding: 14px; border: 1px solid #7a3f3f; color: #ffb3b3; border-radius: var(--radius); font-size: 15px; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
/* Páginas genéricas (política de privacidad, aviso legal…) */
.prose { font-size: 17px; color: var(--text-soft); }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.6em; }
.prose h2 { font-size: 32px; } .prose h3 { font-size: 24px; }
.prose a { color: var(--text); border-bottom: 1px solid rgba(255,255,255,.4); text-decoration: none; }
.prose a:hover { text-shadow: 0 0 10px var(--glow); }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .4em; }
.prose img { height: auto; border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; } .prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.not-found { text-align: center; }
