/* =========================================
   VARIABLES Y BASE
========================================= */
:root {
  --font-title: 'Instrument Serif', serif;
  --font-text: 'Syne', sans-serif;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* EL SALVAVIDAS: Evita que Safari esconda los textos */
  overflow: hidden;
  background-color: #050505;
  color: #fff;
}

/* =========================================
   NAVEGACIÓN SUPERIOR
========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start; 
  z-index: 1000;
  box-sizing: border-box;
  pointer-events: none; 
}

.nav-left, .nav-right {
  pointer-events: auto;
}

.nav-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.logo {
  font-family: var(--font-text);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.subtitle {
  font-family: var(--font-text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
}

.nav-right {
  display: flex;
  gap: 3rem;
  margin-top: 0.2rem;
}

.menu-link {
  font-family: var(--font-text);
  font-size: 0.75rem;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.5;
  position: relative;
  padding-bottom: 4px;
  transition: opacity 0.3s ease;
}

.menu-link:hover, .menu-link.active {
  opacity: 1;
}

.menu-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-link:hover::after,
.menu-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* =========================================
   PANTALLA DE INTRODUCCIÓN Y PARALLAX
========================================= */
.intro-content {
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra los elementos horizontalmente */
  text-align: center;  /* Centra los textos */
  z-index: 1;
}

.intro-title {
  font-family: var(--font-text);
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin: 0;
}

.intro-subtitle {
  font-family: var(--font-text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-top: 1rem;
  margin-bottom: 3rem;
  opacity: 0.5;
}

/* =========================================
   BOTONES GLOBALES (EXPLORE Y VIEW RESUME)
========================================= */
#enter-btn, .cv-btn {
  font-family: var(--font-text); /* Usa la tipografía Syne */
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 3rem; /* El tamaño de la "píldora" */
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  border-radius: 50px; /* Bordes totalmente redondeados */
  transition: all 0.4s ease; /* Transición suave */
  
  /* Estas tres líneas aseguran que el enlace (a) actúe como un botón perfecto */
  display: inline-block;
  text-decoration: none; 
  width: fit-content;
  margin-top: 1.5rem;
}

/* Efecto al pasar el mouse por encima (Hover) */
#enter-btn:hover, .cv-btn:hover {
  background: #fff;
  color: #050505;
  border-color: #fff;
}

.hidden-intro {
  opacity: 0;
  pointer-events: none;
}

/* =========================================
   SLIDER DE VIDEOS (TRANSICIÓN CANVAS)
========================================= */
.slider-container {
  position: relative;
  width: 100%; 
  height: 100vh;
  height: 100dvh;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: none !important; 
  z-index: 1 !important; 
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 10 !important; 
}

/* El video blindado para que no se mueva */
.slide video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  background-color: #050505;
  display: block;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.bottom-shadow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

#transition-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  z-index: 50 !important; 
  pointer-events: none;
  opacity: 0; 
  display: none;
  transition: opacity 0.3s ease; 
}

/* =========================================
   TEXTOS DEL SLIDE (INFO INFERIOR)
========================================= */
.content {
  position: absolute;
  bottom: 3.5rem;
  left: 3.5rem;
  z-index: 100 !important; 
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.crew-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.crew-info p {
  font-family: var(--font-text);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.crew-info .label {
  opacity: 0.5;
  margin-right: 5px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-title {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  margin: 0;
  line-height: 1;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.watch-full-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-20px, -4px); 
  opacity: 0;
  transition: all 0.5s ease;
}

.watch-full-btn svg {
  display: block;
}

.watch-full-btn:hover {
  opacity: 1;
  color: #E63946;
  transform: translate(0, -4px) scale(1.15);
}

.slide.active .crew-info p:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.slide.active .crew-info p:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.slide.active .brand-title { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.slide.active .watch-full-btn { opacity: 0.6; transform: translate(0, -4px); transition-delay: 0.4s; }

/* =========================================
   CONTROLES INFERIORES DERECHOS (SCROLL)
========================================= */
.right-controls {
  position: fixed;
  bottom: 3.5rem;
  right: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  z-index: 100;
  pointer-events: none;
}

.slide-counter {
  font-family: var(--font-text);
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: #fff;
  opacity: 0.7;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background: #fff;
  animation: scrollAnim 2s cubic-bezier(0.16, 1, 0.3, 1) infinite; 
}

@keyframes scrollAnim {
  0% { transform: translateY(-15px); }
  50% { transform: translateY(60px); }
  100% { transform: translateY(60px); }
}

/* =========================================
   REPRODUCTOR DE VIDEO POP-UP (MODAL)
========================================= */
#video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: rgba(3, 3, 3, 0.95);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#video-modal.hidden-modal {
  opacity: 0;
  pointer-events: none;
}

.close-modal-btn {
  position: absolute;
  top: 2.5rem;
  right: 3.5rem;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.close-modal-btn:hover { opacity: 1; }

.video-player-container {
  position: relative;
  width: 75vw;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.video-player-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  display: flex;
  justify-content: center;
  gap: 4rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.video-player-container:hover .custom-controls {
  opacity: 1;
}

.custom-controls button {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-controls button:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* =========================================
   CURSOR MINIMALISTA
========================================= */
body, button, a {
  cursor: none !important;
}

#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background-color: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999999;
  will-change: transform;
}

#cursor-lens {
  position: fixed;
  top: 0;
  left: 0;
  width: 45px;
  height: 45px;
  background-color: transparent;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999998;
  backdrop-filter: blur(3px) contrast(1.1) brightness(1.1);
  -webkit-backdrop-filter: blur(3px) contrast(1.1) brightness(1.1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.05s linear; 
}

@media (hover: none) and (pointer: coarse) {
  body, button, a { cursor: auto !important; }
  #cursor-dot, #cursor-lens { display: none !important; }
}

/* =========================================
   PÁGINA "ABOUT"
========================================= */
.about-page {
  overflow: hidden; 
  background-color: #050505;
}

.about-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  padding: 4rem 6rem 2rem 3rem; 
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.about-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.about-headline {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  margin: 0;
  color: #fff;
  letter-spacing: -1px;
}

.about-bio {
  font-family: var(--font-text);
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 800px;
}

.clients-section {
  margin-top: 0rem;
}

.clients-title {
  font-family: var(--font-text);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #E63946;
  margin-bottom: 1rem;
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem 4rem;
  align-items: center; 
}

.client-logo {
  height: 35px; 
  width: auto;
  max-width: 140px; 
  object-fit: contain;
  filter: grayscale(100%) opacity(0.4); 
  transition: all 0.4s ease;
  cursor: none; 
}

.client-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05); 
}

#cv-btn {
  font-family: var(--font-text);
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.4s ease;
}

#cv-btn:hover {
  background: #fff;
  color: #050505;
  border-color: #fff;
}

/* =========================================
   PÁGINA "CONTACT"
========================================= */
.contact-page {
  overflow: hidden;
  background-color: #050505;
}

.contact-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0 2rem;
  text-align: center;
  box-sizing: border-box;
}

.contact-content {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.contact-subtitle {
  font-family: var(--font-text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #E63946;
  margin-bottom: 1.5rem;
}

.contact-email {
  font-family: var(--font-title);
  font-size: 8rem;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  letter-spacing: -2px;
  cursor: none;
  transition: color 0.5s ease, transform 0.5s ease;
}

.contact-email:hover {
  color: #E63946;
  transform: scale(1.02);
}

.social-links {
  margin-top: 4.5rem;
  display: flex;
  justify-content: center;
  gap: 3.5rem;
}

.social-links a {
  font-family: var(--font-text);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
  cursor: none;
}

.social-links a:hover {
  color: #fff;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


 /* --- RESPONSIVO (MÓVILES) BLINDADO --- */
@media (max-width: 768px) {
  
  /* EL SECRETO PARA LOS VIDEOS EN CELULAR (Efecto Inmersivo) */
  .slide video, #transition-canvas, .intro-bg-video {
    object-fit: cover !important; /* <--- CAMBIAMOS "contain" POR "cover" AQUÍ */
    background-color: #050505 !important;
  }
  
  .navbar { padding: 1.5rem; }
  
  /* ... el resto de tu código móvil sigue igual ... */
  
  /* SUBIMOS LOS TEXTOS PARA QUE LA BARRA DE SAFARI NUNCA LOS TAPE */
  .content { bottom: 6rem !important; left: 1.5rem !important; }
  .right-controls { bottom: 6rem !important; right: 1.5rem !important; }
  
  .scroll-line { height: 40px; }
  .brand-title { font-size: 1.5rem; }
  .crew-info p { font-size: 0.7rem; }
  .intro-title { font-size: 3.5rem; }
  .intro-subtitle { font-size: 0.65rem; }
  
  /* Ajustes Video Modal en Celular */
  .slider-container, #video-modal {
    height: 100vh !important;
    height: 100dvh !important;
  }
  .video-player-container {
    width: 100vw !important;
    max-width: 100% !important;
  }
  .custom-controls {
    padding: 1.5rem 0 !important;
    gap: 2.5rem !important;
    opacity: 1 !important;
  }

  /* Fix Página "About" Celular */
  .about-page {
    overflow-y: auto !important;
    height: 100vh !important;
    height: 100dvh !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .about-container {
    height: auto !important;
    min-height: 100%;
    padding: 7rem 1.5rem 4rem 1.5rem !important;
    justify-content: flex-start !important;
  }
  .about-text-wrapper { gap: 2rem !important; }
  .about-headline { font-size: 2.2rem !important; line-height: 1.2 !important; letter-spacing: 0 !important; }
  .about-bio { font-size: 1rem !important; line-height: 1.6 !important; }
  .clients-logos { gap: 1.5rem 2rem !important; }
  .client-logo { height: 25px !important; }
  
  /* Fix Página "Contact" Celular */
  .contact-email { font-size: 3rem !important; letter-spacing: 0 !important; }
  .social-links { gap: 1.5rem !important; flex-wrap: wrap !important; }
}

@media (max-width: 480px) {
  .contact-email { font-size: 2.2rem !important; }
}


