/* Estilos generales */
:root {
  --primary-color: #6d28d9;
  --primary-hover: #5b21b6;
  --secondary-color: #4f46e5;
  --accent-color: #db2777;
  --text-color: #1f2937;
  --light-text: #6b7280;
  --bg-color: #f9fafb;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-700: #374151;
  --gray-800: #1f2937;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Header y navegación */
header {
  background-color: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.titles {
  text-align: center;
  margin-bottom: 16px;
}

.main-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.subtitle {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--secondary-color);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 20px;
}

nav ul li a {
  font-weight: 500;
  color: var(--text-color);
  padding: 5px;
}

nav ul li a:hover, 
nav ul li a.active {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(to right, rgba(109, 40, 217, 0.9), rgba(79, 70, 229, 0.9));
  color: white;
  text-align: center;
  padding: 48px 20px;
}

/* Page Header (para páginas internas) */
.page-header {
  background: linear-gradient(to right, rgba(109, 40, 217, 0.85), rgba(79, 70, 229, 0.85));
  color: white;
  text-align: center;
  padding: 30px 20px;
}

.page-header-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.page-header-subtitle {
  font-size: 1.25rem;
  font-style: italic;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 24px;
}

.hero-quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-date {
  font-size: 1.25rem;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background-color: #be185d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: rgba(109, 40, 217, 0.1);
}

/* Card Styles */
.card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 24px;
}

.card-header {
  padding: 16px;
}

.card-header-primary {
  background-color: var(--primary-color);
  color: white;
}

.card-header-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.card-header-accent {
  background-color: var(--accent-color);
  color: white;
}

.card-content {
  padding: 24px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 24px;
}

/* Grid layout */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(1, 1fr);
}

/* Iconos y listas */
.icon-list {
  list-style: none;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.icon-list li i {
  color: var(--primary-color);
  margin-right: 12px;
  margin-top: 4px;
}

/* Secciones */
.section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.section-text {
  margin-bottom: 16px;
  color: var(--text-color);
}

/* Circular items */
.circular-item {
  margin-bottom: 32px;
}

.circular-number {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  margin-right: 12px;
  font-weight: bold;
}

.circle-secondary {
  background-color: var(--secondary-color);
}

.circular-title {
  font-size: 1.25rem;
  font-weight: bold;
}

.circular-content {
  padding-left: 52px;
}

/* Footer */
footer {
  background-color: var(--gray-800);
  color: white;
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: white;
}

.footer-links a:hover {
  color: var(--primary-color);
  opacity: 0.8;
}

.sponsors {
  border-top: 1px solid var(--gray-700);
  padding-top: 32px;
  margin-top: 32px;
}

.sponsors-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 24px;
  text-align: center;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  justify-items: center;
  align-items: center;
}

.auspiciantes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  justify-items: center;
  align-items: center;
}

.adherentes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  justify-items: center;
  align-items: center;
}

.sponsor-legend {
  text-align: center;
  margin-bottom: 5px;
  font-size: 0.8rem;
  color: #555;
}

@media (min-width: 768px) {
  .sponsors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.sponsor-logo {
  width: 160px;
  height: 80px;
  background-color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-800);
  margin-bottom: 20px;
  /* Para asegurar que sean más rectangulares */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.copyright {
  text-align: center;
  margin-top: 32px;
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* Formularios */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.2);
}

.form-submit {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.form-submit:hover {
  background-color: var(--primary-hover);
}

/* Media queries */
@media (min-width: 768px) {
  .header-content {
    flex-direction: row;
  }
  
  .titles {
    text-align: left;
    margin-bottom: 0;
  }
  
  .main-title {
    font-size: 1.75rem;
  }
  
  .subtitle {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 2.5rem;
  }
  
  .page-header-title {
    font-size: 2.5rem;
  }
  
  .page-header-subtitle {
    font-size: 1.25rem;
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Estilos para el logo */
.header-logo-container {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.site-logo {
  width: 80px;
  height: 80px;
  margin-right: 16px;
}

/* Para pantallas muy pequeñas - menú móvil */
@media (max-width: 576px) {
  .menu-toggle {
    display: block;
    background: none;
    border: 1px solid var(--gray-400);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--gray-600);
  }
  
  .mobile-menu {
    display: none;
  }
  
  .mobile-menu.active {
    display: block;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 16px 0;
  }
  
  .mobile-menu ul {
    flex-direction: column;
    gap: 12px;
  }
  
  .mobile-menu ul li {
    width: 100%;
    text-align: center;
  }
  
  .mobile-menu ul li a {
    display: block;
    padding: 8px;
  }
}

@media (min-width: 768px) {
  .header-logo-container {
    margin-bottom: 0;
  }
  
  .site-logo {
    width: 100px;
    height: 100px;
  }
}