/* ═══════════════════════════════════════════════════════════════
   ROTHOMAX PUBLICIDAD · Monclova, Coahuila
   Identidad: fondo claro predominante, secciones en negro y rojo.
   Elemento firma: corte diagonal de vinil + cinta de servicios.
   Mobile-first · breakpoints: 768px / 900px (menú) / 1024px
═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES Y RESET ───── */
:root {
  --color-primary:       #121214;   /* Negro Taller */
  --color-secondary:     #E8EAED;   /* Plata Vinil  */
  --color-accent:        #D9111E;   /* Rojo Rotho   */
  --color-dark:          #0D0D0F;
  --color-light:         #FFFFFF;

  --color-accent-dark:   #A80D17;
  --color-accent-bright: #FF4A55;   /* rojo legible sobre fondos negros */
  --color-text:          #22242A;
  --color-muted:         #565C66;
  --color-border:        #D3D7DD;
  --color-field:         #B4BAC3;
  --color-wa:            #25D366;

  --font-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --font-body:    'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --container:  1200px;
  --header-h:   96px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-light);
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ── BASE ────────────────── */
.container      { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container-wide { width: min(100% - 48px, 1320px);           margin-inline: auto; }

section[id] { scroll-margin-top: 84px; }

.ico { width: 20px; height: 20px; flex: none; }

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.led :focus-visible, .site-footer :focus-visible, .nav.open :focus-visible,
.cta-band :focus-visible, .hero :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--color-primary); color: #fff;
  padding: 10px 18px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .5px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--color-primary);
}

.section-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.section-head p { margin-top: 16px; font-size: 1.15rem; color: var(--color-muted); }

.eyebrow {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 14px;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 24px;
  border: 2px solid transparent; border-radius: 6px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-align: center;
  transition: filter .2s ease, transform .3s ease, background-color .2s ease,
              color .2s ease, border-color .2s ease;
}
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; padding: 16px; }

.btn-cta, .btn-primary { background: var(--color-accent); color: #fff; }
.btn-cta:hover { filter: brightness(.9); }
.btn-primary:hover { transform: scale(1.05); filter: brightness(.95); }

.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--color-primary); transform: scale(1.05); }

.btn-white { background: #fff; color: var(--color-primary); }
.btn-white:hover { transform: scale(1.05); }

.btn-outline-white { border-color: #fff; color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--color-accent); transform: scale(1.05); }

.btn-wa { background: var(--color-wa); color: #fff; }
.btn-wa:hover { filter: brightness(.9); transform: scale(1.02); }

/* Placeholder de imagen (se ve solo si la imagen no carga) */
.ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 12px;
  border: 2px dashed var(--color-field);
  background: #F4F5F7;
  color: var(--color-muted);
  font-size: .9rem;
}

/* ── HEADER ──────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--color-light);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .3s ease;
}
.site-header::after {               /* corte rojo de vinil */
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: min(300px, 42%); height: 4px;
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.12); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}

.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 80px; width: auto; }
.logo-ph {
  display: none; align-items: center; justify-content: center;
  height: 80px; min-width: 120px; padding: 0 16px;
  border: 2px dashed var(--color-field); color: var(--color-muted); font-size: .9rem;
}

.nav a:not(.btn) {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 8px 0;
  font-weight: 600; font-size: 1rem;
  transition: color .2s ease;
}
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px;
  background: var(--color-accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover, .nav a.active { color: var(--color-accent); }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }

.header-social, .header-cta { display: none; }

.header-social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--color-primary);
  transition: color .2s ease, transform .2s ease;
}
.header-social .ico { width: 24px; height: 24px; }
.header-social a:hover { color: var(--color-accent); transform: scale(1.1); }

/* Menú móvil: overlay en color primario */
.nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--color-primary); color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.nav.open { opacity: 1; visibility: visible; transform: none; }
.nav a:not(.btn) {
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem;
  text-transform: uppercase; line-height: 1.1;
}
.nav a:not(.btn)::after { display: none; }
.nav-cta { margin-top: 20px; width: min(80%, 320px); padding: 16px 24px; }
body.menu-open { overflow: hidden; }

.burger {
  display: grid; place-content: center; gap: 6px;
  width: 44px; height: 44px; background: none; border: 0; z-index: 2;
}
.burger span {
  display: block; width: 28px; height: 3px; background: var(--color-primary);
  border-radius: 2px; transition: transform .3s ease, opacity .2s ease, background-color .3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── HERO ────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 600px; width: 100%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 100px 24px;
  color: #fff;
  background-color: var(--color-primary);
  background-image:
    url('images/hero.jpg'),
    linear-gradient(135deg, #121214 0%, #3A0A10 55%, #D9111E 135%);
  background-size: cover;
  background-position: center;
}
.hero::before {                      /* overlay obligatorio en color de marca */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(115deg, rgba(217,17,30,.40) 0%, rgba(18,18,20,0) 55%),
    rgba(18,18,20,.58);
}
.hero.no-img::after {
  content: '';
  position: absolute; left: 24px; bottom: 20px; z-index: 2;
  font-size: .85rem; color: rgba(255,255,255,.55);
}

/* Chevrones: en móvil son pequeños y atenuados para no empalmarse con el título */
.chevs {
  position: absolute; top: 0; right: 0; z-index: 1;
  width: 130px; height: 130px; overflow: hidden; pointer-events: none;
  opacity: .55;
}
.chevs span {
  position: absolute; top: -50px; width: 90px; height: 200px;
  clip-path: polygon(100% 0, 55% 0, 0 50%, 55% 100%, 100% 100%, 45% 50%);
}
.chevs span:nth-child(1) { right: -18px; background: var(--color-accent); }
.chevs span:nth-child(2) { right: 4px;   background: var(--color-accent-dark); }
.chevs span:nth-child(3) { right: 26px;  background: #fff; }

.hero-content {
  position: relative; z-index: 2;
  max-width: 980px;
  padding-top: 40px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 10vw, 7.5rem);
  line-height: .92; letter-spacing: .5px;
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
  opacity: 0; animation: fadeDown .8s ease forwards; animation-delay: .2s;
}
.hero-title .line { display: block; }
.hero-title .line-block {             /* franja de vinil detrás de toda la línea */
  display: inline-block;
  margin-top: .1em; padding: .02em .28em .07em;
  background: var(--color-accent);
  transform: skewX(-8deg);
  text-shadow: none;
}

.hero-sub {
  max-width: 640px; margin: 28px auto 36px;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  color: rgba(255,255,255,.88);
  opacity: 0; animation: fadeDown .8s ease forwards; animation-delay: .6s;
}
.hero-actions {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; animation: fadeDown .8s ease forwards; animation-delay: 1s;
}
.hero-actions .btn { min-width: 80%; }

/* ── CINTA DE SERVICIOS ──── */
.ticker { background: var(--color-accent); color: #fff; overflow: hidden; padding: 14px 0; }
.ticker-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ticker-group { display: flex; align-items: center; flex-shrink: 0; }
.ticker-group span {
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  text-transform: uppercase; letter-spacing: 1.5px; white-space: nowrap;
  padding: 0 20px;
}
.ticker-group i {
  width: 10px; height: 10px; background: #fff; flex: none;
  transform: skewX(-20deg);
}

/* ── QUIÉNES SOMOS ───────── */
.about { padding: 72px 0; background: var(--color-light); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }

.frame {
  position: relative; height: 300px;
  border-radius: 12px;
  box-shadow: 8px 8px 0 var(--color-accent);
}
.frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 12px;
}
.frame .ph { border-radius: 12px; }

.about-text .section-title { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.about-text .lead { margin: 18px 0 20px; font-size: 1.15rem; color: var(--color-muted); max-width: 52ch; }
.about-text p:not(.eyebrow):not(.lead) { line-height: 1.8; margin-bottom: 14px; max-width: 62ch; }

.stats { display: flex; flex-wrap: wrap; gap: 20px 0; margin-top: 30px; }
.stats li { padding: 0 24px; border-left: 3px solid var(--color-accent); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats strong {
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: 3rem; line-height: 1; color: var(--color-primary);
}
.stats span { font-size: .9rem; color: var(--color-muted); }

/* ── SERVICIOS ───────────── */
.services {
  padding: 72px 0 84px;
  background-color: var(--color-secondary);
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.55) 0 3px, transparent 3px 48px);
}
.services-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }

.service-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--color-border);
}
.card-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--color-accent);       /* se asoma bajo el corte diagonal */
}
.card-media .ph,
.card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%);
}
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 20px; }
.card-body h3 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 1.9rem; line-height: 1; color: var(--color-primary);
}
.card-body p { color: var(--color-muted); line-height: 1.65; }
.card-link {
  margin-top: auto; padding-top: 6px; min-height: 44px;
  display: inline-flex; align-items: center; align-self: flex-start;
  font-weight: 700; color: var(--color-accent);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: color .2s ease;
}
.card-link:hover { color: var(--color-primary); }

/* ── PANTALLA LED (negro) ── */
.led {
  position: relative; overflow: hidden;
  padding: 80px 0 72px;
  background: var(--color-primary); color: #fff;
}
.led::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: var(--color-accent);
  clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 100%);
}
.led-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
.led .section-title { color: #fff; }
.led-location { margin: 18px 0 30px; max-width: 52ch; color: rgba(255,255,255,.82); font-size: 1.05rem; }

.led-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 28px; margin-bottom: 36px; }
.led-facts div { border-top: 3px solid var(--color-accent-bright); padding-top: 12px; }
.led-facts dt {
  font-family: var(--font-display); font-weight: 900; font-size: 3.2rem; line-height: 1; color: #fff;
}
.led-facts dd { margin-top: 4px; font-size: .95rem; color: rgba(255,255,255,.8); }

.led-screen {
  position: relative; aspect-ratio: 5 / 3; overflow: hidden;
  display: grid; place-items: center;
  border: 8px solid #2C2C32; border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 5px),
    linear-gradient(135deg, #1C1C22, #000);
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.led-msg {
  padding: 0 16px; text-align: center;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.2rem, 8vw, 4rem); line-height: .95; color: #fff;
}
.led-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: rgba(255,255,255,.15); }
.led-bar i { display: block; height: 100%; width: 0; background: var(--color-accent-bright); animation: ledProgress 24s linear infinite; }
.led-stand {
  width: 26%; height: 56px; margin: 0 auto;
  background: #2C2C32;
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
}
.led-dim { display: block; margin-top: 10px; text-align: center; font-weight: 600; color: #fff; }

/* ── BANDA CTA (rojo) ────── */
.cta-band {
  padding: 56px 0;
  background-color: var(--color-accent); color: #fff;
  background-image: linear-gradient(115deg, transparent 0 60%, rgba(0,0,0,.14) 60% 74%, transparent 74%);
}
.cta-inner { display: flex; flex-direction: column; gap: 28px; }
.cta-band h2 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: .95;
}
.cta-band p { margin-top: 12px; max-width: 46ch; font-size: 1.1rem; color: rgba(255,255,255,.94); }
.cta-actions { display: flex; flex-direction: column; gap: 14px; }

/* ── CONTACTO ────────────── */
.contact { padding-top: 84px; background: var(--color-light); }
.map { width: 100%; height: 300px; border: 0; display: block; background: var(--color-secondary); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; padding: 64px 0 84px; }

.block-title {
  position: relative; margin-bottom: 22px; padding-bottom: 12px;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 1.9rem; line-height: 1; color: var(--color-primary);
}
.block-title::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px;
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.info-list { margin-bottom: 40px; }
.info-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--color-border);
}
.info-list .ico { margin-top: 3px; color: var(--color-accent); }
.info-list a { display: inline-block; padding: 2px 0; transition: color .2s ease; }
.info-list a:hover, .map-link:hover { color: var(--color-accent); }

.hours { margin-bottom: 28px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--color-field); }
.hours li span:first-child { font-weight: 600; }

.map-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; color: var(--color-primary);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}

.contact-form {
  align-self: start;
  padding: 28px 22px 30px;
  background: var(--color-secondary);
  border-top: 6px solid var(--color-accent);
}
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  background: #fff;
  border: 2px solid var(--color-field); border-radius: 8px;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--color-accent); outline: none;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(217,17,30,.25);
}
.form-status { min-height: 1.5em; margin-top: 14px; font-size: .95rem; color: var(--color-muted); }

/* ── FOOTER ──────────────── */
.site-footer { background: var(--color-dark); color: #E5E5E5; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 44px; padding: 64px 0 8px; }

.footer-brand { text-align: center; }
.logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; background: #fff; border-radius: 10px;
}
.logo-badge img { height: 80px; width: auto; }
.logo-badge .logo-ph { height: 80px; }
.footer-brand p { margin: 18px auto 20px; max-width: 44ch; font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.7); }

.footer-social { display: flex; justify-content: center; gap: 10px; }
.footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-accent); color: #fff;
  transition: background-color .2s ease, color .2s ease;
}
.footer-social a:hover { background: #fff; color: var(--color-accent); }

.footer-col h4 {
  margin-bottom: 16px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: var(--color-accent-bright);
}
.footer-col li { font-size: 14px; line-height: 2.2; color: rgba(255,255,255,.7); }
.footer-col a { transition: color .2s ease, padding-left .2s ease; }
.footer-col ul:not(.footer-contact) a:hover { color: #fff; padding-left: 6px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.6; padding: 6px 0; }
.footer-contact .ico { width: 16px; height: 16px; margin-top: 4px; color: var(--color-accent-bright); }
.footer-contact a:hover { color: #fff; }
.footer-hours li { display: flex; flex-direction: column; line-height: 1.5; padding: 6px 0; }
.footer-hours span { color: #fff; font-weight: 600; }

.footer-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 40px; padding: 24px 0 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.55); }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
.legal-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 13px; color: rgba(255,255,255,.55);
  text-decoration: underline; transition: color .2s ease;
}
.legal-links a:hover { color: #fff; }

/* ── BOTONES FLOTANTES ────── */
.float-wa, .float-up {
  position: fixed; right: 24px; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 0; color: #fff;
}
.float-wa {
  bottom: 24px; width: 56px; height: 56px;
  background: var(--color-wa);
  box-shadow: 0 4px 16px rgba(37,211,102,.5);
  transition: transform .3s ease;
}
.float-wa svg { width: 28px; height: 28px; }
.float-wa:hover { transform: scale(1.1); }

.float-up {
  bottom: 90px; width: 48px; height: 48px;
  background: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}
.float-up svg { width: 22px; height: 22px; }
.float-up.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.float-up.show:hover { transform: scale(1.1) translateY(-2px); }

.tip {
  position: absolute; right: 68px;
  padding: 6px 12px; border-radius: 6px;
  background: #333; color: #fff; font-size: 13px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
  display: none;
}

/* ── ANIMACIONES ─────────── */
@keyframes fadeDown   { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp     { from { opacity: 0; transform: translateY(18px); }  to { opacity: 1; transform: translateY(0); } }
@keyframes slideLeft  { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(40px); }  to { opacity: 1; transform: translateX(0); } }
@keyframes marquee    { to { transform: translateX(-50%); } }
@keyframes ledProgress { from { width: 0; } to { width: 100%; } }

.reveal, .reveal-left, .reveal-right { opacity: 0; }
.reveal.in-view       { animation: fadeUp .7s ease forwards;      animation-delay: var(--d, 0s); }
.reveal-left.in-view  { animation: slideLeft .8s ease forwards;   animation-delay: .2s; }
.reveal-right.in-view { animation: slideRight .8s ease forwards;  animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-title, .hero-sub, .hero-actions,
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
  .ticker-track { width: 100%; justify-content: center; }
  .ticker-group[aria-hidden="true"] { display: none; }
  .ticker-group { flex-wrap: wrap; justify-content: center; }
  .led-bar i { width: 100%; }
}

/* ── PÁGINAS LEGALES ─────── */
.legal-header { background: #fff; border-bottom: 1px solid var(--color-border); position: relative; }
.legal-header::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: min(300px, 42%); height: 4px;
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.legal-header .header-inner { height: auto; padding: 10px 0; }
.legal-main { padding: 72px 0 96px; background: #fff; }
.legal-doc { width: min(100% - 48px, 820px); margin-inline: auto; }
.legal-doc h1 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.8rem, 8vw, 4.4rem); line-height: .95; color: var(--color-primary);
}
.legal-updated { margin: 12px 0 40px; color: var(--color-muted); font-size: .95rem; }
.legal-doc h2 {
  margin: 44px 0 14px; padding-left: 14px; border-left: 6px solid var(--color-accent);
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 1.9rem; line-height: 1.05; color: var(--color-primary);
}
.legal-doc p, .legal-doc li { line-height: 1.8; margin-bottom: 12px; }
.legal-doc ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal-doc a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-footer { padding: 28px 0; background: var(--color-dark); color: rgba(255,255,255,.65); font-size: 13px; }
.legal-footer .container { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: #fff; }
.back-link:hover { color: var(--color-accent-bright); }

/* ── RESPONSIVE ──────────── */
@media (hover: none), (max-width: 768px) {
  .tip { display: none !important; }
}

@media (min-width: 768px) {
  .hero { min-height: 800px; padding: 120px 48px; }

  /* En tablet/escritorio se restauran los chevrones grandes y el hero sin padding extra */
  .hero-content { padding-top: 0; }
  .chevs { width: 300px; height: 300px; opacity: 1; }
  .chevs span { top: -60px; width: 200px; height: 400px; }
  .chevs span:nth-child(1) { right: -40px; }
  .chevs span:nth-child(2) { right: 12px; }
  .chevs span:nth-child(3) { right: 64px; }

  .hero-actions { flex-direction: row; justify-content: center; }
  .hero-actions .btn { min-width: 0; }

  .about, .services { padding-block: 100px; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
  .frame { height: 500px; }
  .about-media { isolation: isolate; }
  .frame::before {
    content: ''; position: absolute; inset: -16px; z-index: -1;
    border: 3px solid var(--color-primary); border-radius: 14px;
  }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .led { padding: 100px 0; }

  .cta-band { padding-block: 72px; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }

  .map { height: 450px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 60px; padding-block: 80px; }
  .contact-form { padding: 36px; }

  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 80px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-brand { text-align: left; }
  .footer-brand p { margin-left: 0; }
  .footer-social { justify-content: flex-start; }

  .legal-footer .container { flex-direction: row; justify-content: space-between; }
}

/* Menú de escritorio: en 768–900px el logo grande no deja espacio, se mantiene el menú móvil */
@media (min-width: 901px) {
  .header-inner { height: auto; padding: 10px 0; gap: 28px; }
  .logo img, .logo-ph { height: 120px; transition: height .3s ease; }
  .logo-ph { min-width: 160px; }
  .site-header.scrolled .logo img,
  .site-header.scrolled .logo-ph { height: 72px; }

  .burger, .nav-cta { display: none; }
  .nav {
    position: static; inset: auto; margin-left: auto;
    flex-direction: row; justify-content: flex-start; gap: 30px;
    background: none; color: var(--color-text);
    opacity: 1; visibility: visible; transform: none;
  }
  .nav a:not(.btn) { font-family: var(--font-body); font-weight: 600; font-size: 1rem; text-transform: none; }
  .nav a:not(.btn)::after { display: block; }
  .header-social { display: flex; }
  .header-cta { display: inline-flex; }
  section[id] { scroll-margin-top: 92px; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }

  .led::before {
    top: 0; left: auto; right: 0; bottom: auto; width: 46%; height: 100%;
    clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
  }
  .led-grid { grid-template-columns: 1.05fr .95fr; gap: 72px; }
  .led-facts { margin-bottom: 40px; }

  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }

  .footer-grid { grid-template-columns: 2fr 1fr 1.3fr 1fr; gap: 48px; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
  .stats li { padding: 0 16px; }
  .stats strong { font-size: 2.5rem; }
  .led-facts dt { font-size: 2.6rem; }
  .ticker-group span { font-size: 1.35rem; }
}