/* DLED Uruguay. El estilo sale del logo (la D azul con "LED" en rojo, verde y azul: los colores de un LED RGB)
   y de lo que venden: carcasas de aluminio, carteles de puntitos y balizas que se ven de noche. */
:root {
  --primary: #004A9C;        /* azul DLED (el de la D del logo) */
  --primary-ink: #FFFFFF;
  --night: #0B1B33;          /* noche: texto, panel LED y banda de balizas */
  --led-red: #FF3B2F;        /* rojo del logo, encendido (solo en el panel) */
  --led-green: #5FD13B;      /* verde del logo, encendido (solo en el panel) */
  --bg: #EDF0F3;             /* aluminio */
  --surface: #FFFFFF;
  --ink: #0B1B33;
  --muted: #47566B;
  --line: #D3D9E1;
  --radius: 10px;
  --font-title: 'Archivo', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-led: 'Doto', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
/* Títulos en Archivo ensanchado: se lee como la rotulación de un tablero */
h1, h2, h3 { font-family: var(--font-title); font-stretch: 118%; font-weight: 800; line-height: 1.05; margin: 0; letter-spacing: -.02em; }
figure { margin: 0; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: background .2s; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #003A7D; }
.btn-light { background: #fff; color: var(--night); }
.btn-outline { color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.btn-outline:hover { background: rgba(0,74,156,.07); }

/* Encabezado: siempre sólido, la portada es clara */
header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .3s; }
header.solid { box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-stretch: 118%; font-size: 19px; font-weight: 800; text-decoration: none; color: var(--night); }
.logo img { height: 42px; width: auto; }
.links { display: flex; align-items: center; gap: 22px; }
.links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; }
.links a:not(.btn):hover { color: var(--primary); }
.links .btn { min-height: 42px; padding: 9px 16px; font-size: 15px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--night); font-size: 26px; cursor: pointer; width: 44px; height: 44px; }

/* Portada */
.hero { padding: 56px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); margin-bottom: 20px; }
.hero-text > p { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .hero-where { margin: 26px 0 0; font-size: 15px; color: var(--muted); }
.hero-where a { font-weight: 700; color: var(--ink); text-decoration: none; }

/* El cartel LED: carcasa de aluminio oscuro, puntitos apagados de fondo y letra de puntos encendida */
.led { background: var(--night); border-radius: 14px; padding: 18px 22px 20px; box-shadow: inset 0 0 0 6px #16294A, 0 24px 50px rgba(11,27,51,.28); position: relative; overflow: hidden; }
.led::before { content: ''; position: absolute; inset: 6px; border-radius: 9px; background-image: radial-gradient(circle, rgba(255,255,255,.07) 1.3px, transparent 1.8px); background-size: 9px 9px; pointer-events: none; }
.led > * { position: relative; }
.led-top { display: flex; align-items: center; gap: 8px; font-family: var(--font-led); font-weight: 900; font-size: 26px; color: #6FA8FF; text-shadow: 0 0 10px rgba(111,168,255,.7); }
.led-top span { margin-right: auto; letter-spacing: .08em; }
.led-top i { width: 10px; height: 10px; border-radius: 50%; }
.led-top i:nth-of-type(1) { background: var(--led-red); box-shadow: 0 0 8px var(--led-red); }
.led-top i:nth-of-type(2) { background: var(--led-green); box-shadow: 0 0 8px var(--led-green); }
.led-top i:nth-of-type(3) { background: #3D8BFF; box-shadow: 0 0 8px #3D8BFF; }
.led-clock { font-family: var(--font-led); font-weight: 900; font-size: clamp(84px, 13vw, 168px); line-height: 1; text-align: center; color: var(--led-red); text-shadow: 0 0 18px rgba(255,59,47,.75), 0 0 2px #fff3; padding: 14px 0 10px; font-variant-numeric: tabular-nums; }
.led-clock .colon { display: inline-block; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.led-band { overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
.led-run { display: flex; width: max-content; animation: run 22s linear infinite; }
.led-run span { font-family: var(--font-led); font-weight: 900; font-size: 30px; white-space: pre; color: var(--led-green); text-shadow: 0 0 12px rgba(95,209,59,.7); }
@keyframes run { to { transform: translateX(-50%); } }

/* Secciones */
section { padding: 96px 0; }
h2 { font-size: clamp(32px, 4.2vw, 52px); margin-bottom: 16px; }
.lead { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 0 36px; }
.photo { border-radius: var(--radius); object-fit: cover; width: 100%; height: 100%; }
figcaption { font-size: 14px; font-weight: 600; color: var(--muted); padding-top: 8px; }

/* Balizas: banda de noche */
.night { background: var(--night); color: #fff; }
.night .lead { color: #B9C4D6; }
.beacons { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 56px; align-items: center; }
.beacons-main { aspect-ratio: 4 / 5; }
.ticks { list-style: none; padding: 0; margin: 0 0 32px; }
.ticks li { padding: 10px 0 10px 26px; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; }
/* cada ítem lleva una lucecita encendida en vez de viñeta */
.ticks li::before { content: ''; position: absolute; left: 4px; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: #FFB21A; box-shadow: 0 0 8px #FFB21A; }
.beacons-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.beacons-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #fff; }
.night figcaption { color: #B9C4D6; }

/* Tableros: estante que se desliza */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.head-row .lead { margin-bottom: 0; }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 30%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(20px, calc((100vw - 1120px) / 2)) 12px; scroll-padding: 0 max(20px, calc((100vw - 1120px) / 2)); scrollbar-width: thin; }
.shelf figure { scroll-snap-align: start; }
.shelf img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--night); }

/* Carteles: galería irregular */
.carteles-sec { padding-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px 14px; margin-bottom: 36px; }
.gallery figure { display: flex; flex-direction: column; min-height: 0; }
.gallery img { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: 8px; background: var(--night); }
.gallery .big { grid-column: span 2; grid-row: span 2; }

/* Iluminación: lista de catálogo */
#iluminacion { background: var(--surface); }
.catalog { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.catalog li { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.catalog img { width: 76px; height: 76px; object-fit: contain; border-radius: 8px; flex: none; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.catalog h3 { font-size: 20px; margin-bottom: 2px; }
.catalog p { margin: 0; color: var(--muted); font-size: 16px; }

/* Marcas: los nombres en grande, sin logos */
.brands-sec { padding: 72px 0; }
.brands { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: center; }
.brands h2 { font-size: clamp(26px, 3vw, 34px); margin: 0; }
.brands ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.brands a { font-family: var(--font-title); font-stretch: 125%; font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); color: var(--primary); text-decoration: none; }
.brands a:hover { text-decoration: underline; }

/* Cómo pedir: es un paso a paso, por eso van numerados */
.steps-sec { padding-top: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: s; border-top: 3px solid var(--primary); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font-family: var(--font-led); font-weight: 900; font-size: 54px; line-height: 1; color: var(--primary); margin-bottom: 10px; }
.steps b { display: block; font-size: 20px; margin-bottom: 6px; }
.steps span { color: var(--muted); }

/* Contacto y mapa */
#contacto { padding-top: 0; }
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: stretch; }
.hours { background: var(--surface); border-radius: var(--radius); padding: 34px; }
.hours address { font-style: normal; font-size: 20px; font-weight: 600; margin: 8px 0 18px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 26px; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-list li > span:first-child { color: var(--muted); }
.contact-list .stack { display: flex; flex-direction: column; align-items: flex-end; }
.contact-list a { font-weight: 700; text-decoration: none; color: var(--primary); }
.map { border: 0; width: 100%; height: 100%; min-height: 380px; border-radius: var(--radius); }

footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.credit { opacity: .75; }

/* Botón flotante de WhatsApp */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .links { position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; background: var(--bg); box-shadow: 0 12px 24px rgba(0,0,0,.1); display: none; }
  .links.open { display: flex; }
  .links a:not(.btn) { color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .links .btn { margin-top: 14px; }
  .hero { padding: 28px 0 64px; }
  .hero-grid, .beacons, .visit, .brands { grid-template-columns: 1fr; gap: 32px; }
  .beacons-main { aspect-ratio: 4 / 3; }
  .catalog { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .shelf { grid-auto-columns: 78%; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  section { padding: 70px 0; }
  .hours { padding: 26px 22px; }
  .contact-list li { flex-direction: column; gap: 2px; }
  .contact-list .stack { align-items: flex-start; }
  footer { padding-bottom: 90px; }
}
@media (max-width: 420px) {
  .led { padding: 14px 16px 16px; }
  .led-run span { font-size: 24px; }
  .ctas .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
