:root {
  color-scheme: light;
  --ink: #2a211b;
  --paper: #fbfaf8;
  --warm: #eee7dc;
  --dark: #231c18;
  --header: 80px;
  --gutter: clamp(16px, 2.7vw, 48px);
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 14px); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #b66e41; outline-offset: 4px; }
.skip { position: fixed; top: -60px; left: 12px; z-index: 20; padding: 10px; background: white; }
.skip:focus { top: 8px; }
.header {
  position: sticky; top: 0; z-index: 5; height: var(--header);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: #f7f5f1; border-bottom: 1px solid #e5ded5; padding-inline: var(--gutter);
}
.header-side, .brand { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 29px); }
.header-side a, .header-side .plain { text-decoration: none; font-size: 16.8px; font-weight: 650; white-space: nowrap; }
.header-side.right { justify-content: flex-end; }
.plain { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: none; color: inherit; padding: 8px 0; }
.header-side .plain span, .header-side a span { font-size: 21.6px; }
.lens { position: relative; width: 15.6px; height: 15.6px; border: 1.8px solid; border-radius: 50%; margin-right: 3px; }
.lens::after { content: ""; width: 7.2px; height: 1.8px; background: currentColor; position: absolute; right: -4.8px; bottom: -2.4px; transform: rotate(45deg); }
.brand { gap: 9px; text-decoration: none; width: max-content; max-width: 100%; }
.symbol { height: 57.6px; width: auto; }
.wordmark { width: clamp(120px, 19.2vw, 230.4px); height: auto; }
.hero {
  min-height: clamp(590px, 87svh, 900px); display: grid; place-items: center;
  text-align: center; padding: 44px 18px; color: white;
  background: linear-gradient(0deg, #120c0ad9, #170e1090 50%, #150d0d36), #472620 url("assets/portada.webp?v=3") center/cover;
}
.hero h1 { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(58px, 8vw, 132px); line-height: .89; font-weight: 400; letter-spacing: -.055em; margin: .17em 0 .2em; }
.hero p { margin: 0 0 22px; font-size: clamp(18px, 2vw, 26px); }
.hero p:first-child { font-size: 12px; letter-spacing: .25em; font-weight: 700; }
.pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.panel {
  --veil: linear-gradient(170deg,#110d0bef 0%,#110d0b64 47%,#110d0b12 71%,#110d0ba8 100%);
  background: var(--veil), #29231f var(--photo) var(--position,center)/cover;
  color: #fff; min-height: clamp(540px, 49vw, 770px); border-radius: 15px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  padding: clamp(30px, 5vw, 82px); gap: 42px; overflow: hidden;
}
.pair .panel { min-height: clamp(520px, 46vw, 740px); }
.dye { --photo: url("assets/tenido.webp"); }
.development { --photo: url("assets/maquinaria.webp"); --position: center 58%; }
.panel-copy { max-width: 610px; }
.panel h2 { font-size: clamp(30px, 3.1vw, 52px); font-weight: 650; line-height: 1.06; letter-spacing: -.035em; margin: 0 0 5px; }
.panel h3 { font-size: clamp(17px, 1.65vw, 27px); margin: 0; font-weight: 600; }
.panel p { margin: 0; line-height: 1.55; }
.panel p::before { content: ""; display: block; width: 110px; height: 3px; background: #fff; margin: 28px 0; }
.pill {
  border: 1px solid transparent; border-radius: 999px; min-height: 42px;
  background: var(--dark); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 8px 16px; font-size: 14px; font-weight: 650;
}
.pill:hover { background: #654231; }
.pill.light { background: #f7f1e9; color: var(--dark); }
.pill.light:hover { background: #e9d8c4; }
.panel > .pill { align-self: flex-end; }
.quote-section {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 7vw, 100px);
  padding: clamp(44px, 7vw, 110px) clamp(20px, 9vw, 150px);
  background: var(--warm); margin-top: 28px;
}
.quote-intro h2 { font: 400 clamp(43px, 6vw, 86px)/.98 "Instrument Serif", Georgia, serif; margin: 0; letter-spacing: -.05em; }
.quote-intro p { line-height: 1.6; max-width: 34em; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
label { display: block; font-size: 14px; font-weight: 650; min-width: 0; }
input,select,textarea { display: block; width: 100%; padding: 11px; margin-top: 6px; border: 1px solid #b7a797; border-radius: 6px; color: var(--ink); background: #fffdfa; }
textarea { resize: vertical; }
.wide { grid-column: 1 / -1; }
footer { background: #f4f1ec; padding: 58px clamp(20px, 9vw, 150px) 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(20px, 6vw, 90px); }
.footer-grid h2 { font-size: 18px; }
.footer-grid p, address { line-height: 1.6; margin-bottom: 12px; font-style: normal; }
.footer-grid a:not(.brand) { display: block; margin-bottom: 10px; text-underline-offset: .2em; }
.footer-base { border-top: 1px solid #c9bbae; margin-top: 35px; padding-top: 16px; font-size: 13px; }
dialog { width: min(520px,calc(100vw - 32px)); max-height: 86svh; padding: 24px; border: 0; border-radius: 12px; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #1e1513b5; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.dialog-head h2 { margin: 0; }
.close { border: 0; border-radius: 50%; height: 40px; width: 40px; background: var(--warm); font-size: 24px; color: var(--ink); flex-shrink: 0; }
.dialog-links { display: grid; gap: 12px; margin-top: 16px; }
.dialog-links a { padding-block: 8px; }
@media (max-width: 760px) {
  :root { --header: 67px; }
  .header { padding-inline: 10px; gap: 7px; }
  .header-side { gap: 9px; }
  .header-side a, .header-side .plain { font-size: 14.4px; }
  .plain { gap: 4px; }
  .header .symbol { height: 36px; }
  .header .brand { gap: 4px; }
  .header .wordmark { width: 109.2px; }
  .desktop, .header-side.right .pill span { display: none; }
  .hero { min-height: max(530px,75svh); }
  .pair { gap: 15px; }
  .pair,.quote-section { grid-template-columns: 1fr; }
  .panel,.pair .panel { min-height: 510px; padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .quote-form { grid-template-columns: 1fr; }
  .header { padding-inline: 6px; gap: 4px; }
  .header-side { gap: 6px; }
  .header .wordmark { width: 90px; }
  .header .symbol { height: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:root { --accent: #914934; --rule: #d9cec0; }
[hidden] { display: none !important; }
.header-side .pill { padding-inline: clamp(10px, 1.6vw, 22px); }
.hero p:first-child { text-transform: uppercase; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }
.hero-link { text-underline-offset: 5px; }
.section { width: min(1250px, calc(100% - 2 * var(--gutter))); margin-inline: auto; padding-block: clamp(40px, 6vw, 84px); }
.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(16px, 7vw, 100px); align-items: end; }
.section h2, .swatch h3, .process h3 { font: 400 clamp(37px, 4.5vw, 66px)/1.03 "Instrument Serif", Georgia, serif; letter-spacing: -.045em; margin: 0; }
.section p { line-height: 1.65; }
.intro > p { margin: 0; max-width: 48ch; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 700; }
.products { border-top: 1px solid var(--rule); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(15px, 2vw, 28px); margin-top: 28px; }
.product { background: #f2ebe0; border-radius: 12px; overflow: clip; }
.product-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-body { padding: clamp(18px, 2.3vw, 31px); }
.product h2, .special-note h2 { font-size: clamp(26px, 2.8vw, 40px); }
.product-body > p { margin: 12px 0 18px; }
.specs { margin: 0 0 18px; }
.specs div { padding: 10px 0; border-top: 1px solid var(--rule); }
.specs dt { font-weight: 750; color: var(--accent); margin-bottom: 4px; }
.specs dd { margin: 0; font-size: .93rem; }
.special-note { margin-top: 22px; border-block: 1px solid var(--rule); padding-block: 19px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.special-note p { margin: 6px 0 0; }
.services { padding-top: 0; }
.services .pair { margin-top: 28px; }
.services .pair .panel { min-height: clamp(350px, 34vw, 480px); padding: clamp(24px, 3.8vw, 55px); }
.services .panel h2 { font-size: clamp(34px, 3.7vw, 56px); }
.swatch { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(20px, 5vw, 70px); background: var(--warm); border-radius: 12px; padding: clamp(20px, 4vw, 52px); margin-top: 24px; }
.swatch h3, .process h3 { font-size: clamp(33px, 4vw, 50px); }
figure { margin: 0; min-width: 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 6px; }
figcaption { margin-top: 8px; font-size: .88rem; }
figcaption a { text-underline-offset: 3px; }
.process { padding-top: 38px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(167px, 1fr)); gap: 16px; padding-left: 0; margin: 20px 0 0; list-style: none; }
.steps li { border-top: 2px solid var(--rule); padding-top: 10px; }
.steps p { margin: 6px 0 0; }
.origin { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 7vw, 100px); align-items: center; border-block: 1px solid var(--rule); }
.origin img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 49%; }
footer { background: var(--dark); color: #f4eade; }
@media (max-width: 760px) {
  .intro, .product-grid, .swatch, .origin { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(48px, 11vw, 80px); }
  .origin > div { grid-row: 1; }
  .product-photo { aspect-ratio: 16 / 10; }
  .quote-form { grid-template-columns: 1fr; }
}

/* Recorrido fotográfico de producción. */
.process-lead { margin: 16px 0 24px; }
.production-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.production-flow li {
  background: #f2ebe0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 22px clamp(16px, 2vw, 26px) 14px;
}
.production-flow figure {
  margin: auto calc(-1 * clamp(16px, 2vw, 26px)) 0;
  padding-top: 18px;
}
.production-flow img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 52%;
  border-radius: 0;
}
.production-flow figcaption { padding-inline: clamp(16px, 2vw, 26px); color: #624e40; }
.production-flow h3 { font: 400 clamp(24px, 2.6vw, 35px)/1.12 "Instrument Serif", Georgia, serif; margin: 0; }
.production-flow p { margin: 10px 0 0; }
@media (max-width: 900px) {
  .production-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .production-flow { grid-template-columns: 1fr; }
}

#nosotros .intro-heading { width: fit-content; max-width: 100%; }

#nosotros .company-name {
  contain: inline-size;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

#nosotros .company-name::after {
  content: "";
  display: block;
  width: 100%;
  margin-top: 10px;
  border-bottom: 2px solid var(--accent);
}

main p:not(.eyebrow, .company-name),
main .specs dd,
footer p {
  text-align: justify;
  hyphens: auto;
}

main .hero-copy p {
  text-align: center;
}

#menu {
  position: fixed;
  inset: 0 auto 0 0;
  margin: 0;
  width: min(360px, 88vw);
  height: 100%;
  max-height: 100dvh;
  border-radius: 0;
  overflow-y: auto;
  box-shadow: 8px 0 32px #1e15132e;
}

#menu::backdrop { background: #1e15135c; }

@media (prefers-reduced-motion: no-preference) {
  #menu[open] { animation: menu-slide-in 220ms ease-out both; }

  @keyframes menu-slide-in {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
  }
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  color: #f4eade;
}

.social-links a,
.footer-grid .social-links a,
.social-links span {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0;
  place-items: center;
  border: 1px solid #8d8176;
  border-radius: 50%;
  color: inherit;
}

.social-links span { opacity: .66; }
.social-links a:hover { background: #f4eade; color: var(--dark); }
.social-links a:focus-visible { outline: 2px solid #f4eade; outline-offset: 3px; }

.hero-social { justify-content: center; }
.hero-social > :is(a, span) { background: #231c18d9; }
.hero-social span { opacity: 1; color: #cfc3b6; }
