/* ============================================================
   StILL StUDIO — Sistema de diseño
   Editorial Silencioso · Santo Domingo, RD
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Vino — acento, nunca fondo dominante */
  --vino: #600F0F;
  --vino-dark: #3D0A0A;
  --vino-dk: #4E0C0C;
  --vino-light: #7A2020;
  --vino-accent: #963838;
  --vino-muted: #8B5A5A;

  /* Neutros cálidos */
  --cream: #FAF8F5;
  --off-white: #F3F0EC;
  --paper: #EBE6E0;
  --beige: #D1C5B8;
  --warm-beige: #C4B5A5;
  --stone: #A89E94;
  --gray: #7A7370;
  --gray-medium: #5C5553;
  --gray-dark: #3A3534;
  --black: #1A1716;
  --espresso: #2A1F19;   /* Oscuro cálido — reemplaza al negro en bandas */
  --white: #FFFFFF;
  --metallic: #8A7A6A;

  /* Tipografía */
  --font-sans: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', monospace;

  /* Ritmo */
  --max: 1240px;
  --max-narrow: 820px;
  --gutter: 24px;
  --section-y: 120px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t: 0.3s var(--ease);
}

@media (min-width: 768px) {
  :root { --gutter: 48px; --section-y: 150px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 64px; --section-y: 180px; }
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--gray-dark);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* height:auto es obligatorio: sin él, el atributo height del HTML
   gana sobre aspect-ratio y las miniaturas salen deformadas */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--vino); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--vino);
  outline-offset: 3px;
}

/* ---------- 3. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.wrap--narrow { max-width: var(--max-narrow); }

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: 90px; padding-bottom: 90px; }
.section--dark { background: var(--espresso); color: var(--paper); }
.section--vino { background: var(--vino-dark); color: var(--paper); }
.section--paper { background: var(--off-white); }

main { display: block; }

/* Fade-in de página */
body { opacity: 0; animation: pageIn 0.6s var(--ease) forwards; }
@keyframes pageIn { to { opacity: 1; } }

/* ---------- 4. Tipografía ---------- */
.label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vino);
  display: block;
  margin-bottom: 28px;
}
.section--dark .label,
.section--vino .label { color: var(--vino-muted); }

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--black);
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--black);
}

.h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  color: var(--black);
}

.section--dark .display,
.section--vino .display,
.section--dark .h2,
.section--vino .h2,
.section--dark .h3,
.section--vino .h3 { color: var(--cream); }

.lede {
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  line-height: 1.55;
  color: var(--gray-medium);
}
.section--dark .lede,
.section--vino .lede { color: var(--warm-beige); }

.body-text {
  font-size: clamp(1rem, 1.3vw, 1.075rem);
  line-height: 1.8;
  color: var(--gray-medium);
  font-weight: 300;
}
.section--dark .body-text,
.section--vino .body-text { color: var(--beige); }

.meta {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.numeral {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--beige);
  transition: color var(--t);
}

/* Regla decorativa */
.rule {
  width: 100%;
  height: 1px;
  background: var(--beige);
  border: 0;
}
.section--dark .rule,
.section--vino .rule { background: rgba(209, 197, 184, 0.18); }

.rule-short {
  width: 56px;
  height: 1px;
  background: var(--vino);
  border: 0;
  margin: 0 0 32px;
}

/* ---------- 5. Logo ---------- */
.logo {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--vino);
  white-space: nowrap;
  display: inline-block;
  transition: opacity var(--t);
}
.logo b { font-weight: 600; }
.logo:hover { opacity: 0.68; }
.logo--light { color: var(--cream); }
.logo--lg { font-size: 20px; letter-spacing: 0.22em; }

@media (min-width: 768px) {
  .logo { font-size: 16px; }
}

/* ---------- 6. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  border: 1px solid var(--vino);
  background: var(--vino);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13.5px;
  letter-spacing: 0.09em;
  line-height: 1;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn:hover { background: var(--vino-dark); border-color: var(--vino-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 12px 24px; font-size: 12.5px; }

.btn--ghost {
  background: transparent;
  color: var(--vino);
  border-color: var(--beige);
}
.btn--ghost:hover { background: var(--vino); color: var(--cream); border-color: var(--vino); }

.btn--light {
  background: var(--cream);
  color: var(--vino);
  border-color: var(--cream);
}
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--vino-dark); }

/* Link con flecha */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13.5px;
  letter-spacing: 0.07em;
  color: var(--vino);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), gap var(--t), color var(--t);
}
.arrow-link:hover { border-color: var(--vino); gap: 16px; }
.section--dark .arrow-link,
.section--vino .arrow-link { color: var(--warm-beige); }
.section--dark .arrow-link:hover,
.section--vino .arrow-link:hover { border-color: var(--warm-beige); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 36px;
  margin-top: 44px;
}

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 248, 245, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-header.is-scrolled {
  border-bottom-color: var(--paper);
  background: rgba(250, 248, 245, 0.94);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}
@media (min-width: 768px) { .nav { height: 88px; } }

.nav-links {
  display: none;
  align-items: center;
  gap: 40px;
}
@media (min-width: 960px) { .nav-links { display: flex; } }

.nav-link {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--gray-medium);
  padding: 6px 0;
  position: relative;
  transition: color var(--t);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--vino);
  transition: width var(--t);
}
.nav-link:hover { color: var(--vino); }
.nav-link:hover::after { width: 100%; }

.nav-link.is-active { color: var(--vino); }
.nav-link.is-active::after { width: 100%; }

.nav-cta { display: none; }
@media (min-width: 960px) { .nav-cta { display: inline-flex; } }

/* Hamburguesa */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-right: -10px;
  background: none;
  border: 0;
  align-items: flex-end;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--black);
  transition: transform var(--t), opacity var(--t), width var(--t);
}
.nav-toggle span:nth-child(2) { width: 16px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); width: 24px; }

/* Panel mobile */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 23, 22, 0.32);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  z-index: 95;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

.nav-panel {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(88vw, 380px);
  background: var(--cream);
  z-index: 96;
  transform: translateX(100%);
  transition: transform 0.42s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 28px 32px 40px;
  overflow-y: auto;
}
.nav-panel.is-open { transform: translateX(0); }

.nav-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}

.nav-panel__close {
  width: 40px; height: 40px;
  background: none; border: 0;
  color: var(--black);
  font-size: 24px;
  line-height: 1;
  margin-right: -8px;
}

.nav-panel__links { display: flex; flex-direction: column; }
.nav-panel__links a {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--black);
  padding: 16px 0;
  border-bottom: 1px solid var(--paper);
  transition: color var(--t), padding-left var(--t);
}
.nav-panel__links a:hover { color: var(--vino); padding-left: 8px; }
.nav-panel__links a.is-active { color: var(--vino); }

.nav-panel__foot { margin-top: auto; padding-top: 48px; }
.nav-panel__foot .btn { width: 100%; }
.nav-panel__meta { margin-top: 24px; }

body.is-locked { overflow: hidden; }

/* ---------- 9. Statement ---------- */
.statement { text-align: center; }
.statement .h2 { max-width: 15ch; margin: 0 auto 36px; }
.statement .body-text { max-width: 60ch; margin: 0 auto; }

/* ---------- 10. Grillas ---------- */
.grid { display: grid; gap: 1px; }

.head-block { max-width: 640px; margin-bottom: 72px; }
.head-block .h2 { margin-bottom: 20px; }

/* Cards de servicio (preview) */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--paper);
}
@media (min-width: 820px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  display: block;
  padding: 48px 0 48px 28px;
  border-bottom: 1px solid var(--paper);
  border-left: 1px solid transparent;
  transition: border-left-color var(--t), background var(--t), padding-left var(--t);
}
@media (min-width: 820px) {
  .card { padding: 56px 40px 56px 36px; }
  .card:nth-child(odd) { border-right: 1px solid var(--paper); }
}
.card:hover {
  border-left-color: var(--vino);
  background: var(--off-white);
  padding-left: 40px;
}
@media (min-width: 820px) { .card:hover { padding-left: 48px; } }

.card:hover .numeral { color: var(--vino-muted); }

.card .numeral { margin-bottom: 22px; }
.card .h3 { margin-bottom: 8px; }
.card .meta { margin-bottom: 18px; }
.card .body-text { margin-bottom: 26px; max-width: 44ch; }

/* Columnas de diferenciadores */
.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 820px) {
  .cols { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}
.col .h3 { margin-bottom: 16px; }
.col .rule-short { background: var(--vino-accent); }

/* Principios (Nosotros) */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--paper);
}
@media (min-width: 820px) {
  .principles { grid-template-columns: 1fr 1fr; }
}
.principle {
  padding: 44px 0;
  border-bottom: 1px solid var(--paper);
}
@media (min-width: 820px) {
  .principle { padding: 52px 48px 52px 0; }
  .principle:nth-child(even) { padding-left: 48px; border-left: 1px solid var(--paper); }
}
.principle__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--stone);
  display: block;
  margin-bottom: 20px;
}
.principle .h3 { margin-bottom: 14px; }

/* ---------- 11. Bloques de servicio expandidos ---------- */
.service-block {
  padding-top: 90px;
  padding-bottom: 90px;
  border-top: 1px solid var(--paper);
}
@media (min-width: 900px) {
  .service-block { padding-top: 110px; padding-bottom: 110px; }
}
.service-block:nth-child(even) { background: var(--off-white); }

.service-block__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .service-block__grid { grid-template-columns: 1.15fr 1fr; gap: 80px; }
}

.service-block__head .numeral { margin-bottom: 20px; }
.service-block__head .h2 { margin-bottom: 8px; }
.service-block__head .meta { margin-bottom: 28px; }
.service-block__head .body-text { max-width: 52ch; }

.spec { margin-bottom: 44px; }
.spec:last-child { margin-bottom: 0; }

.spec__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vino);
  margin-bottom: 22px;
}

.spec__list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--paper);
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--gray-medium);
}
.service-block:nth-child(even) .spec__list li { border-bottom-color: var(--beige); }
.spec__list li::before {
  content: '';
  flex: none;
  width: 5px; height: 5px;
  margin-top: 11px;
  background: var(--vino-muted);
  border-radius: 50%;
}

.spec__result {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--vino);
  padding-left: 22px;
  border-left: 1px solid var(--vino);
}

/* ---------- 12. Nosotros — fundadora ---------- */
.founder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
}
@media (min-width: 860px) {
  .founder { grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
  .founder__photo { max-width: none; }
}

.founder__photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 320px;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.founder__photo span {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: 42px;
  letter-spacing: 0.2em;
  color: var(--white);
}
.founder__photo span b { font-weight: 600; }

.founder__name {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 10px;
}
.founder__role { margin-bottom: 30px; }

.story .body-text { max-width: 62ch; margin-bottom: 26px; }
.story .body-text:last-child { margin-bottom: 0; }
.story .lead-para {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.5;
  color: var(--black);
  max-width: 26ch;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.2fr; gap: 80px; }
}

/* ---------- 13. CTA ---------- */
.cta-band {
  border: 1px solid var(--beige);
  background: var(--off-white);
  padding: 64px var(--gutter);
  text-align: center;
}
@media (min-width: 768px) { .cta-band { padding: 88px 64px; } }

.cta-band .h2 { max-width: 18ch; margin: 0 auto 36px; }
.cta-band .meta { margin-top: 26px; }

/* ---------- 14. Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}
@media (min-width: 920px) {
  .contact-grid { grid-template-columns: 1.35fr 0.65fr; gap: 88px; }
}

.form { display: flex; flex-direction: column; gap: 26px; }

.field { display: flex; flex-direction: column; gap: 9px; }

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--paper);
  border-radius: 0;
  padding: 15px 16px;
  width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A7370' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--stone); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--vino);
  box-shadow: inset 0 0 0 1px var(--vino);
}

.form .btn { align-self: flex-start; margin-top: 8px; }

.form-note { margin-top: 4px; }

.form-status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--vino);
  min-height: 1em;
}

.contact-info { display: flex; flex-direction: column; gap: 34px; }

.info-item .meta { display: block; margin-bottom: 7px; }
.info-item a,
.info-item p {
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--black);
  transition: color var(--t);
}
.info-item a { border-bottom: 1px solid var(--beige); padding-bottom: 2px; }
.info-item a:hover { color: var(--vino); border-color: var(--vino); }

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--beige);
  padding: 80px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 56px; max-width: 560px; margin: 0 auto; }
}

.footer-brand .logo { margin-bottom: 22px; }
.footer-brand p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--warm-beige);
  max-width: 30ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vino-muted);
  margin-bottom: 22px;
}
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--beige);
  transition: color var(--t);
}
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  border-top: 1px solid rgba(209, 197, 184, 0.15);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}
@media (min-width: 700px) { .footer-bottom { flex-direction: row; align-items: center; } }

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gray);
}

/* ---------- 16. WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--vino);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(26, 23, 22, 0.16);
  transition: transform var(--t), background var(--t);
}
.wa-float:hover { transform: scale(1.07); background: var(--vino-dark); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

@media (min-width: 768px) {
  .wa-float { right: 32px; bottom: 32px; width: 58px; height: 58px; }
}

/* ---------- 17. Animaciones de scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { opacity: 1; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   19. Lenguaje editorial — dossier
   Fotografía de moda, bandas vino, retícula de clientes
   ============================================================ */

/* ---------- Bloque editorial (imagen completa + pie) ---------- */
.band {
  background: var(--off-white);
  padding: 90px 0;
}
@media (min-width: 900px) { .band { padding: 110px 0; } }

.band__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 820px) {
  .band__inner { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
  .band__inner--flip > figure { order: 2; }
}

/* La imagen se muestra entera, a su proporción original */
.band figure { margin: 0; }
.band img { width: 100%; height: auto; }

.band__caption .h3 { max-width: 20ch; margin-bottom: 16px; }
.band__caption .meta { display: block; }

/* ---------- Retícula editorial (slide 07) ---------- */
/* Altura uniforme, ancho según la proporción real: nada se recorta */
.editorial-grid {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.editorial-grid::-webkit-scrollbar { display: none; }

.editorial-grid figure {
  margin: 0;
  flex: none;
  scroll-snap-align: start;
}
.editorial-grid img {
  height: 340px;
  width: auto;
  max-width: none;
  transition: opacity var(--t);
  opacity: 0.92;
}
.editorial-grid figure:hover img { opacity: 1; }

@media (max-width: 700px) {
  .editorial-grid img { height: 260px; }
}
@media (min-width: 1100px) {
  .editorial-grid { gap: 14px; }
  .editorial-grid img { height: 380px; }
}

/* ---------- Retícula de clientes (slide 08) ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--paper);
  border: 1px solid var(--paper);
}
@media (min-width: 620px) { .clients { grid-template-columns: repeat(4, 1fr); } }

.clients div {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 22px;
  min-height: 132px;
}
.clients img {
  max-height: 58px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: opacity var(--t), filter var(--t);
}
.clients div:hover img { opacity: 1; filter: grayscale(0); }

/* ---------- Bloque de servicio con imagen ---------- */
.service-block__figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper);
}
.service-block__figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Figura editorial con pie ---------- */
.figure-editorial figcaption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 14px;
}
.figure-editorial img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper);
}

/* ---------- Ajustes sobre fondo vino ---------- */
.section--vino .rule-short { background: var(--vino-muted); }
.section--vino .numeral { color: var(--vino-muted); }
.section--vino .meta { color: var(--vino-muted); }
.section--vino .cta-band {
  background: transparent;
  border-color: rgba(209, 197, 184, 0.22);
}
.section--vino .cta-band .meta { color: var(--warm-beige); }
.section--vino .principles { border-top-color: rgba(209, 197, 184, 0.18); }
.section--vino .principle { border-bottom-color: rgba(209, 197, 184, 0.18); }
.section--vino .principle__num { color: var(--vino-muted); }
@media (min-width: 820px) {
  .section--vino .principle:nth-child(even) { border-left-color: rgba(209, 197, 184, 0.18); }
}

/* ============================================================
   20. Detalles editoriales
   Lockup, accesos con filete, filas numeradas, footer social
   ============================================================ */

/* ---------- Énfasis en itálica dentro del titular ---------- */
.em { font-style: italic; }

/* ---------- Lockup del wordmark ---------- */
.lockup { text-align: center; }
.lockup .logo {
  font-size: clamp(22px, 4.4vw, 38px);
  letter-spacing: 0.2em;
  display: inline-block;
}
.lockup__tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--gray);
  margin-top: 10px;
  letter-spacing: 0.02em;
}
.lockup__reg {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.42em;
  vertical-align: super;
  letter-spacing: 0;
}

/* ---------- Fila de accesos con filete vertical ---------- */
.paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 760px) {
  .paths { grid-template-columns: repeat(3, 1fr); }
}
.path {
  padding: 28px 0;
  border-top: 1px solid var(--paper);
}
@media (min-width: 760px) {
  .path { padding: 8px 36px; border-top: 0; border-left: 1px solid var(--beige); }
  .path:first-child { border-left: 0; padding-left: 0; }
  .path:last-child { padding-right: 0; }
}
.path__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vino);
  margin-bottom: 16px;
  transition: gap var(--t);
}
.path:hover .path__link { gap: 15px; }
.path .body-text { max-width: 32ch; }

/* ---------- Servicios como filas numeradas ---------- */
.rows { border-top: 1px solid var(--paper); }

.row-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--paper);
  transition: background var(--t), padding-left var(--t);
}
@media (min-width: 860px) {
  .row-item {
    grid-template-columns: auto minmax(0, 1fr) auto 96px;
    gap: 36px;
    padding: 30px 0;
  }
}
.row-item:hover { background: var(--off-white); padding-left: 16px; }
.row-item:hover .numeral { color: var(--vino-muted); }

.row-item__num { font-size: clamp(1.8rem, 3vw, 2.5rem); }

.row-item__body .h3 { margin-bottom: 4px; }
.row-item__body .meta { display: block; }

.row-item__cta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vino);
  white-space: nowrap;
}
@media (max-width: 859px) { .row-item__cta { display: none; } }

.row-item__thumb {
  width: 62px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
@media (min-width: 860px) {
  .row-item__thumb { width: 96px; }
}

/* ---------- Footer: redes en tres columnas ---------- */
.footer-social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(209, 197, 184, 0.15);
  border-bottom: 1px solid rgba(209, 197, 184, 0.15);
  margin-bottom: 56px;
}
.footer-social a {
  padding: 26px 18px;
  text-align: center;
  border-left: 1px solid rgba(209, 197, 184, 0.15);
  transition: background var(--t);
}
.footer-social a:first-child { border-left: 0; }
.footer-social a:hover { background: rgba(250, 248, 245, 0.05); }

.footer-social__name {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: var(--cream);
  display: block;
  margin-bottom: 8px;
}
.footer-social__cta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vino-muted);
}

.footer-lockup { text-align: center; padding-bottom: 56px; }
.footer-lockup .logo { font-size: clamp(20px, 3.6vw, 30px); }
.footer-lockup .lockup__tagline { color: var(--warm-beige); }

.footer-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 40px;
}
.footer-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity var(--t);
}
.footer-strip a:hover img { opacity: 1; }

/* ============================================================
   21. Hero dúo — estructura única para las 4 páginas
   Texto a la izquierda, dos editoriales superpuestas a la derecha.
   Las imágenes van a su proporción real (height:auto): nunca se recortan.
   ============================================================ */
.hero-duo {
  background: var(--cream);
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.hero-duo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-duo__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(48px, 5vw, 88px);
    /* La primera vista completa: header de 88px descontado */
    min-height: min(calc(100svh - 88px - 72px), 820px);
  }
}

.hero-duo__text .lockup { text-align: left; margin-bottom: 36px; }
.hero-duo__text .lockup .logo { font-size: clamp(20px, 2.4vw, 30px); }
.hero-duo__text .display {
  font-size: clamp(2.4rem, 4.8vw, 4.3rem);
  margin-bottom: 24px;
  max-width: 15ch;
}
.hero-duo__text .lede { max-width: 44ch; }
.hero-duo__text .btn-row { margin-top: 36px; }

/* Composición: principal a la derecha, secundaria desplazada abajo a la izquierda */
.hero-duo__media {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-bottom: 14%;
}
.hero-duo__media figure { margin: 0; }
.hero-duo__media img { width: 100%; height: auto; }

.hero-duo__main {
  width: 72%;
  position: relative;
  z-index: 1;
}
.hero-duo__second {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44%;
  z-index: 2;
  border: clamp(6px, 0.8vw, 10px) solid var(--cream);
  background: var(--cream);
}

@media (min-width: 900px) {
  /* Limitar por alto de pantalla: ancho = alto disponible × proporción ~0.75 */
  .hero-duo__main { width: min(74%, calc(64svh * 0.75)); }
  .hero-duo__second { width: min(44%, calc(38svh * 0.75)); }
}

.hero-duo__credit {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  text-align: right;
}

/* ---------- 18. Utilidades ---------- */
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 20px; }
.mt-m { margin-top: 40px; }
.mt-l { margin-top: 64px; }
.mb-m { margin-bottom: 40px; }
.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--vino);
  color: var(--cream);
  padding: 12px 20px;
  font-size: 13px;
  z-index: 200;
}
.skip-link:focus { left: 0; }
