/* ═══════════════════════════════════════════════════════════════
   HERO VARIANTES A y B · 2026-05-20
   Splash minimalista, sin h1 prominente, esquinas con elementos
   ═══════════════════════════════════════════════════════════════ */

.hero--splash {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

/* ─── SLIDER (3 fotos · drag/swipe gesture → cambio limpio con fade · 3 dots ─── */
.hero-slider {
  position: absolute;
  inset: 0;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
  z-index: 1;
}
.hero-slider:active { cursor: grabbing; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  bottom: clamp(20px, 3vh, 28px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dot {
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 12px 0;
  background-clip: content-box;
  cursor: pointer;
  transition: background 0.3s;
}
.hero-dot.is-active { background-color: #fff; background-clip: content-box; }
.hero-dot:hover { background-color: rgba(255,255,255,0.85); background-clip: content-box; }

.hero-overlay--soft {
  background:
    linear-gradient(90deg, rgba(15,15,14,0.82) 0%, rgba(15,15,14,0.58) 18%, rgba(15,15,14,0.30) 32%, transparent 48%),
    linear-gradient(180deg, rgba(15,15,14,0.22) 0%, rgba(15,15,14,0.05) 50%, rgba(15,15,14,0.45) 100%);
  pointer-events: none;
}

/* En variante A: cuando sidebar abierto, aplicar mismo gradiente para legibilidad */
.hero-a-body .hero-overlay {
  transition: background 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.hero-a-body:has(.splash-burger.is-open) .hero-overlay {
  background:
    linear-gradient(90deg, rgba(15,15,14,0.82) 0%, rgba(15,15,14,0.58) 18%, rgba(15,15,14,0.30) 32%, transparent 48%),
    linear-gradient(180deg, rgba(15,15,14,0.30) 0%, rgba(15,15,14,0.15) 45%, rgba(15,15,14,0.65) 100%);
}

/* ═══════════════════════════════════════════════════════════════
   VARIANTE A · hamburger izq + ANGIMEN der + contacto inf-der
   ═══════════════════════════════════════════════════════════════ */

.hero-a-body { overflow-x: hidden; }

.splash-burger {
  position: absolute;
  top: clamp(28px, 4vh, 48px);
  left: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 38px; height: 26px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 5;
  padding: 0;
}
.splash-burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: #fff;
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.splash-burger:hover span:nth-child(1) { transform: translateY(2px) scaleX(0.7); transform-origin: left; }
.splash-burger:hover span:nth-child(3) { transform: translateY(-2px) scaleX(0.85); transform-origin: left; }

.splash-brand {
  position: absolute;
  top: clamp(24px, 4vh, 48px);
  right: clamp(28px, 5vw, 64px);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.22em;
  color: #fff;
  text-decoration: none;
  z-index: 5;
  transition: color 0.3s;
}
.splash-brand:hover { color: #8B7355; }

.splash-contact {
  position: absolute;
  bottom: clamp(36px, 6vh, 64px);
  right: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 5;
  text-align: right;
}
.splash-contact-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.3s;
}
.splash-contact-line:hover { color: #8B7355; }

.splash-langs {
  position: absolute;
  bottom: clamp(36px, 6vh, 64px);
  left: clamp(28px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  z-index: 5;
}
.splash-langs a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.3s;
}
.splash-langs a:hover { color: #fff; }
.splash-langs .active { color: #fff; }

/* ─── BACKDROP localizado izq (panel oscuro solo bajo el menú) ─── */
.menu-backdrop {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 25vw;
  min-width: 260px;
  max-width: 400px;
  z-index: 4;
  background: linear-gradient(90deg,
    rgba(15,15,14,0.78) 0%,
    rgba(15,15,14,0.70) 55%,
    rgba(15,15,14,0.40) 82%,
    rgba(15,15,14,0) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.2, 0.6, 0.2, 1);
  cursor: pointer;
}
.menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 600px) {
  .menu-backdrop { width: 62vw; min-width: 220px; }
}

/* ─── SIDE MENU (variante A — sidebar lateral toggle por hamburger) ─── */

.side-menu {
  position: absolute;
  top: 50%;
  left: clamp(28px, 4vw, 56px);
  transform: translate(-12px, -50%);
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.side-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}
.side-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.side-list li { margin-bottom: 4px; }
.side-list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 8px 0;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.3s, gap 0.35s, color 0.3s;
  text-shadow: 0 1px 8px rgba(0,0,0,0.75), 0 0 2px rgba(0,0,0,0.5);
}
.side-list a:hover { opacity: 1; gap: 26px; }
.side-list .sl-num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.85);
  min-width: 24px;
}
.side-list .sl-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.005em;
  color: #fff;
  line-height: 1.1;
}
.side-list a:hover .sl-num { color: #8B7355; }
.side-list a:hover .sl-name { color: #8B7355; }

/* hamburger toggled state */
.splash-burger.is-open span:nth-child(1) { transform: translateY(12px) rotate(45deg); }
.splash-burger.is-open span:nth-child(2) { opacity: 0; }
.splash-burger.is-open span:nth-child(3) { transform: translateY(-12px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════
   VARIANTE B · ANGIMEN izq pequeño + sidebar cards lateral izq
   ═══════════════════════════════════════════════════════════════ */

.splash-brand-small {
  position: absolute;
  top: clamp(28px, 4vh, 48px);
  left: clamp(28px, 4vw, 56px);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.28em;
  color: #fff;
  text-decoration: none;
  z-index: 5;
  transition: color 0.3s;
}
.splash-brand-small:hover { color: #8B7355; }

.sidebar-menu {
  position: absolute;
  top: 50%;
  left: clamp(28px, 4vw, 56px);
  transform: translateY(-50%);
  z-index: 5;
}
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-list li {
  margin-bottom: 4px;
}
.sidebar-list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 8px 0;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.35s cubic-bezier(0.2, 0.6, 0.2, 1), gap 0.35s, color 0.35s;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.sidebar-list a:hover { opacity: 1; gap: 28px; }
.sl-num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.85);
  min-width: 24px;
}
.sl-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.005em;
  color: #fff;
  line-height: 1.1;
}
.sidebar-list a:hover .sl-num { color: #8B7355; }
.sidebar-list a:hover .sl-name { color: #8B7355; }

.splash-contact--sub .splash-contact-line {
  font-size: clamp(14px, 1.2vw, 16px);
  color: rgba(255,255,255,0.75);
}
.splash-langs--b {
  bottom: clamp(28px, 4vh, 40px);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* MOBILE: mantener el MISMO layout que desktop, solo escalando elementos */
@media (max-width: 900px) {
  .splash-brand        { font-size: 17px; letter-spacing: 0.18em; top: 22px; right: 22px; }
  .splash-brand-small  { font-size: 13px; letter-spacing: 0.24em; top: 22px; left: 22px; }
  .splash-burger       { top: 22px; left: 22px; width: 30px; height: 22px; }

  .splash-contact      { bottom: 24px; right: 22px; gap: 6px; }
  .splash-contact-line { font-size: 13px; }
  .splash-contact--sub .splash-contact-line { font-size: 12px; }

  .splash-langs        { bottom: 22px; left: 22px; font-size: 10px; gap: 6px; }
  .splash-langs--b     { bottom: 22px; }

  /* Sidebar B: lateral izquierdo, cards más pequeñas pero MISMO layout */
  .sidebar-menu { left: 20px; }
  .sidebar-list a { gap: 12px; padding: 6px 0; }
  .sl-num  { font-size: 10px; min-width: 20px; }
  .sl-name { font-size: 18px; }

  /* Side-menu A (toggle): lo mismo */
  .side-menu { left: 20px; }
  .side-list a { gap: 12px; padding: 6px 0; }
  .side-list .sl-num  { font-size: 10px; min-width: 20px; }
  .side-list .sl-name { font-size: 18px; }

  .hero-dots { bottom: 16px; }
  .hero-dot  { width: 22px; padding: 10px 0; }
}

@media (max-width: 480px) {
  /* Apretar un poco más en pantallas muy pequeñas, sin cambiar layout */
  .sl-name, .side-list .sl-name { font-size: 16px; }
  .splash-contact-line { font-size: 12px; }
  .splash-contact--sub .splash-contact-line { font-size: 11px; }
}
