/* =============================================================
   1. Tokens — burdeos corporativo sobre papel cálido
   ============================================================= */
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}
:root {
  --burgundy:      #7c1416;
  --burgundy-deep: #4b0b0d;
  --burgundy-lite: #a3201f;
  --paper:         #f8f5f1;
  --paper-2:       #efe8e1;
  --white:         #ffffff;

  /* Contextual (light sections by default; .dark overrides) */
  --fg:      #211416;
  --fg-mute: #6f5f61;
  --rule:    rgba(33, 20, 22, 0.16);
  --em:      var(--burgundy);
  --btn-bg:  var(--burgundy);
  --btn-fg:  var(--white);

  --serif: "Montserrat", "Segoe UI", system-ui, sans-serif;   /* títulos */
  --sans:  "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "Montserrat", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
}
.dark {
  --fg:      #ffffff;
  --fg-mute: rgba(255, 255, 255, 0.74);
  --rule:    rgba(255, 255, 255, 0.26);
  --em:      #f8d2c4;
  --btn-bg:  var(--white);
  --btn-fg:  var(--burgundy);
  color: var(--fg);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background: var(--burgundy);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; line-height: 1.05; letter-spacing: -0.035em; }
address { font-style: normal; }
figure { margin: 0; }
::selection { background: var(--burgundy); color: var(--white); }
.dark ::selection { background: var(--white); color: var(--burgundy); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--white); color: var(--burgundy);
  border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }
.mono { font-family: var(--mono); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-mute); }
.kicker {
  font-family: var(--mono); font-weight: 600; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--em);
}
em { font-style: normal; color: var(--em); }

/* =============================================================
   4. Background layers (signature: burgundy gradient follows the cursor)
   ============================================================= */
.bg-gradient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle 44vmax at var(--mx, 70%) var(--my, 35%), rgba(214, 62, 48, .62) 0%, transparent 62%),
    radial-gradient(circle 52vmax at calc(var(--mx, 70%) + 24%) calc(var(--my, 35%) + 30%), rgba(58, 6, 10, .85) 0%, transparent 62%),
    radial-gradient(circle 36vmax at calc(var(--mx, 70%) - 28%) calc(var(--my, 35%) + 44%), rgba(246, 150, 110, .28) 0%, transparent 60%),
    var(--burgundy);
}
.bg-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .1; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .footer { position: relative; z-index: 2; }

/* =============================================================
   5. Components
   ============================================================= */
/* --- Nav: white over the hero, paper + burgundy once you scroll --- */
.nav {
  --fg: #ffffff; --rule: transparent;
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem;
  padding: 0 var(--gutter);
  color: var(--fg);
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), color .4s var(--ease-out);
  border-bottom: 1px solid var(--rule);
}
.nav.is-solid:not(.is-menu) {
  --fg: #211416; --rule: rgba(33, 20, 22, 0.12);
  background: rgba(248, 245, 241, .96);
}
@supports (backdrop-filter: blur(12px)) {
  .nav.is-solid:not(.is-menu) { background: rgba(248, 245, 241, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.brand { display: block; flex: none; }
.brand .logo { height: 26px; width: auto; }
.brand .logo-dark { display: none; }
.nav.is-solid:not(.is-menu) .logo-light { display: none; }
.nav.is-solid:not(.is-menu) .logo-dark { display: block; }

.nav-links { display: none; margin-left: auto; gap: 2rem; font-size: .92rem; }
.nav-links a { position: relative; padding: .3rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta { display: none; }
.nav-toggle { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .4s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2.5rem;
  background: var(--burgundy);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease-out), visibility 0s .6s;
}
.mobile-menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .6s var(--ease-out), visibility 0s; }
.mobile-menu nav { display: grid; gap: .4rem; }
.mobile-menu nav a { font-family: var(--serif); font-size: clamp(2.2rem, 9.5vw, 3.4rem); line-height: 1.1; }
.mobile-menu nav a:active { color: var(--em); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; line-height: 1; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn span { transition: transform .35s var(--ease-out); }
.btn:hover span { transform: translateX(4px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(40, 4, 6, .65); }
.btn-ghost { border-color: var(--rule); border-color: color-mix(in srgb, var(--fg) 45%, transparent); }
.btn-ghost:hover { background: var(--fg); color: var(--burgundy); border-color: var(--fg); }
.btn-small { padding: .7rem 1.1rem; font-size: .85rem; border-color: color-mix(in srgb, var(--fg) 45%, transparent); }
.btn-small:hover { background: var(--burgundy); color: var(--white); border-color: var(--burgundy); }
.nav:not(.is-solid) .btn-small:hover { background: var(--white); color: var(--burgundy); border-color: var(--white); }

.link-arrow { display: inline-flex; gap: .5rem; padding-bottom: .25rem; border-bottom: 1px solid var(--rule); transition: border-color .3s, color .3s; }
.link-arrow:hover { color: var(--em); border-color: var(--em); }

/* --- Photos --- */
.photo { overflow: hidden; border-radius: 6px; background: var(--paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .photo:hover img { transform: scale(1.04); } }

/* =============================================================
   6. Sections
   ============================================================= */
.section { padding: clamp(4.5rem, 11vw, 9rem) var(--gutter); background: var(--paper); }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-title { font-family: var(--serif); line-height: 1.06; font-size: clamp(2rem, 5.2vw, 4.4rem); margin-top: 1rem; max-width: 16ch; }

/* --- Hero (transparent: the burgundy gradient shows through) --- */
.hero {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: calc(var(--nav-h) + clamp(3rem, 11vh, 7.5rem)) var(--gutter) clamp(2.5rem, 7vh, 4.5rem);
  position: relative;
}
.hero-kicker { display: flex; align-items: center; gap: .7rem; color: var(--fg); margin-bottom: clamp(1.2rem, 3vw, 2rem); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--white); flex: none; animation: pulse 2.4s ease-in-out infinite; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 9.6vw, 9.75rem); font-weight: 600;
  line-height: 1; letter-spacing: -0.05em;
  text-wrap: nowrap;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title .line > span { display: inline-block; animation: lineUp 1.1s var(--ease-out) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title em { padding-right: .06em; }
.hero-foot {
  display: grid; gap: 1.75rem; margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.5rem; border-top: 1px solid var(--rule);
  animation: fadeUp 1s .45s var(--ease-out) both;
}
.hero-sub { font-size: clamp(1rem, 1.35vw, 1.2rem); max-width: 52ch; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* --- Marquee --- */
.marquee { background: var(--white); color: var(--burgundy); overflow: hidden; padding: .9rem 0; position: relative; z-index: 2; }
.marquee-track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: clamp(1.2rem, 2.1vw, 1.7rem); white-space: nowrap; }
.marquee-track i { font-style: normal; font-size: 1rem; }

/* --- Manifesto --- */
.manifesto-text {
  font-family: var(--serif); color: var(--burgundy);
  font-size: clamp(1.6rem, 3.7vw, 3.3rem);
  line-height: 1.18; letter-spacing: -0.015em;
  max-width: min(100%, 22em);
  margin-top: 1.5rem;
}
.manifesto-row { display: grid; gap: 2rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); align-items: end; }
.manifesto-row .photo { aspect-ratio: 3 / 2; }
.manifesto-row .photo img { object-position: 50% 35%; }
.manifesto-aside { max-width: 46ch; color: var(--fg-mute); font-size: 1.05rem; padding-left: 1.25rem; border-left: 2px solid var(--burgundy); }

/* --- Services (accordion rows) --- */
.svc { border-top: 1px solid var(--rule); }
.svc:last-child { border-bottom: 1px solid var(--rule); }
.svc-head {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: .5rem 1rem;
  padding: clamp(1.2rem, 2.6vw, 2rem) 0;
  transition: color .35s var(--ease-out);
}
.svc-name { font-family: var(--serif); font-size: clamp(1.35rem, 3.7vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; transition: transform .45s var(--ease-out), color .35s var(--ease-out); }
.svc-tag { display: none; }
.svc-icon { position: relative; width: 22px; height: 22px; flex: none; }
.svc-icon::before, .svc-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease-out);
}
.svc-icon::after { transform: rotate(90deg); }
.svc.is-open .svc-icon::after { transform: rotate(0deg); }
.svc.is-open .svc-name, .svc-head:hover .svc-name { color: var(--burgundy); }
.svc.is-open .svc-num, .svc.is-open .svc-icon { color: var(--burgundy); }
@media (hover: hover) { .svc-head:hover .svc-name { transform: translateX(.8rem); } }

.svc-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s var(--ease-out); }
.js .svc:not(.is-open) .svc-panel { grid-template-rows: 0fr; }
.svc-body { overflow: hidden; min-height: 0; }
.svc-body > p { max-width: 58ch; font-size: 1.05rem; }
.svc-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1.25rem 0 2rem; }
.svc-chips li { padding: .4rem .75rem; border: 1px solid color-mix(in srgb, var(--burgundy) 35%, transparent); border-radius: 999px; color: var(--burgundy); font-size: .7rem; }
.services-foot { margin-top: 2.5rem; }

/* --- Stats --- */
.stats { display: grid; gap: 2.5rem; background: var(--paper-2); align-items: end; }
.stat { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.stat-num { font-family: var(--serif); color: var(--burgundy); font-size: clamp(4.5rem, 12vw, 10rem); line-height: .9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--fg-mute); max-width: 26ch; margin-top: .75rem; }
.stat-seal { border-top: 0; padding-top: 0; }
.stat-seal img { width: clamp(11rem, 20vw, 17rem); margin-left: -1rem; }

/* --- Why --- */
.why-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.why-card { background: var(--paper); padding: clamp(1.5rem, 3vw, 2.5rem); transition: background .4s var(--ease-out), color .4s var(--ease-out); }
.why-card h3 { font-family: var(--serif); line-height: 1.1; font-size: clamp(1.4rem, 2.1vw, 1.9rem); margin: 2.5rem 0 .9rem; }
.why-card p { color: var(--fg-mute); transition: color .4s var(--ease-out); }
.why-num { color: var(--burgundy); transition: color .4s var(--ease-out); }
@media (hover: hover) {
  .why-card:hover { background: var(--burgundy); color: var(--white); }
  .why-card:hover p, .why-card:hover .why-num { color: rgba(255, 255, 255, .85); }
}
.values { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin-top: 2.5rem; color: var(--fg); }
.values li::before { content: "✳ "; color: var(--burgundy); }

/* --- Quote (solid burgundy) --- */
.quote { background: var(--burgundy); }
.quote blockquote p { font-family: var(--serif); font-size: clamp(1.6rem, 3.9vw, 3.5rem); line-height: 1.16; letter-spacing: -0.015em; max-width: 22em; margin-top: 1.5rem; }
.quote blockquote footer { margin-top: 2rem; color: var(--fg); }

/* --- Team --- */
.team-photo { aspect-ratio: 4 / 3; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.team-photo img { object-position: 50% 35%; }
.team-grid { display: grid; gap: 3rem; }
.team-story p:not(.team-sign) { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 300; max-width: 60ch; }
.team-story p + p { margin-top: 1.2rem; }
.team-story .team-sign { color: var(--burgundy); margin-top: 1.75rem; }
.team-list li { display: grid; gap: .3rem; padding: 1.2rem 0; border-top: 1px solid var(--rule); }
.team-list li:last-child { border-bottom: 1px solid var(--rule); }
.team-name { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1; }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; margin-top: clamp(3rem, 7vw, 5rem); }
.person .photo { aspect-ratio: 4 / 5; margin-bottom: 1rem; }
.person .team-name { font-size: clamp(1.25rem, 2vw, 1.75rem); margin-bottom: .4rem; }
.person .mono { color: var(--burgundy); }
.person-bio { color: var(--fg-mute); font-size: .95rem; margin-top: .6rem; max-width: 32ch; }
.collab { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--fg-mute); }
.collab strong { color: var(--fg); font-weight: 500; }
.office { display: grid; gap: 1rem; margin-top: clamp(3rem, 7vw, 5rem); }
.office .photo { aspect-ratio: 3 / 2; }
.office-cap { margin-top: 1rem; }

/* --- News --- */
.news { background: var(--paper-2); }
.news-list li { border-top: 1px solid var(--rule); }
.news-list li:last-child { border-bottom: 1px solid var(--rule); }
.news-list a { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; align-items: center; padding: 1.4rem 0; transition: padding .45s var(--ease-out), color .3s; }
.news-date { grid-column: 1 / -1; }
.news-title { font-family: var(--serif); font-size: clamp(1.3rem, 2.9vw, 2.4rem); line-height: 1.05; }
.news-arrow { font-size: 1.4rem; transition: transform .45s var(--ease-out); }
@media (hover: hover) {
  .news-list a:hover { padding-left: 1rem; color: var(--burgundy); }
  .news-list a:hover .news-arrow { transform: translateX(6px); }
}

/* --- Contact (transparent again: the gradient returns) --- */
.contact { background: transparent; }
.contact-title { font-family: var(--serif); font-size: clamp(3.2rem, 14vw, 13rem); line-height: .95; letter-spacing: -0.04em; margin-top: 1rem; }
.contact-mail {
  display: inline-block; margin-top: 1.5rem;
  font-family: var(--serif); font-size: clamp(1.05rem, 3.6vw, 3rem); line-height: 1.15;
  color: var(--em); overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 2px no-repeat;
  transition: background-size .6s var(--ease-out);
}
.contact-mail:hover, .contact-mail:focus-visible { background-size: 100% 2px; }
.contact-grid { display: grid; gap: 3rem; margin-top: clamp(3rem, 7vw, 5rem); }
.form {
  --fg: #211416; --fg-mute: #6f5f61; --rule: rgba(33, 20, 22, 0.22); --btn-bg: var(--burgundy); --btn-fg: var(--white);
  display: grid; gap: 1.25rem; padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--paper); color: var(--fg); border-radius: 14px;
  box-shadow: 0 40px 80px -40px rgba(30, 2, 4, .7);
}
.form-intro { font-weight: 300; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-mute); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--fg);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: .6rem 0; border-radius: 0; resize: vertical;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--burgundy); box-shadow: 0 1px 0 var(--burgundy); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #c62828; }
.form-error { color: #b3261e; font-size: .9rem; }
.form .btn { justify-self: start; }

.contact-info { display: grid; gap: 2rem; align-content: start; }
.contact-info div { display: grid; gap: .35rem; justify-items: start; }
.contact-info a { font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.2; transition: color .3s; }
.contact-info a:hover { color: var(--em); }

/* --- Footer --- */
.footer { padding: 3rem var(--gutter) 2rem; background: var(--burgundy-deep); display: grid; gap: 1.5rem; }
.footer-logo { width: min(260px, 70%); }
.footer-tag { color: var(--fg-mute); max-width: 36ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.footer-links a:hover { color: var(--white); }

/* =============================================================
   7. Effects
   ============================================================= */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  animation: revealSafety .01s 7s forwards; /* if JS never runs, show anyway */
}
.js .reveal.is-visible { opacity: 1; transform: none; animation: none; }
.reveal[data-split] { opacity: 1; transform: none; }

@keyframes revealSafety { to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); } 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .svc-chips li { font-size: .75rem; }
  .brand .logo { height: 28px; }
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-head { grid-template-columns: 3.5rem 1fr auto auto; }
  .svc-tag { display: block; }
  .svc-body > p, .svc-chips { padding-left: 4.5rem; }
  .news-list a { grid-template-columns: 9rem 1fr auto; }
  .news-date { grid-column: auto; }
  .hero-foot { grid-template-columns: 1fr auto; align-items: end; }
  .office { grid-template-columns: repeat(3, 1fr); }
  .team-photo { aspect-ratio: 16 / 9; }
}
@media (min-width: 960px) {
  .nav-links, .nav .nav-cta { display: inline-flex; }
  .nav-toggle, .mobile-menu { display: none; }
  .people { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .contact-grid { grid-template-columns: 1.2fr .8fr; gap: 5rem; }
  .manifesto-row { grid-template-columns: 1.3fr 1fr; gap: 4rem; }
  .footer { grid-template-columns: 1fr auto; align-items: end; }
  .footer-links { grid-column: 1 / -1; }
  .footer-copy { justify-self: end; }
}
@media (min-width: 1280px) {
  .section-title { max-width: 18ch; }
  .team-photo { aspect-ratio: 2 / 1; }
}

/* =============================================================
   9. Reduced-motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
}

/* =============================================================
   10. Display text set in Montserrat (non-heading elements)
   ============================================================= */
.manifesto-text, .svc-name, .stat-num, .quote blockquote p, .news-title, .team-name,
.contact-mail, .contact-info a, .marquee-track span, .mobile-menu nav a {
  font-weight: 500; letter-spacing: -0.03em;
}
.stat-num, .contact-title { font-weight: 600; letter-spacing: -0.05em; }
.manifesto-text, .quote blockquote p { font-weight: 400; }

/* =============================================================
   11. Inner pages (noticias y textos legales)
   ============================================================= */
.page-hero { padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) var(--gutter) clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { font-size: clamp(2rem, 5.6vw, 4.6rem); font-weight: 600; max-width: 20ch; margin-top: 1rem; }
.page-hero .mono { margin-top: 1.5rem; color: var(--fg-mute); }
.prose > * { max-width: 68ch; }
.prose > figure { max-width: 60rem; margin: 1.75rem 0 2.5rem; }
.prose > figure:first-child { margin-top: 0; }
.prose > figure.seal { max-width: 16rem; background: none; }
.prose h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--burgundy); margin: 2.75rem 0 .5rem; }
.prose h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin: 1.75rem 0 .25rem; }
.prose p { margin-top: 1rem; }
.prose .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 300; margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-top: 1rem; }
.prose li { margin-top: .5rem; }
.prose a, .form-legal a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover, .form-legal a:hover { color: var(--burgundy); }
.prose .back { margin-top: 3.5rem; }
.prose .back a { text-decoration: none; }
.form-legal { font-size: .8rem; color: var(--fg-mute); }

/* =============================================================
   12. Kit Digital logos + aviso de cookies
   ============================================================= */
.prose > figure.kit-logos { max-width: 60rem; background: #fff; padding: clamp(.75rem, 2vw, 1.5rem); border-radius: 6px; border: 1px solid var(--rule); }
.footer-links button { color: var(--fg-mute); }
.footer-links button:hover { color: var(--white); }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }

.consent {
  --fg: #211416; --fg-mute: #6f5f61; --btn-bg: var(--burgundy); --btn-fg: var(--white);
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  max-width: 30rem; margin-left: auto;
  padding: 1.25rem 1.5rem 1.5rem; border-radius: 14px;
  background: var(--paper); color: var(--fg);
  box-shadow: 0 24px 60px -20px rgba(30, 2, 4, .55), 0 0 0 1px rgba(33, 20, 22, .1);
  animation: fadeUp .6s var(--ease-out) both;
}
.consent h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.consent p { font-size: .88rem; color: var(--fg-mute); margin-top: .5rem; }
.consent p a { text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.consent .btn { padding: .8rem 1.3rem; font-size: .88rem; flex: 1 1 8rem; justify-content: center; }
.consent .btn-ghost { border-color: var(--burgundy); color: var(--burgundy); }
.consent .btn-ghost:hover { background: var(--burgundy); color: var(--white); }

/* =============================================================
   13. Formulario: casilla de privacidad, campo trampa y estados
   ============================================================= */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: .88rem; color: var(--fg-mute); }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--burgundy); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.check.is-invalid label { color: #b3261e; }
.form-note { font-size: .9rem; min-height: 1.4em; color: var(--fg-mute); }
.form-note.is-ok { color: #1e6b3a; font-weight: 500; }
.form-note.is-ko { color: #b3261e; }
.form.is-sending .btn { opacity: .6; transform: none; box-shadow: none; cursor: progress; }

/* =============================================================
   14. Guiño a Bodega de Ideas
   ============================================================= */
.bodega { display: grid; gap: 2rem; align-items: center; margin-top: clamp(3.5rem, 8vw, 6rem); padding-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--rule); }
.bodega-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bodega .photo { aspect-ratio: 4 / 5; }
.bodega-photos { align-items: start; }
.bodega-photos > .photo { margin-top: 3rem; }
.bodega-photos .photo:first-child img { object-position: 42% 50%; }
.bodega-logo { width: 72px; height: 72px; border-radius: 6px; margin-bottom: 1.5rem; }
.bodega-title { font-size: clamp(2rem, 4.4vw, 3.6rem); margin: 1rem 0 1.25rem; }
.bodega-text p { max-width: 46ch; }
.bodega-text p + p { margin-top: 1rem; }
.bodega-text p:last-child { margin-top: 1.75rem; }
@media (min-width: 960px) { .bodega { grid-template-columns: 1.15fr 1fr; gap: 5rem; } }

/* --- Vídeo de YouTube: solo se carga al pulsar --- */
.video-play { position: relative; display: block; aspect-ratio: 9 / 16; color: var(--white); }
.bodega .video-play.photo { aspect-ratio: 9 / 16; }
.video-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 2, 4, 0) 45%, rgba(20, 2, 4, .78) 100%); }
.video-icon {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%; background: var(--burgundy); box-shadow: 0 10px 30px rgba(20, 2, 4, .45);
  transition: transform .35s var(--ease-out), background .35s var(--ease-out);
}
.video-icon::before { content: ""; position: absolute; left: 27px; top: 22px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.video-play:hover .video-icon, .video-play:focus-visible .video-icon { transform: scale(1.1); background: var(--burgundy-lite); }
.video-title { position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: 1rem; font-size: .9rem; font-weight: 500; line-height: 1.3; }
.video-frame { aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-note { font-size: .72rem; color: var(--fg-mute); margin-top: .5rem; }

/* =============================================================
   15. Valoración de Google + mapa (se carga al pulsar)
   ============================================================= */
.google-rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.google-score { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; }
.google-stars { color: #ffd166; font-size: 1.5rem; letter-spacing: .12em; }
.google-count { font-size: 1rem; color: var(--fg-mute); margin-right: auto; }

.map {
  margin-top: clamp(3rem, 7vw, 5rem); min-height: 300px; border-radius: 14px; overflow: hidden;
  display: grid; align-content: center; justify-items: start; gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--rule);
  background:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 56px 100%,
    rgba(40, 4, 6, .35);
}
.map-address { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: -0.02em; line-height: 1.2; }
.map-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.map .video-note { color: var(--fg-mute); margin-top: 0; }
.map.is-loaded { padding: 0; display: block; min-height: 0; background: var(--paper-2); }
.map iframe { display: block; width: 100%; height: clamp(320px, 45vw, 460px); border: 0; }

/* =============================================================
   16. Reseñas (tarjetas bajo la valoración de Google)
   ============================================================= */
.reviews { display: grid; gap: 1rem; margin-top: 2rem; }
.review { display: grid; gap: 1rem; align-content: start; padding: clamp(1.25rem, 2.5vw, 2rem); border: 1px solid var(--rule); border-radius: 14px; background: rgba(255, 255, 255, .06); }
.review-stars { color: #ffd166; letter-spacing: .12em; font-size: 1rem; }
.review-text { font-size: 1.02rem; line-height: 1.55; }
.review-author { font-weight: 600; font-size: .92rem; margin-top: auto; }
.review-author span { display: block; font-weight: 400; font-size: .78rem; color: var(--fg-mute); margin-top: .15rem; }
@media (min-width: 720px) { .reviews { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.review-text p + p { margin-top: .75rem; }
.reviews:has(.review:only-child) { grid-template-columns: 1fr; }
.review:only-child { max-width: 48rem; }
.quote blockquote.review-text p { font-family: var(--sans); font-size: 1.02rem; font-weight: 400; line-height: 1.55; letter-spacing: 0; max-width: none; margin-top: 0; }
.quote blockquote.review-text p + p { margin-top: .75rem; }

/* =============================================================
   17. Diagnóstico de reputación Google
   ============================================================= */
.diag { background: var(--burgundy); display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.diag-title { font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.08; margin: 1rem 0 2rem; max-width: 20ch; }
.diag-price { display: grid; gap: .35rem; margin-bottom: 2rem; }
.diag-price strong { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.04em; line-height: 1; }
.diag-price span { color: var(--fg-mute); font-size: .95rem; max-width: 34ch; }
.diag-list { list-style: none; padding: 0; margin: 0; }
.diag-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: baseline; padding: 1.15rem 0; border-top: 1px solid var(--rule); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.35; }
.diag-list li:last-child { border-bottom: 1px solid var(--rule); }
.diag-list .mono { color: var(--em); }
.svc-link { padding: 0 0 2rem; }
.svc-chips:has(+ .svc-link) { padding-bottom: 1.25rem; }
.prose ol { padding-left: 1.4rem; margin-top: 1rem; }
.prose ol li { padding-left: .25rem; }
.prose .price strong { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; color: var(--burgundy); }
.prose .cta-row { margin-top: 2.5rem; }
.prose .cta-row a { text-decoration: none; }
.prose .cta-row a:hover { color: var(--btn-fg); }
@media (min-width: 720px) { .svc-link { padding-left: 4.5rem; } }
@media (min-width: 960px) { .diag { grid-template-columns: 1.1fr 1fr; } }
.collab .mono { color: var(--burgundy); }
.collab-list { display: grid; gap: 1.25rem; margin-top: 1rem; }
.collab-list li { display: grid; gap: .2rem; align-content: start; }
.collab-list strong { font-family: var(--serif); font-size: 1.15rem; letter-spacing: -0.02em; }
.collab-list span { font-size: .92rem; max-width: 30ch; }
@media (min-width: 720px) { .collab-list { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
