/* assets/css/global.css */

/* 1. RESET Y BASE */
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  background-color: #000; /* Base segura */
}

/* 2. NAVBAR (ESPACIADO Y LAYOUT) */
.navbar {
  padding: 20px 40px !important; /* Más aire a los lados */
  transition:
    background-color 0.3s,
    padding 0.3s;
}

/* 3. LOGO */
.navbar-brand {
  font-weight: 900;
  letter-spacing: 2px;
  z-index: 20; /* Siempre encima */
}

/* 4. MENÚ PRINCIPAL (TEXTO LIMPIO) */
.clean-nav {
  display: flex;
  gap: 30px; /* Separación entre links */
  align-items: center;
}

.nav-link-item {
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem; /* Pequeño y elegante */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  transition: color 0.3s;
}

/* Línea sutil al hacer hover (Underline animado) */
.nav-link-item::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 1px;
  bottom: -5px;
  left: 0;
  background-color: currentColor; /* Toma el color del texto */
  transition: width 0.3s ease;
}

.nav-link-item:hover::after {
  width: 100%;
}

/* 5. FILTROS (CENTRADOS) */
/* Los filtros ahora flotan en el centro absoluto */
.filters-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
}

/* Estilo de los botones de filtro */
.filter-btn {
  background: none;
  border: none;
  font-family: "Courier New", monospace; /* Diferenciamos tipografía */
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 5px;
  opacity: 0.5;
  transition: all 0.3s;
}
.filter-btn:hover,
.filter-btn.active {
  opacity: 1;
  font-weight: bold;
}

/* 6. CURSOR PRO (TÉCNICO) */
body {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    width 0.2s,
    height 0.2s,
    border-radius 0.2s;
}

/* Cruz Técnica (Default) */
.custom-cursor::before,
.custom-cursor::after {
  content: "";
  position: absolute;
  background: #000;
  transition: all 0.2s;
}
.custom-cursor::before {
  width: 100%;
  height: 1px;
}
.custom-cursor::after {
  width: 1px;
  height: 100%;
}

/* Color dinámico según fondo */
body.is-dark .custom-cursor::before,
body.is-dark .custom-cursor::after {
  background: #fff;
}

/* Estados Interactivos */
.custom-cursor.active {
  width: 40px;
  height: 40px;
  border: 1px solid #000;
  border-radius: 50%;
}
.custom-cursor.active::before,
.custom-cursor.active::after {
  opacity: 0;
}
body.is-dark .custom-cursor.active {
  border-color: #fff;
}

.custom-cursor.drag-mode {
  width: auto;
  height: auto;
  border: none;
}
.custom-cursor.drag-mode::before {
  content: "< DRAG >";
  opacity: 1 !important;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 10px;
}
.custom-cursor.drag-mode::after {
  opacity: 0;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .filters-container {
    display: none; /* En móvil ocultamos filtros o los movemos */
  }
  .clean-nav {
    display: none; /* En móvil sí necesitaríamos un mini menú o lista vertical */
  }
  /* Nota: Si quieres menú móvil, avísame para agregar uno simple sin pantalla completa */
}

/* Aseguramos que el header tenga un z-index normal */
header,
.navbar,
.site-header {
  z-index: 1000 !important; /* Menor que el modal */
  position: relative;
}

/* =========================================
   MENÚ MÓVIL ARQUITECTÓNICO (FULL-SCREEN)
   ========================================= */
.arch-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff; /* Blanco puro minimalista */
  z-index: 999999; /* Por encima de todo */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 5vw;

  /* Estado Oculto */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.arch-mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

/* Cabecera del Menú */
.arch-mobile-menu .menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.btn-cerrar-menu {
  cursor: pointer;
  font-weight: 700;
  transition: color 0.3s;
}
.btn-cerrar-menu:hover {
  color: #888;
}

/* Enlaces Gigantes */
.arch-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centrados */
  justify-content: center;
  flex-grow: 1;
}

.arch-nav-links .menu-item {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 4rem; /* Texto Gigante */
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  margin: 10px 0;
  position: relative;
  overflow: hidden;

  /* Preparación para GSAP */
  opacity: 0;
  transform: translateY(40px);
}

/* Efecto hover elegante en los enlaces */
.arch-nav-links .menu-item:hover {
  color: #555;
  /* Opción: tachado arquitectónico al pasar el mouse */
  text-decoration: line-through;
}

/* Footer del Menú */
.arch-mobile-menu .menu-footer {
  text-align: center;
  font-family: "Courier New", monospace; /* Toque técnico */
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive para celulares pequeños */
@media (max-width: 768px) {
  .arch-nav-links .menu-item {
    font-size: 2.5rem; /* Un poco más pequeño en celular */
  }
}

/* =========================================
   9. ESTILOS DEL MENÚ DE FILTROS
   ========================================= */
.filters-button-group {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.filters-button-group button {
  background: transparent;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.filters-button-group button:hover {
  color: #333;
}

.filters-button-group button.active {
  color: #000;
  font-weight: 800;
  border-bottom: 2px solid #000;
}

/* El número de contador en el botón */
.filters-button-group button span {
  font-size: 0.65em !important;
  margin-left: 4px;
  opacity: 0.5;
  vertical-align: super; /* Lo pone arribita como exponente */
  font-family: "Courier New", monospace;
}

/* =========================================
   FIX DEFINITIVO: HEADER TRANSPARENTE EN HOME
   ========================================= */

/* 1. Evita que la página sea empujada hacia abajo (quita la franja blanca) */
body.is-dark {
  padding-top: 0 !important;
}

/* 2. Fuerza al Navbar a ser 100% transparente y flotar sobre la foto */
body.is-dark .navbar.fixed-top {
  background: transparent !important;
  border: none !important;
  /* Opcional: un ligero degradado oscuro arriba para que las letras siempre resalten */
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 100%
  ) !important;
}

/* 3. Fuerza TODAS las letras del menú (y el botón de celular) a ser Blancas */
body.is-dark .navbar-brand span,
body.is-dark .nav-link-item,
body.is-dark .btn-abrir-menu {
  color: #ffffff !important;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); /* Sombra elegante */
}

/* Asegurar que el botón "MENU" del celular no tenga fondos raros */
body.is-dark .btn-abrir-menu {
  background: transparent !important;
  border: none !important;
}

/* =========================================
   MODO INMERSIVO: IMAGEN FULL SCREEN Y MENÚ FLOTANTE
   ========================================= */

/* 1. Destruimos cualquier margen o padding invisible del navegador */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* 2. Forzamos al menú a flotar exactamente en el techo (Top: 0) sin fondo */
body.is-dark .navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background-color: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  z-index: 99998 !important;

  /* Pequeño truco premium: un gradiente oscuro invisible arriba
       para que tus letras siempre se lean aunque la foto sea muy blanca */
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 100%
  ) !important;
}

/* 3. Obligamos a tu Slider a iniciar desde el pixel 0 y medir toda la pantalla */
.hero-slider {
  position: relative !important;
  top: 0 !important;
  margin-top: 0 !important;
  height: 100vh !important;
  width: 100vw !important;
}

/* 4. Ajustamos el botón MENU del celular para que no tenga bordes raros */
body.is-dark .btn-abrir-menu {
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  background: transparent !important;
  border: none !important;
}

/* =========================================
   1. FIX DEL CURSOR "INTELIGENTE" (SIEMPRE VISIBLE)
   ========================================= */
.custom-cursor {
  z-index: 2147483647 !important; /* El nivel máximo posible en la web */
  mix-blend-mode: difference; /* Efecto Premium: Invierte su color según el fondo */
  background-color: #fff; /* Asegúrate de que tenga fondo blanco para que el efecto funcione */
}

/* =========================================
   2. BOTÓN "X" DEL MODAL (CSS PURO, INFALIBLE)
   ========================================= */
.modal-close {
  position: fixed;
  top: 30px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05); /* Círculo casi transparente */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2147483647; /* Encima de todo */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Dibujamos la primera línea de la X */
.modal-close::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 1.5px;
  background-color: #fff;
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

/* Dibujamos la segunda línea de la X */
.modal-close::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 1.5px;
  background-color: #fff;
  transform: rotate(-45deg);
  transition: all 0.3s ease;
}

/* Efecto Hover Premium */
.modal-close:hover {
  background: #fff;
  transform: rotate(90deg); /* El botón gira */
}

/* Al hacer hover, las líneas de la X se vuelven negras */
.modal-close:hover::before,
.modal-close:hover::after {
  background-color: #2b2828;
}
