/* ===========================
   House Collection — Main CSS
   =========================== */

* { box-sizing: border-box; }
/* overflow-x en el <body> no basta: los elementos position:fixed (el
   menú) escapan de su contención y siguen permitiendo scroll lateral
   en el <html>, que es quien de verdad manda en el viewport. */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: #E8E9EB;
  color: #1A1A1A;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
body.no-scroll { overflow: hidden; }

/* ---- Brand card (grid) ---- */
.brand-card { position: relative; overflow: hidden; flex: 1; }
.brand-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.brand-card:hover img { transform: scale(1.04); }
/* Doble viñeta: abajo para el nombre (ya existia) y arriba para la
   categoria, que si no siempre dependia del brillo de cada foto y en
   algunas quedaba ilegible (texto blanco sobre fondo claro). */
.brand-card .bc-ov {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 42%);
}
.brand-card .bc-lbl { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 32px 24px; }

/* ---- Overlay animations ---- */
.overlay-enter { animation: fadeIn .22s ease; }

/* Cinturon de seguridad: estos paneles van a pantalla completa (position:fixed)
   y por eso escapan del overflow-x:hidden del body. Si algun hijo se desborda
   (p.ej. una fila de categorias muy larga), que no arrastre la pagina entera. */
#collection-overlay,
#contact-overlay,
#mobile-menu {
  overflow-x: hidden;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- Category filter ---- */
.cat-item { cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.cat-item.active span { color: #1A1A1A; font-weight: 700; }
.cat-item.active .cat-line { display: block; }
.cat-line { display: none; height: 1px; background: #1A1A1A; }

/* ---- Brand list row ---- */
.brand-row { transition: background .15s ease; }
.brand-row:hover { background: rgba(26,26,26,.03); }

/* ---- Input reset ---- */
input, textarea, select { -webkit-appearance: none; appearance: none; }

/* ---- Colors ---- */
.color-dark    { color: #1A1A1A; }
.color-mid     { color: #666666; }
.color-light   { color: #999999; }
.color-white   { color: white; }
.color-white-80 { color: rgba(255,255,255,.8); }
.color-white-60 { color: rgba(255,255,255,.6); }
.color-white-50 { color: rgba(255,255,255,.5); }
.color-white-90 { color: rgba(255,255,255,.9); }

/* ---- Backgrounds ---- */
.bg-page       { background: #E8E9EB; }
.bg-white      { background: white; }
.bg-dark       { background: #1A1A1A; }

/* ---- Dividers ---- */
.divider       { height: 1px; background: #E0E0E0; }
.divider-dark  { height: 1px; background: #1A1A1A; }
.divider-white { height: 1px; background: white; }
.divider-footer { height: 1px; background: #333333; }

/* ---- Layout: paddings ---- */
.px-site       { padding-left: 80px; padding-right: 80px; }
.py-section    { padding-top: 64px; padding-bottom: 48px; }

/* ---- Header ---- */
.header-bar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  position: relative;
}

/* Evita que el header (position:fixed) parpadee/desaparezca durante el
   scroll con inercia en Safari/Chrome de iOS: fuerza su propia capa GPU. */
header.fixed {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.header-logo-wrap,
.header-logo-wrap--tall {
  width: 240px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.header-logo {
  height: 80px;
  width: 240px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

/* Dark (black) version of the logo for light backgrounds */
.header-logo--dark {
  filter: brightness(0) !important;
}

/* Logo del menú anclado: cabe con margen real dentro de la barra de 80px,
   sin sobresalir ni un pixel. */
.header-logo-wrap--float {
  width: 165px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.header-logo-wrap--float .header-logo {
  height: 68px;
  width: 165px;
}

.hero-big-logo-img {
  width: 260px;
}

/* ---- Mobile burger button ---- */
.mobile-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* X shape for close (white) */
.burger-x-1 {
  background: #1A1A1A;
  transform: rotate(45deg) translateY(1px);
  width: 22px;
}
.burger-x-2 {
  background: #1A1A1A;
  transform: rotate(-45deg) translateY(-1px);
  width: 22px;
}

/* X shape dark for overlays */
.burger-x-1-dark {
  background: #1A1A1A;
  transform: rotate(45deg) translateY(1px);
  width: 22px;
}
.burger-x-2-dark {
  background: #1A1A1A;
  transform: rotate(-45deg) translateY(-1px);
  width: 22px;
}

/* Overlay burger hidden by default */
.mobile-burger-overlay {
  display: none;
}

/* ---- Mobile menu ---- */
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.mobile-menu-link {
  display: block;
  padding: 20px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #1A1A1A;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease;
}
.mobile-menu-link:hover {
  background: rgba(26,26,26,.04);
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

/* ---- Overlays ---- */
.overlay-panel {
  padding: 48px 80px 64px;
}

.overlay-page-header {
  padding: 64px 80px 48px;
}

.overlay-filter {
  padding: 0 80px 32px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: thin;
}

.overlay-brand-list {
  padding: 0 80px 80px;
}

/* ---- Brand list columns ---- */
.brand-col-name     { width: 400px; flex-shrink: 0; }
.brand-col-category { width: 280px; flex-shrink: 0; }
.brand-col-origin   { width: 200px; flex-shrink: 0; }

/* ---- Category filter inactive ---- */
.cat-label-inactive {
  color: #999999;
}

/* ---- Section: Hero ---- */
.hero {
  position: relative;
  height: 900px;
  background-color: #3a342e;
  background-size: cover;
  background-position: center;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,.60);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding: 80px 80px 0;
}

.hero-title {
  font-size: 72px;
  line-height: .95;
}

.hero-scroll {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-line {
  height: 40px;
  width: 1px;
  background: rgba(255,255,255,.35);
}

/* ---- Section: Intro ---- */
.intro-section {
  position: relative;
  background: #E8E9EB;
  padding: 80px;
  align-items: center;
  justify-content: center;
  gap: 72px;
}

.intro-text-col {
  max-width: 460px;
}

.intro-right {
  padding-top: 40px;
  padding-left: 80px;
}

.intro-title {
  font-size: 42px;
  line-height: 1.05;
  color: #1A1A1A;
}

/* ---- Intro: foto de equipo en tarjeta, a juego con el resto de tarjetas del sitio ---- */
.intro-photo-col {
  flex: 0 0 auto;
  width: 380px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 40px 80px -40px rgba(26, 26, 26, .35),
    0 12px 32px -16px rgba(26, 26, 26, .22);
}

.intro-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 900 / 951;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
}

.intro-photo-caption {
  margin: 0;
  max-width: 380px;
  padding-left: 18px;
  border-left: 2px solid #C2956A;
  font-family: 'Geist Mono', monospace;
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: #8F5A3C;
}

/* ---- Section: Services ---- */
.service-card-1 { background: #C2956A; padding: 32px; }
.service-card-2 { background: #A38979; padding: 32px; }
.service-card-3 { background: #8F5A3C; padding: 32px; }

.service-title {
  font-size: 22px;
  line-height: 1.15;
}

.services-row { height: 420px; }

/* ---- Section: Brands ---- */
.section-title {
  font-size: 48px;
  color: #1A1A1A;
}

.brand-grid-row { height: 480px; }

/* ============================================================
   Servicios · 3 bloques full-bleed estilo interiorismo premium
   ============================================================ */
.svc2-section { position: relative; padding-bottom: 0; }

/* Strip · 3 cards lado a lado, full ancho, gap mínimo */
.svc2-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: #E8E9EB; /* el gap muestra el page bg */
}

.svc2-card {
  --mx: 50%;
  --my: 50%;
  --ty: 28px;
  --sc: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  padding: 44px 44px 40px;
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  cursor: default;
  transform: translateY(var(--ty)) scale(var(--sc));
  transform-origin: center center;
  opacity: 0;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform 1s cubic-bezier(.16,1,.3,1) var(--delay, 0ms),
              opacity .9s ease var(--delay, 0ms),
              filter .55s ease,
              box-shadow .55s ease;
}
.svc2-card.is-in { --ty: 0px; opacity: 1; }

/* Grano sutil para profundidad cinematográfica */
.svc2-grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(0,0,0,.18), transparent 65%);
  opacity: .9;
  transition: opacity .6s ease;
}

/* Spotlight blanco que sigue el cursor */
.svc2-card .svc2-spot {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(420px circle at var(--mx) var(--my),
              rgba(255,255,255,.16), transparent 60%);
  opacity: 0;
  transition: opacity .55s ease;
}

/* Number arriba a la derecha, decorativo enorme y MUY sutil */
.svc2-num {
  position: absolute;
  top: 32px; right: 36px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: .28em;
  color: rgba(255,255,255,.55);
  font-weight: 300;
}

/* Body con title + rule + desc anclado abajo */
.svc2-body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  align-self: end;
}

.svc2-title {
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.02;
  letter-spacing: -.012em;
  color: #fff;
  margin: 0;
}

.svc2-rule {
  display: block;
  width: 56px;
  height: 1px;
  background: rgba(255,255,255,.55);
  transform-origin: left center;
  transform: scaleX(.4);
  transition: transform .9s cubic-bezier(.16,1,.3,1) .15s, width .7s ease;
}
.svc2-card.is-in .svc2-rule { transform: scaleX(1); }

.svc2-desc {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.86);
  margin: 0;
  max-width: 36ch;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Foot · arrow esquina inferior derecha (aparece en hover) */
.svc2-foot {
  position: absolute; right: 28px; bottom: 28px;
  z-index: 3;
}
.svc2-arrow {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .55s cubic-bezier(.16,1,.3,1), background .35s ease, color .35s ease, border-color .35s ease;
}
.svc2-arrow svg { width: 18px; height: 18px; }

/* HOVER · desktop fino */
@media (hover: hover) and (pointer: fine) {
  /* Hover sobre el strip: las cards no-hovered se encogen y atenúan */
  .svc2-strip:hover .svc2-card:not(:hover) {
    --sc: .965;
    filter: brightness(.88) saturate(.92);
  }
  /* La card hovered se agranda y destaca */
  .svc2-card:hover {
    --sc: 1.06;
    z-index: 5;
    filter: brightness(1.06);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
  }
  .svc2-card:hover .svc2-spot { opacity: 1; }
  .svc2-card:hover .svc2-grain { opacity: 1; }
  .svc2-card:hover .svc2-rule { width: 96px; }
  .svc2-card:hover .svc2-arrow {
    opacity: 1; transform: translateY(0);
    background: #fff; color: #1A1A1A; border-color: #fff;
  }
}

/* ACTIVA · clic o tap (cualquier dispositivo), independiente del hover */
.svc2-strip.has-active .svc2-card:not(.is-active) {
  --sc: .965;
  filter: brightness(.88) saturate(.92);
}
.svc2-card.is-active {
  --sc: 1.06;
  z-index: 5;
  filter: brightness(1.06);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
}
.svc2-card.is-active .svc2-spot { opacity: 1; }
.svc2-card.is-active .svc2-grain { opacity: 1; }
.svc2-card.is-active .svc2-rule { width: 96px; }
.svc2-card.is-active .svc2-arrow {
  opacity: 1; transform: translateY(0);
  background: #fff; color: #1A1A1A; border-color: #fff;
}

/* TABLET (2 columnas, la 3ª full) */
@media (max-width: 1100px) {
  .svc2-strip { grid-template-columns: repeat(2, 1fr); }
  .svc2-strip > .svc2-card:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
  .svc2-card { padding: 36px 36px 32px; }
}

/* MOBILE · stack vertical */
@media (max-width: 720px) {
  .svc2-strip { grid-template-columns: 1fr; gap: 4px; }
  .svc2-card,
  .svc2-strip > .svc2-card:nth-child(3) { aspect-ratio: 5 / 4; padding: 32px 28px 28px; }
  .svc2-num { top: 22px; right: 24px; }
  .svc2-foot { right: 22px; bottom: 22px; }
  .svc2-title { font-size: clamp(24px, 7vw, 32px); }
  .svc2-desc { font-size: 14px; -webkit-line-clamp: 5; }
  .svc2-arrow { opacity: 1; transform: none; width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .svc2-card, .svc2-arrow, .svc2-rule, .svc2-grain, .svc2-spot { transition: none; }
  .svc2-card { transform: none; opacity: 1; }
  .svc2-rule { transform: scaleX(1); }
  .svc2-arrow { opacity: 1; transform: none; }
}

.bc-lbl-name {
  color: white;
}

.bc-lbl-cat {
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* ---- Section: CTA ---- */
.cta-section {
  position: relative;
  height: 500px;
  background-color: #2e2a24;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,.73);
}

.cta-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding: 0 80px;
}

.cta-title {
  font-size: 56px;
  line-height: 1;
}

/* ---- Section: Contact ---- */
.contact-content {
  padding: 80px;
}

.contact-title {
  font-size: 56px;
  color: #1A1A1A;
}

.contact-field-wrap {
  height: 48px;
  padding-bottom: 12px;
}

.contact-textarea-wrap {
  padding-top: 12px;
  height: 120px;
}

.contact-submit-line {
  height: 1px;
  background: #1A1A1A;
  width: 170px;
}

/* ---- Section: Collection Page ---- */
.collection-page-title {
  font-size: 56px;
  color: #1A1A1A;
}

.collection-page-desc {
  color: #666666;
  line-height: 1.6;
  max-width: 560px;
}

/* ---- Mega Menu: Featured image ---- */
.mega-featured-img {
  height: 280px;
}

.mega-featured-desc {
  color: #1A1A1A;
  line-height: 1.2;
}

/* ============================================================
   Footer — diseño "contacto al frente" (banda CTA + grid)
   Markup en includes/footer.php · clases .site-footer / .sf-*
   ============================================================ */
.site-footer {
  background: #1B1815;
  color: #EDE9E1;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
}
.site-footer a { text-decoration: none; color: inherit; transition: color .2s ease, opacity .2s ease, transform .2s ease; }

/* Banda superior con la llamada a la acción */
.sf-band {
  padding: 56px 80px 52px;
  border-bottom: 1px solid rgba(237,233,225,.10);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.sf-band-k {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: #C2956A; margin: 0 0 16px;
}
.sf-band-h {
  font-size: clamp(26px, 4.4vw, 48px); line-height: 1; letter-spacing: -.025em;
  font-weight: 600; margin: 0; max-width: 16ch; text-wrap: balance; color: #EDE9E1;
}
.sf-mailbtn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #C2956A; color: #161310;
  padding: 16px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
}
.sf-mailbtn:hover { background: #D8AC80; transform: translateY(-1px); }

/* Grid principal */
.sf-grid {
  padding: 46px 80px 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.sf-logo { width: 190px; height: auto; display: block; margin: 0; }
.sf-tag { color: #8E877B; font-size: 13.5px; line-height: 1.55; margin: 14px 0 0; max-width: 34ch; }

.sf-col { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.sf-label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: #7C7568; margin-bottom: 3px;
}
.sf-link { color: #CFC9BE; font-size: 14px; }
.sf-link:hover { color: #C2956A; }

/* Base: copyright + legales */
.sf-base {
  margin: 0 80px; padding: 20px 0 4px;
  border-top: 1px solid rgba(237,233,225,.10);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.sf-cr {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: .14em; color: #6E675E;
}
.sf-legal { display: flex; gap: 20px; }
.sf-legal a { font-size: 12px; color: #8E877B; }
.sf-legal a:hover { color: #C2956A; }

/* Crédito de agencia: franja final, centrada, discreta */
.sf-credit {
  background: #1B1815;
  color: #6E675E;
  text-align: center;
  font-size: 11px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(237,233,225,.08);
}
.sf-credit a { color: #8E877B; text-decoration: underline; text-underline-offset: 2px; }
.sf-credit a:hover { color: #C2956A; }

/* ---- Buttons / CTA links ---- */
.btn-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
}

.btn-cta-line {
  height: 1px;
  background: white;
  width: 220px;
}

.btn-cta-line--short {
  height: 1px;
  background: white;
  width: 170px;
}

.btn-submit-wrap {
  padding-top: 8px;
}

/* ---- Brand row arrow ---- */
.brand-row-arrow {
  color: #1A1A1A;
  font-size: 16px;
}

/* ---- Brand row name ---- */
.brand-row-name {
  font-size: 20px;
  color: #1A1A1A;
}

/* ---- Brand row padding ---- */
.brand-row-pad {
  padding: 20px 0;
  cursor: pointer;
}

/* ---- List header row ---- */
.list-header-row {
  padding: 16px 0;
}

/* ---- Misc typography ---- */
.text-body {
  line-height: 1.6;
}

.label-xs {
  letter-spacing: 0.3em;
}

/* ---- Select appearance reset ---- */
.select-reset {
  appearance: none;
  color: #999999;
}

/* ============================================================
   ANIMATIONS — Scroll Reveal
   ============================================================ */

/* Base: hidden until revealed */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children delays */
.stagger-1 { transition-delay: 0s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.4s; }
.stagger-4 { transition-delay: 0.6s; }

/* ============================================================
   ANIMATIONS — 3D Tilt Cards
   ============================================================ */
.tilt-card {
  perspective: 800px;
  transform-style: preserve-3d;
}

.tilt-card-inner {
  transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99),
              box-shadow 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card:hover .tilt-card-inner {
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

/* ============================================================
   ANIMATIONS — Brand card enhanced hover
   ============================================================ */
.brand-card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s ease;
}
.brand-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}
.brand-card .bc-ov {
  transition: opacity 0.4s ease;
}
.brand-card:hover .bc-ov {
  opacity: 0.85;
}
.brand-card .bc-lbl span {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease;
}
.brand-card:hover .bc-lbl span {
  transform: translateY(-4px);
}

/* ============================================================
   ANIMATIONS — Brand row hover slide
   ============================================================ */
.brand-row {
  transition: background .15s ease, padding-left .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-row:hover {
  background: rgba(26,26,26,.03);
  padding-left: 8px;
}
.brand-row .brand-row-arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-row:hover .brand-row-arrow {
  transform: translateX(4px) translateY(-2px);
}

/* ============================================================
   ANIMATIONS — Service cards hover lift
   ============================================================ */
.service-card-1,
.service-card-2,
.service-card-3 {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}
.service-card-1:hover,
.service-card-2:hover,
.service-card-3:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
}

/* ============================================================
   ANIMATIONS — Parallax helper
   ============================================================ */
.parallax-bg {
  transition: background-position 0.1s linear;
}

/* ============================================================
   RESPONSIVE — Mobile (<768px)
   ============================================================ */
@media (max-width: 767px) {

  /* ---- Paddings globales ---- */
  .px-site            { padding-left: 20px; padding-right: 20px; }
  .header-bar         { padding: 0 20px; height: 64px; }
  .overlay-panel      { padding: 32px 20px 40px; flex-direction: column; gap: 32px; }
  .overlay-page-header { padding: 40px 20px 32px; }
  .overlay-filter     { padding: 0 20px 24px; overflow-x: auto; flex-wrap: nowrap; gap: 16px; }
  .overlay-brand-list { padding: 0 20px 40px; }
  .py-section         { padding-top: 40px; padding-bottom: 32px; }

  /* ---- Header: hide desktop nav, show burger ---- */
  .header-nav-desktop { display: none !important; }
  .mobile-burger-main,
  .mobile-burger-overlay { display: flex; }

  /* Menú flotante tipo "isla" (iOS): al hacer un poco de scroll, el header
     deja de ir de borde a borde y se convierte en una píldora fija, siempre
     visible, en vez de quedarse pegado (o "desaparecer") arriba del todo. */
  header.fixed.header-floating {
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
    overflow: hidden;
    transition: top .3s ease, border-radius .3s ease, box-shadow .3s ease;
  }
  /* La barra NO se encoge al flotar: mismo alto siempre para que el logo
     nunca quede más grande que la caja que lo recorta (overflow:hidden). */
  header.fixed.header-floating .divider { display: none; }

  /* Header layout: logo centered, burger right */
  .header-bar {
    justify-content: flex-end;
    position: relative;
  }
  .header-logo-wrap,
  .header-logo-wrap--tall {
    width: 160px; height: 56px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .header-logo { width: 160px; height: 56px; }

  .header-logo-wrap--float {
    width: 136px; height: 56px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .header-logo-wrap--float .header-logo { width: 136px; height: 56px; }

  /* Burger lines color adapts to header state */
  .header-burger-line { background: white; }

  /* ---- Hero ---- */
  .hero { height: 100vh; height: 100dvh; }
  .hero-content { padding: 80px 20px 0; gap: 18px; }
  .hero-title { font-size: 36px; }
  .hero-scroll { bottom: 40px; }
  .hero-big-logo-img { width: 160px; }
  #hero-big-logo { top: 20px !important; z-index: 40 !important; }

  /* ---- Intro ---- */
  .intro-section { padding: 40px 20px; flex-direction: column; gap: 0; }
  .intro-right { padding-top: 24px; padding-left: 0; }
  .intro-title { font-size: 28px; }
  .intro-text-col { max-width: none; order: 1; }
  .intro-photo-col { order: 2; margin-top: 32px; width: 100%; }
  .intro-photo-img { aspect-ratio: 900 / 951; object-position: center; }
  .intro-photo-caption { font-size: 13px; max-width: none; }

  /* ---- Services ---- */
  .services-row { height: auto; flex-direction: column; }
  .service-card-1,
  .service-card-2,
  .service-card-3 { padding: 28px 20px; }
  .service-title { font-size: 20px; }

  /* ---- Section titles ---- */
  .section-title { font-size: 28px; }
  .collection-page-title { font-size: 32px; }

  /* ---- Brand grid ---- */
  .brand-grid-row { height: 220px; }
  /* En movil los nombres largos (3+ lineas) chocaban con la categoria: al
     ser un flex-row unico anclado abajo, ambos textos multi-linea acababan
     centrados en la misma franja y se pisaban. Se separan en dos esquinas
     fijas e independientes para que nunca compartan espacio. */
  .brand-card .bc-lbl {
    display: block;
    position: absolute;
    inset: 0;
    padding: 12px;
  }
  .bc-lbl-name {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .bc-lbl-cat {
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    text-align: right;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .bc-lbl-name--small { font-size: 11px !important; letter-spacing: .1em !important; }

  /* ---- Brand list (collection overlay) ---- */
  .brand-col-name     { width: auto; flex: 1; }
  .brand-col-category { display: none; }
  .brand-col-origin   { display: none; }
  .brand-row-name { font-size: 16px; }
  .list-header-row .brand-col-category,
  .list-header-row .brand-col-origin { display: none; }

  /* ---- CTA ---- */
  .cta-section { height: auto; min-height: 400px; }
  .cta-content { padding: 60px 20px; }
  .cta-title { font-size: 32px; }

  /* ---- Contact ---- */
  .contact-content { padding: 40px 20px; flex-direction: column; gap: 40px; }
  .contact-title { font-size: 32px; }

  /* ---- Mega menu featured ---- */
  .mega-featured-img { height: 180px; }

  /* ---- Footer ---- */
  .sf-band { padding: 40px 22px 36px; flex-direction: column; align-items: flex-start; gap: 22px; }
  .sf-mailbtn { width: 100%; justify-content: center; }
  .sf-grid { padding: 34px 22px 26px; grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .sf-brandcell { grid-column: 1 / -1; }
  .sf-logo { width: 168px; }
  .sf-base { margin: 0 22px; flex-direction: column; gap: 12px; align-items: flex-start; }

  /* ---- Brands section header ---- */
  .bg-page > .flex.items-end.justify-between { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ============================================================
   RESPONSIVE — Tablet (768px–1024px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) {

  .px-site            { padding-left: 40px; padding-right: 40px; }
  .header-bar         { padding: 0 40px; }
  .overlay-panel      { padding: 40px 40px 48px; }
  .overlay-page-header { padding: 48px 40px 36px; }
  .overlay-filter     { padding: 0 40px 28px; flex-wrap: wrap; }
  .overlay-brand-list { padding: 0 40px 60px; }

  .hero-content { padding: 80px 40px 0; }
  .hero-title { font-size: 52px; }
  .hero-big-logo-img { width: 200px; }
  #hero-big-logo { top: 10px !important; }

  .intro-section { padding: 60px 40px; gap: 40px; }
  .intro-right { padding-left: 40px; }
  .intro-title { font-size: 34px; }
  .intro-text-col { max-width: 320px; }
  .intro-photo-col { width: 280px; }

  .section-title { font-size: 38px; }
  .collection-page-title { font-size: 42px; }
  .cta-content { padding: 0 40px; }
  .cta-title { font-size: 42px; }
  .contact-content { padding: 60px 40px; }
  .contact-title { font-size: 42px; }

  .sf-band { padding: 48px 40px 44px; }
  .sf-grid { padding: 40px 40px 28px; grid-template-columns: 1.4fr 1fr 1fr; }
  .sf-brandcell { grid-column: 1 / -1; }
  .sf-base { margin: 0 40px; }

  .brand-col-name     { width: 240px; }
  .brand-col-category { width: 180px; }
  .brand-col-origin   { width: 140px; }
}

/* ---- Section: Concepto House Collection ---- */
/* Fundido suave con las secciones contiguas (ambas #E8E9EB) + lavado cálido */
.concepto-section {
  position: relative;
  display: flex;
  padding: 110px 80px;
  background:
    radial-gradient(55% 130% at 88% 50%, rgba(194,149,106,.12), transparent 70%),
    radial-gradient(45% 110% at 8% 85%, rgba(163,137,121,.08), transparent 70%),
    linear-gradient(180deg, #E8E9EB 0%, #ECE7E0 26%, #EDE6DC 50%, #ECE7E0 74%, #E8E9EB 100%);
}
.concepto-left  { flex: 1; display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.concepto-right { flex: 1; padding-left: 80px; display: flex; align-items: center; }

.concepto-panel {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 60px 56px;
  border-radius: 2px;
  background-color: #C2956A;
  box-shadow:
    0 40px 80px -40px rgba(143, 90, 60, .55),
    0 12px 32px -16px rgba(143, 90, 60, .30);
}
/* Grano y luz, mismo lenguaje que las tarjetas de servicios */
.concepto-panel::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(0,0,0,.16), transparent 65%);
}
/* Monograma decorativo, muy sutil */
.concepto-panel::after {
  content: 'HC';
  position: absolute; top: 24px; right: 32px;
  font-family: 'Geist Mono', monospace;
  font-weight: 100;
  font-size: 88px;
  line-height: 1;
  color: rgba(255,255,255,.10);
  pointer-events: none;
}
.concepto-panel-label {
  position: relative;
  display: block;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 22px;
}
.concepto-p {
  position: relative;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,.95);
}
.concepto-p--closing {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.28);
  font-weight: 600;
  letter-spacing: .01em;
}

@media (max-width: 1100px) {
  .concepto-section { padding: 70px 40px; }
  .concepto-right   { padding-left: 40px; }
  .concepto-panel   { padding: 44px 40px; }
}
@media (max-width: 768px) {
  .concepto-section { flex-direction: column; padding: 56px 20px; }
  .concepto-right   { padding-left: 0; padding-top: 36px; }
  .concepto-panel   { padding: 36px 28px; }
  .concepto-panel::after { font-size: 64px; top: 18px; right: 22px; }
}

/* ============================================================
   RESPONSIVE — Ventanas de escritorio bajas (portatiles, paneles
   embebidos): el hero fijo de 900px no cabe y el logo grande
   queda pegado al borde superior sin aire, tapando el titulo.
   ============================================================ */
@media (min-width: 768px) and (max-height: 760px) {
  .hero { height: 100vh; height: 100dvh; }
  .hero-big-logo-img { width: 190px; }
  #hero-big-logo { top: 8px; }
  .hero-content { padding-top: 64px; gap: 18px; }
}
