:root {
  --verde-oscuro: #0b592a;
  --verde-medio: #39a336;
  --morado: #714091;
  --dorado: #e5af40;
  --vino: #be2e39;
  --tierra: #eec819;
  --gris-claro: #f4f6f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #222;
  line-height: 1.6;
  background: white;
}

/* ===== INTRO ===== */
.intro-icarrd {
  width: 100%;
  aspect-ratio: 1920 / 1000;
  background: url('/es/Paginas/2026/FILBo2026/img/Banner.jpg') center/cover no-repeat;
}

/* ===== HERO ===== */
.hero {
  min-height: clamp(400px, 60vh, 550px);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.75));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero-content {
  max-width: 900px;
  color: white;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 25px;
}

.hero-content p {
  font-size: 1.2rem;
}

/* ===== SECCIÓN BASE ===== */
.section {
  padding: 120px 20px;
  text-align: center;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--verde-oscuro);
}

/* ===== INSTITUCIONAL ===== */
.institucional {
  padding: 120px 20px;
  background: url('/es/Paginas/2026/FILBo2026/img/FondoPanel.jpg') center/cover;
}

.institucional-wrapper {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

/* 🔥 CLAVE: balance visual */
.institucional-text {
  flex: 1;
}

.institucional-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.institucional-text h2 {
  font-size: 2.5rem;
  color: #523c8f;
  margin-bottom: 20px;
}

.institucional-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* 🔥 FIX imagen grande */
.institucional-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ===== AGENDA ===== */
.agenda-section {
  padding: 120px 20px;
  background: url('/es/Paginas/2026/FILBo2026/img/FondoCronograma.jpg') center/cover;
  text-align: center;
}

.agenda-container {
  max-width: 1100px;
  margin: auto;
}

.agenda-title {
  font-size: 2.5rem;
  color: var(--dorado);
  margin-bottom: 60px;
}

.agenda-panel {
  display: inline-block;
  background: #e8e1ca;
  padding: 20px;
  border-radius: 20px;
}

.agenda-panel img {
  max-width: 100%;
  border-radius: 12px;
}

/* ===== PANELES ===== */
/* ===== PANELES (FONDO + OVERLAY) ===== */

.paneles-section {
  position: relative;
  padding: 140px 20px;

  /* 🔥 fondo */
  background: url('/es/Paginas/2026/FILBo2026/img/FondoNoticias.jpg');
  background-size: cover;
  background-position: center;

  overflow: hidden;
}

/* 🔥 asegurar que el contenido quede encima */
.paneles-section h2,
.paneles-section p,
.paneles-section .grid-paneles {
  position: relative;
  z-index: 2;
}

/* ===== PANELES - COLORES TEXTO ===== */

.paneles-section h2 {
  color: var(--dorado); /* morado institucional */
}

.paneles-section p {
  color: blanchedalmond;
  font-size: 1.5rem; /* gris elegante (más legible que negro puro) */
}

/* opcional: mejorar separación del párrafo */
.paneles-section p {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.grid-paneles {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 🔥 3 columnas fijas */
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.panel-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  transition: 0.3s ease;
}

.panel-card:hover {
  transform: translateY(-6px);
}

.panel-img img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

/* ===== REDES ===== */
.redes-section {
  padding: 140px 20px;
  background: url('/es/Paginas/2026/FILBo2026/img/FondoRedes.jpg'), var(--gris-claro);
  background-size: cover;
  background-position: center;
}

.redes-section h2 {
  color: #523c8f;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

/* ===== NOTICIAS ===== */
.noticias-section {
  padding: 140px 20px;
  background: url('/es/Paginas/2026/FILBo2026/img/FondoNoticias.jpg') center/cover;
}

.noticias-section h2 {
  color: var(--dorado);
}

.card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
}

.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-content {
  padding: 25px;
}

.btn-card {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 22px;
  background: var(--verde-medio);
  color: white;
  border-radius: 30px;
  text-decoration: none;
}

.btn-card:hover {
  background: var(--dorado);
  color: #222;
}

/* ===== FOOTER ===== */
footer {
  background: var(--morado);
  color: white;
  padding: 25px;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-paneles {
    grid-template-columns: repeat(2, 1fr); /* tablet */
  }
}

@media (max-width: 768px) {

  .section {
    padding: 80px 20px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .institucional-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .institucional-text h2 {
    font-size: 2rem;
  }

  .agenda-title {
    font-size: 1.8rem;
  }

  .grid-paneles {
    grid-template-columns: 1fr; /* móvil */
  }

  .redes-section .grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}