/* ===== FONTS ===== */
@font-face {
  font-family: 'BebasNeue';
  src: url('../assets/fonts/Bebas Neue/BebasNeue Regular.otf') format('opentype');
  font-weight: 400;
}
@font-face {
  font-family: 'BebasNeue';
  src: url('../assets/fonts/Bebas Neue/BebasNeue Bold.otf') format('opentype');
  font-weight: 700;
}
@font-face {
  font-family: 'BebasNeue';
  src: url('../assets/fonts/Bebas Neue/BebasNeue Book.otf') format('opentype');
  font-weight: 300;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/Montserrat/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/Montserrat/Montserrat-Medium.ttf') format('truetype');
  font-weight: 500;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/Montserrat/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/Montserrat/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
}

:root {
  --coral:   #FF664D;
  --yellow:  #F7E834;
  --celeste: #A2C1C4;
  --cream:   #F7F1E4;
  --white:   #F9F9F9;
  --dark:    #212121;
  --strip-w: 80px;
  --font-h:  'BebasNeue', sans-serif;
  --font-b:  'Montserrat', sans-serif;
  --ease-acc: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body { font-family: var(--font-b); background: var(--dark); cursor: none; }
img    { display: block; max-width: 100%; }
ul     { list-style: none; }
a      { color: inherit; text-decoration: none; cursor: none; }
button { border: none; background: none; cursor: none; font-family: var(--font-b); }
em     { font-style: italic; }

/* Cursor during splash: native cursor visible so skip is clickable */
body.splash-active { cursor: default; }
body.splash-active .cursor { opacity: 0 !important; pointer-events: none; }
.splash-skip { cursor: pointer !important; }

/* ===== SPLASH ===== */
.splash {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease;
}
.splash.fade-out { opacity: 0; pointer-events: none; }
.splash.hidden   { display: none; }

#splash-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.splash-skip {
  position: absolute;
  bottom: 36px;
  right: 44px;
  font-family: var(--font-h);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: rgba(247,241,228,0.5);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.splash-skip:hover { color: var(--cream); }

/* ===== ACCORDION ===== */
.page-accordion {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: fixed;
  top: 0; left: 0;
}

.acc-panel {
  position: relative;
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
  width: var(--strip-w);
  transition: width 0.65s var(--ease-acc);
}
.acc-panel.is-open {
  width: calc(100vw - var(--strip-w) * 2);
}

.acc-panel--home {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  transition: max-width 0.65s var(--ease-acc);
  max-width: 100vw;
}
.page-accordion.has-open .acc-panel--home { max-width: 0; }

/* ===== STRIP ===== */
.acc-strip {
  width: var(--strip-w);
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 24px;
  cursor: pointer;
  user-select: none;
  position: relative;
  z-index: 2;
}

.acc-panel--servicios { background: var(--coral); }
.acc-panel--contacto  { background: var(--celeste); }
.acc-panel--proyectos { background: var(--yellow); }
/* noa-explore panel removed — content lives inside servicios views */

/* ── Servicios inner views: explore se abre como acordeón ─────────────── */
.servicios-main-view {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}
/* El explore se superpone encima del main, arranca en width:0 y se expande */
.servicios-explore-view {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  overflow: hidden;
  background: #1a1a1a;
  transition: width 0.65s var(--ease-acc);
  z-index: 10;
}
#content-servicios.explore-active .servicios-explore-view {
  width: 100%;
}
/* Noa strip highlight when explore is active */
.servicios-noa-strip.explore-active .strip__label {
  color: var(--yellow);
}






.acc-panel--servicios .acc-strip { background: var(--coral); }
.acc-panel--contacto  .acc-strip { background: var(--celeste); }
.acc-panel--proyectos .acc-strip { background: var(--yellow); }

.strip__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-h);
  font-size: 45px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--cream);
  user-select: none;
  text-shadow: 0 2px 10px rgba(0,0,0,0.22);
}



.strip__logo-letter {
  width: auto;
  height: 78px;
  display: block;
  flex-shrink: 0;
  color: var(--cream);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}

/* ===== CONTENT ===== */
.acc-content {
  position: relative;
  flex: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  min-width: 0;
}
.acc-panel.is-open .acc-content {
  opacity: 1;
  pointer-events: all;
  transition-delay: 0.35s;
}

.acc-panel--servicios .acc-content { background: var(--coral); }
.acc-panel--contacto  .acc-content { background: var(--celeste); }
.acc-panel--proyectos .acc-content { background: var(--yellow); }

/* ===== HOME ===== */
.home-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
#home-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}
.home-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(33,33,33,0.06) 0%, rgba(33,33,33,0.5) 100%);
  z-index: 1;
}
.home-headline {
  position: absolute;
  bottom: 52px;
  right: 48px;
  z-index: 2;
  text-align: right;
  font-family: var(--font-h);
  letter-spacing: 0.01em;
}
.hl-wrap {
  overflow: hidden;
  line-height: 0.88;
}

/* Text starts hidden (translated down, clipped by hl-wrap overflow:hidden) */
.home-headline__top,
.home-headline__bottom {
  display: block;
  font-size: clamp(56px, 7.5vw, 108px);
  font-weight: 700;
  transform: translateY(110%);
}
.home-headline__top    { color: var(--cream); }
.home-headline__bottom { color: var(--coral); }

/* .animate triggers the slide-up */
.home-headline.animate .home-headline__top {
  animation: hlSlideUp 0.85s var(--ease-acc) both;
  animation-delay: 0.15s;
}
.home-headline.animate .home-headline__bottom {
  animation: hlSlideUp 0.85s var(--ease-acc) both;
  animation-delay: 0.38s;
}
@keyframes hlSlideUp {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

/* NOA Explore inner strip — inside servicios panel, slides in when servicios opens */
.servicios-noa-strip {
  width: 0;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 24px;
  cursor: pointer;
  transition: width 0.65s var(--ease-acc);
  user-select: none;
}
.acc-panel--servicios.is-open .servicios-noa-strip {
  width: var(--strip-w);
}
.servicios-noa-strip .strip__label {
  color: var(--cream);
  font-size: 38px;
}
.servicios-noa-strip:hover .strip__label {
  color: var(--yellow);
  transition: color 0.2s;
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(247,241,228,0.18);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(247,241,228,0.35);
}
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(247,241,228,0.18) transparent;
}
