/* diseñograbado — hoja de estilos única */
:root {
  --ink: #232323;
  --muted: #5f6062;
  --line: #e2e0dc;
  --bg: #ffffff;
  --surface: #f6f5f3;
  --accent: #e37a1d;        /* naranja de la web original: fondos y detalles */
  --accent-text: #a3520b;   /* naranja oscurecido para texto y foco (5,6:1 sobre blanco) */
  --error: #b3261e;
  --ok: #1e6b35;
  --radius: 4px;
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); font-weight: 500; }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); font-weight: 500; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
ul[role="list"], ol { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6em 1em; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; color: #fff; }

/* Cabecera */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 18px; padding-bottom: 14px;
}
.brand { display: inline-block; }
.brand img { width: 220px; }
@media (min-width: 700px) { .brand img { width: 266px; } }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block; padding: 6px 0; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid transparent; font-size: 1rem;
}
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-lang a { color: var(--muted); }
.nav-lang { padding-left: 20px; border-left: 1px solid var(--line); }

/* Botones */
.button {
  display: inline-block; padding: 0.75em 1.4em; border-radius: var(--radius);
  background: var(--accent); color: #1f1f1f; font-weight: 600; text-decoration: none;
  border: 2px solid var(--accent); font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2;
}
.button:hover { background: #cf6c13; border-color: #cf6c13; color: #1f1f1f; }
.button-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.button-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Portada */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 40px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 5fr 6fr; gap: 48px; padding-top: 56px; padding-bottom: 56px; } }
.eyebrow { color: var(--muted); letter-spacing: 0.04em; margin-bottom: 0.4em; font-size: 1.05rem; }
.eyebrow strong { color: var(--ink); }
.lead { font-size: 1.15rem; color: #3a3a3a; max-width: 38em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-mosaic img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); }

/* Secciones y cabeceras de página */
.section { padding: 48px 0 56px; }
.section-head, .page-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px;
}
.page { padding-top: 20px; padding-bottom: 56px; }
.page.narrow { max-width: 760px; padding-top: 56px; }
.page-head h1, .section-head h2 { margin: 0; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb li + li::before { content: "/"; margin: 0 6px 0 2px; color: #a5a6a8; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink); }

.filters ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.filters a {
  display: inline-block; padding: 0.35em 0.9em; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 0.95rem;
}
.filters a:hover { border-color: var(--ink); }
.filters a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Tarjetas de proyecto */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card-link { display: block; color: var(--ink); text-decoration: none; }
.card-media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.card-img { width: 100%; aspect-ratio: 11 / 7; object-fit: cover; transition: transform 0.3s ease; }
.card-link:hover .card-img { transform: scale(1.03); }
.card-title { margin: 12px 0 2px; font-size: 1.1rem; font-weight: 600; }
.card-link:hover .card-title { color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.18em; }
.card-meta { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Ficha de proyecto */
.project-meta { margin: 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tag {
  display: inline-block; padding: 0.15em 0.7em; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); font-size: 0.9rem; text-decoration: none;
}
.tag:hover { border-color: var(--ink); color: var(--ink); }
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.gallery-link { display: block; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.gallery-link img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; transition: opacity 0.2s ease; }
.gallery-link:hover img { opacity: 0.88; }

.prevnext {
  display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}
@media (min-width: 700px) { .prevnext { grid-template-columns: 1fr auto 1fr; align-items: center; } }
.prevnext a { color: var(--ink); text-decoration: none; }
.prevnext a:hover { color: var(--accent-text); text-decoration: underline; }
.pn-label { display: block; font-size: 0.85rem; color: var(--muted); }
.pn-all { text-align: center; text-decoration: underline !important; }
.pn-next { text-align: right; }
.pn-prev .pn-title::before { content: "← "; }
.pn-next .pn-title::after { content: " →"; }
@media (max-width: 699px) { .pn-all { order: 3; text-align: left; } .pn-next { text-align: left; } }

/* Llamada a la acción */
.cta { background: var(--ink); color: #f6f5f3; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 36px; padding-bottom: 36px; }
.cta-text { margin: 0; font-size: 1.3rem; font-weight: 400; max-width: 34em; }

/* Contacto */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 6fr; gap: 64px; } }
.contact-info h2 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 1.6em 0 0.4em; }
.contact-info address { font-style: normal; margin-bottom: 0.4em; }
.contact-form-wrap { background: var(--surface); border-radius: var(--radius); padding: 24px 16px; }
@media (min-width: 700px) { .contact-form-wrap { padding: 32px; } }
.form-note, .form-privacy { font-size: 0.9rem; color: var(--muted); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #8a8b8d; border-radius: var(--radius); padding: 0.65em 0.75em;
}
.field textarea { resize: vertical; min-height: 10em; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-size: 0.95rem; margin: 6px 0 0; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { margin-top: 18px; padding: 12px 14px; border-radius: var(--radius); border-left: 4px solid var(--muted); background: #fff; }
.form-status.is-ok { border-left-color: var(--ok); color: var(--ok); font-weight: 600; }
.form-status.is-error { border-left-color: var(--error); color: var(--error); font-weight: 600; }
.form-status ul { margin: 0.4em 0 0; padding-left: 1.2em; }
.alt-lang { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Pie */
.site-footer { background: #1b1b1b; color: #d9d8d5; font-size: 0.95rem; }
.site-footer a { color: #f0a35e; }
.site-footer a:hover { color: #fff; }
.footer-inner { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 28px; }
@media (min-width: 700px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-inner { grid-template-columns: 1.3fr 1fr 1fr 0.8fr; } }
.footer-name { font-size: 1.35rem; letter-spacing: 0.03em; color: #fff; margin-bottom: 0.3em; }
.footer-h { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: #a9a8a5; font-weight: 600; margin-bottom: 0.6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.footer-bottom { border-top: 1px solid #333; padding-top: 16px; padding-bottom: 20px; color: #a9a8a5; font-size: 0.875rem; }
.footer-bottom p { margin: 0; }

/* Visor de imágenes */
.lightbox {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: rgba(18, 18, 18, 0.96); color: #fff;
}
.lightbox::backdrop { background: rgba(18, 18, 18, 0.96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; gap: 12px; }
.lb-count { font-size: 0.95rem; color: #d9d8d5; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 8px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-caption { text-align: center; padding: 10px 16px 18px; color: #d9d8d5; margin: 0; }
.lb-btn {
  background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius); font: inherit; padding: 0.5em 0.9em; cursor: pointer; min-width: 44px; min-height: 44px;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lb-btn:focus-visible { outline: 3px solid #f0a35e; outline-offset: 2px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.4rem; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header nav, .cta, .site-footer nav, .skip-link { display: none; }
}
