* {
  box-sizing: border-box;
  font-family: "questrial", sans-serif;
}

body {
  margin: 0;
  background-color: #203145;
  color: #fff;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
}

.back-arrow,
.contact-link {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

.logo {
  height: 1.5rem;
}

/* MAIN */
.proyecto {
  max-width: 90%;
  margin: auto;
  padding: 40px 20px;
}

/* TÍTULO */
.titulo-proyecto h1 {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  margin-bottom: 60px;
  letter-spacing: -0.05vw;
}

/* INTRO */
.intro-proyecto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}
.texto-proyecto h2 {
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  letter-spacing: -0.02vw;
  margin-bottom: 16px;
}
.texto-proyecto p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;

}
p {
    letter-spacing: -0.01vw; /* Reduce el espacio entre letras para un diseño compacto */
}

.imagen-proyecto img {
  width: 100%;
  border-radius: 12px;
}

/* CARRUSEL */
.carousel {
  overflow-x: auto;
  margin-bottom: 100px;
}

.carousel-track {
  display: flex;
  gap: 20px;
}

.carousel-track img {
  height: 300px;
  border-radius: 12px;
  flex-shrink: 0;
}

/* CTA */
.cta-proyecto {
  text-align: center;
}

.cta-proyecto h2 {
  font-size: 1,6rem;
  margin-bottom: 10px;
}

.cta-proyecto p {
  margin-bottom: 30px;
  color: #ccc;
}

.btn-cta {
  display: inline-block;
  padding: 10px 28px;
  background-color: #fff;
  color: #203145;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
    margin-bottom: 50px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .intro-proyecto {
    grid-template-columns: 1fr;
  }

  .carousel-track img {
    height: 220px;
  }
}


/* SCROLLBAR ESTILO iOS PARA EL CARRUSEL */
.carousel {
  overflow-x: auto;
  padding-bottom: 12px; /* espacio entre imágenes y barra */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.35) transparent;
}

/* Chrome, Safari, Edge */
.carousel::-webkit-scrollbar {
  height: 4px; /* MUY fina */
}

.carousel::-webkit-scrollbar-track {
  background: transparent;
}

.carousel::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.35);
  border-radius: 10px;
}

/* Opcional: aparece solo al interactuar */
.carousel::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.55);
}