:root {
  --bg-color: #ffffff;
  --text-color: #111111;
  --text-muted: #444444;
  --accent-color: #5e4887;
  --accent-hover: #003a63;
  --border-color: #e2e8f0;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.65;
  padding-bottom: 80px;
}

/* HEADER CON BANNER Y SIN TEXTO */
.hero-header {
  position: relative;
  background-color: #f8fafc;
  background-image: url('img/banner.jpg');
  background-size: cover;
  background-position: top center;
  color: #ffffff;
  padding: 6.5rem 2rem 5.5rem;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}

/* HEADER SIN BANNER Y CON TEXTO */
.hero-sin-header {
  position: relative;
  /* background-color: #eee; */
  /* background-image: url('img/banner.jpg');
  background-size: cover;
  background-position: center;*/
  color: var(--text-color);
  padding: 1.5rem 2rem 1.5rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  text-align: center;
}

.header-container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.4); */
  /* padding-bottom: 0.5rem; */
}

.header-top a {
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.2s;
}

.header-top a:hover {
  opacity: 1;
  text-decoration: underline;
}

.hero-sin-header h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.1;
}

/* ------------------------------------------------------ */

/* CONTENEDOR PRINCIPAL Y GRID DE 3 COLUMNAS */
.main-container {
  max-width: 1280px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

@media (max-width: 900px) {
  .grid-3col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ESTILO EDITORIAL LIGERO */
.col-text {
  background: transparent;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
}

.col-text h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--text-color);
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.col-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.6rem;
  margin-bottom: 0.35rem;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.col-text p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.actions {
  margin-top: auto;
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-radius: 4px;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-link {
  display: inline-block;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.2s, border-color 0.2s;
}

.btn-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ENCABEZADOS DE SECCIÓN */
.section-header {
  margin: 4.5rem 0 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
  font-size: 1.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* CONVOCATORIAS ANTERIORES */
.past-editions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.25rem;
}

.edition-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s ease;
}

.edition-item:hover {
  opacity: 0.85;
}

.edition-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #f1f5f9;
  margin-bottom: 1rem;
}

.edition-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.edition-artists {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.edition-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666666;
}

/* PIE DE PÁGINA EN UNA SOLA LÍNEA AL 50% */
.site-footer {
  max-width: 1280px;
  margin: 5.5rem auto 0;
  padding: 3rem 1.5rem 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 60px;
}

.footer-info {
  flex: 0 0 50%;
  max-width: 50%;
}

.footer-info p {
  margin-bottom: 0.35rem;
}

.footer-info a.email-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.footer-info a.email-link:hover {
  text-decoration: underline;
}

.footer-logos {
  flex: 0 0 50%;
  max-width: 50%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footer-logo {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* RESPONSIVE PARA DISPOSITIVOS MÓVILES / TELÉFONOS */
@media (max-width: 900px) {
  body {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: clamp(1.05rem, 4.2vw, 1.35rem); /* Reducción de fuente responsiva para evitar corte */
    line-height: 1.35;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .footer-info,
  .footer-logos {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .footer-logos {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-logo {
    max-height: none;
    max-width: 320px;
  }
}