/* ==========================================================================
   Luz Sierra Norte S.L. — sistema de diseño (2026)
   Web estática. Sin dependencias externas.
   ========================================================================== */

:root {
  /* Paleta */
  --amber:        #f5a623;   /* eléctrico / energía */
  --amber-strong: #e8930a;
  --amber-soft:   #fff6e6;
  --navy:         #0f1b2d;   /* azul noche */
  --navy-2:       #16273f;
  --navy-3:       #22364f;
  --ink:          #1b2531;
  --muted:        #5b6b7d;
  --line:         #e5e9ef;
  --bg:           #ffffff;
  --bg-alt:       #f5f7fa;
  --white:        #ffffff;
  --ok:           #1f9d63;

  /* Tipografía fluida */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --h1: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);
  --h2: clamp(1.5rem, 1.15rem + 1.7vw, 2.25rem);
  --h3: clamp(1.15rem, 1.02rem + 0.6vw, 1.4rem);
  --lead: clamp(1.05rem, 0.98rem + 0.4vw, 1.2rem);

  /* Medidas */
  --wrap: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15,27,45,.06), 0 8px 24px rgba(15,27,45,.08);
  --shadow-lg: 0 12px 40px rgba(15,27,45,.16);
  --ring: 0 0 0 3px rgba(245,166,35,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.15; color: var(--navy); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p  { margin: 0 0 1rem; }
a  { color: var(--amber-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--alt { background: var(--bg-alt); }
.center { text-align: center; }
.lead { font-size: var(--lead); color: var(--muted); }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-strong); margin-bottom: .6rem; }
.mw-60 { max-width: 60ch; }
.mx-auto { margin-inline: auto; }

/* ------- Botones ------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .95rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: var(--navy); box-shadow: 0 6px 18px rgba(245,166,35,.35); }
.btn--primary:hover { background: var(--amber-strong); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-2); }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }

/* ------- Header ------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(15,27,45,.08); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; color: var(--navy); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-size: 1.06rem; line-height: 1.05; }
.brand__name small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

.nav__links { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav__links a {
  color: var(--navy); font-weight: 600; text-decoration: none;
  padding: .55rem .85rem; border-radius: 8px; font-size: .98rem;
}
.nav__links a:hover { background: var(--bg-alt); text-decoration: none; }
.nav__links a.is-active { color: var(--amber-strong); }
.nav__phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--navy); padding: .5rem .8rem; }
.nav__cta { margin-left: .3rem; }

.nav__toggle {
  margin-left: auto; display: none; width: 46px; height: 46px;
  border: 1px solid var(--line); background: var(--white); border-radius: 10px;
  cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle span::before { position: relative; top: -7px; }
.nav__toggle span::after  { position: relative; top: 5px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--white); border-bottom: 1px solid var(--line);
    padding: .5rem clamp(1rem,4vw,2rem) 1.25rem; box-shadow: var(--shadow-lg);
    transform: translateY(-140%); transition: transform .3s ease; margin-left: 0;
  }
  .nav.is-open .nav__links { transform: translateY(0); }
  .nav__links a { padding: .9rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__phone { padding: .9rem .4rem; }
  .nav__cta { margin: .75rem 0 0; justify-content: center; }
}

/* ------- Hero ------- */
.hero {
  position: relative; color: var(--white);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(245,166,35,.28), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0b1626 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(120% 120% at 70% 0%, #000 40%, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 2rem; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .amber { color: var(--amber); }
.hero__lead { font-size: var(--lead); color: #c9d6e6; max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.14); }
.hero__trust div { display: flex; align-items: center; gap: .6rem; color: #dbe6f2; font-weight: 600; font-size: .95rem; }
.hero__trust svg { width: 22px; height: 22px; color: var(--amber); flex: none; }

/* ------- Marquee de especialidades ------- */
.strip { background: var(--amber); color: var(--navy); font-weight: 800; }
.strip__inner { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: center; padding-block: .9rem; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }
.strip__inner span { display: inline-flex; align-items: center; gap: .5rem; }
.strip__inner span::before { content: "▪"; color: var(--navy); }

/* ------- Grids / tarjetas ------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d8dee7; }
.card__icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber-strong); margin-bottom: 1rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Lista de servicios (chips) */
.chips { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-weight: 600; color: var(--navy); font-size: .95rem;
}
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }

/* Split de dos columnas */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Bloque de estadísticas */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 620px){ .stats { grid-template-columns: 1fr; } }
.stat { text-align: center; padding: 1.4rem 1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); color: var(--amber-strong); line-height: 1; }
.stat span { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* Panel destacado */
.panel { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); }
.panel h2 { color: var(--white); }
.panel p { color: #c9d6e6; }

/* Zona de actuación */
.towns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.towns span { background: var(--navy); color: var(--white); border-radius: 999px; padding: .45rem 1.05rem; font-weight: 600; font-size: .92rem; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ci { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--amber-soft); color: var(--amber-strong); display: grid; place-items: center; }
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list b { display: block; color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a, .contact-list p { margin: 0; color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.map { border: 0; width: 100%; height: 100%; min-height: 340px; border-radius: var(--radius); box-shadow: var(--shadow); filter: grayscale(.1); }

/* Prosa (páginas legales / textos largos) */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* ------- Footer ------- */
.site-footer { background: var(--navy); color: #b9c6d6; padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem; }
.site-footer a { color: #dbe6f2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 2rem; }
@media (max-width: 780px){ .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.footer-brand { display: flex; align-items: center; gap: .7rem; color: var(--white); font-weight: 800; margin-bottom: .8rem; }
.footer-brand svg { width: 38px; height: 38px; }
.site-footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-bar { margin-top: 2.2rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; }
.footer-bar a { color: #b9c6d6; }
.made-by { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; color: rgba(255,255,255,.5); letter-spacing: .02em; transition: color .15s, opacity .15s; opacity: .85; text-decoration: none; }
.made-by:hover { color: #fff; opacity: 1; text-decoration: none; }
.made-by img { height: 15px; width: auto; display: block; }

/* ------- Botón flotante WhatsApp/llamar ------- */
.fab {
  position: fixed; right: max(1rem, 3vw); bottom: max(1rem, 3vw); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--amber); color: var(--navy);
  display: grid; place-items: center; box-shadow: var(--shadow-lg); border: 0;
}
.fab:hover { background: var(--amber-strong); transform: translateY(-2px); }
.fab svg { width: 30px; height: 30px; }
.fab--wa { background: #25d366; color: #fff; }
.fab--wa:hover { background: #1fb457; }
.fab--wa svg { width: 34px; height: 34px; }

/* Aviso de contenido pendiente (editable/borrable) */
.note { border-left: 4px solid var(--amber); background: var(--amber-soft); padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #6b5320; font-size: .95rem; }

/* Cabecera de páginas interiores */
.page-hero {
  color: var(--white);
  background:
    radial-gradient(800px 360px at 90% -20%, rgba(245,166,35,.22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.page-hero__inner { padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero h1 { color: var(--white); margin-bottom: .3rem; }
.page-hero p { color: #c9d6e6; margin: 0; max-width: 60ch; }
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: #9fb2c8; margin-bottom: 1rem; }
.crumbs a { color: #c9d6e6; }
.crumbs span { color: var(--amber); }

/* Bloques de servicio alternos */
.svc { display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem; align-items: start; }
.svc .card__icon { margin: 0; }
.svc h3 { margin-bottom: .3rem; }
.svc p { color: var(--muted); margin: 0; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--navy); padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 700; z-index: 100; }
.skip:focus { left: 0; }
