/* ============================= */
/* Fuente — Nimbus Sans */
/* ============================= */

@font-face {
  font-family: "Nimbus Sans";
  src: url("../fonts/NimbusSans-Regular.woff2") format("woff2"),
       url("../fonts/NimbusSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
.section-title {
  text-decoration: underline;
}
/* ============================= */
/* Cursor personalizado */
/* ============================= */

a,
button,
input,
textarea,
select {
  cursor: url("/images/cursores-01.png"), auto;
}

.project-image.slider:hover {
  cursor: url("/images/cursores-02.png"), auto;
}

/* ============================= */
/* RESET */
/* ============================= */

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

/* ============================= */
/* BASE */
/* ============================= */

html,
body {
  height: 100%;
}

body {
  font-family: "Nimbus Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.5;

  color: #111;
  background-color: #fff;

  min-height: 100vh;

  display: flex;
  flex-direction: column;

  padding-top: calc(10px + 3.5vw);
}

/* ============================= */
/* WRAPPER (STICKY FOOTER BASE) */
/* ============================= */

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 🔥 CLAVE DEL STICKY FOOTER */
main {
  flex: 1;
}

/* ============================= */
/* IMÁGENES */
/* ============================= */

img {
  max-width: 100%;
  height: auto;
  display: block;

  image-rendering: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  transform: translateZ(0);
}

/* ============================= */
/* TIPOGRAFÍA GLOBAL */
/* ============================= */

p,
.about-text,
.about-text2,
.project-title,
.project-code,
.contact-text,
.link {
  font-family: "Nimbus Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.5;

  color: #111;

  margin-bottom: 1rem;
}

/* ============================= */
/* HEADER */
/* ============================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  background-color: transparent;

  z-index: 1000;

  padding: 5px 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 2vw;
}

.logo,
.menu a {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;

  text-decoration: none;
  color: #111;
}

.menu {
  display: flex;
  gap: 12px;
}

/* ============================= */
/* GRID PROYECTOS */
/* ============================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2vw;

  padding: 0 2vw;
  margin-bottom: 2vw;
}

/* ============================= */
/* PROJECT CARDS */
/* ============================= */

.project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;

  text-decoration: none;
  color: #111;
}

.project-card .project-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* ============================= */
/* PROJECT PAGE */
/* ============================= */

.project-content {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 2rem;

  padding: 0 2vw 4rem 2vw;
}

.project-text {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;

  text-align: center;
}

/* ============================= */
/* SLIDER DESKTOP */
/* ============================= */

.project-content .project-image {
  width: 100%;
  max-width: 1000px;
  height: 70vh;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  margin: 0 auto;
  padding: 1rem;
}

.project-content .slide {
  width: 100%;
  height: 100%;
  object-fit: contain;

  display: none;
  user-select: none;
}

.project-content .slide.active {
  display: block;
}

/* ============================= */
/* FOOTER */
/* ============================= */

.footer {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;

  padding: 1rem;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {
  .nav {
    padding-left: 2vw;
    padding-right: 2vw;
  }
  body {
    padding-top: 70px;
  }

  /* GRID 1 COLUMNA */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 6vw;
    padding: 0 4vw;
  }

  /* PROJECT PAGE */
  .project-content {
    padding: 0 4vw 4rem 4vw;
    gap: 1.5rem;
  }

  /* IMÁGENES EN COLUMNA (NO SLIDER) */
  .project-content .project-image {
    height: auto;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
  }

  .project-content .slide {
    display: block !important;
    width: 100%;
    height: auto;
  }

  .project-text {
    max-width: 100%;
  }
}