:root {
  --bg-main: #dec8b6;     /* beige del afiche */
  --red-main: #d73632;    /* rojo Colectividades */
  --blue-main: #0052a4;   /* azul grilla / fecha */
  --yellow-main: #fbb933; /* amarillo pórtico */
  --text-main: #2a1f1a;
  --white: #ffffff;
}

/* Reset simple */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "Karla", "Roboto", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden; /* 🔒 sin scroll horizontal */
}

.roboto-text {
  font-family: "Roboto", sans-serif;
  font-variation-settings: "wdth" 100;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout base */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 86, 30, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(0,0,0,0.05);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 44px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}

nav a:hover {
  background: var(--red-main);
  color: var(--white);
  transform: translateY(-1px);
}

/* Toggle mobile */
#nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* HERO */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-align: center;
  background-image: url("../img/Home_Colectividades.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-inner {
  padding: 5rem 1.5rem 4rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow-main);
  color: #663300;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero-tag span.num {
  background: var(--red-main);
  color: var(--white);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
}

.hero-logo {
  max-width: 420px;
  margin: 0 auto 1.4rem;
}

.hero h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 1.1rem;
  color: var(--blue-main);
}

.hero-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--blue-main);
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--white);
}

.hero-date span {
  font-size: 0.9rem;
}

.hero-msg {
  max-width: 640px;
  margin: 0 auto 1.7rem;
  font-size: 0.98rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.btn-primary,
.btn-outline {
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--red-main);
  border-color: var(--red-main);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--yellow-main);
  color: var(--yellow-main);
}

.btn-primary:hover {
  background: #b72c29;
  border-color: #b72c29;
}

.btn-outline:hover {
  background: var(--yellow-main);
  color: #663300;
}

/* Secciones generales */
main section {
  padding: 4rem 0;
}

main section:nth-of-type(even) {
  background: rgba(255,255,255,0.55);
}

h2.section-title {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1rem;
  color: var(--blue-main);
  margin-bottom: 0.75rem;
}

h3.section-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1.6rem;
  color: var(--red-main);
}

p.lead {
  font-size: 1rem;
  max-width: 720px;
  margin-bottom: 1.8rem;
}

/* Pills / chips */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-start;
  position: relative;
  width: 100%;
}

.pill-box {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.pill {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  border: 1px dashed rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.6);

  /* espacio para bandera */
  padding: 0.35rem 0.8rem;
  padding-left: 38px;
  background-size: 26px 18px;
  background-repeat: no-repeat;
  background-position: 8px center;
}

/* Video */
.video-section .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.18);
  background: #000;
}

.video-section iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* MAPA PREDIO */
.map-wrapper {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.18);
  background: #ddd;
  width: 100%;
  height: 420px;
  position: relative;
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: auto;
}

/* FAQs */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

details {
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0,0,0,0.06);
}

summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  font-weight: 700;
}

details[open] summary::after {
  content: "–";
}

details p {
  margin-top: 0.6rem;
  font-size: 0.93rem;
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-card {
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 1.3rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.06);
}

.contact-card h4 {
  margin-bottom: 0.75rem;
  color: var(--red-main);
}

.contact-card p {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.social-pill {
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--blue-main);
  color: var(--white);
}

/* Banderas por país */
.bandera-ar { background-image: url("../img/banderas/ar.png"); }
.bandera-mx { background-image: url("../img/banderas/mx.png"); }
.bandera-arabes { background-image: url("../img/banderas/ams.png"); }
.bandera-am { background-image: url("../img/banderas/am.png"); }
.bandera-br { background-image: url("../img/banderas/br.png"); }
.bandera-cu { background-image: url("../img/banderas/cu.png"); }
.bandera-uy { background-image: url("../img/banderas/uy.png"); }
.bandera-ec { background-image: url("../img/banderas/ec.png"); }
.bandera-ve { background-image: url("../img/banderas/ve.png"); }
.bandera-eg { background-image: url("../img/banderas/eg.png"); }
.bandera-py { background-image: url("../img/banderas/py.png"); }
.bandera-andalucia { background-image: url("../img/banderas/andalucia.png"); }
.bandera-es { background-image: url("../img/banderas/es.png"); }
.bandera-de { background-image: url("../img/banderas/de.png"); }
.bandera-pe { background-image: url("../img/banderas/pe.png"); }
.bandera-co { background-image: url("../img/banderas/co.png"); }
.bandera-za { background-image: url("../img/banderas/za.png"); }
.bandera-tr { background-image: url("../img/banderas/tr.png"); }
.bandera-fr { background-image: url("../img/banderas/fr.png"); }
.bandera-pr { background-image: url("../img/banderas/pr.png"); }
.bandera-ca { background-image: url("../img/banderas/ca.png"); }
.bandera-iq { background-image: url("../img/banderas/iq.png"); }
.bandera-us { background-image: url("../img/banderas/us.png"); }
.bandera-at { background-image: url("../img/banderas/at.png"); }
.bandera-it { background-image: url("../img/banderas/it.png"); }
.bandera-jp { background-image: url("../img/banderas/jp.png"); }

/* ======== CARTA - ACORDEÓN AVANZADO ======== */

.carta-titulo {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-main);
}

.carta-content {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 9999;

  width: 580px;
  max-width: 95vw;
  max-height: 60vh;

  overflow-y: auto;
  overflow-x: hidden;

  background: rgba(255,255,255,0.97);
  padding: 20px 22px;
  border-radius: 14px;

  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  border: 1px solid rgba(0,0,0,0.1);

  display: none;
  animation: fadeIn .25s ease;
}

.carta-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: #d73632; /* rojo del evento */
  color: white;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carta-close:hover {
  background: #b12a29;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* GRID 50% LISTA – 50% FOTO */
.carta-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 14px;
}

/* LISTA */
.carta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.15);
}

.menu-nombre {
  font-size: 0.9rem;
  font-weight: 600;
}

.menu-precio {
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
}

/* FOTO – recorte sin deformar */
.carta-foto {
  min-height: 160px;
}

.carta-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 🔥 recorte sin deformar */
  border-radius: 12px;
}

/* SPONSORS */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  align-items: center;
  justify-items: center;
}

.sponsor,
.sponsor-main {
  filter: drop-shadow(0px 3px 3px rgba(0,0,0,0.15));
  transition: transform .2s ease;
}

.sponsor:hover,
.sponsor-main:hover {
  transform: scale(1.05);
}

.sponsor {
  max-width: 150px;
}

.sponsor-main {
  max-width: 230px;
}

/* Footer */
footer {
  padding: 1.5rem 0;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(0,0,0,0.6);
}

/* ==========================================================
   ELEMENTOS LATERALES DECORATIVOS POR SECCIÓN
   ========================================================== */

/* Cada sección con decoros es el contenedor relativo */
.section-decor {
  position: relative;
  overflow: visible;
}

/* BASE para todas las decoraciones flotantes */
.decor-home-1,
.decor-home-2,
.decor-grilla-1,
.decor-grilla-2,
.decor-col-1,
.decor-col-2,
.decor-spon-1,
.decor-spon-2,
.decor-predio-1,
.decor-predio-2,
.decor-left,
.decor-right {
  position: absolute;
  top: 50%;
  width: 160px;
  max-width: 35vw;
  opacity: 0.9;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 2;
}

/* POSICIONES IZQ / DER POR TIPO */

/* HOME */
.decor-home-1 { left: -20px; }
.decor-home-2 { right: -20px; }

/* GRILLA */
.decor-grilla-1 { left: -25px; }
.decor-grilla-2 { right: -25px; }

/* COLECTIVIDADES */
.decor-col-1 { left: -15px; }
.decor-col-2 { right: -15px; }

/* SPONSORS */
.decor-spon-1 { left: -25px; }
.decor-spon-2 { right: -25px; }

/* PREDIO */
.decor-predio-1 { left: -20px; }
.decor-predio-2 { right: -20px; }

/* SECCIONES CON decor-left / decor-right genéricas (carta, video, faqs, contacto) */
.decor-left { left: -20px; }
.decor-right { right: -20px; }

/* ANIMACIONES ASIGNADAS (todas flotan, pero no igual) */

/* HOME */
.decor-home-1 { animation: floatA 7s ease-in-out infinite; }
.decor-home-2 { animation: floatB 9s ease-in-out infinite; }

/* GRILLA */
.decor-grilla-1 { animation: floatC 8s ease-in-out infinite; }
.decor-grilla-2 { animation: floatD 10s ease-in-out infinite; }

/* COLECTIVIDADES */
.decor-col-1 { animation: floatE 6.5s ease-in-out infinite; }
.decor-col-2 { animation: floatF 9.5s ease-in-out infinite; }

/* SPONSORS */
.decor-spon-1 { animation: floatB 8s ease-in-out infinite; }
.decor-spon-2 { animation: floatA 11s ease-in-out infinite; }

/* PREDIO */
.decor-predio-1 { animation: floatC 9s ease-in-out infinite; }
.decor-predio-2 { animation: floatD 12s ease-in-out infinite; }

/* GENÉRICOS: CARTA, VIDEO, FAQS, CONTACTO */
.decor-left  { animation: floatA 8s ease-in-out infinite; }
.decor-right { animation: floatB 10s ease-in-out infinite; }

/* KEYFRAMES (ya los tenías, los dejo tal cual) */
@keyframes floatA {
  0% { transform: translateY(-55%) rotate(-1deg); }
  50% { transform: translateY(-45%) rotate(2deg); }
  100% { transform: translateY(-55%) rotate(-1deg); }
}

@keyframes floatB {
  0% { transform: translateY(-52%) translateX(0) rotate(0deg); }
  50% { transform: translateY(-48%) translateX(6px) rotate(2deg); }
  100% { transform: translateY(-52%) translateX(0) rotate(0deg); }
}

@keyframes floatC {
  0% { transform: translateY(-55%) rotate(-3deg); }
  50% { transform: translateY(-45%) rotate(3deg); }
  100% { transform: translateY(-55%) rotate(-3deg); }
}

@keyframes floatD {
  0% { transform: translateY(-50%) rotate(-2deg); }
  50% { transform: translateY(-48%) rotate(2deg); }
  100% { transform: translateY(-50%) rotate(-2deg); }
}

@keyframes floatE {
  0% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(-52%) rotate(4deg); }
  100% { transform: translateY(-50%) rotate(0deg); }
}

@keyframes floatF {
  0% { transform: translateY(-55%) rotate(0deg); }
  50% { transform: translateY(-45%) rotate(-3deg); }
  100% { transform: translateY(-55%) rotate(0deg); }
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: inline-flex;
  }

  nav ul {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    background: rgba(222, 200, 182, 0.98);
    padding: 0.75rem 1.5rem 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
  }

  #nav-toggle:checked + .nav-toggle-label + nav ul {
    max-height: 260px;
  }

  .hero-inner {
    padding-top: 4rem;
  }

  .hero-logo {
    max-width: 320px;
  }

  /* en mobile, si querés las decoraciones irrelevantes, se pueden ocultar */
  .decor-left,
  .decor-right {
    display: none;
  }

  .carta-content {
    position: static;    /* en mobile, que se abra debajo sin superponerse */
    width: 100%;
    max-width: 100%;
  }
}
/* ============================
   GRILLA: 2 COLUMNAS + PANEL
   ============================ */

.grilla-layout {
  display: flex;
  gap: 2rem;
  align-items: stretch;   /* ambas columnas misma altura */
  margin-top: 1.5rem;
}

/* columna izquierda: texto + días + programación */
.grilla-left {
  flex: 0 0 65%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* columna derecha: tarjetas grilla */
.grilla-right {
  flex: 0 0 35%;
  display: flex;
  align-items: stretch;
}

/* Botones de día (similar a pill) */
.dia-pill {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s, border-color 0.2s;
}

.dia-pill:hover {
  transform: translateY(-1px);
  border-color: var(--blue-main);
}

.dia-pill.active {
  background: var(--blue-main);
  color: #fff;
  border-color: var(--blue-main);
}

/* Paneles de programación */
.grilla-panels {
  margin-top: 0.5rem;
}

.grilla-panel {
  display: none;
  background: rgba(255,255,255,0.9);
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.grilla-panel.active {
  display: block;
}

.grilla-panel-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.2rem;
}

.grilla-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-main);
  margin-bottom: 0.5rem;
}

.grilla-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.grilla-col li {
  font-size: 0.9rem;
  padding: 0.2rem 0;
  border-bottom: 1px dashed rgba(0,0,0,0.12);
}

/* columna derecha: tarjetas grilla */
.grilla-right {
  flex: 0 0 35%;
  display: flex;
  align-items: stretch;
}

/* el slider ocupa toda la altura de la columna */
.grilla-slider {
  position: relative;
  width: 100%;
  height: 100%;              /* 🔥 misma altura que la izquierda */
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 0px 0px rgba(0,0,0,0.0);
  background: transparent;   /* porque usás PNG con fondo transparente */
}

/* slides dentro del slider */
.grilla-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.grilla-slide.active {
  opacity: 1;
}

.grilla-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* llena el alto y ancho de la columna */
}


/* Responsive */
@media (max-width: 900px) {
  .grilla-layout {
    grid-template-columns: 1fr;
  }

  .grilla-right {
    max-width: 420px;
    margin: 0 auto;
  }

  .grilla-panel-inner {
    grid-template-columns: 1fr;
  }
}
/* ===== GRILLA: SOLO ESCENARIO PRINCIPAL ===== */

.grilla-panel-inner.solo-principal {
  display: flex;
  justify-content: center;
  background: rgba(255,255,255,0.65);
  border-radius: 18px;
  padding: 1.5rem 2rem;
}

.grilla-col.unica {
  width: 100%;
  max-width: 680px;          /* 🔥 tamaño grande pero elegante */
  margin: 0 auto;
}

.grilla-col.unica h4 {
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.grilla-col.unica ul {
  margin-top: 1rem;
}

/* Artistas principales destacados */
.artista-principal {
  font-weight: 700;
  color: var(--red-main);
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.artista-principal::before {
  content: "★ ";
  color: var(--red-main);
  font-size: 1.1rem;
}

/* ===== FORMULARIO CONTACTO ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-main);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 10px;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.85);
}

.contact-form textarea {
  resize: vertical;
}

/* ===== MODAL CONTACTO ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;              /* 🔥 por defecto oculto */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;              /* 🔥 solo se muestra con .active */
}

.modal-box {
  background: #fff;
  padding: 1.8rem 2rem;
  border-radius: 18px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

.modal-box h4 {
  margin-bottom: 0.8rem;
  color: var(--red-main);
}

.modal-box p {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
/* ==========================================================
   FIX 1) En pantallas >1920: que no quede "chico al medio"
   ========================================================== */

/* el container se agranda en pantallas grandes */
@media (min-width: 1921px) {
  .container {
    max-width: 1380px;     /* probá 1360/1440 según te guste */
  }
}

/* ==========================================================
   FIX 2) Responsive móvil: grilla no se superpone
   - columna derecha (slider) abajo del horario
   ========================================================== */

@media (max-width: 900px) {
  .grilla-layout {
    flex-direction: column;  /* apila 65/35 */
    align-items: stretch;
  }

  .grilla-left,
  .grilla-right {
    flex: 1 1 auto;
    width: 100%;
  }

  .grilla-right {
    order: 2;                /* slider abajo */
    margin-top: 1.25rem;
  }

  .grilla-left {
    order: 1;                /* horarios arriba */
  }

  /* importante: el slider necesita altura cuando está apilado */
  .grilla-slider {
    height: 420px;           /* ajustá 360/420/480 */
    border-radius: 18px;
  }
}

/* ==========================================================
   FIX 3) En celular: ocultar decoraciones laterales
   (los PNG que se te van arriba del texto)
   ========================================================== */

@media (max-width: 900px) {
  /* mata TODAS las decoraciones que empiezan con decor- */
  [class^="decor-"] {
    display: none !important;
  }
}
/* ===== FIX sponsors: evitar superposiciones ===== */
#sponsors{
  position: relative;
  overflow: hidden;          /* corta decoraciones que se meten encima */
}

/* decoraciones siempre atrás del contenido */
#sponsors [class^="decor-"],
#sponsors .decor-left,
#sponsors .decor-right{
  z-index: 0 !important;
}

/* contenido por arriba */
#sponsors .container{
  position: relative;
  z-index: 2;
}

/* por si algo se montaba: que el grid no se vaya de ancho */
.sponsor-grid{
  width: 100%;
  max-width: 100%;
}
/* ===== FIX slider: que no recorte las tarjetas ===== */
.grilla-slide img{
  object-fit: contain !important;   /* muestra completa */
  background: transparent;          /* si tus png son transparentes */
}
/* =========================
   SPONSORS: MOBILE FIX
   ========================= */

#sponsors .sponsor-grid img{
  width: 100%;
  height: auto;
  display: block;
}

/* MAIN sponsors (primer sponsor-grid) */
#sponsors .sponsor-grid:first-of-type{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}

#sponsors .sponsor-grid:first-of-type .sponsor-main{
  width: 100%;
  max-width: 320px;       /* tamaño grande “main” */
  height: 78px;           /* ✅ uniforme */
  object-fit: contain;    /* ✅ no recorta */
  margin: 0 auto;
}

/* OTROS sponsors (segundo sponsor-grid) */
#sponsors .sponsor-grid:nth-of-type(2){
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  align-items: center;
}

#sponsors .sponsor-grid:nth-of-type(2) .sponsor{
  width: 100%;
  max-width: 220px;
  height: 56px;           /* ✅ uniforme */
  object-fit: contain;    /* ✅ no recorta */
  margin: 0 auto;
}

/* Ajuste fino SOLO en celular */
@media (max-width: 520px){
  #sponsors .sponsor-grid:first-of-type{
    grid-template-columns: 1fr;   /* main sponsors uno debajo del otro */
  }

  #sponsors .sponsor-grid:first-of-type .sponsor-main{
    height: 86px;
  }

  #sponsors .sponsor-grid:nth-of-type(2) .sponsor{
    height: 52px;
  }
}

