:root {
  --black: #f5f5f5; /* super claro, se usa como base */
  --dark: #e0e0e0; /* un gris suave para secciones y overlays */
  --orange: #f36c21;
  --red: #c62828;
  --white: #1e1e1e; /* texto principal, gris oscuro */
  --gray: #4a4a4a; /* texto secundario */
  --max-width: 1200px;
  --surface: #f0f0f0; /* cards, tab-panels, etc */
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: radial-gradient(circle at top, #f9f9f9, #e6e6e6);
  color: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

section {
  padding: 4rem 1.5rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* TYPO */
h1,
h2,
h3 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--orange);
}

h2 {
  margin-bottom: 1.5rem;
}

p {
  color: var(--gray);
  margin-bottom: 1rem;
}

/* HERO */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
    url("img/compressed_image.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--orange);
}

.hero p {
  font-size: 1.1rem;
  color: var(--surface);
  font-weight: bold;
}

/* BUTTON */
.btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(243, 108, 33, 0.4);
}

/* SECTIONS */
.dark-section {
  background: linear-gradient(180deg, var(--dark), var(--black));
}

/* GRID */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* CARD */
.card {
  background: var(--surface);
  border-left: 4px solid var(--orange);
  padding: 1.5rem;
  border-radius: 4px;
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--white);
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid #ccc;
  text-align: center;
  vertical-align: middle;
}

th {
  background: #e0e0e0;
  font-weight: 600;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery img {
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
}

/* FOOTER */
footer,
.footer {
  background: #d9d9d9;
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--white);
  border-top: 1px solid #ccc;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--orange);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col ul li a {
  color: var(--gray);
  text-decoration: none;
  transition: 0.2s;
}

.footer-col ul li a:hover {
  color: var(--orange);
}

.footer-author {
  text-align: center;
}

.footer-author p {
  margin: 0.4rem 0;
}

.author-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.author-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--gray);
}

.author-links a:hover {
  color: var(--orange);
}

.love {
  display: inline-block;
  margin: 0 3px;
}

/* Mejor comportamiento en móvil */
@media (max-width: 600px) {
  .footer-author {
    margin-top: 1rem;
  }

  ul {
    list-style-type: none;
  }

  .author-links {
    flex-direction: column;
    gap: 6px;
  }

  .author-links a::before {
    content: "🔗 ";
  }
  .separator {
    display: none;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  section {
    padding: 3rem 1.2rem;
  }

  .hero {
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .btn-primary {
    width: 100%;
    text-align: center;
  }
}

/* EXPERIENCE GRID */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.experience-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.schedule-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}
/* SCHEDULE CARDS */
.schedule-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(3px);
}

.schedule-card h3 {
  margin-bottom: 0.8rem;
}

.badge {
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  margin-left: 6px;
  color: #fff;
}

.verde {
  background: #1faa00;
}
.amarilla {
  background: #f1c40f;
  color: #000;
}
.rosa {
  background: #e91e63;
}
.roja {
  background: #c0392b;
}

/* SPONSORS */
#patrocinadores {
  padding: 80px 0;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  margin-top: 2rem;
}

.sponsors-grid img {
  max-width: 150px;
  max-height: 100px;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: 0.9;
  transition: 0.3s ease;
}

.sponsors-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* PREMIUM SPONSORS */
.sponsors-pro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.sponsors-pro img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #fff;
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  transition: 0.25s ease;
  filter: grayscale(20%);
}

.sponsors-pro img:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  filter: grayscale(0%);
}

/* TABS */
.tabs {
  display: inline-flex;
  background: var(--surface);
  border-radius: 12px;
  padding: 6px;
  gap: 6px;
  margin-bottom: 1rem;
}

.tab {
  border: 0;
  background: transparent;
  color: var(--gray);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

.tab.active {
  background: rgba(224, 224, 224, 0.5);
  color: var(--white);
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* MEDIA QUERIES ADICIONALES */
@media (max-width: 720px) {
  .grid.grid-3 {
    grid-template-columns: 1fr;
  }
}

.enlaces-directos-mapa {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.enlaces-directos-mapa li {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.05rem;
}

.enlaces-directos-mapa a {
  color: #4db8ff;
  font-weight: 600;
  text-decoration: none;
}

.enlaces-directos-mapa a:hover {
  text-decoration: underline;
}

/* Lista y alineación */
.social-links {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

/* Enlace con icono */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  transition:
    transform 0.08s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

/* Texto */
.social-link .label {
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Iconos */
.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

/* Efectos al pasar el ratón */
.social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* Modo alto contraste opcional (si usas tema claro) */
.footer-col.light .social-link .label {
  color: #111;
}
.footer-col.light .social-link {
  background: rgba(0, 0, 0, 0.06);
}
.footer-col.light .social-link:hover {
  background: rgba(0, 0, 0, 0.12);
}

/* Tamaño, alineación y separación de los iconos inline */
.with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* espacio entre icono, texto y enlace */
  flex-wrap: wrap; /* que no desborde en móvil */
  margin: 0.5rem 0;
}

.with-icon .icon-inline {
  display: inline-block;
  width: 22px; /* ajusta si quieres más grande/pequeño */
  height: 22px; /* mantener cuadrado */
  object-fit: contain;
  vertical-align: middle;
  border-radius: 4px; /* opcional, suaviza bordes si el jpeg es cuadrado */
}

/* Ajuste fino del texto para que no se pegue al icono */
.with-icon span {
  font-weight: 600;
}

/* Accesibilidad: foco visible en enlaces */
.with-icon a:focus {
  outline: 2px solid #222;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Opcional: ligera separación vertical entre grupos de enlaces */
.container p.with-icon + p.with-icon {
  margin-top: 0.25rem;
}
