/* =============== VARIABLES =============== */
:root {
  --dark: #000;           /* Negro */
  --light: #fff;          /* Blanco */
  --loader-bg: rgba(0, 0, 0, 0.7);
}

body.switch {
  --dark: #47FF64;        /* Verde fluo en lugar de negro */
  --light: #0000FC;       /* Azul eléctrico en lugar de blanco */
  --loader-bg: rgba(71, 255, 100, 0.7);
}

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

html, body {
  height: 100%;
  background: var(--light);
  color: var(--light);
  font-family: sans-serif;
  cursor: none; /* ocultamos el cursor globalmente */
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

html {
  background-color: transparent;
}

/* ========================= */
/* TRANSITION PARA LOADER + CONTENIDO */
/* ========================= */


/* Contenedores principales: inician ocultos y hacen fade-in */
/* Estado inicial: invisible */
.index-page,
.obras-page,
.proyecto-page,
.about-page {
  opacity: 0;
  transition: opacity 2s ease-in-out;
  background-color: var(--light);
}

/* Estado final: visible */
.index-page.visible,
.obras-page.visible,
.proyecto-page.visible,
.about-page.visible {
  opacity: 1;
  background-color: var(--light);
}



/* ===================== */
/* CURSOR Y TÍTULO FLOTANTE */
/* ===================== */
.custom-cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--dark);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

body.obras-page .custom-cursor {
  display: block;
  cursor: none;
}

body.obras-page {
  overflow: auto;
}

a, button, .project-card {
  cursor: none !important;
}

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

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

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

/* =============== HOME - INDEX =============== */

.logo {
  display: flex;
  align-items: center;
  z-index: 3000;
  color: var(--dark);
  width: 60%;
  justify-content: center;
  padding-top: 24px;
}

.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; /* Adjusts the scaling origin */
}

.logo svg:not(:last-child) {
  margin-right: -15px; /* Adjust as needed */
}

.project {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.project.active {
  opacity: 1;
  z-index: 1;
}

.title-follow {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  color: var(--light);
  font-family: 'Pixel Digivolve', monospace;
  font-weight: normal;
  z-index: 1000;
  pointer-events: none;
  display: none;
  transition: transform 0.05s ease;
}


@keyframes fadeSquare {
  to {
    opacity: 0;
  }
}

.preloader {
  position: fixed;
  inset: 0;
  background: var(--light);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'PP Formula', sans-serif;
  font-size: 2rem;
  letter-spacing: 4px;
  color: var(--dark);
}

.loading-text {
  animation: blink 1.2s infinite alternate;
}

@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0.3; }
}

.navbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  padding: 1rem 1rem;
  font-family: 'PP Formula', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  z-index: 2000;
  letter-spacing: 4.5px;
  text-transform: uppercase;
}

.navbar a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  font-family: 'PP Formula', sans-serif;
  display: inline-block;
  padding: 0.75rem 0.75rem;
  line-height: 1.2;
  transform: scaleX(1);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), font-weight 0.2s ease;
}

.navbar a:hover,
.navbar a:focus {
  font-weight: 700;
  transform: scaleX(0.94);
}

.navbar a.active-nav {
  background-color: var(--light);
  color: var(--dark);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* =============== OBRAS =============== */

.project-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0rem;
  margin: 0;
}

.project-card {
  position: relative;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.25s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.title-hover {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  font-family: 'Pixel Digivolve', sans-serif;
  color: var(--light);
  font-size: 1.5rem;
  pointer-events: none;
  z-index: 99999;
  display: block; /* forzar para testeo */
  opacity: 0;
  transition: opacity 0.2s ease;
}

.title-main {
  font-family: 'Pixel Digivolve', sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--light);
}

.title-sub {
  font-family: 'PP Formula', sans-serif;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 4.5px;
  color: var(--light);
  margin-top: 0.2rem;
}

/* —– Contenedor scrollable para la tabla de obras —– */
.table-wrapper {
  position: relative;           /* para posicionar el pseudo-elemento */
  max-height: calc(100vh - 8rem);/* ajusta 8rem = header + footer height */
  overflow-y: auto;             /* activa scroll vertical */
  width: 100vw;
}

.table-wrapper::-webkit-scrollbar {
  display: none;                   /* non-standard, but works in WebKit engines */
}

/* Asegúrate de que la tabla mantenga su anchura completa */
.table-wrapper .obras-listado {
  width: 100%;
  border-collapse: collapse;
}

/* Espaciados random para layout orgánico */
.pad-a {
  padding: 0% 0% 0% 0%;
}
.pad-b {
  padding: 0% 0% 0% 0%;
}
.pad-c {
  padding: 0% 0% 0% 0%;
}
.pad-d {
  padding: 0% 0% 0% 0%;
}
.pad-e {
  padding: 0% 0% 0% 0%;
}

/* ===================== GENERAL proyecto html ===================== */
body.proyecto-page {
  height: 100vh;
  overflow: hidden;
  cursor: none;
  color: var(--dark);
}

/* ===================== CARRUSEL DE IMÁGENES ===================== */
.carousel {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  width: 100vw;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

.carousel img {
  display: inline-block;
  height: 85vh;
  width: auto;
}

/* ===================== DESCRIPCIÓN DEL PROYECTO ===================== */
.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;
}

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

.description h2 {
  font-family: 'Pixel Digivolve', sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  line-height: 1;
}

/* ===================== FLECHAS DE NAVEGACIÓN ===================== */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  cursor: pointer;
  z-index: 3;
  color: var(--light);
  user-select: none;
  transition: background 0.2s ease;
}

.nav:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav.left {
  left: 0;
}

.nav.right {
  right: 0;
}

.obras-listado {
  width: 100vw;
  margin-top: 150px;
  border-collapse: collapse;
  font-family: 'Franklin Gothic Medium', sans-serif;
}

.obras-listado thead th {
  text-align: left;
  font-family: 'PP Formula', sans-serif;
  font-size: 0.625rem;
  text-transform: uppercase;
  color: var(--dark);
  letter-spacing: 4.5px;
  padding: 1rem;
}

.obras-listado tbody td {
  padding: 0.5rem 1rem;
  color: var(--dark);
  font-size: 0.9rem;
  cursor: pointer;
}

.obras-listado tbody tr:hover td {
  background: #f7f7f7;
}

.listado-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.obras-listado tr {
  position: relative;
  overflow: hidden;
}

.obras-listado tr::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  filter: blur(4px);
}

.obras-listado tr:hover::before {
  opacity: 0.45;
}

body.nosotros-page {
  margin: 0;
  padding: 0;
  background: var(--light);
  color: var(--dark);
  font-family: 'Franklin Gothic Medium', 'Arial', sans-serif;
  cursor: none;
  overflow-y: auto;
}

.about-wrapper {
  padding: 10rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-columns {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.about-contact,
.about-text {
  flex: 1 1 45%;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dark);
}

.about-contact h4,
.about-text h4 {
  font-family: 'PP Formula', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.about-contact p,
.about-text p {
  margin-bottom: 1rem;
}

.about-text strong {
  font-weight: bold;
}

.about-image img {
  width: 100vw;
  height: 100vh;
  display: block;
  object-fit: cover;
}

/* Contenedor principal del switch */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;   /* Ajusta el ancho a tu preferencia */
  height: 34px;  /* Ajusta el alto a tu preferencia */
  border-radius: 34px; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.switch {
  position: inherit;
}

/* Ocultar el checkbox original */
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* El elemento "slider" que se ve por encima del checkbox */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; 
  left: 0;
  right: 0; 
  bottom: 0;
  background-color: var(--light); /* color por defecto (OFF) */
  transition: 0.4s;       /* transición al pasar de OFF a ON */
  border-radius: 34px;    /* mismo valor del alto para un borde redondo */
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;           /* un poco menos que el alto total */
  width: 26px;
  left: 4px;              /* espacio interno para que no pegue el borde */
  bottom: 4px;
  background-color: var(--dark); /* color del círculo */
  transition: 0.4s;
  border-radius: 50%;     /* círculo perfecto */
}

/* Cuando el checkbox está activado (checked) */
input:checked + .slider {
  background-color: var(--light); /* color de fondo (ON), verde fluo */
}

/* Mover el círculo a la derecha */
input:checked + .slider:before {
  transform: translateX(26px);
}

/* Opcional: estilo redondeado */
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

/* ---- Pista y barra ---- */
.scroll-track {
  position: relative;
  width: 100vw;
  height: 22px;                 /* alto fijo: no tapa nada */
  background: var(--dark);
  z-index: 14;
  margin-top: -5px;
}

.scroll-bar {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 100%;                 /* ancho completo, luego lo escalamos */
  background: var(--light);
  transform: scaleX(0);        /* 0 % al iniciar */
  transform-origin: left;
  transition: transform 0.1s linear;
}

/* tema switch */
body.switch .scroll-track { background: var(--dark); }
body.switch .scroll-bar   { background: var(--light); }

/* ---- Swipe hint ---- */
.swipe-hint {
  position: relative;
  text-align: center;
  font-family: 'Pixel Digivolve', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: white;
  opacity: 0.75;
  animation: pulse 1.4s infinite alternate;
  pointer-events: none;
  z-index: 15;
  padding-top: 2px;
  mix-blend-mode: exclusion;
}
@keyframes pulse { from { opacity: 0.35; } to { opacity: 0.9; } }

#langToggle {
  font-family: 'PP Formula', sans-serif;
  font-size: 0.625rem;
  padding: 0.25rem 0.5rem;
  background: none;
  border: 1px solid var(--dark);
  color: var(--dark);
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
}




/* ===== Ajustes MOBILE para pista y hint ================== */
@media (max-width: 768px) {

  /* Pista fija sobre el navbar */
  .scroll-track {
    position: fixed;
    left: 0;
    bottom: 4.5rem;      /* misma altura que tu navbar móvil */
    height: 20px;         /* alto constante */
    z-index: 0;
  }

  /* El hint centrado, un poco por encima de la pista */
  .swipe-hint {
    padding-top: 3px;    
    font-size: 0.625rem;   /* un pelín más grande */
  }
}

/* ===================== PACTO - MOBILE STYLES ===================== */
@media (max-width: 768px) {

  /* === Ocultar cursor y título flotante === */
  .custom-cursor,
  .title-hover {
    display: none !important;
  }

  /* === Navbar compacto === */
  .navbar {
    flex-direction: column;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    z-index: 10;
    width: 100%;
    background: transparent;
    transition: background 0.3s ease;
  }

  .navbar.show {
    background: var(--light);
  }

  .navbar a {
    margin: 0.5rem 0;
    padding: 0.5rem;
    display: block;
    width: 100%;
  }

  .menu-toggle {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'PP Formula', sans-serif;
    letter-spacing: 4.5px;
    color: var(--dark);
    transition: background 0.3s ease;
    width: 3.5rem;             /* hazlo más grande */
    height: 3.5rem;            /* idem */
    padding: 0.5rem; 
  }

  .menu-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    position: relative;
    margin: 0px;
  }

  .menu-icon::before,
  .menu-icon::after,
  .menu-icon span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--dark);
    transition: all 0.3s ease;
  }

  .menu-icon::before {
    top: 0;
  }

  .menu-icon span {
    top: 50%;                 
    transform: translateY(-50%); /* barra central centrada */
  }

  .menu-icon::after {
    bottom: 0;
  }

  .navbar.show .menu-icon::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  .navbar.show .menu-icon span {
    opacity: 0;
  }

  .navbar.show .menu-icon::after {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    bottom: auto;
  }

  .nav-left,
  .nav-right {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
  }

  .nav-left,
  .nav-right, a {
    text-align: center;
  }

  .nav-right {
    margin-top: 0.75rem;
  }

  .navbar.show .nav-left,
  .navbar.show .nav-right {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* === Proyectos: una columna === */
  .project-card {
    width: 100% !important;
  }

  .project-container {
    flex-direction: column;
    grid-template-columns: none;
  }

  /* === Nosotros: columnas apiladas === */
  .about-columns {
    flex-direction: column;
  }

  .about-contact,
  .about-text {
    flex: 1 1 100%;
    font-size: 0.9rem;
  }

  .about-image img {
    height: auto;
    width: 100%;
  }

  /* === Listado de obras: mostrar solo Proyecto y Año === */
  .obras-listado th,
  .obras-listado td {
    display: none;
  }

  .obras-listado th:nth-child(1),
  .obras-listado td:nth-child(1),
  .obras-listado th:nth-child(4),
  .obras-listado td:nth-child(4) {
    display: table-cell;
  }

  .obras-listado th:nth-child(4),
  .obras-listado td:nth-child(4) {
    display: table-cell;
    text-align: right;
  }

  .obras-listado {
    width: 100%;
    margin-top: 100px;
    font-size: 0.9rem;
    border-collapse: collapse;
  }

  .obras-listado th,
  .obras-listado td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: none;
  }

  .obras-listado thead {
    font-family: 'PP Formula', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4.5px;
    font-size: 0.6rem;
  }

  .obras-listado tr {
    transition: background 0.2s ease;
    cursor: pointer;
  }

  .obras-listado tr:hover {
    background: rgba(0,0,0,0.04);
  }

  /* === Carousel en proyecto === */
  .carousel {
    overflow-x: hidden;
    overflow-y: auto;
    white-space: normal; /* permitimos que los <img> ocupen bloque completo */
    height: 100vh;
  }

    #carousel .carousel-media {
    display: block;
    width: 100vw;
    height: auto;
    object-fit: cover;   /* opcional, para que queden proporcionales */
  }

  .carousel img {
    width: 100vw;
    object-fit: contain;
  }

    /* ============================
     Barra de progreso vertical
     ============================ */
  .scroll-track {
    /* En desktop era ancho completo; en móvil lo ponemos a la derecha, vertical */
    position: fixed;
    top: 0;
    right: 0;
    width: 6px;      /* grosor de la pista vertical */
    height: 100vh;   /* toda la altura */
    background: var(--dark);
    z-index: 1000;
    margin: 0;       /* ya no está en bottom */
  }

  .scroll-bar {
    /* Ahora la barra interior ocupa el 100% del ancho de la pista,
       pero su escala será en Y */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;        /* altura completa, luego la escalamos en Y */
    background: var(--light);
    transform-origin: top; /* escalará desde arriba hacia abajo */
    transform: scaleY(0);  /* inicio en 0% */
    transition: transform 0.1s linear;
  }


  .description {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .about-wrapper {
    padding: 8rem 2rem 2rem;
  }

  .desc-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100vw;
    padding: 0rem 1rem;
  }

  .info-toggle {
    background-color: transparent;
    border: 0px solid var(--dark);
    padding: 0.25rem 0.5rem;
    font-family: 'PP Formula', sans-serif;
    font-size: 0.825rem;
    border-radius: 4px;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
    letter-spacing: 4.5px;
    text-transform: uppercase;
    color: var(--dark);
  }

  .project-info-mobile {
    position: fixed;
    bottom: 3.5rem;
    left: 0;
    width: 100%;
    background: var(--light);
    padding: 1rem;
    font-size: 0.8rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 12;
  }

  .project-info-mobile.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

  .logo svg:not(:last-child) {
    margin-right: -5px; /* Adjust as needed */
  }

  .mobile-grid {
    display: flex;
    flex-direction: column;
      overflow: visible !important;
  height: auto !important;
  }

  .mobile-card {
    position: relative;
    width: 100%;
    height: 70vh;
    display: block;
  }

  .mobile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Overlay con título */
  .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  .mobile-card.active .overlay {
    opacity: 1;
  }

  .overlay-title {
    font-size: 2rem;
    color: var(--light);
    font-family: 'Pixel Digivolve', monospace;
  }

  .overlay-subtitle {
    font-family: 'PP Formula', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4.5px;
    color: var(--light);
    margin-top: 0.2rem;
  }

  .floating-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--light);
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.floating-overlay .overlay-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.floating-overlay .overlay-subtitle {
  font-size: 0.9rem;
  opacity: 0.7;
}
  
    #swipeHintSwipe {
    display: none !important;
  }
}

/* 1) Permitir scroll en About (sobreescribe el overflow:hidden global) */
html.about-page,
body.about-page {
  overflow: auto;
}

/* 2) Forzar que el banner y el grid de equipo aparezcan */
#aboutBanner {
  /* si quieres que se muestre inmediatamente (sin esperar a hideGridLoader) */
  opacity: 1 !important;
}

#teamContainer {
  opacity: 1 !important;
}

/* 3) Asegurar que el banner ocupe su espacio */
.about-banner {
  display: block;
  width: 100%;
  height: 50vh;        /* ó el alto que hayas definido */
  background-size: cover;
  background-position: center;
}

/* ===================== SECCIÓN “OUR TEAM” ===================== */

/* Contenedor principal de la sección */
.team-section {
  padding: 4rem;
  background: var(--light);
  color: var(--dark);
  height: 20vh;
}

/* Título “OUR TEAM” */
.team-title {
    font-family: 'PP Formula', sans-serif;
    font-size: 2rem;
    letter-spacing: 4.5px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    text-align: center;
  color: var(--dark);
}

/* Grid para las tarjetas de equipo */
.team-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tarjeta individual de integrante */
.team-card {
  background: transparent;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Foto circular del integrante */
.team-photo {
  width: 100%;
  max-width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--dark);
  margin-bottom: 1rem;
}

/* Nombre del integrante */
.team-name {
    font-family: 'PP Formula', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 4.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
  color: var(--dark);
}

/* Cargo o rol */
.team-role {
    font-family: 'PP Formula', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 4.5px;
    text-transform: uppercase;
  color: var(--dark);
}

/* Bio breve */
.team-bio {
  font-family: 'Franklin Gothic Medium', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0 1rem;
  color: var(--dark);
}

/* ===================== ADAPTATIVO / MOBILE ===================== */
@media (max-width: 768px) {
  .team-section {
    height: 100%;
    margin: 1rem;
  }
  .team-title {
    font-size: 0.6rem;
    letter-spacing: 0.3rem;
  }
  .team-photo {
    max-width: 180px;
    height: 180px;
  }
  .team-name {
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
  }
  .team-bio {
    font-size: 0.85rem;
  }
}



@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
  .project-info-mobile {
    display: none;
  }
  .desc-menu {
    display: none;
  }
}

@media (max-height:900px) {

  .carousel img {
    height: 78vh;
  }

}
