/* ============================================================
   1. RESET & BASE
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: #f6f1ea;
  position: relative;
  overflow-x: hidden;
}

/* Textura de fondo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/textura.png");
  background-size: cover;
  opacity: 0.35;
  z-index: -3;
  pointer-events: none;
}

/* ============================================================
   2. ESTILOS DESKTOP (General)
   ============================================================ */

/* Logo */
.logo-sello {
  position: fixed;
  top: 2rem;
  left: 2.5rem;
  z-index: 10;
}

.logo-sello img {
  width: 200px;
}

/* Navegación */
.nav-top {
  position: fixed;
  top: 2.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 2.2rem;
}

.nav-top a {
  font-family: 'Space Grotesk', sans-serif; /* Actualizada */
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: #000;
  position: relative;
}

.nav-top a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 1px;
  background-color: #000;
  transition: width 0.25s ease;
}

.nav-top a:hover::after {
  width: 100%;
}

/* Sección Principal */
.uno {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
}

.titulo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  position: absolute;
  top: 18%;
  left: 4vw;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  z-index: 1;
}

.bloque-color {
  position: absolute;
  right: 22%;
  top: 20%;
  width: 360px;
  height: 70%;
  background-color: #c7442d;
  z-index: 0;
}

.figura {
  position: absolute;
  right: 18%;
  bottom: 0;
  height: 80vh;
  z-index: 5;
  pointer-events: none;
  /* Optimización Parallax Global */
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* ============================================================
   3. BREAKPOINT TABLET / MEDIUM (780px)
   ============================================================ */
@media (max-width: 780px) {
  .logo-sello img {
    width: 150px;
  }

  .nav-top {
    gap: 1.5rem;
    width: 80%;
    justify-content: center;
  }

  .titulo {
    font-size: clamp(3.5rem, 10vw, 7rem);
    top: 15%;
  }

  .figura {
    right: 5%;
    height: 65vh;
  }

  .bloque-color {
    right: 10%;
    width: 280px;
  }
}

/* ============================================================
   4. BREAKPOINT MOBILE (360px - 400px)
   ============================================================ */
@media (max-width: 400px) {
  
  .logo-sello {
    top: 1.5rem;
    left: 1.5rem;
  }

  .logo-sello img {
    width: 110px;
  }

  .nav-top {
    top: 4.8rem;
    width: 95%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.2rem;
  }

  .nav-top a {
    font-size: 0.6rem;
  }

  .uno {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 140px;
  }

  .titulo {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 8.5vw; 
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .titulo span {
    display: block;
  }

  .figura {
    position: relative;
    right: auto;
    bottom: 0;
    height: 48vh;
    margin: -3rem auto 0 auto;
    display: block;
  }

  .bloque-color {
    width: 100%;
    height: 38%;
    right: 0;
    bottom: 0;
    top: auto;
  }
}
/* ============================================================
   PÁGINA: CONCEPTO (Diseño Editorial)
   ============================================================ */

.concepto-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 160px 5% 80px; /* Espacio para el logo y nav */
  min-height: 100vh;
}

.concepto-header {
  margin-bottom: 4rem;
  border-bottom: 2px solid #000;
  padding-bottom: 1rem;
}

.titulo-pagina {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

/* Layout en Grid tipo revista */
.concepto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem 4rem;
}

.concepto-item h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: #c7442d; /* Tu rojo característico */
}

.concepto-item p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

.concepto-item strong {
  font-weight: 700;
  color: #000;
}

/* Ajustes Responsive para Concepto */
@media (max-width: 780px) {
  .concepto-container {
    padding-top: 140px;
  }
  
  .titulo-pagina {
    font-size: 3.5rem;
  }
}

@media (max-width: 400px) {
  .concepto-container {
    padding-top: 150px;
  }

  .titulo-pagina {
    font-size: 2.2rem;
    text-align: center;
  }

  .concepto-grid {
    grid-template-columns: 1fr; /* Una sola columna en móvil */
    gap: 2.5rem;
  }

  .concepto-item h2 {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .concepto-item p {
    font-size: 1rem;
  }
}
/* --- Animaciones de salida para Logo y Nav --- */
.logo-sello, 
.nav-top {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

/* Clase de estado oculto */
.header-hidden {
  opacity: 0 !important;
  pointer-events: none;
}

/* El logo sube un poco al salir */
.logo-sello.header-hidden {
  transform: translateY(-15px);
}

/* La nav sube un poco al salir */
.nav-top.header-hidden {
  transform: translateX(-50%) translateY(-15px); /* Mantener el centrado X */
}
