/* ===========================================
   D'LORENS — css/style.css (ORDENADO Y LIMPIO)
   - Mantiene tu diseño y comportamiento
   - Elimina duplicados y normaliza patrones
   - Agrupa por secciones: Base > Layout > Header/Nav > Components > Sections > Modals > Animations > Responsive
   =========================================== */

/* Fonts loaded in HTML:
   Inter + Playfair Display
*/

/* =========================
   Tokens / Variables
   ========================= */
:root{
  --bg: #f6f2ec;
  --bg2:#fbf8f3;
  --card:#ffffff;
  --ink:#1d1d1d;
  --muted:#66605a;
  --line: rgba(22,18,15,.12);

  /* Brand: tones inspired by logo */
  --brand:#8b5a2b;     /* terracota / madera */
  --brand2:#c98b4d;    /* dorado cálido */
  --coal:#121212;      /* negro carbón */
  --shadow: 0 18px 40px rgba(0,0,0,.10);

  --radius: 18px;
  --radius2: 26px;

  --ease: cubic-bezier(.2,.75,.15,1);
  --ease2: cubic-bezier(.2,.9,.1,1);

  --container: 1180px;
  --container-wide: 1480px;
  --headerH: 92px;
}

/* =========================
   Base / Reset
   ========================= */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1000px 600px at 20% -10%, rgba(201,139,77,.12), transparent 55%),
    radial-gradient(900px 500px at 100% 10%, rgba(139,90,43,.10), transparent 55%),
    var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* =========================
   Page Loader
   ========================= */
.page-loader{
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  background:
    radial-gradient(800px 480px at 20% 15%, rgba(201,139,77,.18), transparent 60%),
    radial-gradient(800px 480px at 90% 10%, rgba(139,90,43,.16), transparent 60%),
    rgba(12,12,12,.96);
  color: rgba(255,255,255,.9);
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.page-loader.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader__inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.page-loader__logo{
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
  animation: loaderPulse 2.2s var(--ease2) infinite;
}
.page-loader__ring{
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: rgba(201,139,77,.9);
  animation: loaderSpin 1.1s linear infinite;
}
.page-loader__text{
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; }
input, select, textarea{ font: inherit; color: inherit; }

/* =========================
   Utilities / Layout
   ========================= */
.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}
.container--wide{
  width: min(var(--container-wide), calc(100% - 28px));
}
.section{ padding: 84px 0; }
.section--alt{
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.65));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section__title{
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: .2px;
  margin: 0 0 6px;
}
.section__desc{
  margin: 0;
  max-width: 650px;
  color: var(--muted);
  line-height: 1.55;
}
.section__tools{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Prevent scroll when overlays are open */
.no-scroll{ overflow: hidden; }

/* =========================
   Buttons
   ========================= */
.btn{
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  letter-spacing: .1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    transform .2s var(--ease),
    box-shadow .2s var(--ease),
    background .2s var(--ease),
    border-color .2s var(--ease);
}
.btn:active{ transform: translateY(1px); }

.btn--small{
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 13px;
}

.btn--primary{
  background: linear-gradient(135deg, var(--brand), #6e4523);
  color: #fff;
  box-shadow: 0 14px 26px rgba(139,90,43,.22);
}
.btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(139,90,43,.28);
}

.btn--ghost{
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--ghost:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0,0,0,.08);
  background: rgba(255,255,255,.82);
}

.btn--gold{
  background: linear-gradient(135deg, rgba(201,139,77,1), rgba(139,90,43,1));
  color: rgba(18,18,18,.96);
  box-shadow: 0 16px 34px rgba(201,139,77,.22);
}
.btn--gold:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(201,139,77,.26);
}

/* =========================
   Hero / Slider
   ========================= */
.hero{
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: calc(var(--headerH) + clamp(12px, 2svh, 28px));
  padding-bottom: clamp(28px, 6svh, 72px);
  background:
    radial-gradient(800px 500px at 20% 10%, rgba(201,139,77,.12), transparent 65%),
    radial-gradient(800px 500px at 90% 20%, rgba(139,90,43,.10), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.24)),
    var(--coal);
}
.hero--slider::before{ display: none; }

body.force-motion .header:not(.is-scrolled){
  background: rgba(10,10,10,.12);
}

@media (max-width: 720px){
  body.force-motion .header:not(.is-scrolled){
    background: rgba(12,12,12,.66);
  }
}

.hero__slides{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__slide{
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .9s var(--ease2);
  will-change: opacity, transform;
  filter: saturate(1.08) contrast(1.04) brightness(1.04);
}
.hero__image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
}
.hero__slide.is-active{
  opacity: 1;
  animation: heroKen 16s var(--ease2) infinite alternate;
}

.hero__overlay{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(4,4,4,.48) 0%,
      rgba(11,9,7,.34) 34%,
      rgba(0,0,0,.10) 62%,
      rgba(0,0,0,.18) 100%
    ),
    linear-gradient(180deg,
      rgba(0,0,0,.28) 0%,
      rgba(0,0,0,.03) 30%,
      rgba(0,0,0,.08) 62%,
      rgba(0,0,0,.28) 100%
    ),
    radial-gradient(700px 430px at 38% 50%, rgba(0,0,0,.10), transparent 74%),
    linear-gradient(0deg, rgba(110,69,35,.06), rgba(110,69,35,.06));
}

.hero__content{
  position: relative;
  z-index: 1;
  padding: 64px 0 72px;
  color: #fff;
  max-width: 860px;
}
.hero__badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(8,8,8,.28);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  font-weight: 600;
  letter-spacing: .2px;
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(0,0,0,.20);
}
.hero__title{
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.04;
  margin: 18px 0 14px;
  letter-spacing: .2px;
  text-shadow:
    0 2px 6px rgba(0,0,0,.58),
    0 16px 36px rgba(0,0,0,.58);
}
.hero__subtitle{
  margin: 0 0 24px;
  max-width: 720px;
  color: rgba(255,255,255,.92);
  line-height: 1.62;
  font-size: 16px;
  font-weight: 500;
  text-shadow:
    0 2px 5px rgba(0,0,0,.60),
    0 12px 28px rgba(0,0,0,.48);
}
.hero__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero__stats{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero .btn--ghost{
  background: rgba(255,255,255,.80);
  border-color: rgba(255,255,255,.55);
  color: rgba(24,20,16,.94);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}
.hero .btn--ghost:hover{
  background: rgba(255,255,255,.92);
}
.stat{
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(9,9,9,.34);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(10px);
  min-width: 170px;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}
.stat__num{
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .3px;
}
.stat__lbl{
  color: rgba(255,255,255,.88);
  font-size: 12px;
  margin-top: 4px;
}

.hero__scrollhint{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.70);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.mouse{
  width: 22px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.40);
  border-radius: 999px;
  position: relative;
}
.mouse::after{
  content: '';
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255,255,255,.75);
  animation: wheel 1.4s infinite var(--ease);
}

/* Slider dots */
.hero__dots{
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.heroDot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.18);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.heroDot.is-active{
  background: rgba(201,139,77,.85);
  border-color: rgba(201,139,77,.95);
  transform: scale(1.1);
}

/* =========================
   Marquee
   ========================= */
.marqueeSection{
  padding: 18px 0;
  background: rgba(255,255,255,.72);
  border-top: 1px solid rgba(22,18,15,.10);
  border-bottom: 1px solid rgba(22,18,15,.10);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.marquee{ width: 100%; overflow: hidden; }
.marquee__track{
  display: flex;
  gap: 18px;
  align-items: center;
  width: max-content;
  padding: 0 14px;
  color: rgba(83,58,37,.72);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  animation: marqueeX 18s linear infinite;
}
.marquee__track span{ white-space: nowrap; }

/* =========================
   Colecciones (Lux Rail)
   ========================= */
.section--lux{
  position: relative;
  overflow: hidden;
  isolation: isolate;

  background:
    radial-gradient(1100px 520px at 15% 0%, rgba(201,139,77,.28), transparent 62%),
    radial-gradient(900px 520px at 90% 10%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(62,46,34,.88), rgba(44,34,28,.90));
  color: rgba(255,255,255,.92);
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.16);

  /* Vars set by JS */
  --luxP: 0;
  --luxGold: 0;
  --luxSilver: 0;
  --luxSweep: -120%;
}
.section--lux > .container{
  position: relative;
  z-index: 3;
}

/* Gold wash */
.section--lux::before{
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 1;
  pointer-events: none;
  opacity: var(--luxGold);

  background:
    radial-gradient(980px 620px at 14% 0%, rgba(201,139,77,.75), transparent 62%),
    radial-gradient(820px 520px at 88% 18%, rgba(255,233,200,.24), transparent 64%),
    conic-gradient(from 210deg at 50% 50%,
      rgba(201,139,77,0),
      rgba(201,139,77,.22),
      rgba(255,255,255,0)
    );

  mix-blend-mode: screen;
  filter: blur(10px) saturate(1.35);
  transform: translate3d(0,0,0);
}

/* Silver wash + grain */
.section--lux::after{
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 2;
  pointer-events: none;
  opacity: var(--luxSilver);

  background:
    radial-gradient(900px 560px at 76% 14%, rgba(220,230,255,.26), transparent 60%),
    radial-gradient(720px 520px at 20% 86%, rgba(255,255,255,.14), transparent 62%),
    repeating-linear-gradient(115deg,
      rgba(255,255,255,.055) 0 1px,
      rgba(0,0,0,0) 1px 10px
    );

  mix-blend-mode: soft-light;
  filter: blur(2px) contrast(1.12);
  transform: translate3d(0,0,0);
}

/* Sweep highlight over railWrap */
.section--lux .railWrap{
  position: relative;
  z-index: 4;
}
.section--lux .railWrap::before{
  content: "";
  position: absolute;
  top: -50px;
  bottom: -50px;
  left: -40%;
  width: 60%;
  pointer-events: none;

  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,139,77,.00) 18%,
    rgba(201,139,77,.28) 45%,
    rgba(255,255,255,.14) 55%,
    rgba(201,139,77,.20) 62%,
    rgba(201,139,77,.00) 82%,
    transparent 100%
  );

  opacity: var(--luxGold);
  filter: blur(.4px);
  transform: translateX(var(--luxSweep)) skewX(-14deg);
}

/* Panel responds to Gold/Silver */
.section--lux .railFocus{
  box-shadow:
    0 18px 42px rgba(0,0,0,.20),
    0 0 0 1px rgba(201,139,77, var(--luxGold)),
    0 0 80px rgba(201,139,77, calc(var(--luxGold) * .25));
}
.section--lux .section__title{ color: rgba(255,255,255,.96); }
.section--lux .section__desc{ color: rgba(255,255,255,.72); }

/* Rail controls */
.railBtn{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.90);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.railBtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}

.railWrap{
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 980px){
  .railWrap{ grid-template-columns: 1fr; }
}

.rail{
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 8px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
}
.rail::-webkit-scrollbar{ height: 10px; }
.rail::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0);
  background-clip: padding-box;
}

.railCard{
  position: relative;
  flex: 0 0 auto;
  min-width: 340px;
  height: 460px;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  display: block;

  background-image: var(--img);
  background-size: cover;
  background-position: center;

  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 42px rgba(0,0,0,.24);
  transform: translateY(0);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.railCard::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.36) 72%, rgba(0,0,0,.58) 100%);
}
.railCard:hover{
  transform: translateY(-3px);
  border-color: rgba(201,139,77,.45);
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
}
.railCard.is-active{
  border-color: rgba(201,139,77,.70);
  box-shadow: 0 24px 68px rgba(0,0,0,.32);
}
.railCard:focus{
  outline: 3px solid rgba(201,139,77,.55);
  outline-offset: 2px;
}

.railCard__cap{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 14px;
  border-radius: 18px;
  background: rgba(32,24,18,.34);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(14px);
}
.railCard__t{
  font-family: 'Playfair Display', serif;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 18px;
  margin: 0 0 6px;
}
.railCard__d{
  color: rgba(255,255,255,.72);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
}

/* Portada: colecciones contenidas en una cuadrícula estable. */
#colecciones .railWrap{
  display: block;
}
#colecciones .rail{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  scroll-snap-type: none;
}
#colecciones .railCard{
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  scroll-snap-align: none;
}
#colecciones .railCard > a{
  display: block;
  width: 100%;
  height: 100%;
}
#colecciones .railCard img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
#colecciones .railCard__cap{
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 12px;
  border-radius: 14px;
}
#colecciones .railCard__t{
  font-size: 15px;
  letter-spacing: .06em;
}
#colecciones .railCard__d{
  font-size: 12px;
}

@media (max-width: 1280px){
  #colecciones .rail{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #colecciones .railCard{ aspect-ratio: 4 / 3; }
}

@media (max-width: 820px){
  #colecciones .rail{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px){
  #colecciones .rail{ grid-template-columns: 1fr; gap: 14px; }
  #colecciones .railCard{
    min-width: 0;
    height: auto;
    aspect-ratio: 16 / 10;
  }
  #colecciones .railCard__cap{ padding: 11px 12px; }
}

.railFocus{
  position: relative;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(16px);
  padding: 18px;
  box-shadow: 0 18px 42px rgba(0,0,0,.20);
}
.railFocus__kicker{
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(255,255,255,.60);
  margin-bottom: 10px;
}
.railFocus__title{
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.railFocus__desc{
  color: rgba(255,255,255,.74);
  line-height: 1.6;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
}
.railFocus__cta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.section--lux .btn--ghost{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.90);
}
.section--lux .btn--ghost:hover{
  background: rgba(255,255,255,.10);
  box-shadow: 0 14px 26px rgba(0,0,0,.18);
}
.railFocus__micro{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pill{
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(201,139,77,.14);
  border: 1px solid rgba(201,139,77,.22);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.88);
}
.pill--silver{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.88);
}
.railFocus__foot{ margin-top: 14px; }

/* =========================
   Masonry (Projects)
   ========================= */
.masonry{
  column-count: 3;
  column-gap: 14px;
}
.masonry__item{
  width: 100%;
  margin: 0 0 14px;
  display: inline-block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,.75);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.masonry__item:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(139,90,43,.22);
}
.masonry__item img{
  width: 100%;
  height: auto;
  transform: scale(1.02);
  transition: transform .5s var(--ease2);
}
.masonry__item:hover img{ transform: scale(1.06); }

/* =========================
   Clients (Logo Strip — always color)
   ========================= */
.logoStrip{
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  overflow: hidden;
  padding: 21px 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.logoStrip__track{
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 0 18px;
  will-change: transform;
  animation: marquee 28s linear infinite;
}
.logoStrip:hover .logoStrip__track{ animation-play-state: paused; }
.logoStrip__track img{
  height: 51px;
  width: auto;
  filter: none;
  opacity: 1;
  transform: none;
}
.logoStrip__track img:hover{
  filter: none;
  opacity: 1;
  transform: none;
}

/* Trust row */
.trust{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.trust__item{
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 14px;
}
.trust__k{
  font-weight: 900;
  letter-spacing: .2px;
  margin-bottom: 6px;
}
.trust__v{
  color: var(--muted);
  line-height: 1.45;
  font-weight: 600;
  font-size: 13px;
}

/* =========================
   Split Section (Nosotros)
   ========================= */
.split{
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 18px;
  align-items: start;
}
.split__text{
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 22px;
  box-shadow: 0 12px 26px rgba(0,0,0,.05);
}
.split__media{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bullets{
  margin: 16px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bullet{
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.bullet__dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  box-shadow: 0 8px 18px rgba(139,90,43,.22);
}
.bullet__t{
  font-weight: 900;
  letter-spacing: .2px;
}
.bullet__d{
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  margin-top: 2px;
}
.split__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Prestige stack */
.stack{
  position: relative;
  height: 260px;
  border-radius: var(--radius2);
  overflow: hidden;
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
}
.stack__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .55s var(--ease2), transform .9s var(--ease2);
}
.stack__img.is-active{
  opacity: 1;
  transform: scale(1);
}

/* People box */
.people{
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 14px;
  box-shadow: 0 12px 26px rgba(0,0,0,.05);
}
.people__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.people__t{
  font-weight: 900;
  letter-spacing: .2px;
}
.people__d{
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  margin-top: 2px;
}
.people__row{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.people__row img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
  transition: transform .2s var(--ease);
}
.people__row img:hover{ transform: translateY(-2px); }

/* =========================
   CTA
   ========================= */
.cta{
  padding: 72px 0;
  background:
    radial-gradient(900px 420px at 15% 10%, rgba(201,139,77,.32), transparent 65%),
    radial-gradient(900px 420px at 90% 10%, rgba(255,242,218,.18), transparent 65%),
    linear-gradient(180deg, rgba(88,62,41,.84), rgba(65,47,35,.86));
  color: rgba(255,255,255,.92);
}
.cta__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cta__title{
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.2vw, 44px);
  margin: 0 0 8px;
  line-height: 1.08;
}
.cta__desc{
  margin: 0;
  max-width: 640px;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
}
.cta__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* =========================
   Reveal / Animations
   ========================= */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: var(--rd, 0ms);
}
.reveal.is-in{ opacity: 1; transform: none; }

.fade-up{
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .72s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

/* Keyframes */
@keyframes heroKen{
  from{ transform: scale(1); }
  to{ transform: scale(1.06); }
}
@keyframes wheel{
  0%{ transform: translate(-50%, 0); opacity: 1; }
  60%{ transform: translate(-50%, 10px); opacity: .35; }
  100%{ transform: translate(-50%, 0); opacity: 1; }
}
@keyframes marqueeX{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@keyframes fadeUp{
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes loaderSpin{
  to{ transform: rotate(360deg); }
}
@keyframes loaderPulse{
  0%, 100%{ transform: scale(1); opacity: .95; }
  50%{ transform: scale(1.06); opacity: 1; }
}
@keyframes pop{
  from{ opacity: 0; transform: translateY(8px) scale(.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideUp{
  from{ opacity: 0; transform: translateY(24px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px){
  .masonry{ column-count: 2; }
  .split{ grid-template-columns: 1fr; }
  .cta__inner{ flex-direction: column; align-items: flex-start; }

  .railCard{ min-width: 80%; height: 460px; }
}
@media (max-width: 720px){
  :root{ --headerH: 78px; }
  html{ scroll-behavior: auto; }
  .section{ padding: 64px 0; }
  .section__head{ flex-direction: column; align-items: flex-start; }
  .section__tools{ justify-content: flex-start; }
  .masonry{ column-count: 2; column-gap: 12px; }
  .hero{
    min-height: 100svh;
    align-items: flex-start;
    padding-top: calc(var(--headerH) + 8px);
  }
  .hero__overlay{
    background:
      linear-gradient(180deg,
        rgba(0,0,0,.48) 0%,
        rgba(0,0,0,.22) 34%,
        rgba(0,0,0,.26) 68%,
        rgba(0,0,0,.48) 100%
      ),
      linear-gradient(90deg, rgba(0,0,0,.38), rgba(0,0,0,.08)),
      linear-gradient(0deg, rgba(110,69,35,.06), rgba(110,69,35,.06));
  }
  .hero__content{ padding: 36px 0 52px; }
  .hero__title{ font-size: clamp(28px, 7vw, 40px); }
  .hero__subtitle{ font-size: 14px; margin-bottom: 18px; }
  .hero__badge{ backdrop-filter: none; background: rgba(8,8,8,.30); }
  .hero__stats{
    gap: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat{
    min-width: 0;
    padding: 10px 12px;
    backdrop-filter: none;
    background: rgba(8,8,8,.34);
  }
  .stat__num{ font-size: 16px; }
  .stat__lbl{ font-size: 11px; }
  .hero__slide{ filter: saturate(1.06) contrast(1.03) brightness(1.02); }

  .section--lux::before,
  .section--lux::after,
  .section--lux .railWrap::before{
    display: none;
  }
  .railFocus,
  .railCard__cap{
    backdrop-filter: none;
  }
  .marqueeSection{ backdrop-filter: none; }
  .form__row{ grid-template-columns: 1fr; }
  .trust{ grid-template-columns: 1fr; }
}
@media (max-width: 480px){
}
