/* ===================================================
   GLOBAL: Variables y resets universales
   =================================================== */
:root {
  --purple:   #652d76;
  --pink:     #ff66c4;
  --blue:     #004aad;
  --accent1:  #da8fff;
  --accent2:  #fec4ff;
  --accent3:  #ffc4e0;
  --bg-light: #f9f0fa;
  --white:    #ffffff;
  --text:     #333333;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===================================================
   UNIVERSAL HEADER & NAVIGATION (aplica a todas)
   =================================================== */
.site-header {
  background: var(--purple);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
/* Logo */
.logo img {
  height: 80px;
  width: auto;
  display: block;
}
/* Menú navegación */
.main-nav { display: flex; align-items: center; gap: 2rem; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}
.nav-item { display: flex; align-items: center; height: 72px; }
.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 600;
  padding: 0 0.7rem;
  line-height: 70px;
  height: 72px;
  display: flex;
  align-items: center;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover,
.nav-link:focus {
  background: rgba(255,255,255,0.07);
  color: var(--accent3);
  border-radius: 5px;
}
/* Subrayado página activa */
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: 4px;
  background: var(--pink);
  border-radius: 2px;
}
/* Dropdowns (About Us y Contact Us) */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  margin-top: 0.5rem;
  min-width: 230px;
  z-index: 1000;
  padding: 0.3rem 0;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-link {
  display: block;
  padding: 0.9rem 1.2rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background .2s, color .2s;
}
.dropdown-link:hover {
  background: var(--accent3);
  color: var(--purple);
}
/* Search form */
.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-form input {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--pink);
  font-size: 1rem;
}
.search-form button {
  background: var(--pink);
  color: #fff;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
/* Hamburguesa (móvil) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}
/* Responsive Nav */
@media (max-width: 768px) {
  .main-nav { position: relative; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--purple);
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 400px; }
  .menu-toggle { display: flex; }
  .search-form { display: none; }
}

/* ===================================================
   HOME (hero, upcoming events, features, sponsors)
   =================================================== */
/* Hero universal (ajusta a cada home si es necesario) */
.hero {
  background: var(--accent1);
  text-align: center;
  padding: 4rem 0;
}
.hero h1 {
  font-size: 2.8rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(80,0,90,.2);
  font-weight: 900;
}
.hero p {
  max-width: 600px;
  margin: 1rem auto 0;
  font-size: 1.15rem;
  color: #f3e9f8;
}
/* Cards de eventos/principal */
#upcoming-events { padding: 2rem 0; }
#upcoming-events h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--purple);
}
.events-scroll {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.event-card {
  flex: 0 0 calc(25% - 1rem);
  min-width: 200px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: left;
}
.event-card h4 { margin: .5rem 0; color: var(--purple); }
@media(max-width: 768px) {.event-card { flex: 0 0 45%; }}
@media(max-width: 480px) {.event-card { flex: 0 0 100%; }}

/* Features Cards */
#features { padding: 2rem 0; }
#features .feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1rem;
}
.feature-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1.5rem;
  text-align: center;
}
.feature-card img { height: 60px; margin-bottom: .75rem; }
.feature-card h3 { margin: .5rem 0; color: var(--purple); }

/* Sponsors Logos */
#sponsors-logos { padding: 2rem 0; text-align: center; }
.logo-scroll {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.logo-item a img {
  height: 150px;
  filter: grayscale(50%);
  transition: filter .3s;
}
.logo-item a img:hover { filter: none; }

/* Testimonial */
#testimonial blockquote {
  font-style: italic;
  text-align: center;
  margin: 2rem auto;
  max-width: 600px;
  position: relative;
}
#testimonial cite {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  color: var(--purple);
}
/* Stay Connected/Social Home */
#stay-connected { text-align: center; padding: 2rem 0; }
#stay-connected .social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
#stay-connected .social-links li a {
  font-size: 1.7rem;
  color: var(--purple);
  text-decoration: none;
}

/* ===================================================
   ABOUT US (main, cards, mission/vision, objectives)
   =================================================== */
main section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin: 2rem 0 1rem;
  color: var(--purple);
}
/* More About Us Cards */
#more-about-us h2 { margin-top: 2rem; }
#more-about-us .cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
#more-about-us .card {
  flex: 1 1 300px;
  max-width: 400px;
}
/* Objectives */
#objectives ul {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 2rem;
  margin: 0.5rem 0 2rem;
}
#objectives ul li { margin-bottom: 0.5rem; }
/* Generic clickable cards */
.more-cards .more-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1.5rem;
  width: 280px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s, box-shadow .2s;
}
.more-cards .more-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.more-cards .more-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--purple);
}

/* ===================================================
   EVENTS (calendar/timeline/tab styles)
   =================================================== */
.calendar-wrapper {
  margin-top: 1rem;
}
.calendar-wrapper iframe {
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===================================================
   CONTACT US + FAQ (iconos, grid, etc.)
   =================================================== */
#contact-form .btn {
  background: #A4DE02;
  color: #000;
}
#contact-form .btn:hover { background: #8FCC00; }
/* Info Grid - Contact */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.contact-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.icon-link {
  display: inline-flex;
  text-decoration: none;
}
.icon-circle {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s;
}
.icon-circle img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.icon-link:hover .icon-circle {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.contact-col > .icon-link,
.contact-col > .social-links {
  margin-top: 2rem;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
/* FAQ Page (estilo accordión, hero, etc.) */
.faq-hero {
  background: linear-gradient(110deg, var(--accent2), #ffe3fc 90%);
  padding: 3rem 1rem 2rem 1rem;
  text-align: center;
  margin-bottom: 2.5rem;
}
.faq-hero h1 {
  font-size: 2.5rem;
  color: var(--purple);
  font-weight: 800;
  margin-bottom: .7rem;
  letter-spacing: 1px;
}
.faq-container {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px #be4ba01a;
  padding: 2.5rem 1.8rem;
}
.faq-list { list-style: none; margin: 0; padding: 0; }
.faq-q {
  background: var(--accent3);
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.25rem;
  color: var(--purple);
  padding: 1.1rem 1.3rem;
  margin: 0;
  border-radius: 12px;
  margin-bottom: .6rem;
  box-shadow: 0 1px 7px #f2c2e1;
  font-weight: 700;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background .18s;
}
.faq-q::after {
  content: "▼";
  font-size: 1.1rem;
  color: var(--pink);
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform .22s;
}
.faq-q[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  background: #f9f0fa;
  border-radius: 0 0 14px 14px;
  font-size: 1.09rem;
  color: #333;
  box-shadow: 0 2px 12px #e8b7e622;
  padding: 0 1.3rem;
  margin-bottom: .9rem;
  opacity: 0;
  transition: max-height .35s cubic-bezier(.72,0,.29,1), opacity .19s;
}
.faq-a.open {
  max-height: 600px;
  opacity: 1;
  padding: 1.1rem 1.3rem 1.1rem 1.3rem;
}
@media (max-width: 600px) {
  .faq-container { padding: 1.3rem .4rem;}
}

/* ===================================================
   FOOTER (todas las páginas)
   =================================================== */
footer {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 1rem 0;
}