/* ===========================
   FUNDACIÓN SOCIAL ARTÍSTICA MC
   Global Stylesheet
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&family=Open+Sans:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --rojo:     #e31e24;
  --azul:     #1a6dbf;
  --verde:    #2db24e;
  --gris-osc: #1c1c1c;
  --gris-med: #555555;
  --gris-cla: #f5f5f5;
  --blanco:   #ffffff;
  --sombra:   0 4px 20px rgba(0,0,0,0.12);
  --radio:    10px;
  --trans:    .3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--gris-osc);
  background: var(--blanco);
  line-height: 1.7;
}

/* ---- TOPBAR ---- */
.topbar {
  background: var(--gris-osc);
  color: #ccc;
  font-size: .8rem;
  padding: 6px 0;
  text-align: center;
  letter-spacing: .5px;
}

/* ---- HEADER / NAV ---- */
header {
  background: var(--blanco);
  box-shadow: var(--sombra);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img { height: 70px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text span:first-child {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--azul);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.logo-text span:last-child {
  font-size: .85rem;
  color: var(--rojo);
  font-weight: 600;
  letter-spacing: 1px;
}

nav { display: flex; align-items: center; gap: 4px; }

nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gris-osc);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background var(--trans), color var(--trans);
  white-space: nowrap;
}
nav a:hover, nav a.active {
  background: var(--rojo);
  color: var(--blanco);
}

/* Dropdown */
.nav-item { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--gris-osc);
  border-radius: var(--radio);
  min-width: 220px;
  box-shadow: var(--sombra);
  overflow: hidden;
  z-index: 999;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  color: #ddd;
  border-radius: 0;
  padding: 10px 18px;
  font-size: .8rem;
  border-bottom: 1px solid #333;
}
.dropdown a:hover { background: var(--rojo); color: var(--blanco); }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 26px; height: 3px; background: var(--gris-osc); border-radius: 3px; transition: var(--trans); }

/* ---- HERO ---- */
.hero {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  background: var(--gris-osc);
}
.hero-slides { display: flex; width: 100%; height: 100%; }
.hero-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.65) 40%, rgba(0,0,0,.15));
}
.hero-content {
  position: absolute;
  top: 50%; left: 8%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--blanco);
  max-width: 520px;
}
.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-content p { font-size: 1rem; opacity: .9; margin-bottom: 22px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  transition: var(--trans);
  cursor: pointer;
  border: none;
  letter-spacing: .5px;
}
.btn-primary { background: var(--rojo); color: var(--blanco); }
.btn-primary:hover { background: #b51419; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(227,30,36,.35); }
.btn-outline { background: transparent; color: var(--blanco); border: 2px solid var(--blanco); }
.btn-outline:hover { background: var(--blanco); color: var(--rojo); }
.btn-azul { background: var(--azul); color: var(--blanco); }
.btn-azul:hover { background: #155aa0; transform: translateY(-2px); }
.btn-verde { background: var(--verde); color: var(--blanco); }
.btn-verde:hover { background: #239940; transform: translateY(-2px); }

/* ---- SECTIONS GENERIC ---- */
section { padding: 72px 24px; }
.container { max-width: 1200px; margin: auto; }

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gris-osc);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-title span { color: var(--rojo); }
.section-subtitle {
  color: var(--gris-med);
  max-width: 620px;
  margin-bottom: 48px;
  font-size: .97rem;
}
.divider {
  width: 60px; height: 4px;
  background: var(--rojo);
  border-radius: 2px;
  margin: 10px 0 24px;
}

/* ---- CARDS GRID ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,.15); }
.card-img { width: 100%; height: 180px; object-fit: cover; background: #ddd; }
.card-icon {
  width: 100%; height: 130px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem;
}
.card-body { padding: 20px 22px 24px; }
.card-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gris-osc);
}
.card-body p { font-size: .88rem; color: var(--gris-med); }
.card-body a { margin-top: 14px; display: inline-block; }

/* ---- BG COLORS ---- */
.bg-gris { background: var(--gris-cla); }
.bg-dark { background: var(--gris-osc); color: var(--blanco); }
.bg-rojo { background: var(--rojo); color: var(--blanco); }
.bg-azul { background: var(--azul); color: var(--blanco); }
.bg-gradient {
  background: linear-gradient(135deg, #1a6dbf 0%, #1c1c1c 100%);
  color: var(--blanco);
}

/* ---- STATS ROW ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-item { padding: 24px 16px; }
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--rojo);
  display: block;
}
.stat-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; color: var(--gris-med); margin-top: 4px; }

/* ---- TABLE ---- */
.tabla-horario {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
}
.tabla-horario th {
  background: var(--azul);
  color: var(--blanco);
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  padding: 14px 20px;
  text-align: left;
}
.tabla-horario td { padding: 12px 20px; border-bottom: 1px solid #eee; font-size: .9rem; }
.tabla-horario tr:last-child td { border-bottom: none; }
.tabla-horario tr:nth-child(even) td { background: var(--gris-cla); }
.tabla-horario tr:hover td { background: #e8f0fb; }

/* ---- PROGRESS ---- */
.progress-item { margin-bottom: 22px; }
.progress-label {
  display: flex; justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem; font-weight: 600;
  margin-bottom: 6px;
}
.progress-bar { height: 10px; background: #e0e0e0; border-radius: 5px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--azul), var(--rojo));
  border-radius: 5px;
  transition: width 1.2s ease;
}

/* ---- ACCORDION ---- */
.accordion-item {
  border: 1px solid #e5e5e5;
  border-radius: var(--radio);
  margin-bottom: 10px;
  overflow: hidden;
}
.accordion-header {
  width: 100%; text-align: left;
  background: var(--blanco);
  border: none; cursor: pointer;
  padding: 16px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem; font-weight: 700;
  color: var(--gris-osc);
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--trans);
}
.accordion-header:hover { background: var(--gris-cla); }
.accordion-header.open { background: var(--rojo); color: var(--blanco); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.accordion-body-inner { padding: 16px 20px; font-size: .9rem; color: var(--gris-med); }

/* ---- CONTACT FORM ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media(max-width:760px){ .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  font-family: 'Montserrat', sans-serif; margin-bottom: 6px; color: var(--gris-osc);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 14px;
  border: 2px solid #e0e0e0; border-radius: 8px;
  font-family: 'Open Sans', sans-serif; font-size: .9rem;
  transition: border var(--trans); outline: none; color: var(--gris-osc);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--azul); }
.form-group textarea { height: 130px; resize: vertical; }

/* ---- FOOTER ---- */
footer {
  background: var(--gris-osc);
  color: #aaa;
  padding: 56px 24px 24px;
}
.footer-grid {
  max-width: 1200px; margin: auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px; margin-bottom: 40px;
}
.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem; font-weight: 700;
  color: var(--blanco); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 14px;
  border-bottom: 2px solid var(--rojo); padding-bottom: 8px; display: inline-block;
}
.footer-col a { display: block; color: #aaa; text-decoration: none; font-size: .85rem; margin-bottom: 7px; transition: color var(--trans); }
.footer-col a:hover { color: var(--rojo); }
.footer-col p { font-size: .85rem; line-height: 1.6; }
.footer-bottom {
  max-width: 1200px; margin: auto;
  border-top: 1px solid #333; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-size: .8rem;
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: #333; color: #aaa;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: .9rem; transition: var(--trans);
}
.social-links a:hover { background: var(--rojo); color: var(--blanco); }

/* ---- ALERTS ---- */
.alert {
  padding: 14px 18px; border-radius: 8px;
  margin-bottom: 16px; font-size: .88rem;
}
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-error   { background: #f8d7da; color: #721c24; border-left: 4px solid var(--rojo); }
.alert-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid var(--azul); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: var(--gris-cla);
  padding: 12px 24px;
  font-size: .82rem;
}
.breadcrumb .container { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--azul); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--gris-med); }

/* ---- PAGE HERO (internal pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #1a6dbf 0%, #1c1c1c 100%);
  color: var(--blanco); padding: 64px 24px; text-align: center;
}
.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 2px;
}
.page-hero p { opacity: .85; margin-top: 10px; font-size: 1rem; }

/* ---- TIMELINE ---- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(to bottom, var(--azul), var(--rojo));
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-dot {
  position: absolute; left: -32px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--rojo); border: 3px solid var(--blanco);
  box-shadow: 0 0 0 2px var(--rojo);
}
.timeline-item h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: .95rem; margin-bottom: 4px;
}
.timeline-item p { font-size: .88rem; color: var(--gris-med); }

/* ---- RESPONSIVE ---- */
@media(max-width: 900px) {
  .header-inner { flex-wrap: wrap; }
  nav { display: none; flex-direction: column; width: 100%; background: var(--blanco); padding: 12px 0; }
  nav.open { display: flex; }
  nav a { width: 100%; border-radius: 0; padding: 10px 20px; }
  .dropdown { position: static; box-shadow: none; border-radius: 0; display: none; }
  .nav-item.open .dropdown { display: block; }
  .hamburger { display: flex; }
  .hero-content h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }
}
@media(max-width:600px){
  section { padding: 48px 16px; }
  .hero { height: 340px; }
  .contact-grid { grid-template-columns: 1fr; }
}
