/* Mega Graphic: tokens (start.mjs brand, colores del logo) y CSS de página. */
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url(/fonts/libre-franklin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --p-bg: #ffffff; --p-surface: #f3f5f7; --p-ink: #141414; --p-muted: #6b6b6b;
  --p-accent: #d4006f; --p-accent-ink: #ffffff; --p-action: #d4006f; --p-action-ink: #ffffff;
  --p-inv-bg: #141414; --p-inv-surface: #212121; --p-inv-ink: #ffffff; --p-inv-muted: #9c9c9c;
  --p-inv-accent: #ff4fa6; --p-inv-accent-ink: #141414; --p-inv-action: #d4006f; --p-inv-action-ink: #ffffff;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-text: "Libre Franklin", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.02em;
  --display-tracking-xl: -0.026em;
}

/* El logo del cliente en lugar de la marca dibujada */
.brand-logo { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.nav__logo { gap: 10px; }

/* Hero: encuadre de la foto (antes style="--ly-pos", fuera por la CSP) */
.hero-pvc { --ly-pos: 50% 55%; }

/* Servicios: el logo como foto de la sección */
.servicios__photo { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 1 / 1; max-height: min(600px, var(--ly-fit)); margin-inline-start: auto; background: var(--surface); }
.servicios__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rows .rows__name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-small); }

/* Trabajos: momento pinned-chapters, dos pantallas */
.trabajos { --h: 2; }

/* Cotizar */
.cotizar__form { background: var(--surface); padding: 48px; border-radius: var(--r-lg); }
.field--check { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.field--check label { flex: 1; }
.field--check .field__error { flex-basis: 100%; }
.contact-lines { line-height: 2; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; margin: 0; }
.hours dd { margin: 0; }

/* Pie: enlaces legales y botón de cookies */
.legal-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.legal-links a, .legal-links .linklike { color: inherit; font: inherit; min-height: 44px; display: inline-flex; align-items: center; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

@media (max-width: 1023px) {
  .servicios__photo { margin-top: var(--s-7); aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .cotizar__form { padding: 24px; }
}

/* Ajustes tras el gate */
.servicios__photo { margin-inline-start: 0; max-height: none; width: 100%; }
@media (max-width: 767px) {
  .hero .ly-float { display: none; }
}

/* Banner de cookies con los colores de la marca */
.cc-box { font-family: var(--font-text); }
.cc-box p a { color: var(--p-accent); }
.cc-box .cc-btn { background: var(--p-ink); border-color: var(--p-ink); border-radius: var(--r-sm, 6px); }
.cc-box .cc-btn:hover { background: var(--p-accent); border-color: var(--p-accent); }
.cc-box .cc-row input[type=checkbox]:checked { background: var(--p-accent); }

/* 320 px: el logo solo, para que quepan el botón y el menú */
@media (max-width: 359px) { .nav .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
