@font-face {
  font-family: 'Citrica';
  src: url('../fonts/Citrica-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/Comfortaa-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent:     #c9a87c;
  --bg:         #111010;
  --text-light: #f0ece4;
  --text-muted: rgba(200, 196, 188, 0.5);
  --nav-border: rgba(255, 255, 255, 0.06);
  --card-w:     44vw;       /* card width — smaller images */
  --card-gap:   2vw;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}



/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--text-light);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(240, 236, 228, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    transform   0.18s ease,
    width       0.25s ease,
    height      0.25s ease,
    border-color 0.25s ease;
}

body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 50px;
  height: 50px;
  border-color: var(--accent);
}


/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 48px;
  height: 72px;
  background: rgba(17, 16, 16, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
}

.nav-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  align-self: center;
  margin-right: 0px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--text-light);
  letter-spacing: 0.1em;
  font-size: 20px;
  font-weight: 400;
  font-family: 'Citrica', serif;
}

.nav-logo span {
  margin-left: 8px;
  color: var(--accent);
  font-weight: 300;
  font-family: 'Comfortaa', serif;
  font-size: 10px;
  position: relative;
  top: 3px;
}
/* Center links */
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 52px;
}

.nav-center a {
  text-decoration: none;
  color: rgba(240, 236, 228, 0.65);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 300;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav-center a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s ease;
}

.nav-center a:hover::after { width: 100%; }
.nav-center a:hover        { color: var(--accent); }

/* Social icons */
.nav-social {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-social a {
  color: rgba(240, 236, 228, 0.4);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.nav-social a:hover { color: var(--text-light); }

.nav-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}


/* ============================================================
   NAV DROPDOWN
============================================================ */
.nav-dropdown { position: relative; display: flex; align-items: center; }

.nav-dropbtn {
  background: none; border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; font-weight: 300;
  color: rgba(240, 236, 228, 0.6);
  display: flex; align-items: center; gap: 6px;
  position: relative; padding-bottom: 4px;
  cursor: none; transition: color .3s;
}
.nav-dropbtn::after {
  content: ''; position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .35s ease;
}
.nav-dropdown:hover .nav-dropbtn::after { width: 100%; }
.nav-dropdown:hover .nav-dropbtn        { color: var(--accent); }

.nav-dropbtn svg {
  width: 10px; height: 10px;
  stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform .3s ease; flex-shrink: 0;
}
.nav-dropdown:hover .nav-dropbtn svg { transform: rotate(180deg); }

/* Menu panel */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  background: rgba(17, 16, 16, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(240, 236, 228, 0.08);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Arrow tip on top of menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute; top: -5px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: rgba(17, 16, 16, 0.98);
  border-left: 1px solid rgba(240, 236, 228, 0.08);
  border-top:  1px solid rgba(240, 236, 228, 0.08);
}

/* Items */
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 28px;
  text-decoration: none;
  color: rgba(240, 236, 228, 0.55);
  font-size: 10px; letter-spacing: .24em;
  text-transform: uppercase; font-weight: 300;
  transition: color .25s, padding-left .25s;
}
.nav-dropdown-menu a::before {
  content: '';
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s ease; flex-shrink: 0;
}
.nav-dropdown-menu a:hover              { color: var(--text-light); padding-left: 36px; }
.nav-dropdown-menu a:hover::before      { width: 8px; }
.nav-dropdown-menu a + a               { border-top: 1px solid rgba(240, 236, 228, 0.05); }

.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 0; right: 0;
  height: 20px;
}



/* ============================================================
   CAROUSEL SECTION
   ============================================================ */
.carousel-section {
  margin-top: 72px;
  min-height: calc(100vh - 72px);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 60px;
  position: relative;
  overflow: hidden;
}

/* Progress bar — pinned at the very top of the section */
.carousel-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #BAA380;
  transition: width 0.85s cubic-bezier(0.77, 0, 0.175, 1);
}


/* ============================================================
   CAROUSEL TRACK
   ============================================================ */
.carousel-track-wrap {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}


/* ============================================================
   SLIDE CARDS
   ============================================================ */
.slide-card {
  flex: 0 0 var(--card-w);
  max-width: 680px;            /* smaller cap */
  margin-right: var(--card-gap);
  opacity: 0.3;
  transform: scale(0.96);
  transition: opacity 0.7s ease, transform 0.7s ease;
  cursor: none;
}

.slide-card.active {
  opacity: 1;
  transform: scale(1);
}

.slide-card-link {
  display: block;
  text-decoration: none;
}

/* Image wrapper — 16:11 ratio for smaller look */
.slide-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.slide-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease;
}

.slide-card:hover .slide-card-img-wrap img {
  transform: scale(1.05);
}

/* Caption */
.slide-card-caption {
  padding: 22px 4px 0;
}

.slide-card-caption h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(15px, 1.8vw, 24px);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 7px;
  color: var(--text-light);
}

.slide-card-caption p {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 300;
}


/* ============================================================
   CAROUSEL ARROWS
============================================================ */
.carousel-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  pointer-events: none;
  z-index: 10;
}

.arrow-btn {
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  pointer-events: all;
  transition: color 0.3s, transform 0.3s;
}

.arrow-btn:hover {
  color: var(--accent);
  transform: scale(1.2);
}

.arrow-btn svg {
  width: 35px;
  height: 35px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* ============================================================
   HAMBURGER & SIDEBAR — solo móvil/tablet
============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
  z-index: 1001;
  position: relative;
}


.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-light);
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-hamburger:hover span {
  background: var(--accent);
}

/* Overlay */
.nav-sidebar-overlay {
  display: block;
  pointer-events: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity .35s ease;
}
.nav-sidebar-overlay.visible {
  pointer-events: all;
  opacity: 1; 
}

/* Sidebar panel */
.nav-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: rgba(17,16,16,.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255,255,255,.06);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 32px 40px 48px;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
}
.nav-sidebar.open { transform: translateX(0); }

/* Close button */
.sidebar-close {
  align-self: flex-end;
  background: none; border: none;
  color: rgba(240,236,228,.5);
  cursor: none;
  padding: 4px;
  transition: color .3s;
  margin-bottom: 40px;
}
.sidebar-close:hover { color: var(--accent); }
.sidebar-close svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none; stroke-width: 1.5;
}

/* Logo en sidebar */
.sidebar-logo {
  text-decoration: none;
  color: var(--text-light);
  font-family: 'Citrica', serif;
  font-size: 22px; letter-spacing: .1em;
  margin-bottom: 52px; display: block;
}
.sidebar-logo span {
  color: var(--accent);
  font-family: 'Comfortaa', serif;
  font-size: 11px;
}

/* Links */
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.sidebar-links > a {
  text-decoration: none;
  color: rgba(240,236,228,.65);
  font-size: 11px; letter-spacing: .28em;
  text-transform: uppercase; font-weight: 300;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .3s;
}
.sidebar-links > a:hover { color: var(--accent); }

/* Dropdown dentro del sidebar */
.sidebar-dropdown { border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-dropbtn {
  width: 100%; background: none; border: none;
  text-align: left;
  color: rgba(240,236,228,.65);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; letter-spacing: .28em;
  text-transform: uppercase; font-weight: 300;
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: none; transition: color .3s;
}
.sidebar-dropbtn:hover { color: var(--accent); }
.sidebar-dropbtn svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform .3s;
}
.sidebar-dropdown.open .sidebar-dropbtn svg { transform: rotate(180deg); }

.sidebar-submenu {
  display: none;
  flex-direction: column;
  padding: 0 0 12px 16px;
  gap: 0;
}
.sidebar-dropdown.open .sidebar-submenu { display: flex; }
.sidebar-submenu a {
  text-decoration: none;
  color: rgba(240,236,228,.4);
  font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 300;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color .3s;
}
.sidebar-submenu a:hover { color: var(--text-light); }

/* Social en sidebar */
.sidebar-social {
  display: flex; gap: 20px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sidebar-social a {
  color: rgba(240,236,228,.35);
  text-decoration: none; display: flex;
  transition: color .3s;
}
.sidebar-social a:hover { color: var(--accent); }
.sidebar-social svg {
  width: 17px; height: 17px;
  fill: currentColor;
}

/* Mostrar hamburguesa y ocultar nav normal en móvil */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-center    { display: none; }
  .nav-social    { display: none; }
  .nav-sidebar-overlay { display: block; }
}


/* ============================================================
   OCULTAR CURSOR PERSONALIZADO EN DISPOSITIVOS TÁCTILES
============================================================ */
@media (hover: none) and (pointer: coarse) {
  .cursor,
  .cursor-ring {
    display: none !important;
  }
}

/* También por si queremos forzar con clase JS */
.touch-device .cursor,
.touch-device .cursor-ring {
  display: none !important;
}

/* ============================================================
   PRELOADER
============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #292928;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

.preloader-video {
  max-width: 55%;
  max-height: 55%;
  object-fit: contain;
}

/* Solo ocultar en iOS */
.ios .preloader-video {
  display: none !important;
}

/* ============================================================
   CAROUSEL RESPONSIVE
============================================================ */

/* En escritorio: 3 tarjetas visibles */
@media (min-width: 769px) {
  :root {
    --card-w: 44vw;
    --card-gap: 2vw;
  }
}

/* En móviles: 1 sola tarjeta grande */
/* ============================================================
   CAROUSEL — MÓVIL MÁS GRANDE
============================================================ */

@media (max-width: 768px) {
  :root {
    --card-w: 90vw;
    --card-gap: 4vw;
  }

  .slide-card {
    flex: 0 0 var(--card-w);
    max-width: none;
    margin-right: var(--card-gap);
    opacity: 0.35;
    transform: scale(0.90);
    transition: all 0.6s ease;
  }

  .slide-card.active {
    opacity: 1;
    transform: scale(1);
  }

  .slide-card-img-wrap {
    aspect-ratio: 16 / 11;
    overflow: hidden;
  }

  .carousel-track {
    padding: 0 4vw;
  }

  /* Ocultar flechas en móvil */
  .carousel-arrows {
    display: none !important;
  }
}

/* ============================================================
   OCULTAR FLECHAS EN CELULAR
============================================================ */
@media (max-width: 768px) {
  .carousel-arrows {
    display: none !important;
  }
}