/* ============================================================
   Studio Gianna — rediseño editorial 2026
   Capa de evolución visual sobre el sistema original.
   ============================================================ */

:root {
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.25rem);
  --radius: 10px;
  --radius-lg: 16px;
  --header-h: 88px;
  --shadow-sm: 0 12px 34px rgba(0, 0, 0, .18);
  --shadow-md: 0 24px 64px rgba(0, 0, 0, .28);
  --panel-bg: #0A0706;
  --panel-heading: #FFF9F0;
  --panel-text: #DED3C4;
  --panel-muted: #B7AA99;
  --panel-accent: #E8CE88;
}

:root[data-theme="light"] {
  --bg: #F4F0F5;
  --bg-2: #ECE6EF;
  --bg-3: #2B1D34;
  --surface: #FAF7FB;
  --surface-2: #E7DFEA;
  --line: rgba(88, 55, 112, .13);
  --line-strong: rgba(110, 79, 163, .32);
  --heading: #271D2C;
  --text: #3C3042;
  --text-soft: #5C4F62;
  --muted: #6F6274;
  --gold-bright: #7243A7;
  --rose: #88439F;
  --magenta: #88439F;
  --shadow-sm: 0 12px 34px rgba(64, 38, 83, .08);
  --shadow-md: 0 24px 64px rgba(64, 38, 83, .13);
  --panel-bg: #2B1D34;
  --panel-heading: #FBF7FF;
  --panel-text: #D8CCE0;
  --panel-muted: #B8A7C1;
  --panel-accent: #E8CE88;
}

body {
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: .005em;
}

/* La serif aporta el gesto editorial; Manrope mantiene precios, menús y textos legibles. */
:root { --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif; }

h1, h2, h3, h4 {
  letter-spacing: -.018em;
}

h1 { font-size: clamp(3.25rem, 7.2vw, 6.9rem); }
h2 { font-size: clamp(2.45rem, 4.6vw, 4.25rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 2rem); }

.section {
  padding-block: clamp(5rem, 9vw, 8.5rem);
}

.section--tight {
  padding-block: 1.15rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.8rem, 5vw, 4.8rem);
}

.section-head p {
  max-width: 58ch;
  margin-inline: auto;
}

.eyebrow {
  letter-spacing: .28em;
  font-size: .7rem;
}

.eyebrow::before,
.eyebrow.center::after {
  width: 24px;
  opacity: .7;
}

/* Header y marca */
.site-header {
  height: var(--header-h);
  border-bottom-color: rgba(var(--accent-rgb), .12);
}

.site-header.scrolled,
[data-theme="light"] .site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: 0 12px 40px rgba(var(--shadow-rgb), .1);
  backdrop-filter: blur(22px) saturate(1.15);
}

.brand { gap: .85rem; }

.brand .brand-mark,
[data-theme="light"] .brand .brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-image: url("../img/logo-concepts/logo-04-cabello-botanica.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 96%;
  filter: none;
}

[data-theme="light"] .brand .brand-mark {
  background-color: #33243C;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 75, .28);
}

.brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 600;
  letter-spacing: .015em;
}

.brand .brand-sub {
  margin-top: 6px;
  font-size: .52rem;
  letter-spacing: .27em;
}

.nav { gap: clamp(1.15rem, 2.3vw, 2.5rem); }
.nav a { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.nav a::after { height: 1px; }
.nav .nav-cta { text-transform: none; letter-spacing: .03em; }

.theme-toggle {
  width: 38px;
  height: 38px;
  border: 0;
  background: rgba(var(--accent-rgb), .08);
}

/* Botones: más planos y consistentes */
.btn {
  min-height: 48px;
  padding: .85em 1.75em;
  border-radius: 4px;
  font-size: .86rem;
  letter-spacing: .065em;
  text-transform: uppercase;
  box-shadow: none;
}

.btn-primary,
.btn-gold,
.nav-cta.btn-outline,
:root[data-theme="light"] .nav-cta.btn-outline:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-accent);
  box-shadow: none;
}

.btn-primary:hover,
.btn-gold:hover,
.nav-cta.btn-outline:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 12px 28px rgba(var(--accent-rgb), .2);
}

/* El CTA del encabezado no debe alejarse del puntero al rozar su borde. */
.nav-cta.btn-outline:hover { transform: none; }

.btn-outline,
.btn-ghost-light {
  border-width: 1px;
}

.btn-whatsapp {
  border-radius: 4px;
  box-shadow: none;
}

/* Hero editorial */
.hero--editorial {
  min-height: min(940px, 100svh);
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
  background:
    radial-gradient(55% 70% at 77% 45%, rgba(var(--accent-rgb), .11), transparent 72%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
}

.hero--editorial::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: 0;
  background: url("../img/hero-portada-light.jpg") center / cover;
  filter: saturate(.55) brightness(.62);
  pointer-events: none;
}

.hero--editorial::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(22, 13, 27, .84), rgba(27, 15, 33, .79) 55%, rgba(31, 17, 38, .72));
  pointer-events: none;
}

[data-theme="light"] .hero--editorial {
  background: #EFEAF3;
}

[data-theme="light"] .hero--editorial::before {
  filter: saturate(.7);
}

[data-theme="light"] .hero--editorial::after {
  background: linear-gradient(90deg, rgba(242,237,248,.78), rgba(237,230,245,.78) 55%, rgba(225,215,237,.6));
}

.hero-glow { opacity: .35; }

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .65fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.hero-copy { max-width: none; }

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem 1.35rem;
  margin-bottom: 1.5rem;
}

.hero-copy .hero-meta .hero-badge,
.hero-copy .hero-meta .eyebrow {
  margin-bottom: 0;
}

.hero-meta .hero-badge { order: 2; }

.hero-badge {
  border: 0;
  border-radius: 3px;
  padding: .55em .9em;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(var(--accent-rgb), .1);
  backdrop-filter: none;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.hero-title { margin-top: 1.2rem; }
.hero-title .ht-line {
  max-width: 14ch;
  font-size: clamp(3.25rem, 5.25vw, 5rem);
  line-height: .94;
}

.hero-title .hero-brand-script,
[data-theme="light"] .hero-title .hero-brand-script {
  width: max-content;
  margin: 1.2rem 0 0;
  padding: 0;
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 4.2vw, 3.7rem);
  color: var(--rose);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-swash {
  width: min(280px, 55%);
  margin-top: -.35rem;
  opacity: .65;
}

.hero--editorial .lead {
  max-width: 54ch;
  margin-top: 1.8rem;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
}

.hero-figure {
  justify-self: end;
  width: min(100%, 530px);
  min-height: 650px;
}

.hero-frame,
[data-theme="light"] .hero-frame {
  width: 100%;
  height: 650px;
  border-radius: 260px 260px 18px 18px;
  border: 1px solid rgba(var(--accent-rgb), .38);
  background-image: url("../img/color-balayage.jpg");
  background-size: cover;
  background-position: center 18%;
  box-shadow: 34px 34px 0 rgba(var(--accent-rgb), .08);
}

.hero-frame::before {
  inset: 15px;
  border-radius: 245px 245px 10px 10px;
  border-width: 1px;
  opacity: .55;
}

.hero-frame::after { opacity: .5; }

.hero-figure-tag {
  left: -34px;
  right: auto;
  bottom: 42px;
  transform: none;
  border-radius: 3px;
  padding: .8rem 1.1rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .63rem;
  box-shadow: var(--shadow-sm);
}

.hero-scroll { display: none; }
.hero-link { text-transform: uppercase; letter-spacing: .09em; font-size: .79rem; }

/* Banda de especialidades */
.svc-strip {
  gap: .65rem 1.4rem;
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.svc-strip .sep { opacity: .38; }

/* Servicios: tres familias visuales */
.editorial-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.7rem);
  align-items: stretch;
}

.editorial-card {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: var(--surface);
}

.editorial-card:nth-child(n+2) { min-height: 540px; margin-block: 0; }

.editorial-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .5s ease;
}

.editorial-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 11, 16, .86), rgba(18, 11, 16, 0) 62%);
  pointer-events: none;
}

.editorial-card:hover > img { transform: scale(1.035); }

.editorial-card__body {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.15rem;
  align-items: end;
  padding: 1.65rem;
  color: #fff;
}

.editorial-card__index {
  padding-bottom: .25rem;
  font: 500 .68rem/1 var(--font-body);
  letter-spacing: .16em;
  color: var(--gold-bright);
}

.editorial-card__body strong {
  display: block;
  font: 600 clamp(1.65rem, 2.6vw, 2.5rem)/1 var(--font-display);
  color: #fff;
}

.editorial-card__body small {
  display: block;
  margin-top: .55rem;
  font-size: .76rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .76);
}

.editorial-card__body svg { width: 24px; }

/* Superficies: menos tarjetas flotantes */
.service-card,
.card,
.product-card,
.price-group,
.testi {
  border-radius: var(--radius);
  box-shadow: none;
}

.service-card {
  border-width: 0 0 1px;
  background: transparent;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

.service-card .ico,
.feature .ico,
.info-row .ico {
  border: 0;
  background: transparent;
  border-radius: 0;
}

.service-card .ico { width: 42px; height: 42px; }

.feature {
  padding: 1.4rem 1.1rem;
  border-left: 1px solid var(--line-strong);
  text-align: left;
}

.feature .ico { margin: 0 0 1rem; }

.rounded-img {
  border-radius: 8px;
  box-shadow: 22px 22px 0 rgba(var(--accent-rgb), .08);
}

.stack-imgs .img-main { border-radius: 8px 180px 8px 8px; }
.stack-imgs .img-badge { border-radius: 6px; }

.section-head.center h2::after,
.page-hero h1::after { display: none; }

/* Galería: carrusel uniforme, sin huecos y con navegación táctil. */
.gallery-carousel { position: relative; }

.gallery-carousel__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
  margin-bottom: 1rem;
}

.gallery-carousel__toolbar p {
  min-width: 4.5rem;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .14em;
  text-align: right;
}

.gallery-carousel__controls { display: flex; gap: .55rem; }

.gallery-carousel__controls button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-bright);
  background: var(--surface);
  transition: transform var(--motion-fast) ease, color var(--motion-fast) ease, background var(--motion-fast) ease, border-color var(--motion-fast) ease;
}

.gallery-carousel__controls button:hover {
  color: var(--on-accent);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.gallery-carousel__controls button:active { transform: translateY(0) scale(.96); }
.gallery-carousel__controls svg { width: 20px; height: 20px; }

.gallery.gallery--carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 1.5rem) / 3);
  grid-template-columns: none;
  grid-template-rows: none;
  gap: .75rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.gallery.gallery--carousel::-webkit-scrollbar { display: none; }

.gallery.gallery--carousel figure,
.gallery.gallery--carousel figure:nth-child(n) {
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.gallery.gallery--carousel figure::after {
  opacity: .14;
  background: linear-gradient(to top, rgba(10, 7, 6, .38), transparent 50%);
}

.gallery.gallery--carousel figure::before {
  content: "Ampliar";
  position: absolute;
  z-index: 2;
  right: .85rem;
  bottom: .8rem;
  color: #fff;
  font: 600 .64rem/1 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.gallery.gallery--carousel figure:hover::before,
.gallery.gallery--carousel figure:focus-visible::before {
  opacity: 1;
  transform: none;
}

.gallery.gallery--carousel figure:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: -3px;
}

/* Páginas interiores */
.page-hero {
  min-height: 510px;
  padding-top: calc(var(--header-h) + 5rem);
  padding-bottom: 6rem;
}

.page-hero h1 { max-width: 12ch; margin-inline: auto; }
.page-hero > .container > p:not(.eyebrow):not(.breadcrumb) { font-size: 1.08rem; }
.page-hero--photo .ph-bg { filter: blur(1px) brightness(.68) saturate(.55); }
[data-theme="dark"] .page-hero--photo::before {
  background:
    radial-gradient(80% 90% at 50% -10%, rgba(126, 63, 128, .22), transparent 60%),
    linear-gradient(180deg, rgba(24, 13, 29, .79), rgba(16, 9, 22, .87) 85%);
}
[data-theme="light"] .page-hero--photo .ph-bg { filter: blur(1px) brightness(.98) saturate(.72); }
[data-theme="light"] .page-hero--photo::before {
  background:
    radial-gradient(80% 90% at 50% -10%, rgba(114, 67, 167, .12), transparent 60%),
    linear-gradient(180deg, rgba(244, 240, 245, .84), rgba(235, 228, 239, .76) 85%);
}

.price-group {
  border-color: var(--line);
  overflow: clip;
}

.price-group__head {
  padding: 1.6rem 1.8rem;
  background: var(--surface-2);
}

.price-row { padding-block: 1.25rem; }

.product-card { border-color: var(--line); }
.product-media { aspect-ratio: 4 / 5; }
.product-body { padding: 1.5rem; }

.note-card { border-radius: 5px; }

/* Superficies oscuras: colores propios, independientes del tema global.
   Evita texto oscuro heredado sobre ciruela en el tema claro. */
.bg-plum {
  background:
    radial-gradient(90% 120% at 50% -10%, rgba(201, 162, 75, .12), transparent 58%),
    var(--panel-bg);
  border-color: rgba(232, 206, 136, .2);
  color: var(--panel-text);
}

.bg-plum h1,
.bg-plum h2,
.bg-plum h3,
.bg-plum h4,
.bg-plum strong,
.cta-band h2 {
  color: var(--panel-heading);
}

.bg-plum p,
.bg-plum .feature p,
.cta-band p {
  color: var(--panel-text);
}

.bg-plum .eyebrow,
.bg-plum .eyebrow[style],
.bg-plum .svc-strip,
.bg-plum .feature .ico {
  color: var(--panel-accent) !important;
}

.bg-plum .eyebrow::before,
.bg-plum .eyebrow.center::after {
  background: linear-gradient(90deg, transparent, var(--panel-accent));
}

.bg-plum .eyebrow.center::before {
  background: linear-gradient(90deg, var(--panel-accent), transparent);
}

.bg-plum .hero-badge {
  color: var(--panel-heading);
  background: rgba(232, 206, 136, .1) !important;
  border-color: rgba(232, 206, 136, .34) !important;
}

.bg-plum .btn-ghost-light {
  color: var(--panel-heading);
  border-color: rgba(251, 247, 255, .52);
  background: transparent;
}

.bg-plum .btn-ghost-light:hover {
  color: var(--panel-bg);
  background: var(--panel-heading);
  border-color: var(--panel-heading);
}

.site-footer {
  background: var(--panel-bg);
  color: var(--panel-text);
}

.site-footer h4,
.site-footer .brand-sub,
.site-footer .footer-links a:hover {
  color: var(--panel-accent);
}

.site-footer .brand-name,
.site-footer strong {
  color: var(--panel-heading) !important;
}

.site-footer p,
.site-footer .footer-links a {
  color: var(--panel-text);
}

.site-footer .footer-bottom {
  color: var(--panel-muted);
  border-color: rgba(232, 206, 136, .18);
}

[data-theme="light"] .lightbox__close,
[data-theme="light"] .lightbox__nav {
  color: #E8CE88;
  border-color: rgba(232, 206, 136, .45);
  background: rgba(43, 29, 52, .88);
}

[data-theme="light"] .lightbox__close:hover,
[data-theme="light"] .lightbox__nav:hover {
  color: #2B1D34;
  background: #E8CE88;
}

/* El display de los controles no debe anular el atributo semántico hidden. */
.lightbox__nav[hidden] { display: none !important; }

/* Movimiento y cambio de tema: una sola cadencia, sin saltos bruscos. */
:root {
  --motion-fast: 180ms;
  --motion-ui: 280ms;
  --motion-slow: 520ms;
}

html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

/* El navegador conserva ambas vistas durante el cambio entre documentos. */
@view-transition { navigation: auto; }

.site-header { view-transition-name: site-header; }
main { view-transition-name: page-content; }
.wa-float { view-transition-name: whatsapp-float; }
main:focus { outline: none; }

html.page-fetching .site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--gold-bright);
  transform-origin: left;
  animation: navigation-progress 1.2s ease-out forwards;
}

@keyframes navigation-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(.9); }
}

@keyframes page-out {
  to { opacity: 0; transform: translateY(-12px); }
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(12px); }
}

::view-transition-old(page-content) {
  animation: 320ms ease-in both page-out;
}

::view-transition-new(page-content) {
  animation: 420ms ease-out both page-in;
}

::view-transition-old(site-header),
::view-transition-new(site-header),
::view-transition-old(whatsapp-float),
::view-transition-new(whatsapp-float) {
  animation-duration: 180ms;
}

/* Inicio conserva su estado final al volver por navegación interna. */
html:is(:active-view-transition, .page-swapped) .hero--editorial .hero-badge,
html:is(:active-view-transition, .page-swapped) .hero--editorial .eyebrow,
html:is(:active-view-transition, .page-swapped) .hero--editorial .ht-line,
html:is(:active-view-transition, .page-swapped) .hero--editorial .hero-brand-script,
html:is(:active-view-transition, .page-swapped) .hero--editorial .lead,
html:is(:active-view-transition, .page-swapped) .hero--editorial .hero-actions,
html:is(:active-view-transition, .page-swapped) .hero-figure,
html:is(:active-view-transition, .page-swapped) .hero-swash path {
  animation: none;
  opacity: 1;
  transform: none;
}

html.route-transitioning .reveal { opacity: 1; transform: none; transition: none; }

body,
.site-header,
.hero--editorial,
.page-hero,
.bg-cream2,
.bg-plum,
.bg-gradient-rose,
.site-footer,
.card,
.service-card,
.price-group,
.product-card,
.note-card,
.chip,
.btn,
.theme-toggle,
.social-btn,
.hero-badge {
  transition:
    background-color var(--motion-ui) ease,
    color var(--motion-ui) ease,
    border-color var(--motion-ui) ease,
    box-shadow var(--motion-ui) ease;
}

a,
button,
.card-link,
.hero-link {
  transition-duration: var(--motion-fast);
  transition-timing-function: ease-out;
}

.theme-toggle { position: relative; }
.theme-toggle .i-sun,
.theme-toggle .i-moon,
[data-theme="light"] .theme-toggle .i-sun,
[data-theme="light"] .theme-toggle .i-moon {
  position: absolute;
  display: block;
  transition: opacity var(--motion-ui) ease, transform var(--motion-ui) var(--ease);
}

.theme-toggle .i-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .i-moon { opacity: 0; transform: rotate(-35deg) scale(.72); }
[data-theme="light"] .theme-toggle .i-sun { opacity: 0; transform: rotate(35deg) scale(.72); }
[data-theme="light"] .theme-toggle .i-moon { opacity: 1; transform: rotate(0deg) scale(1); }

.btn:active,
.theme-toggle:active,
.social-btn:active { transform: translateY(0) scale(.98); }

.btn:focus-visible,
.theme-toggle:focus-visible,
.nav a:focus-visible,
.social-btn:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.bg-plum .btn:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--panel-accent);
}

.cta-band { text-align: left; }
.cta-band .container { max-width: 960px; }
.cta-band .eyebrow.center { justify-content: flex-start; }
.cta-band h2 { max-width: 13ch; }
.cta-band p { margin-inline: 0 !important; }
.cta-band .actions { justify-content: flex-start; }

/* Footer */
.site-footer {
  padding-top: clamp(4.5rem, 8vw, 7rem);
  border-top: 1px solid rgba(var(--accent-rgb), .22);
}

.footer-grid { gap: 3rem; }
.site-footer h4 { letter-spacing: .18em; }

/* Movimiento más sereno */
.reveal { transform: translateY(16px); }
.reveal.in { transform: translateY(0); }

@media (max-width: 980px) {
  .hero--editorial { min-height: auto; }
  /* minmax(0,1fr): la columna puede encogerse al ancho del teléfono (1fr no baja del ancho mínimo del contenido) */
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .hero-figure { min-width: 0; }
  .hero-copy { padding-top: 2rem; }
  .hero-title .ht-line { max-width: 12ch; }
  .hero-figure { justify-self: center; width: min(92%, 520px); min-height: 580px; }
  .hero-frame, [data-theme="light"] .hero-frame { height: 580px; }
  .gallery.gallery--carousel { grid-auto-columns: calc((100% - .75rem) / 2); }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .site-header { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(18px); }
  .brand .brand-mark, [data-theme="light"] .brand .brand-mark { width: 48px; height: 48px; }
  .brand .brand-name { font-size: 1.15rem; }
  /* Menú desplegable: tamaño cómodo de lectura y de toque (el .82rem es solo para escritorio) */
  .nav { gap: 1.9rem; }
  .nav a { text-transform: none; letter-spacing: 0; font-size: 2rem; line-height: 1.15; }
  .nav .nav-cta { text-transform: uppercase; font-size: 1.05rem; letter-spacing: .06em; padding: 1rem 1.8rem; }
}

@media (max-width: 700px) {
  h1 { font-size: clamp(2.85rem, 13vw, 4.7rem); }
  h2 { font-size: clamp(2.15rem, 10vw, 3.3rem); }
  .section { padding-block: 4.8rem; }
  .hero--editorial { padding-top: calc(var(--header-h) + 2.5rem); }
  .hero--editorial::before { background-position: 55% center; }
  .hero--editorial::after { background: linear-gradient(180deg, rgba(22,13,27,.86), rgba(31,17,38,.76)); }
  [data-theme="light"] .hero--editorial::after {
    background: linear-gradient(180deg, rgba(242,237,248,.82), rgba(235,227,245,.78));
  }
  .hero-copy { width: 100%; max-width: 100%; }
  .hero-meta { align-items: flex-start; flex-direction: column; margin-bottom: 1.2rem; }
  .hero--editorial .lead { max-width: 100%; overflow-wrap: anywhere; }
  .hero-title .ht-line { max-width: 9.5ch; }
  .hero-title .hero-brand-script { margin-top: 1rem; max-width: 100%; }
  .hero-meta .eyebrow { letter-spacing: .2em; line-height: 1.6; flex-wrap: wrap; }
  .hero-figure { width: 100%; min-height: 480px; }
  .hero-frame, [data-theme="light"] .hero-frame { height: 480px; border-radius: 210px 210px 12px 12px; box-shadow: 14px 14px 0 rgba(var(--accent-rgb), .08); }
  .hero-figure-tag { left: 12px; bottom: 24px; }
  .editorial-services { grid-template-columns: 1fr; }
  .editorial-card,
  .editorial-card:first-child,
  .editorial-card:nth-child(n+2) { grid-column: auto; min-height: 440px; margin-block: 0; }
  .gallery.gallery--carousel { grid-auto-columns: 84%; }
  .gallery-carousel__toolbar { justify-content: space-between; }
  .page-hero { min-height: 460px; }
  .cta-band { text-align: center; }
  .cta-band .eyebrow.center { justify-content: center; }
  .cta-band h2 { margin-inline: auto; }
  .cta-band p { margin-inline: auto !important; }
  .cta-band .actions { justify-content: center; }
}

@media (max-width: 480px) {
  .brand .brand-text { display: none; }
  .hero-badge { margin-bottom: 1.2rem; }
  .hero-actions { gap: .8rem; }
  .editorial-card__body { padding: 1.3rem; }
  .editorial-card__body strong { font-size: 1.8rem; }
  .gallery.gallery--carousel { grid-auto-columns: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
