/* ==========================================================================
   Eurotoldos — site stylesheet
   Plain CSS, no build step required. Organised by block so any block can be
   copied on its own into Squarespace → Design → Custom CSS.
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --black: #000;
  --ink: #111;
  --ink-2: #444;
  --ink-3: #6b6b6b;
  --line: #dcdcdc;
  --grey: #f2f2f2;
  --paper: #fafafa;
  --white: #fff;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.8vw, 4.25rem);

  --container: 1280px;
  --gutter: clamp(16px, 5vw, 48px);
  --space-section: clamp(56px, 4rem + 4vw, 128px);
  --space-block: clamp(24px, 2rem + 1vw, 48px);
  --header-h: 72px;
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-base); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

/* 3. Utilities ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: var(--space-block); }
.section--line { border-top: 1px solid var(--line); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--space-block); }
.section__head h2 { margin: 0; }
.eyebrow { display: block; margin-bottom: 0.9em; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.lead { font-size: var(--fs-lg); line-height: 1.45; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.measure { max-width: 64ch; }
.flow > * + * { margin-top: 1em; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding-block: 0.3em; }
.pos-top { object-position: 50% 30%; }
.pos-mid { object-position: 50% 42%; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 100; padding: 10px 16px; background: var(--black); color: var(--white); }
.skip-link:focus { top: 12px; }

/* 4. Buttons & links ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 48px; padding: 0.8em 1.5em;
  border: 1px solid var(--black); background: var(--black); color: var(--white);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.btn:hover, .btn:focus-visible { background: var(--white); color: var(--black); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--black); color: var(--white); }
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--light:hover, .btn--light:focus-visible { background: transparent; color: var(--white); }
.btn--block { width: 100%; justify-content: center; }
.arrow-link { display: inline-flex; align-items: center; gap: 0.5em; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.arrow-link::after { content: "\2192"; transition: transform 0.15s; }
.arrow-link:hover::after { transform: translateX(4px); }

/* 5. Header & navigation ------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.site-header__logo { display: block; flex: none; }
.site-header__logo img { width: 180px; height: auto; }
.nav-toggle { display: none; width: 48px; height: 48px; margin-right: -12px; padding: 0; border: 0; background: none; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 24px; height: 2px; background: var(--black); margin-inline: auto; transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
[data-nav-open] .nav-toggle__bars { background: transparent; }
[data-nav-open] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
[data-nav-open] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav__list { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 36px); list-style: none; margin: 0; padding: 0; }
.site-nav__item { position: relative; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: 0.4em; padding: 0.5em 0; border: 0; background: none; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 500; text-decoration: none; color: var(--ink);
}
.site-nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; }
.site-nav__link--btn { padding: 0.65em 1.2em; border: 1px solid var(--black); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.site-nav__link--btn:hover { background: var(--black); color: var(--white); }
.has-sub > .site-nav__link::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.site-nav__sub {
  display: none; position: absolute; top: 100%; left: -16px; z-index: 10; min-width: 240px; padding: 8px 0; margin: 0; list-style: none;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.site-nav__sub a { display: block; padding: 12px 18px; font-size: var(--fs-sm); line-height: 1.3; text-decoration: none; }
.site-nav__sub strong { display: block; font-weight: 600; }
.site-nav__sub small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--ink-3); }
.site-nav__sub a:hover, .site-nav__sub a:focus-visible { background: var(--grey); }
.has-sub:hover > .site-nav__sub, .has-sub:focus-within > .site-nav__sub, .has-sub[data-open] > .site-nav__sub { display: block; }

@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 40; overflow-y: auto;
    padding: 24px var(--gutter) 48px; background: var(--white);
  }
  [data-nav-open] .site-nav { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__item { border-bottom: 1px solid var(--line); }
  .site-nav__link { display: flex; width: 100%; padding: 18px 0; font-size: 1.375rem; font-weight: 600; }
  .site-nav__link--btn { justify-content: center; margin-top: 24px; padding: 1em; font-size: var(--fs-sm); }
  .site-nav__item--cta { border: 0; }
  .has-sub > .site-nav__link::after { display: none; }
  .has-sub > .site-nav__link { color: var(--ink-3); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 6px; cursor: default; }
  .site-nav__sub { display: block; position: static; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; }
  .site-nav__sub a { padding: 10px 0; font-size: 1.25rem; }
  .site-nav__sub small { font-size: var(--fs-sm); margin-top: 0; }
  .site-nav__sub a:hover { background: none; }
}

/* 6. Hero (home): full-bleed image, text over a bottom gradient ---------- */
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(520px, 84vh, 880px); background: var(--ink); color: var(--white); }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 40%, rgba(0, 0, 0, 0.08) 100%); }
.hero__content { padding-block: clamp(40px, 3rem + 4vw, 104px); }
.hero .eyebrow { color: rgba(255, 255, 255, 0.72); }
.hero h1, .hero .h1-like { max-width: 14ch; margin: 0 0 0.45em; font-size: var(--fs-h1); font-weight: 700; line-height: 1.02; letter-spacing: -0.025em; color: var(--white); text-wrap: balance; }
.hero__lead { max-width: 46ch; margin: 0 0 32px; font-size: var(--fs-lg); line-height: 1.45; color: rgba(255, 255, 255, 0.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-light:hover, .btn--outline-light:focus-visible { background: var(--white); color: var(--black); }
@media (max-width: 640px) { .hero { min-height: 80vh; } .hero__lead { margin-bottom: 24px; } }

/* 6c. Page hero: same pattern as the home hero, shorter, static ---------- */
.hero--page { min-height: clamp(380px, 58vh, 640px); }
.hero--page .hero__content { padding-block: clamp(32px, 2rem + 3vw, 72px); }
.hero--page h1 { max-width: 16ch; }
.hero--page .hero__lead { margin-bottom: 0; }
.hero--page .hero__media::after { background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.15) 100%); }
.crumbs--light { color: rgba(255, 255, 255, 0.75); }
.crumbs--light a { color: var(--white); }
@media (max-width: 640px) { .hero--page { min-height: 62vh; } }

/* 6a. Hero slideshow: several .hero__slide inside .hero--slides ---------- */
.hero--slides { align-items: stretch; }
.hero__slide { position: absolute; inset: 0; z-index: 0; display: grid; align-items: end; isolation: isolate; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s; }
.hero__slide.is-active { position: relative; opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hero__controls { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 10px; }
.hero .hero__arrow { display: none; }
.hero .hero__dot { width: 8px; height: 8px; border-color: rgba(255, 255, 255, 0.55); }
.hero .hero__dot[aria-current="true"] { background: rgba(255, 255, 255, 0.9); border-color: rgba(255, 255, 255, 0.9); }
.hero .hero__dots { gap: 10px; }
.hero__arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.8); background: rgba(0, 0, 0, 0.35); color: var(--white); font-size: 20px; line-height: 1; cursor: pointer; transition: background 0.15s; }
.hero__arrow:hover, .hero__arrow:focus-visible { background: var(--white); color: var(--black); }
.hero__dots { display: flex; gap: 8px; margin: 0 6px; padding: 0; list-style: none; }
.hero__dot { width: 12px; height: 12px; padding: 0; border: 1px solid var(--white); border-radius: 50%; background: transparent; cursor: pointer; }
.hero__dot[aria-current="true"] { background: var(--white); }
@media (max-width: 640px) { .hero__controls { bottom: 14px; } .hero__arrow { width: 40px; height: 40px; } }

/* 6b. Client logo marquee (under the hero) ------------------------------ */
.marquee-section { padding-block: clamp(40px, 2.5rem + 2vw, 72px); border-bottom: 1px solid var(--line); }
.marquee-section .eyebrow { margin-bottom: 28px; text-align: center; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
.marquee__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 55s linear infinite; }
.marquee__track li { flex: none; display: flex; align-items: center; height: 88px; padding-inline: clamp(28px, 3.5vw, 64px); }
.marquee__track img { display: block; width: auto; height: auto; max-height: 60px; max-width: 220px; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s, opacity 0.2s; }
.marquee__track img.is-inverted { filter: grayscale(1) invert(1); }
.marquee__track img.is-tall { max-height: 80px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee:hover img { filter: none; opacity: 1; }
.marquee:hover img.is-inverted { filter: invert(1); }
@keyframes marquee { to { transform: translateX(-50%); } }


/* 7. Project cards ------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px) clamp(20px, 3vw, 40px); }
.card { position: relative; display: block; overflow: hidden; background: var(--ink); color: var(--white); text-decoration: none; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s ease; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 35%, rgba(0, 0, 0, 0) 62%); pointer-events: none; }
a.card:hover img, a.card:focus-visible img { transform: scale(1.04); }
.card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 20px 22px; }
.card__title { margin: 0; font-size: var(--fs-h3); font-weight: 600; color: var(--white); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }
a.card:hover .card__title { text-decoration: underline; text-underline-offset: 0.2em; }
.card__meta { flex: none; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }
.card__meta del { color: rgba(255, 255, 255, 0.6); }
@media (max-width: 640px) { .card__body { padding: 16px; } }
/* featured project: one wide card with the description inside the photo */
.card--feature { margin-bottom: clamp(12px, 1.5vw, 20px); }
.card--feature img { aspect-ratio: 21 / 9; }
.card--feature::after { background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 70%); }
.card--feature .card__body { flex-direction: column; align-items: flex-start; gap: 8px; padding: clamp(20px, 3vw, 40px); }
.card--feature .eyebrow { margin: 0 0 4px; color: rgba(255, 255, 255, 0.75); }
.card--feature .card__title { font-size: var(--fs-h2); }
.card--feature .card__title small { display: block; margin-top: 4px; font-size: var(--fs-sm); font-weight: 400; color: rgba(255, 255, 255, 0.82); }
.card--feature .arrow-link { margin-top: 6px; color: var(--white); }
@media (max-width: 899px) { .card--feature img { aspect-ratio: 4 / 3; } }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 899px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* 8. Qualifier doors (home): one door per funnel, phrased as the visitor's goal */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.door { display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none; border: 1px solid var(--line); background: var(--white); transition: border-color 0.15s; }
.door:hover, .door:focus-visible { border-color: var(--black); }
.door__media { position: relative; overflow: hidden; background: var(--ink); }
.door__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s ease; }
.door__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 38%, rgba(0, 0, 0, 0) 68%); pointer-events: none; }
.door:hover .door__media img { transform: scale(1.04); }
.door h3 { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; max-width: 22ch; margin: 0; font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem); line-height: 1.2; color: var(--white); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }
.door:hover h3 { text-decoration: underline; text-underline-offset: 0.2em; }
.door__body { display: flex; flex-direction: column; gap: 14px; padding: 18px 24px 20px; }
.door p { margin: 0; max-width: 46ch; font-size: var(--fs-sm); color: var(--ink-2); }
.door .arrow-link { align-self: flex-start; }
@media (max-width: 640px) { .doors { grid-template-columns: 1fr; } .door__media img { aspect-ratio: 16 / 10; } .door h3 { left: 18px; right: 18px; bottom: 16px; } .door__body { padding: 16px 18px 18px; } }

/* 8c. Audience tiles ("Para quién") ------------------------------------ */
.audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 20px); }
.audience__tile { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--ink); color: var(--white); }
.audience__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.audience__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.05) 75%); }
.audience__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px; }
.audience__body h3 { margin: 0 0 12px; font-size: var(--fs-lg); color: var(--white); }
.audience__body ul { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.85); }
.audience__body li { padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
@media (max-width: 899px) { .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .audience { grid-template-columns: 1fr; } .audience__tile { aspect-ratio: 16 / 11; } }

/* 8d. Split (image + text side by side) and check lists ----------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split--reverse > :first-child { order: 2; }
.split h2 { margin-bottom: 0.5em; }
.split p { color: var(--ink-2); }
.checklist { list-style: none; margin: 24px 0 0; padding: 0; }
.checklist li { position: relative; padding: 0.45em 0 0.45em 1.6em; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0.25em; top: 0.75em; width: 0.45em; height: 0.8em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

/* 8b. Process steps (arquitectura textil) ------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; padding-top: 16px; border-top: 1px solid var(--black); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; color: var(--ink-3); }
.steps h3 { font-size: var(--fs-lg); margin-bottom: 0.4em; }
.steps p { font-size: var(--fs-sm); color: var(--ink-2); }
.steps ul { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.steps li ul li { padding: 0.3em 0; border: 0; counter-increment: none; }
.steps li ul li::before { content: none; }
.steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .steps--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 899px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* 9. Column lists (clients, firm) --------------------------------------- */
.cols { display: grid; gap: 32px clamp(24px, 3vw, 48px); }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols h3, .cols h4 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1em; }
.cols ul { list-style: none; margin: 0; padding: 0; }
.cols li { padding-block: 0.35em; border-bottom: 1px solid var(--line); }
.cols li:last-child { border-bottom: 0; }
@media (max-width: 899px) { .cols--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols--3, .cols--4 { grid-template-columns: 1fr; } }
.firm__media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; margin-bottom: var(--space-block); }
@media (max-width: 640px) { .firm__media img { aspect-ratio: 4 / 3; } }

/* 9c. Inline slideshow (Nuestra firma) + years badge + facts grid ------- */
.slides { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--ink); margin-bottom: var(--space-block); }
.slides__item { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s; }
.slides__item.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.slides__item img { width: 100%; height: 100%; object-fit: cover; }
.slides__controls { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 10px; }
.slides .hero__arrow { display: none; }
.slides .hero__dots { gap: 10px; }
.slides .hero__dot { width: 8px; height: 8px; border-color: rgba(255, 255, 255, 0.55); }
.slides .hero__dot[aria-current="true"] { background: rgba(255, 255, 255, 0.9); border-color: rgba(255, 255, 255, 0.9); }
.badge-years { position: absolute; left: 0; bottom: 0; z-index: 2; display: grid; place-items: center; width: clamp(120px, 12vw, 160px); aspect-ratio: 1; padding: 12px; background: var(--black); color: var(--white); text-align: center; }
.badge-years strong { display: block; font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.badge-years span { display: block; margin-top: 8px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3; opacity: 0.85; }
@media (max-width: 640px) { .slides { aspect-ratio: 4 / 3; } .slides__controls { left: 104px; } .badge-years { width: 104px; } }

/* 10. Contact & forms --------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.contact__info dl { margin: 32px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: var(--fs-sm); }
.contact__info dt { color: var(--ink-3); }
.contact__info dd { margin: 0; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 0; background: var(--white); -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--black); outline-offset: 1px; }
.form__note { font-size: var(--fs-xs); color: var(--ink-3); }
.form__hint { font-size: var(--fs-xs); color: var(--ink-3); margin: -8px 0 0; }
.field--error input, .field--error select, .field--error textarea { outline: 2px solid #b3261e; outline-offset: 1px; }
.field__error { display: block; margin-top: 6px; font-size: var(--fs-xs); color: #b3261e; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* 11. Page header (products, projects, blog) ---------------------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 0 0 24px; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 0.5em; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* 12. Feature lists (product pages) ------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); padding-block: var(--space-block); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features h2 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.2em; }
.features ul { list-style: none; margin: 0; padding: 0; }
.features li { position: relative; padding: 0.35em 0 0.35em 1.4em; }
.features li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 0.8em; height: 1px; background: currentColor; }
.features--check li::before { width: 0.45em; height: 0.8em; top: 0.55em; left: 0.2em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; background: none; transform: rotate(45deg); }
@media (max-width: 899px) { .features { grid-template-columns: 1fr; gap: 32px; } }

/* 13. Gallery ----------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(8px, 1vw, 16px); }
.gallery__item { position: relative; margin: 0; background: var(--grey); }
.gallery__item img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery__item.is-wide { grid-column: span 2; }
.gallery__item.is-wide img { aspect-ratio: 8 / 5; }
.gallery--numbered { counter-reset: fig; }
.gallery--numbered .gallery__item { counter-increment: fig; }
.gallery--numbered .gallery__item::after {
  content: counter(fig, decimal-leading-zero); position: absolute; left: 12px; bottom: 10px; padding: 2px 8px;
  background: rgba(0, 0, 0, 0.8); color: var(--white); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em;
}
@media (max-width: 899px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 14. Project pages ----------------------------------------------------- */
.project-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.project-detail__body { max-width: 64ch; }
.project-detail__body .lead { margin-bottom: 1.2em; color: var(--ink); }
.project-detail__body p { color: var(--ink-2); line-height: 1.65; }
.spec { position: sticky; top: calc(var(--header-h) + 24px); padding: clamp(22px, 2.5vw, 32px); background: var(--grey); }
.spec__title { margin: 0 0 14px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.spec dl { margin: 0; }
.spec dt { padding-top: 12px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border-top: 1px solid var(--line); }
.spec dd { margin: 4px 0 12px; font-size: var(--fs-base); }
.spec dd:last-child { margin-bottom: 0; }
@media (max-width: 899px) { .project-detail { grid-template-columns: 1fr; } .spec { position: static; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: var(--space-block); border-top: 1px solid var(--line); }
.pager a { display: grid; gap: 6px; text-decoration: none; }
.pager a:hover strong { text-decoration: underline; text-underline-offset: 0.2em; }
.pager a:last-child { text-align: right; }
.pager span { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* 15. CTA band ---------------------------------------------------------- */
.cta { background: var(--grey); color: var(--ink); border-top: 1px solid var(--line); padding-block: clamp(48px, 3rem + 3vw, 96px); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 32px; align-items: center; }
.cta h2 { max-width: 20ch; margin: 0; }
.cta p { color: var(--ink-2); margin: 0.6em 0 0; }
@media (max-width: 899px) { .cta__grid { grid-template-columns: 1fr; } }
/* inline CTA row, used mid-page */
.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: var(--space-block); padding: 24px 28px; border: 1px solid var(--black); }
.cta-inline p { margin: 0; }
.cta-inline strong { display: block; font-size: var(--fs-lg); margin-bottom: 4px; }
.cta-inline .btn { flex: none; }
@media (max-width: 640px) { .cta-inline { flex-direction: column; align-items: stretch; padding: 20px; } .cta-inline .btn { justify-content: center; } }
/* page hero with buttons */
.hero--page .hero__lead + .hero__actions { margin-top: 28px; }

/* 15b. FAQ (details/summary, also emitted as FAQPage JSON-LD) ----------- */
.faq { border-top: 1px solid var(--line); max-width: 80ch; margin-inline: auto; }
.section__head--center { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; list-style: none; cursor: pointer; font-size: var(--fs-lg); font-weight: 600; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 300; line-height: 1; color: var(--ink-3); transition: transform 0.2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 20px; color: var(--ink-2); }
.faq__a p { margin: 0 0 0.6em; }

/* 16. Blog -------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 3vw, 40px); }
.post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.post-card__media { overflow: hidden; background: var(--grey); }
.post-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s ease; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card .tags { margin: 16px 0 8px; }
.post-card h2, .post-card h3 { margin: 0 0 8px; font-size: var(--fs-h3); line-height: 1.25; }
.post-card:hover h2, .post-card:hover h3 { text-decoration: underline; text-underline-offset: 0.2em; }
.post-card p { margin: 0 0 12px; font-size: var(--fs-sm); color: var(--ink-2); }
.post-card .meta { margin-top: auto; }
.post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.post-card--featured .post-card__media img { aspect-ratio: 16 / 10; }
.post-card--featured .tags { margin-top: 0; }
.post-card--featured h2 { font-size: var(--fs-h2); }
.post-card--featured p { font-size: var(--fs-base); }
.post-card--featured .meta { margin-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.meta { font-size: var(--fs-sm); color: var(--ink-3); }
@media (max-width: 899px) { .post-grid, .post-grid--3 { grid-template-columns: 1fr; } .post-card--featured { grid-template-columns: 1fr; } .post-card--featured .tags { margin-top: 16px; } }

.article-head { max-width: 64ch; padding-top: clamp(40px, 3rem + 3vw, 96px); }
.article-head .crumbs { margin-bottom: 28px; }
.article-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); margin: 0.4em 0 0.5em; text-wrap: balance; }
.article-hero { margin-block: var(--space-block); }
.article-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article { max-width: 68ch; margin-inline: auto; }
.prose p, .prose li { font-size: 1.125rem; line-height: 1.7; color: var(--ink-2); }
.prose > p:first-child { font-size: 1.25rem; color: var(--ink); }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); margin: 1.8em 0 0.6em; }
.prose h3 { font-size: var(--fs-lg); margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--ink); }
.prose .callout { margin: 2em 0 0; padding: 28px; background: var(--grey); }
.prose .callout p { font-size: var(--fs-base); margin-bottom: 14px; }
.article .pager { margin-top: var(--space-block); }
@media (max-width: 899px) { .article-hero img { aspect-ratio: 16 / 10; } }

/* 17. Store ------------------------------------------------------------- */
.product { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); align-items: start; }
.product__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; background: var(--grey); }
.product__price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 24px; font-size: var(--fs-h3); font-weight: 600; }
.product__price del { font-weight: 400; color: var(--ink-3); }
.product dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0 0 32px; font-size: var(--fs-sm); }
.product dt { color: var(--ink-3); }
.product dd { margin: 0; }
@media (max-width: 899px) { .product { grid-template-columns: 1fr; } }

/* 18. Footer ------------------------------------------------------------ */
.site-footer { background: var(--black); color: var(--white); padding-block: clamp(48px, 3rem + 3vw, 96px) 32px; }
.site-footer a { color: inherit; text-decoration: none; opacity: 0.8; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); }
.site-footer__logo img { width: 180px; margin-bottom: 20px; }
.site-footer address { font-style: normal; line-height: 1.7; opacity: 0.8; }
.site-footer h3 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; margin-bottom: 1.2em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding-block: 0.3em; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(40px, 2rem + 3vw, 72px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: var(--fs-xs); opacity: 0.7; }
.site-footer__bottom ul { display: flex; gap: 20px; }
@media (max-width: 899px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* 20. Landing pages: hero with the form in it --------------------------- */
.lp-hero { position: relative; isolation: isolate; background: var(--ink); color: var(--white); }
.lp-hero .hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.lp-hero .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.lp-hero .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.35) 100%); }
.lp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 460px); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(48px, 4rem + 3vw, 112px); }
.lp-hero .eyebrow { color: rgba(255, 255, 255, 0.72); }
.lp-hero h1 { max-width: 16ch; margin-bottom: 0.45em; color: var(--white); text-wrap: balance; }
.lp-hero .hero__lead { max-width: 48ch; margin-bottom: 0; }
.lp-bullets { list-style: none; margin: 28px 0 0; padding: 0; }
.lp-bullets li { position: relative; padding: 7px 0 7px 1.7em; color: rgba(255, 255, 255, 0.92); }
.lp-bullets li::before { content: ""; position: absolute; left: 0.3em; top: 0.95em; width: 0.45em; height: 0.85em; border: solid var(--white); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.lp-form { padding: clamp(22px, 3vw, 32px); background: var(--white); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.lp-form__title { margin: 0 0 4px; font-size: var(--fs-h3); }
.lp-form .form { gap: 14px; margin-top: 18px; }
.lp-form .field input, .lp-form .field select { min-height: 46px; padding: 10px 12px; }
.lp-form .field textarea { min-height: 96px; }
.lp-form .btn { width: 100%; justify-content: center; }
@media (max-width: 899px) { .lp-hero__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 48px; } .lp-form { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); } }
@media (max-width: 560px) { .lp-form .form__row { grid-template-columns: 1fr; } }

/* 19. Thank-you / 404 --------------------------------------------------- */
.notice { min-height: 50vh; display: grid; align-content: center; justify-items: start; padding-block: var(--space-section); }
.notice h1 { max-width: 20ch; }
