@charset "UTF-8";
/* ======================
   RESET & BASE
   ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  background-image: radial-gradient(rgba(0, 0, 0, 0.0509803922) 3px, transparent 2px);
  background-size: 20px 20px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #1a1a1a;
  overflow-x: hidden;
}

/* ======================
   VARIABLES
   ====================== */
:root {
  --max: 1100px;
  --gutter: 28px;
  --radius: 20px;
  --line: rgba(0, 0, 0, 0.041);
  --shadow: 0 18px 40px rgba(0,0,0,.12);
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* Layout wrapper común (FIX: fuera 100vw) */
.project-container {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin: 0 auto;
}

/* ======================
   HEADER / NAV (tu HTML actual)
   header.hero__nav > .pill + .siteHeader__right
   ====================== */
.hero__nav {
  position: fixed; /* flotante */
  top: 34px;
  left: 40px;
  right: 40px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none; /* para que no bloquee scroll */
}

.hero__nav > * {
  pointer-events: auto;
}

.siteHeader__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  color: #1a1a1a;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.pill--icon {
  padding: 14px 16px;
}

.pill__icon {
  font-size: 18px;
}

/* En tu HTML existen estos targets: */
.pill__text {
  display: inline-block;
}

/* Transición suave del fondo */
body {
  transition: background-color 0.6s ease, color 0.6s ease;
}

/* Estados activos */
/* ======================
   THEME (background + text colors)
   ====================== */
body {
  /* Default (fondo blanco) */
  --proj-title: #1a1a1a;
  --proj-text: #1a1a1a;
  --grid-text: #1a1a1a;
}

/* Fondo rojo */
body.bg-red {
  background-color: #901f1f;
  --proj-title: #ffa1a1;
  --proj-text: #ffffff;
}

/* Fondo verde */
body.bg-green {
  background-color: #16221c;
  --proj-title: #d7fcc5;
  --proj-text: #ffffff;
}

/* Aplica colores SOLO al contenido del proyecto (no al nav fijo) */
.project :is(h1, h2, h3, h4, h5, h6) {
  color: var(--proj-title);
}

.project :is(p, span, li, small, strong, em) {
  color: var(--proj-text);
}

.project a {
  color: var(--proj-text);
}

/* EXCEPCIÓN: GRID NO CAMBIA (tarjetas fondo blanco) */
.project .project-grid :is(h1, h2, h3, h4, h5, h6, p, span, li, small, strong, em, a) {
  color: var(--grid-text);
}

/* ======================
   HERO
   ====================== */
.project-hero {
  display: flex;
  flex-direction: column;
  width: 100vw;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.project-hero .project-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
  text-align: center;
}

.project-hero .project-container p {
  text-align: center;
  font-size: 2rem; /* si lo quieres igual que ahora */
}

.project-media {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.project-media img {
  -o-object-fit: cover;
     object-fit: cover;
  height: 70vh;
  width: 100vw;
}

.project-tag {
  background: rgba(255, 255, 255, 0.6431372549);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  padding: 14px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
  backdrop-filter: blur;
}

.project-container h1 {
  font-size: 7rem;
}

.project-hero .project-container p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--proj-text);
  text-align: center;
}

.project-section {
  margin: 160px 0; /* aire editorial */
  padding: 0;
  display: block; /* fuera flex */
}

.project-section .project-container h2 {
  width: auto; /* fuera 60% */
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  text-align: left; /* estilo referencia */
}

.project-section .project-container p {
  width: auto; /* fuera 60% */
  font-size: 18px;
  line-height: 1.6;
  color: var(--proj-text);
  text-align: left;
  max-width: 760px;
}

/* ======================
   SECTION: INTRO / EDITORIAL SHORT
   ====================== */
.project-section--intro {
  margin: 120px 0; /* menos aire que las secciones largas */
}

.project-section--intro .project-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Título: alineado a izquierda, fuerte pero no hero */
.project-section--intro h2 {
  max-width: 760px;
  margin-bottom: 32px;
  text-align: left;
}

/* Texto corto: más compacto */
.project-section--intro p {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--proj-text);
}

/* ======================
   CARROUSEL
   ====================== */
/* ===== Carrusel full-bleed (corta por el viewport) ===== */
/* CONTENEDOR EXTERIOR */
.carrousel-proj-shell {
  position: relative;
  width: auto;
}

/* VIEWPORT SCROLLEABLE */
.carrousel-proj {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-left: 200px;
  padding-right: 200px;
  /* ocultar scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carrousel-proj::-webkit-scrollbar {
  display: none;
}

.carr-content {
  display: flex;
  width: 90vw;
  padding-left: 200px;
}

.carr-content .carrousel-img {
  width: 60%;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  align-items: center;
}

.carr-content .carrousel-img img {
  height: 700px;
  width: auto;
  border-radius: 45px;
}

/* Flechas */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  margin: 0 100px 0 100px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: black;
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow--left {
  left: 20px;
}

.carousel-arrow--right {
  right: 20px;
}

/* comments */
.comment {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
}

.comment.left {
  align-self: start; /* arriba */
}

.comment.right {
  align-self: end; /* abajo */
}

/* responsive: 1 slide visible y apilado */
@media (max-width: 900px) {
  .carrousel-proj {
    width: calc(100% - 40px);
  }
  .carr-content {
    flex-basis: 100%; /* 1 visible */
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .comment.right {
    align-self: start; /* en móvil mejor no forzar abajo */
  }
}
/* Header */
.project-header {
  max-width: 640px;
  margin: auto auto 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.project-header h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  margin-bottom: 16px;
}

.project-header p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--proj-text);
}

/* Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 120px;
  -moz-column-gap: 80px;
       column-gap: 80px;
  width: 60%;
  margin: auto;
}

/* Item */
.grid-element {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 25px;
  height: 200px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.changes-element {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.changes-element h3 {
  font-size: 2rem !important;
}

.changes-element p {
  text-align: center;
}

/* Número */
.grid-index {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e6f5ec;
  color: #1f6f46;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

/* Texto */
.grid-element h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
    row-gap: 64px;
  }
  .project-header {
    margin-bottom: 80px;
  }
}
@media (max-width: 768px) {
  .project-container > h2 {
    margin-bottom: 64px;
  }
  .conclusiones {
    margin-bottom: 64px;
  }
}
/* ======================
   SECTION: CHANGES (Qué se ha cambiado y porqué)
   ====================== */
.project-section--changes .project-container {
  max-width: 900px; /* “escenario” */
  margin: 0 auto;
}

/* Título centrado y con un ancho editorial */
.project-section--changes .project-container > h2 {
  max-width: 760px;
  margin: 0 auto 96px;
  text-align: center;
}

/* Bloques centrados al mismo ancho que el título */
.project-section--changes .conclusiones {
  max-width: 760px;
  margin: 0 auto 72px;
}

/* “Elemento 1” = como el texto, pero un poco mayor y con más peso */
.project-section--changes .conclusiones h3 {
  font-size: 22px; /* 18px texto → 22px título */
  line-height: 1.35;
  font-weight: 600; /* “algo mayor” */
  color: var(--proj-title); /* color de título por tema */
  margin-bottom: 12px;
}

/* Párrafo igual que tu guideline */
.project-section--changes .conclusiones p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--proj-text);
  margin: 0;
}

/* =========================================================
   MOBILE FIXES (solo móvil / no afecta escritorio)
   Pegar AL FINAL de proyecto.scss
========================================================= */
@media (max-width: 900px) {
  /* --- NAV fijo: que no se salga y que respire --- */
  .hero__nav {
    top: 14px;
    left: 14px;
    right: 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .siteHeader__right {
    gap: 10px;
  }
  .pill {
    padding: 12px 14px;
    font-size: 13px;
  }
  /* Si en móvil te molesta texto en pills, puedes ocultarlo:
     (yo lo dejo visible para "Proyectos", pero compacto el de Contact) */
  .pill--contact .pill__text {
    display: none;
  }
  /* --- HERO: el h1 a 7rem en móvil es una falta administrativa --- */
  .project-container h1 {
    font-size: clamp(34px, 9vw, 56px);
    line-height: 1.02;
  }
  .project-hero .project-container {
    margin-top: 24px;
    gap: 14px;
  }
  .project-media img {
    height: 48vh; /* menos “pantallazo” en móvil */
    width: 100%;
  }
  /* --- Secciones: evita 100vh forzado desde inline styles del HTML --- */
  .project-section {
    margin: 90px 0;
  }
  /* En tu HTML hay sections con style="... height: 100vh" */
  .project-section[style*="height: 100vh"] {
    height: auto !important;
    min-height: unset !important;
  }
  /* --- GRID: ya lo pones a 1 columna, pero le quedaba width: 60% --- */
  .project-grid {
    width: 80%;
    padding: 0 16px;
    -moz-column-gap: 0;
         column-gap: 0;
    row-gap: 22px;
  }
  .grid-element {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 30vh;
    padding: 22px;
  }
  .grid-element h3 {
    text-align: center;
  }
  /* --- CARROUSEL: aquí está el crimen principal --- */
  .carrousel-proj-shell {
    width: 100vw;
    padding: 0;
  }
  .carousel-arrow {
    margin: 0;
  }
  .carrousel-proj {
    padding-left: 0px;
  }
  .carr-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
  }
  .comment {
    display: none;
  }
  .comment.left,
  .comment.right {
    align-self: auto; /* fuera “arriba/abajo” forzado */
  }
  .carr-content .carrousel-img {
    width: 100%;
    height: auto;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .project-section {
    margin: 70px 0;
  }
  .project-grid {
    padding: 0 14px;
  }
  .carr-content {
    width: 92vw;
  }
  .carr-content .carrousel-img img {
    width: min(92vw, 380px);
    border-radius: 24px;
  }
}/*# sourceMappingURL=proyecto.css.map */