/* ——— Sección y contenedor ——— */
.v0-proyectos-collage-section {
  width: 100%;
  min-height: 100vh;
  padding: 80px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: black;
  box-sizing: border-box;
}

.v0-proyectos-collage-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.v0-proyectos-collage-title {
  font-family: serif;
  font-weight: bold;
  text-align: center;
  color: white;
  margin-bottom: 60px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

@media (min-width: 640px) {
  .v0-proyectos-collage-title {
    margin-bottom: 20px;
    font-size: 30px;
  }
}

@media (min-width: 1024px) {
  .v0-proyectos-collage-title {
    font-size: 2.7rem;
  }
}

/* ——— Botones de filtro ——— */
.v0-proyectos-filter-buttons {
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.v0-proyectos-filter-button {
  padding: 8px 24px;
  border-radius: 9999px;
  border: 1px solid #312a1c;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  background-color: #1b1c1f;
  color: #cbb181;
}

.v0-proyectos-filter-button.active {
  background-color: #cbb181;
  color: #18181a;
}

.v0-proyectos-filter-button:not(.active):hover {
  background-color: #3a2f21;
  color: #fff;
}

/* ——— Masonry ——— */
.v0-proyectos-grid {
  column-count: 1;
  column-gap: 24px;
}

@media (min-width: 640px) {
  .v0-proyectos-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .v0-proyectos-grid {
    column-count: 3;
  }
}

.v0-proyectos-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  break-inside: avoid;
  cursor: pointer;
  margin-bottom: 24px;
  display: block;
  background: #000;
}

.v0-proyectos-card-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease-in-out;
  display: block;
}

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

.v0-proyectos-card-title-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 16px;
  font-size: 0.875rem;
  font-family: serif;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.v0-proyectos-no-found {
  color: white;
  text-align: center;
  width: 100%;
  font-size: 1.2rem;
  margin-top: 50px;
}

/* ——— Modal ——— */
.v0-proyectos-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.v0-proyectos-modal.open {
  display: flex;
}

.v0-proyectos-modal-content {
  background-color: #18181a;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1080px;
  border: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

@media (min-width: 768px) {
  .v0-proyectos-modal-content {
    max-width: 960px;
    flex-direction: row;
  }
}

.v0-proyectos-modal-close {
  color: white !important;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  background: black !important;
  border: none;
  z-index: 10;
}

.v0-proyectos-modal-close:hover,
.v0-proyectos-modal-close:focus {
  color: white;
}

/* Cuerpo del modal */
.v0-proyectos-modal-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  .v0-proyectos-modal-body {
    flex-direction: row;
  }
}

/* ───────── BOTÓN DE CIERRE • ajustes móviles ───────── */
@media (max-width: 480px){                   /* solo smartphones */
  .v0-proyectos-modal-close{
    top: 10px;               /* un poco más separado del borde */
    right: 10px;

    width: 56px;             /* zona táctil recomendada ≥ 48 px */
    height: 56px;
    font-size: 38px;         /* “X” más grande */
    line-height: 54px;

    border-width: 3px;       /* borde un poco más grueso */
    box-shadow: 0 6px 14px rgba(0,0,0,.35);
    z-index: 10000;          /* por encima de todo */
  }
}


/* ——— WRAPPER de la imagen (centra y limita alto) ——— */
.v0-proyectos-modal-image-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #000;
  flex: 1 1 50%;
  max-height: 80vh;
}

@media (min-width: 768px) {
  .v0-proyectos-modal-image-wrapper {
    flex: 1 1 65%;
    padding: 24px;
  }
}

/* ——— IMAGEN del modal: SIEMPRE COMPLETA ——— */
.v0-proyectos-modal-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  filter: brightness(0.94);
  background: #000;
}

/* Ajustes móviles: deja más espacio para el texto debajo */
@media (max-width: 767px) {
  .v0-proyectos-modal-image {
    max-height: 55vh;
  }
}

/* Columna de detalles */
.v0-proyectos-modal-details {
  flex: 1 1 50%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  max-height: 80vh;
}

@media (min-width: 768px) {
  .v0-proyectos-modal-details {
    flex: 1 1 35%;
  }
}

.v0-proyectos-modal-title {
  font-family: serif;
  font-size: 1.875rem;
  color: white;
  margin-bottom: 12px;
  line-height: 1.2;
}

.v0-proyectos-modal-pais {
  margin-bottom: 20px;
  color: #ccb57a;
  font-weight: 600;
  font-size: 1.125rem;
}

.v0-proyectos-modal-descripcion {
  color: #eee7d9;
  font-family: sans-serif;
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  white-space: pre-line;
}

/* Contenedor para la sección de detalles */
.v0-proyectos-modal-detalles-container {
  margin-top: 8px;
}

/* Título para la sección de detalles */
.v0-proyectos-modal-detalles-title {
  color: #ccb57a;
  font-family: sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.v0-proyectos-modal-detalles {
  margin-bottom: 16px;
  margin-left: 0;
  padding-left: 20px;
  list-style-type: disc;
  color: #cfc9b8;
  font-size: 0.95rem;
  font-family: sans-serif;
  line-height: 1.5;
}

.v0-proyectos-modal-detalles li {
  margin-bottom: 4px;
}

/* ---------- NUEVO: forzar detalles como párrafo ---------- */
#v0-proyectos-modal-detalles ul,
#v0-proyectos-modal-detalles li {
	list-style: none;
	margin: 0;
	padding: 0;
}


/* ─── mini-galería (modal) ─── */
.v0-proyectos-modal-thumbs {
	margin-top: 12px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.v0-proyectos-thumb {
	width: 70px;
	height: 70px;
	object-fit: cover;
	border: 2px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	transition: border .2s;
}

.v0-proyectos-thumb:hover {
	border-color: #ccb57a;
}



/* …TODO tu CSS existente… */

/* —— wrapper imagen + thumbs: en columna —— */
.v0-proyectos-modal-image-wrapper{
	width:100%;
	display:flex;
	flex-direction:column;          /* <— antes era row */
	align-items:center;
	justify-content:center;
	padding:16px;
	background:#000;
	flex:1 1 50%;
	max-height:80vh;
}

/* mini-galería */
.v0-proyectos-modal-thumbs{
	margin-top:12px;
	display:flex;
	gap:8px;
	flex-wrap:wrap;
	justify-content:center;
	max-width:100%;
	overflow-x:auto;               /* scroll horizontal si hay muchas */
	padding-bottom:4px;
}

.v0-proyectos-thumb{
	width:70px;height:70px;
	object-fit:cover;
	border:2px solid transparent;
	border-radius:6px;
	cursor:pointer;
	transition:border .2s,transform .15s;
}
.v0-proyectos-thumb:hover{
	border-color:#ccb57a;
	transform:scale(1.04);
}
