/* Provimac, S.L. — hoja de estilos única. Fuentes alojadas en la raíz (sin terceros). */

@font-face {
  font-family: "Barlow Condensed";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("barlow-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("barlow-condensed-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("barlow-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("barlow-latin-600-normal.woff2") format("woff2");
}

:root {
  --ink: #10231f;
  --ink-soft: #1c3631;
  --paper: #f2f4f0;
  --mist: #dde5e0;
  --brass: #e3a72b;
  --brass-dark: #8a5f08;
  --signal: #d8412f;
  --sea: #1e6b68;
  --text: #17262a;
  --muted: #4a5d5a;

  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", Arial, Helvetica, sans-serif;

  --wrap: 1100px;
  --gutter: 1.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sea);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: var(--brass);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 600;
  z-index: 100;
}
.skip:focus {
  top: 0.5rem;
}

/* ---------- Cabecera ---------- */

.site-head {
  background: var(--paper);
  border-bottom: 1px solid var(--mist);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.brand small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 600;
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0.4rem;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}

.nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}
.nav a:hover {
  border-bottom-color: var(--brass);
}
.nav a[aria-current="page"] {
  border-bottom-color: var(--ink);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 4.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--mist);
    z-index: 50;
  }
  .nav.is-open {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    padding: 0.5rem var(--gutter) 1rem;
  }
  .site-head {
    position: relative;
  }
}

/* ---------- Portada ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 5.5rem 0 5rem;
  overflow: hidden;
}

/* Rótulo de recreativa: dos hileras de bombillas que se alternan. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background: radial-gradient(circle at 50% 50%, var(--brass) 0 4px, transparent 5px) 0 0 / 30px 14px repeat-x;
}
.hero::before {
  top: 14px;
  animation: bulbs 1.4s steps(1) infinite;
}
.hero::after {
  bottom: 14px;
  animation: bulbs 1.4s steps(1) infinite reverse;
}

@keyframes bulbs {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.hero .lead {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  font-size: 1.3rem;
  color: #d4ddd8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary {
  background: var(--brass);
  color: var(--ink);
}
.btn-primary:hover {
  background: #f1bb4a;
  color: var(--ink);
}
.btn-line {
  border-color: currentColor;
  color: inherit;
}
.hero .btn-line:hover {
  background: var(--paper);
  color: var(--ink);
}
.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover {
  background: var(--ink-soft);
  color: var(--paper);
}

/* ---------- Secciones ---------- */

.section {
  padding: 4.5rem 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  color: var(--ink);
}

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.service {
  padding-top: 1.25rem;
  border-top: 6px solid var(--brass);
}
.service:nth-child(2) {
  border-top-color: var(--sea);
}

.service img {
  display: block;
  width: 100%;
  max-width: 15rem;
  height: auto;
  margin: 0 0 1.25rem;
}

.service h3,
.service h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.05;
  color: var(--ink);
}

.service p {
  margin: 0;
  max-width: 34rem;
}

@media (max-width: 720px) {
  .services {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .section {
    padding: 3.25rem 0;
  }
  .hero {
    padding: 4.5rem 0 4rem;
  }
}

.band {
  background: var(--mist);
  padding: 3.5rem 0;
}

.band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.band p {
  margin: 0;
  max-width: 30rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.15;
  color: var(--ink);
}

/* ---------- Páginas interiores ---------- */

.page-head {
  background: var(--ink);
  color: var(--paper);
  padding: 3.25rem 0 3rem;
  border-bottom: 6px solid var(--brass);
}

.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1;
}

.prose {
  max-width: 40rem;
}
.prose p {
  margin: 0 0 1.25rem;
}

.data {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.9rem 2rem;
  margin: 0;
  max-width: 36rem;
}
.data dt {
  font-weight: 600;
  color: var(--muted);
}
.data dd {
  margin: 0;
}
.data .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
}
.data .big a {
  color: var(--ink);
  text-decoration: none;
}
.data .big a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .data {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .data dd {
    margin-bottom: 0.9rem;
  }
}

.address {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
  color: var(--ink);
}

/* ---------- Pie ---------- */

.site-foot {
  background: var(--ink);
  color: #c4d0cb;
  padding: 2.5rem 0;
  font-size: 1rem;
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 3rem;
}

.site-foot strong {
  color: var(--paper);
  font-weight: 600;
}

.site-foot a {
  color: var(--paper);
}
.site-foot a:hover {
  color: var(--brass);
}

.site-foot p {
  margin: 0;
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after {
    animation: none;
  }
}
