:root {
  --primary-color: #47ff64;
  --secondary-color: #0000fc;
  --text-color: #0000fc;
  --background-color: #0000fc;
  --logo-color: #47ff64;
  --nav-color: #47ff64;
  --nav-hover: #47ff64;
  --nav-active-bg: #0000fc;
  --nav-active-color: #47ff64;
  --switch-bg: #0000fc;
  --switch-thumb: #47ff64;
  --cursor-color: #00ff57;
  --project-detail-color: #47ff64;
  --project-title-color: #47ff64;
  --dark: #0000fc;
  --light: #47ff64;
}

body.switch {
  --primary-color: #000;
  --secondary-color: #fff;
  --text-color: #000;
  --background-color: #fff;
  --logo-color: #000;
  --nav-color: #000;
  --nav-hover: #000;
  --nav-active-bg: #fff;
  --nav-active-color: #000;
  --switch-bg: #fff;
  --switch-thumb: #000;
  --cursor-color: #000;
  --project-detail-color: #000;
  --project-title-color: #000;
  --dark: #000;
  --light: #fff;
}

/* Estilos específicos para el modal en modo oscuro */
body.switch .project-details-panel {
  background: rgba(255, 255, 255, 0.95);
}

body.switch .modal-overlay {
  background: rgba(0, 0, 0, 0.7);
}

body.switch .details-btn-floating {
  background: var(--nav-active-bg);
  color: var(--nav-active-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.switch .details-btn-floating:hover {
  background: var(--nav-color);
  color: var(--background-color);
}

body.switch .close-details-btn {
  background: var(--light);
  color: var(--dark);
}

body.switch .close-details-btn:hover {
  background: var(--nav-color);
  color: var(--background-color);
}

/* Estilos específicos para la tabla en modo oscuro */
body.switch .projects-table {
  color: var(--primary-color);
}

body.switch .projects-table th {
  border-bottom: 2px solid var(--primary-color);
}

body.switch .projects-table a {
  color: var(--primary-color);
}

body.switch .projects-table a:hover {
  color: var(--text-color);
}

/* Estilos específicos para obras-page en modo oscuro */
body.switch.obras-page {
  background-color: var(--background-color);
}

body.switch.obras-page::before {
  background-color: var(--background-color);
}

/* ========= PÁGINA NOSOTROS ========= */
body.nosotros-page {
  overflow: hidden;
  background-color: var(--text-color);
  transition: background-image 0.3s ease;
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.nosotros-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 120px 50px 100px 50px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nosotros-container::-webkit-scrollbar {
  display: none;
}

.nosotros-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-section,
.about-section {
  flex: 1;
  min-width: 300px;
}

.section-title {
  font-family: "PP Formula", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-info {
  font-family: "Franklin Gothic Medium", sans-serif;
  font-size: 1rem;
  color: var(--primary-color);
  line-height: 1.8;
}

.about-text {
  font-family: "Franklin Gothic Medium", sans-serif;
  font-size: 1rem;
  color: var(--primary-color);
  line-height: 1.8;
  text-align: justify;
}

.team-image {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  margin: 40px 0;
  border-radius: 8px;
}

.team-section {
  margin-top: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.team-member {
  background: rgba(71, 255, 100, 0.1);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(71, 255, 100, 0.3);
  transition: all 0.3s ease;
}

.team-member:hover {
  background: rgba(71, 255, 100, 0.2);
  transform: translateY(-5px);
}

.member-name {
  font-family: "PP Formula", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.member-role {
  font-family: "Franklin Gothic Medium", sans-serif;
  font-size: 0.9rem;
  color: var(--primary-color);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Estilos específicos para nosotros-page en modo oscuro */
body.switch.nosotros-page {
  background-color: var(--background-color);
}

/* Quitar el hover verde en modo oscuro para team-member */
body.switch .team-member {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.3);
}

body.switch .team-member:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Responsive para nosotros */
@media (max-width: 768px) {
  .nosotros-container {
    padding: 100px 20px 80px 20px;
  }

  .nosotros-header {
    flex-direction: column;
    gap: 30px;
  }

  .contact-section,
  .about-section {
    min-width: auto;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-title {
    font-size: 1.3rem;
  }
}

@font-face {
  font-family: "PP Formula";
  src: url("fonts/PPFormula-ExtendedMedium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Formula";
  src: url("fonts/PPFormula-ExtendedBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PixelDigivolve";
  src: url("fonts/PixelDigivolve.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Franklin Gothic Medium";
  src: url("fonts/FranklinGothic-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PP Formula", sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  transition: all 0.3s ease;
  overflow-x: hidden;
}

/* Permitir scroll en páginas de grid */
body.residential-page,
body.retail-page {
  overflow-y: auto;
}

/* Logo fijo */
.center-logo {
  position: fixed;
  top: 0;
  z-index: 99999;
  width: 100vw;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
}

.center-logo .logo {
  transform: scale(0.7);
  transform-origin: center center;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 3000;
  color: var(--logo-color);
  width: 60%;
  justify-content: center;
  padding-top: 24px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--nav-hover);
}

.logo svg {
  fill: currentColor;
  transition: fill 0.3s ease;
}

.logo svg:not(:last-child) {
  margin-right: -15px;
}

/* Carrusel vertical */
.hero-carousel {
  position: relative;
  width: 100%;
}

.hero-section {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 2rem;
}

/* Eliminamos los estilos de las cards que ya no existen */

/* Estilos de las cards eliminados - solo quedan las imágenes de fondo */

/* Indicadores de navegación eliminados */

/* Navbar inferior */
.navbar-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 1rem 1rem;
  z-index: 1000;
}

.nav-item {
  font-family: "PP Formula";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 7.2px;
  text-transform: uppercase;
}

.nav-link {
  color: var(--nav-color) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: "PP Formula";
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  position: relative;
}

.nav-link:hover {
  color: var(--nav-hover) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--nav-hover);
  transition: width 0.3s ease;
}

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

.nav-link.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-color) !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  width: auto;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.language-text {
  color: var(--nav-color);
  font-family: "PP Formula";
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}

.language-toggle,
.mobile-language-toggle {
  color: var(--nav-color);
  font-family: "PP Formula";
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  background: none;
  border: 2px solid var(--nav-color);
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  min-width: 40px;
  text-align: center;
}

.language-toggle:hover,
.mobile-language-toggle:hover {
  background: var(--nav-color);
  color: var(--background-color);
}

.mobile-language-toggle {
  font-size: 12px;
  letter-spacing: 1px;
  padding: 3px 6px;
  min-width: 35px;
}

.switch-toggle {
  width: 60px;
  height: 30px;
  background: var(--switch-bg);
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  z-index: 10;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.switch-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--switch-thumb);
  border-radius: 50%;
  transition: all 0.3s ease;
}

body.switch .switch-toggle::after {
  left: 33px;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-bottom {
    padding: 0.75rem 1rem;
  }

  .nav-link {
    font-size: 12px;
    letter-spacing: 2px;
    padding: 0.3rem 0.6rem;
  }

  .language-text {
    font-size: 12px;
    letter-spacing: 1px;
  }

  /* Logo responsive */
  .center-logo .logo {
    transform: scale(0.5);
    width: 80%;
  }

  .logo svg:not(:last-child) {
    margin-right: -5px;
  }
}

/* Menú hamburguesa */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
}

.hamburger {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--nav-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

/* Animación del hamburguesa */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

/* Sección superior con imagen de fondo */
.mobile-menu-top {
  position: relative;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.mobile-menu.active .mobile-menu-top {
  opacity: 1;
  transform: translateY(0);
}

/* Sección inferior con menú azul */
.mobile-menu-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.mobile-menu.active .mobile-menu-bottom {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  text-align: center;
}

.mobile-nav-link {
  color: var(--nav-color) !important;
  text-decoration: none;
  font-family: "PP Formula";
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  padding: 0.8rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
}

.mobile-menu.active .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-nav-link:nth-child(1) {
  transition-delay: 0.4s;
}

.mobile-menu.active .mobile-nav-link:nth-child(2) {
  transition-delay: 0.5s;
}

.mobile-menu.active .mobile-nav-link:nth-child(3) {
  transition-delay: 0.6s;
}

.mobile-menu.active .mobile-nav-link:nth-child(4) {
  transition-delay: 0.7s;
}

.mobile-menu.active .mobile-nav-link:nth-child(5) {
  transition-delay: 0.8s;
}

.mobile-nav-link.active {
  color: var(--nav-color) !important;
  text-decoration: underline;
}

.mobile-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.9s, transform 0.6s ease 0.9s;
}

.mobile-menu.active .mobile-controls {
  opacity: 1;
  transform: translateY(0);
}

.mobile-language {
  color: var(--nav-color);
  font-family: "PP Formula";
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border: 2px solid var(--nav-color);
  border-radius: 4px;
}

/* Mostrar menú hamburguesa en móviles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-left {
    display: none !important;
  }

  .nav-right .d-none {
    display: none !important;
  }

  .switch-toggle {
    pointer-events: auto !important;
  }
}

/* Cursor personalizado */
.cursor-custom {
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cursor-color);
  pointer-events: none;
  z-index: 9999;
  transition: background 0.2s;
}

.cursor-dark {
  background: #000;
}

.cursor-label {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  background: transparent;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
  /* Eliminar transform para posicionar con JS */
}

.cursor-label.dark {
  color: #000;
}

.cursor-label.visible {
  opacity: 1;
}

.cursor-label-content {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.cursor-label-text {
  margin-left: 12px;
  display: flex;
  flex-direction: column;
}

.hero-section:hover ~ .cursor-label,
.hero-section:focus ~ .cursor-label,
.project-grid-item:hover ~ .cursor-label,
.project-grid-item:focus ~ .cursor-label {
  opacity: 1;
}

/* Asegurarse que el cursor nativo desaparezca */
body,
.hero-section,
a,
button,
input,
textarea,
select,
label,
.nav-link,
.navbar-bottom,
* {
  cursor: none !important;
}

/* Excepción para el logo para que funcione el cursor personalizado */
.logo {
  cursor: none !important;
}

.cursor-label-project {
  font-family: "PixelDigivolve", sans-serif;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  display: block;
}

.cursor-label-category {
  font-family: "PP Formula", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 7.2px;
  text-transform: uppercase;
  display: block;
}

.hero-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: none;
}

.hero-link:hover {
  text-decoration: none;
  color: inherit;
}

.project-img {
  height: 75vh;
  object-fit: contain;
}

/* Ajustar altura de project-img según la altura de la pantalla */
@media (min-height: 720px) {
  .project-img {
    height: 85vh;
  }
}

/* ========= PROYECTO: página y carrusel ========= */
body.proyecto-page {
  height: 100vh;
  overflow: hidden;
  cursor: none;
  color: var(--text-color);
  position: relative;
  background: var(--secondary-color);
} /* :contentReference[oaicite:8]{index=8} */

/* Carrusel horizontal y ocultación de scrollbar */
.carousel {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  width: 100vw;
  height: 75vh;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  display: flex;
  align-items: center;
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ajustar altura del carrusel según la altura de la pantalla */
@media (min-height: 720px) {
  .carousel {
    height: 80vh;
  }
} /* :contentReference[oaicite:9]{index=9} */

.carousel::-webkit-scrollbar {
  display: none;
}

/* Tamaño de medios dentro del carrusel */
.carousel img,
.carousel video {
  display: inline-block;
  height: 75vh;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 0;
  border: none;
}

/* Estilos específicos para videos en el carrusel */
.carousel video {
  object-fit: cover;
  pointer-events: none;
  background: #000;
}

.carousel video::-webkit-media-controls {
  display: none !important;
}

.carousel video::-webkit-media-controls-panel {
  display: none !important;
}

.carousel video::-webkit-media-controls-play-button {
  display: none !important;
}

.carousel video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

/* Asegurar que los videos se reproduzcan automáticamente */
.carousel video[autoplay] {
  animation: none;
}

/* Estilos para Firefox */
.carousel video::-moz-media-controls {
  display: none !important;
}

.carousel video::-moz-media-controls-panel {
  display: none !important;
}

/* Ajustar altura de las imágenes según la altura de la pantalla */
@media (min-height: 720px) {
  .carousel img,
  .carousel video {
    height: 85vh;
  }
} /* :contentReference[oaicite:10]{index=10} */

/* Descripción de datos */
.description {
  position: relative;
  width: 100vw;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  padding: 1rem;
  font-family: "Franklin Gothic Medium", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  z-index: 2000;
  padding-bottom: 80px;
} /* :contentReference[oaicite:11]{index=11} */

.description h2 {
  font-family: "Pixel Digivolve", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  line-height: 1;
} /* :contentReference[oaicite:12]{index=12} */

.detail-item strong {
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* Información en móvil (toggle “Details”) */
.project-info-mobile {
  position: fixed;
  bottom: 3.5rem;
  left: 0;
  width: 100%;
  background: var(--light);
  padding: 1rem;
  font-size: 0.8rem;
  display: none; /* se mostrará vía JS */
  flex-direction: column;
  gap: 0.5rem;
  z-index: 12;
} /* :contentReference[oaicite:13]{index=13} */

/* Estilos adicionales para el carousel de proyectos */
#projectCarousel {
  position: relative;
  z-index: 1;
}

#projectCarousel img {
  transition: transform 0.3s ease;
}

#projectCarousel img:hover {
  transform: scale(1.02);
}

/* Asegurar que el carousel ocupe todo el ancho disponible */
body.proyecto-page .carousel {
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .carousel {
    height: 100vh;
    width: 100vw;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
  }

  .carousel img,
  .carousel video {
    height: auto;
    width: 100vw;
    object-fit: contain;
  }

  /* Asegurar que los videos no muestren controles en móvil */
  .carousel video {
    pointer-events: none;
  }

  .project-details-container {
    display: none;
  }
}

/* Project Details Styles */
.project-details-container {
  width: 100vw;
  padding: 2rem 2rem;
  background: transparent;
}

.project-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-detail-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: "Franklin Gothic Medium", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--project-detail-color);
}

.detail-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.detail-value {
  font-weight: 500;
}

.project-title {
  margin: 0;
  text-align: right;
}

.project-title h2 {
  font-family: "PixelDigivolve", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--project-title-color);
  margin: 0;
}

/* Responsive adjustments for project details */
@media (max-width: 768px) {
  .project-details-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .project-detail-item {
    width: 100%;
  }

  .project-title h2 {
    font-size: 1.5rem;
  }
}

/* Scroll Progress Bar & Hints */
.scroll-track {
  position: relative;
  width: 100%;
  height: 4px;
  background: var(--dark);
  margin: 0;
  pointer-events: none;
  height: 4px;
}

/* Mobile: barra vertical en el lado izquierdo */
@media (max-width: 768px) {
  .scroll-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 100vh;
    margin: 0;
    min-height: auto;
    z-index: 1001;
  }

  .scroll-bar {
    width: 100%;
    height: 100%;
    background: var(--light);
    transform-origin: top center;
    transform: scaleY(0);
    transition: transform 0.2s linear;
  }

  .swipe-hint {
    left: 2rem;
    transform: none;
  }
}

/* Overlay de fondo para el modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(0px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(3px);
}

/* Panel de detalles deslizable para mobile */
.project-details-panel {
  position: fixed;
  bottom: -50vh;
  left: 0;
  width: 100vw;
  background: var(--dark);
  z-index: 9999;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow-y: auto;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
  display: none;
  backdrop-filter: blur(10px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  opacity: 0;
}

.project-details-panel.active {
  bottom: 0;
  display: block;
  transform: translateY(0);
  opacity: 1;
  animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  50% {
    transform: translateY(-5%);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes modalSlideOut {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

.project-details-panel .project-details-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 0 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.project-details-panel.active .project-details-row {
  opacity: 1;
  transform: translateY(0);
}

.project-details-panel .project-detail-item {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-details-panel.active .project-detail-item {
  opacity: 1;
  transform: translateX(0);
}

/* Animación escalonada para los elementos */
.project-details-panel.active .project-detail-item:nth-child(1) {
  transition-delay: 0.3s;
}
.project-details-panel.active .project-detail-item:nth-child(2) {
  transition-delay: 0.4s;
}
.project-details-panel.active .project-detail-item:nth-child(3) {
  transition-delay: 0.5s;
}
.project-details-panel.active .project-detail-item:nth-child(4) {
  transition-delay: 0.6s;
}
.project-details-panel.active .project-detail-item:nth-child(5) {
  transition-delay: 0.7s;
}
.project-details-panel.active .project-detail-item:nth-child(6) {
  transition-delay: 0.8s;
}

.project-details-panel .project-detail-item:last-child {
  border-bottom: none;
}

.project-details-panel .project-title {
  width: 100%;
  text-align: left;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}

.project-details-panel.active .project-title {
  opacity: 1;
  transform: translateY(0);
}

.project-details-panel .project-title h2 {
  font-size: 2.5rem;
  margin: 0;
}

.project-details-panel .detail-label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-family: "PP Formula";
}

.project-details-panel .detail-value {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: "Franklin Gothic Medium", sans-serif;
}

/* Botón de cerrar detalles */
.close-details-btn {
  position: relative;
  background: var(--light);
  border: none;
  color: var(--dark);
  font-family: "PP Formula";
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 1rem 2rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
}

.project-details-panel.active .close-details-btn {
  opacity: 1;
  transform: translateY(0);
}

.close-details-btn:hover {
  background-color: var(--nav-color);
  color: var(--background-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.close-details-btn::before {
  content: "×";
  font-size: 1.5rem;
  font-weight: 300;
}

/* Botón de detalles */
.details-btn {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  font-family: "PP Formula";
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 7.2px;
  text-transform: uppercase;
  color: var(--nav-color);
  cursor: pointer;
}

.details-btn:hover {
  color: var(--nav-hover);
}

.details-btn.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-color);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
}
.scroll-bar {
  width: 100%;
  height: 100%;
  background: var(--light);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.2s linear;
}
.swipe-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "PP Formula", sans-serif;
  font-size: 0.625rem;
  letter-spacing: 4.5px;
  color: var(--light);
  user-select: none;
}

/* Botón de detalles flotante para mobile */
.floating-details-btn {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: none;
}

.details-btn-floating {
  background: transparent;
  color: var(--nav-active-color);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-family: "PP Formula";
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.details-btn-floating:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.details-btn-floating.active {
  background: var(--nav-color);
  color: var(--background-color);
}

/* Mostrar botón flotante solo en móviles */
@media (max-width: 768px) {
  .floating-details-btn {
    display: block;
  }

  .project-details-container {
    display: none;
  }
}

/* ========= GRID DE PROYECTOS (Residential/Retail) ========= */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  width: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Ocultar mobile project overlay en desktop por defecto */
.mobile-project-overlay {
  display: none;
}

.project-grid-item {
  position: relative;
  overflow: hidden;
}

.project-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: none;
}

.project-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-overlay {
  display: none; /* Oculto por defecto en desktop */
}

.project-grid-item:hover .project-image {
  transform: scale(1.05);
}

.project-info {
  text-align: center;
  color: var(--primary-color);
}

.project-name {
  font-family: "PixelDigivolve", sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  line-height: 1;
}

.project-category {
  font-family: "PP Formula", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 7.2px;
  text-transform: uppercase;
  margin: 0;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    height: auto;
    gap: 0;
  }

  .project-grid-item {
    height: 70vh;
  }

  .project-image-container {
    height: 70vh;
  }

  .project-image {
    height: 70vh;
  }

  /* Mostrar overlay móvil */
  .mobile-project-overlay {
    display: flex;
    background: transparent;
    pointer-events: none;
  }

  .project-info {
    text-align: justify;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }

  .project-name {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
  }

  .project-category {
    font-size: 0.8rem;
    letter-spacing: 6px;
    font-weight: 700;
  }

  /* Ocultar cursor personalizado en móviles */
  .cursor-custom {
    display: none !important;
  }

  .cursor-label {
    display: none !important;
  }

  /* Restaurar cursor normal en móviles */
  body,
  .project-grid-item,
  .project-link,
  a,
  button,
  input,
  textarea,
  select,
  label,
  .nav-link,
  .navbar-bottom,
  * {
    cursor: auto !important;
  }

  /* Overlay móvil dinámico */
  .mobile-project-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: left;
    padding-left: 1rem;
    z-index: 1000;
    pointer-events: none;
  }

  .mobile-project-overlay.active {
    display: flex;
  }
}

/* Estilos específicos para la tabla de proyectos en obras.php */
body.obras-page {
  overflow: hidden;
  background-color: var(--text-color);
  transition: background-image 0.3s ease;
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.obras-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--text-color);
  opacity: 0.8;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.projects-table-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 120px 20px 100px 20px;
  overflow-y: auto;
  /* Ocultar scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
  max-height: calc(100vh - 4.5rem);
}

.projects-table-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "PP Formula", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--primary-color);
}

.projects-table th {
  text-align: left;
  padding: 20px 30px;
  border-bottom: 2px solid var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: sticky;
  top: 0;
  background: transparent;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.projects-table td {
  padding: 20px 30px;
  border-bottom: 1px solid rgba(71, 255, 100, 0.2);
  transition: all 0.3s ease;
}

.projects-table tr {
  cursor: pointer;
  transition: all 0.3s ease;
}

.projects-table tr:hover {
  background-color: rgba(71, 255, 100, 0.1);
  transform: translateX(10px);
}

/* Quitar el hover verde en modo oscuro */
body.switch .projects-table tr:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.projects-table a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.projects-table a:hover {
  color: var(--text-color);
}

/* Responsive para la tabla */
@media (max-width: 768px) {
  .projects-table-container {
    padding: 100px 10px 80px 10px;
  }

  .projects-table {
    font-size: 14px;
  }

  .projects-table th,
  .projects-table td {
    padding: 15px 15px;
  }

  /* Ocultar columna de ubicación en móvil */
  .projects-table th:nth-child(2),
  .projects-table td:nth-child(2) {
    display: none;
  }
}

@media (max-width: 480px) {
  .projects-table {
    font-size: 12px;
  }

  .projects-table th,
  .projects-table td {
    padding: 10px 8px;
  }

  /* Ocultar columna de ubicación en móvil */
  .projects-table th:nth-child(2),
  .projects-table td:nth-child(2) {
    display: none;
  }
}
