/* Iñaki Electricidad. Colores sacados del logotipo (logo_inaki.png): negro #010101 y amarillo #FDCB34. Fuentes del sistema. */
:root {
  --negro: #111111;          /* negro del logotipo, suavizado para texto */
  --amarillo: #fdcb34;       /* amarillo del enchufe del logotipo */
  --blanco: #ffffff;
  --gris-claro: #f4f4f2;
  --texto: var(--negro);
  --fondo: var(--blanco);
  --acento: var(--amarillo);
  --ancho: 68rem;
  --hueco-seccion: clamp(3rem, 8vw, 5.5rem);
  --negro-hover: #2a2a2a;
  --amarillo-hover: #ffd95c;
  --radio: .4rem;
  --t-base: 1.0625rem;
  --t-grande: 1.125rem;
  --t-peque: .95rem;
  --t-rotulo: 1rem;
  --t-h1: clamp(1.6rem, 5.2vw, 3.2rem);
  --t-lema: clamp(1rem, 2.4vw, 1.25rem);
  --t-h2: clamp(1.5rem, 3.6vw, 2.2rem);
  --fuente: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fuente); font-size: var(--t-base); line-height: 1.6; color: var(--texto); background: var(--fondo); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible { outline: 3px solid var(--negro); outline-offset: 3px; box-shadow: 0 0 0 6px var(--acento); }
.salto { position: absolute; left: -999px; top: 0; background: var(--acento); padding: .6rem 1rem; z-index: 10; }
.salto:focus { left: 1rem; top: 1rem; }
.contenedor { width: min(100% - 2rem, var(--ancho)); margin-inline: auto; }

/* Cabecera */
.cabecera { background: var(--blanco); border-bottom: 6px solid var(--acento); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.cabecera img { width: 140px; }
.boton { white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .7rem 1.2rem; border-radius: var(--radio);
  font-weight: 700; text-decoration: none; background: var(--negro); color: var(--acento); }
.boton:hover { background: var(--negro-hover); }
.boton--claro { background: var(--acento); color: var(--negro); }
.boton--claro:hover { background: var(--amarillo-hover); }

/* Portada */
.portada { position: relative; background: var(--negro); color: var(--blanco); }
.portada img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .55; }
.portada .texto { position: absolute; inset: 0; display: flex; align-items: center; }
.portada h1 { margin: 0; font-size: var(--t-h1); line-height: 1.15; max-width: 20ch; text-wrap: balance; }
.portada h1 span { color: var(--acento); }
.portada p { margin: .8rem 0 0; font-size: var(--t-lema); }

section { padding-block: var(--hueco-seccion); }
h2 { font-size: var(--t-h2); line-height: 1.2; margin: 0 0 1rem; text-wrap: balance; }
p { text-wrap: pretty; }
h2::after { content: ""; display: block; width: 3rem; height: 5px; background: var(--acento); margin-top: .6rem; }
.intro { max-width: 62ch; font-size: var(--t-grande); }

/* Servicios */
.servicios ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.servicios li { background: var(--gris-claro); padding: .9rem 1rem; font-weight: 600; display: flex; align-items: center; gap: .7rem; }
.servicios li::before { content: ""; flex: none; width: .8rem; height: .8rem; background: var(--acento); border: 2px solid var(--negro); }

/* Zona */
.zona { background: var(--negro); color: var(--blanco); }
.zona h2::after { background: var(--acento); }
.zona p { max-width: 62ch; margin: 0; font-size: var(--t-grande); }
.zona strong { color: var(--acento); }

/* Trabajos */
.galeria { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin-top: 1.5rem; }
.galeria figure { margin: 0; background: var(--gris-claro); }
.galeria figcaption { padding: .6rem .8rem; font-size: var(--t-peque); }

/* Contacto */
.contacto { background: var(--acento); }
.contacto h2::after { background: var(--negro); }
.contacto .datos { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1.5rem; }
.contacto .dato h3 { margin: 0 0 .3rem; font-size: var(--t-rotulo); text-transform: uppercase; letter-spacing: .04em; }
.contacto .dato p { margin: 0; font-size: var(--t-grande); }
.contacto .dato a { font-weight: 700; }

/* Pie */
.pie { background: var(--negro); color: #e6e6e6; padding-block: 1.5rem; font-size: .95rem; }
.pie .contenedor { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* Páginas legales */
.legal { padding-block: var(--hueco-seccion); }
.legal .contenedor { max-width: 70ch; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.hueco { display: inline-block; padding: .05rem .4rem; background: repeating-linear-gradient(45deg, #fff3c4, #fff3c4 6px, #ffe58a 6px, #ffe58a 12px);
  border: 1px dashed #8a6d00; font-weight: 700; }

@media (min-width: 48rem) {
  .cabecera img { width: 220px; }
  .portada img { aspect-ratio: 1500 / 700; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 23.99rem) { .boton span { display: none; } }
