/* 🎨 Fondo con imagen de cabecera */
header {
  background-image: url('https://imgur.com/MMgLWPn.jpg');
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
  position: relative;
}

/* 🌓 Oscurece la imagen para que el texto se lea bien */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

header h1 {
  font-family: "termina", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 3.2rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

header p {
  font-family: "prestige-elite-std", monospace;
  font-weight: 700;
  font-style: normal;
  font-size: 1.3rem;
  margin: 0;
  position: relative;
  z-index: 1;
}
.titulo-portada {
  font-family: "prestige-elite-std", monospace;
  font-weight: 700;
  font-style: normal;
  color: #444;
  font-size: 1rem;
  margin-top: 10px;
  text-align: center;
}


/* 🌐 Fuente base para todo el texto normal del sitio */
body {
font-family: "intercom", sans-serif;
font-weight: 400;
font-style: normal;
background-color: #b3b3b3;
  margin: 0;
  padding: 0;
}

/* 🔠 Encabezados grandes con la fuente Termina */
h1, h2, h3, h4 {
  font-family: "termina", sans-serif; /* ← Usa Termina solo para títulos */
  font-weight: 700;
}


/* 💬 Subtítulos del header y selector de proyectos en Prestige */
header p,
.galeria-portada h3 {
  font-family: "prestige-elite-std", monospace;  /* ← Usa Prestige para subtítulos */
  font-weight: 700;
  font-style: normal;
}

.texto-proyecto {
  column-count: 2;              /* 🔢 Número de columnas */
  column-gap: 40px;             /* 📏 Espacio entre columnas */
  font-family: "intercom", sans-serif; /* O la que tú prefieras */
  font-size: 1.1rem;
  line-height: 1.6;
  color: #222;
}

.texto-subproyecto {
  font-family: "intercom", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 1.5rem;
  color: #222;
  background: #f9f9f9;
}

.texto-detalles {
font-family: "intercom", sans-serif;
font-weight: 500;
font-style: normal;
  color: #222;
  font-size: 1.4rem;
  line-height: 1.6;
}


/* Tamaños de encabezado */
h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.3rem;
}

.portada-info {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.portada {
  flex: 1 1 40%;
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 📝 El texto a la derecha */
.info-extra {
  flex: 1 1 300px; /* Tamaño flexible */
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Responsive en móvil */
@media (max-width: 768px) {
  .portada-info {
    flex-direction: column;
    align-items: center;
  }

  .portada,
  .info-extra {
    width: 100%;
  }
}



.posters-musica {
  margin: 60px 0;
  padding: 0 20px;
}

.posters-musica h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.posters-musica p {
  max-width: 700px;
  margin-bottom: 30px;
  color: #555;
}


.galeria-posters img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.galeria-posters img:hover {
  transform: scale(1.03);
}
.galeria-posters {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columnas exactas */
  gap: 20px;
}

.galeria-posters img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.galeria-posters img:hover {
  transform: scale(1.03);
}
@media (max-width: 1024px) {
  .galeria-posters {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en pantallas medianas */
  }
}

@media (max-width: 600px) {
  .galeria-posters {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en móviles */
  }
}

.transicion.especial {
  text-align: center;
  margin: 80px 0 40px;
  color: #333;
  font-family: 'Georgia', serif;
  background: linear-gradient(to right, #f4f4f4, #ffffff);
  padding: 30px 10px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.transicion.especial .transicion-texto {
  font-style: italic;
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.galeria-revista {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.galeria-revista img {
  height: 690px; /* o la altura de tu imagen principal */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .galeria-revista {
    flex-direction: column;
    align-items: center;
  }

  .galeria-revista img {
    width: 90%;
    height: auto;
  }
}



.proyecto.tesis {
  padding: 40px 70px;
  background-color: #f9f9f9;
}

.tesis-header {
  display: flex;
  align-items: center;
  gap: 90px;
  flex-wrap: wrap; /* por si se reduce en pantallas pequeñas */
}

.portada-tesis {
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}



.artefacto-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  flex: 1;
}

.artefacto-galeria img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.artefacto-galeria-contenedor h4 {
  margin: 0 0 10px 0;
  font-weight: 600;
  font-size: 1.1em;
  color: #333;
}


.volver-inicio {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
}

.volver-inicio a {
  text-decoration: none;
  font-size: 1.4rem;
  background-color: #222;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: italic;
  transition: background-color 0.3s ease;
}

.volver-inicio a:hover {
  background-color: #444;
}

/* ⭐ GALERÍA DE PORTADA */
.galeria-portada {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  max-width: 1100px;
  margin: 40px auto;
}

/* 🎴 TARJETA DE CADA PROYECTO */
.tarjeta-proyecto {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.tarjeta-proyecto img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
}

.tarjeta-proyecto h3 {
  margin: 10px 0;
  color: #333;
  font-size: 1rem;
  text-align: center;
}

.tarjeta-proyecto:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}