:root {
  --bg:    #2b2329;
  --bg-2:  #241d22;
  --text:  #f2e6dd;
  --muted: rgba(242,230,221,.75);
  --card:  #f2d7c9;
  --accent: #d4607a;
  --border: rgba(242,230,221,.18);
  --shadow: 0 24px 60px rgba(0,0,0,.45);
  --max:   1100px;
  --radius: 14px;
  --ease:  cubic-bezier(.25,.8,.25,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ─── FONTS ─────────────────────────────────────────────── */
@font-face {
  font-family: "Galano Grotesque";
  src: url("fonts/GalanoGrotesque-Black.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Galano Grotesque";
  src: url("fonts/GalanoGrotesque-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Galano Grotesque";
  src: url("fonts/GalanoGrotesque-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ─── BASE ───────────────────────────────────────────────── */
body {
  margin: 0;
  font-family: "Galano Grotesque", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ─── KEYFRAMES ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ─── SCROLL REVEAL ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(.93);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* stagger para hijos directos */
.stagger > *:nth-child(1) { transition-delay: .05s; }
.stagger > *:nth-child(2) { transition-delay: .15s; }
.stagger > *:nth-child(3) { transition-delay: .25s; }
.stagger > *:nth-child(4) { transition-delay: .35s; }
.stagger > *:nth-child(5) { transition-delay: .45s; }

/* ─── TOP BAR ────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(36,29,34,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}
.topbar.scrolled {
  background: rgba(36,29,34,.97);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.topbar__inner {
  max-width: var(--max);
  margin: auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand__logo {
  height: 46px;
  width: auto;
  display: block;
  transition: opacity .25s;
}
.brand:hover .brand__logo { opacity: .85; }

.nav { display: flex; align-items: center; }
.nav a {
  margin-left: 28px;
  font-size: 13px;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--muted);
  position: relative;
  padding-bottom: 3px;
  transition: color .25s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--text);
  transition: width .3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  height: 420px;
  background:
    linear-gradient(100deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.2) 100%),
    url("images/hero.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--max);
  margin: auto;
  padding: 0 24px;
}

.hero h1,
.hero__title {
  font-family: "Galano Grotesque", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -1px;
  line-height: 1.05;
  margin: 0 0 14px;
  animation: slideRight .9s var(--ease) both;
}

.hero__sub {
  font-size: 15px;
  max-width: 420px;
  color: rgba(242,230,221,.88);
  line-height: 1.6;
  animation: fadeUp .9s .25s var(--ease) both;
}

/* ─── SECTIONS ───────────────────────────────────────────── */
.section {
  max-width: var(--max);
  margin: auto;
  padding: 80px 24px;
}

/* ─── PRODUCT TABS ───────────────────────────────────────── */
.product-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.tab {
  width: 148px;
  height: 128px;
  background: var(--card);
  color: #1e1a1d;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .06em;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  text-decoration: none;
}
.tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.08);
  opacity: 0;
  transition: opacity .25s;
}
.tab:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.tab:hover::before { opacity: 1; }

/* ─── SPLIT ──────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 70px;
  align-items: center;
}

.kicker {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 10px;
}

h1, h2 { font-family: "Galano Grotesque", sans-serif; font-weight: 900; }

.h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  margin: 0 0 18px;
  line-height: 1.1;
  letter-spacing: -.5px;
}

.p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* ─── MEDIA ──────────────────────────────────────────────── */
.media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.media:hover img { transform: scale(1.04); }

/* ─── GALLERY ────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 60px;
}

.thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  position: relative;
}
.thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(212,96,122,.35);
  opacity: 0;
  transition: opacity .3s;
}
.thumb:hover::after { opacity: 1; }
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.thumb:hover img { transform: scale(1.08); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: #e8cdbf;
  margin-top: 80px;
}

.footer__inner {
  max-width: var(--max);
  margin: auto;
  padding: 48px 24px 40px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.contact-box {
  border: 1.5px solid rgba(0,0,0,.18);
  border-radius: 10px;
  padding: 20px 24px;
  color: rgba(0,0,0,.55);
  font-size: 13.5px;
  line-height: 1.9;
  transition: border-color .25s, box-shadow .25s;
}
.contact-box:hover {
  border-color: rgba(0,0,0,.35);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.contact-box p { margin: 0; }
.contact-box strong { font-weight: 600; color: rgba(0,0,0,.75); }

.copyright {
  background: #2a2228;
  color: rgba(255,255,255,.5);
  font-size: 11.5px;
  letter-spacing: .04em;
  padding: 14px 24px;
  text-align: center;
}

/* ─── TAB CON VIDEO ──────────────────────────────────────── */
.tab--video { cursor: pointer; }

.tab__play {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
  opacity: .6;
  transition: opacity .25s, transform .3s var(--ease);
}
.tab--video:hover .tab__play {
  opacity: 1;
  transform: scale(1.2);
}

/* ─── VIDEO MODAL ────────────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.video-modal.open {
  pointer-events: all;
  opacity: 1;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.video-modal__box {
  position: relative;
  z-index: 1;
  width: min(90vw, 860px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  transform: scale(.92);
  transition: transform .4s var(--ease);
  background: #000;
}
.video-modal.open .video-modal__box {
  transform: scale(1);
}

.video-modal__player {
  width: 100%;
  display: block;
  max-height: 80vh;
  background: #000;
}

.video-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  background: rgba(0,0,0,.55);
  border: none;
  color: #fff;
  font-size: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  line-height: 1;
}
.video-modal__close:hover {
  background: rgba(255,255,255,.2);
  transform: scale(1.1);
}

/* ─── RESPONSIVE: ≤ 900px ────────────────────────────────── */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .product-tabs { flex-wrap: wrap; }
}

/* ─── RESPONSIVE: ≤ 800px ────────────────────────────────── */
@media (max-width: 800px) {
  .hero { height: 300px; }
  .product-tabs { gap: 14px; }
  .tab { width: 46%; height: 110px; font-size: 11px; }
  .h2 { font-size: 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer__inner { flex-direction: column; gap: 0; }
}

/* ─── RESPONSIVE: ≤ 380px ────────────────────────────────── */
@media (max-width: 380px) {
  .nav { display: none; }
  .hero { height: 240px; }
  .hero__sub { font-size: 12.5px; }
  .product-tabs { flex-direction: column; align-items: stretch; }
  .tab { width: 100%; height: 90px; font-size: 11px; }
  .h2 { font-size: 22px; }
  .gallery { grid-template-columns: 1fr; gap: 12px; }
  .contact-box { width: 100%; }
  .copyright { font-size: 11px; }
}
