/* ==========================================================
   JORNADA AAPI 2026
   Paleta: verde oscuro #1a5c2a | menta #d5f5dc | crema #f5f0dc
   Acento 4 colores: azul #1565C0 rojo #C62828 verde #2E7D32 amarillo #F9A825
   Tipografía: Cabin
   ========================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a202c;
  background: #fff;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Franja decorativa 4 colores ── */
.color-stripe { display: flex; height: 5px; }
.cs-blue   { background: #1565C0; flex: 1; }
.cs-red    { background: #C62828; flex: 1; }
.cs-green  { background: #2E7D32; flex: 1; }
.cs-yellow { background: #F9A825; flex: 1; }

/* ==========================================================
   HEADER
   ========================================================== */
header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; gap: 16px; min-height: 68px;
}
.header-logo-wrap {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.logo-aapi { height: 52px; width: auto; }
.header-title {
  display: flex; flex-direction: column; line-height: 1.2;
}
.header-title strong {
  font-size: 0.82rem; font-weight: 800; color: #1a5c2a; text-transform: uppercase; letter-spacing: 0.04em;
}
.header-title span { font-size: 0.68rem; color: #555; }

#mainNav { flex: 1; display: flex; justify-content: flex-end; }
.nav-menu { display: flex; align-items: center; flex-wrap: nowrap; gap: 2px; }
.nav-menu li a {
  display: block; padding: 6px 10px;
  font-size: 0.72rem; font-weight: 700; color: #1a5c2a;
  text-transform: uppercase; letter-spacing: 0.04em;
  border-radius: 4px; white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-menu li a:hover { color: #2E7D32; background: #e8f5e9; }
.nav-menu li a.nav-register {
  background: #2E7D32; color: #fff !important;
  border-radius: 20px; padding: 6px 16px;
}
.nav-menu li a.nav-register:hover { background: #1a5c2a !important; }
.nav-menu li a.active { color: #2E7D32; }

.mobile-menu-btn {
  display: none; background: none; border: none;
  font-size: 1.5rem; color: #1a5c2a; padding: 4px 8px;
}
@media (max-width: 880px) {
  .mobile-menu-btn { display: block; }
  #mainNav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 12px 0 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 999;
  }
  #mainNav.open { display: block; }
  .nav-menu { flex-direction: column; align-items: flex-start; padding: 0 20px; gap: 4px; }
  .nav-menu li { width: 100%; }
  .nav-menu li a { font-size: 0.82rem; padding: 10px 8px; }
  .header-title { display: none; }
}

/* ==========================================================
   HERO
   ========================================================== */
#hero {
  background: #d5f5dc;
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center;
}
.hero-text { padding-bottom: 48px; }

.hero-kicker {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #1a5c2a; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.hero-titulo {
  font-size: 2.4rem; font-weight: 800; color: #1a1a1a; line-height: 1.15;
  margin-bottom: 12px;
}
.hero-subtitulo {
  font-size: 1.05rem; font-weight: 600; color: #2E7D32;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 28px;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px;
}
.hero-badge {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 50px; padding: 8px 18px;
  font-size: 0.88rem; font-weight: 600; color: #1a1a1a;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}
.hero-badge i { color: #2E7D32; }
.hero-desc {
  font-size: 0.92rem; color: #3a3a3a; line-height: 1.7; margin-bottom: 32px;
}
.btn-hero {
  display: inline-block; background: #2E7D32; color: #fff;
  border-radius: 50px; padding: 14px 44px;
  font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(46,125,50,0.35);
}
.btn-hero:hover { background: #1a5c2a; transform: translateY(-2px); }

.hero-flyer {
  display: flex; justify-content: center; align-items: flex-end;
}
.hero-flyer img {
  max-height: 420px; width: auto; border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-flyer { display: none; }
  .hero-titulo { font-size: 1.8rem; }
  .hero-text { padding-bottom: 32px; }
}

/* ==========================================================
   SECCION GENÉRICA
   ========================================================== */
.sec-title {
  text-align: center; margin-bottom: 40px;
}
.sec-title h2 {
  font-size: 1.6rem; font-weight: 800; color: #1a5c2a;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.sec-title p {
  font-size: 0.9rem; color: #555; margin-top: 8px;
}

/* ==========================================================
   ACTIVIDADES ESPECIALES
   ========================================================== */
#actividades {
  background: #fff; padding: 70px 0;
}
.act-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.act-card {
  background: #d5f5dc; border-radius: 14px; padding: 28px 24px;
  border-top: 5px solid #2E7D32;
  transition: transform 0.2s, box-shadow 0.2s;
}
.act-card:nth-child(2) { border-top-color: #1565C0; }
.act-card:nth-child(3) { border-top-color: #C62828; }
.act-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.act-label {
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: #2E7D32; margin-bottom: 10px;
}
.act-card:nth-child(2) .act-label { color: #1565C0; }
.act-card:nth-child(3) .act-label { color: #C62828; }
.act-card h3 {
  font-size: 1rem; font-weight: 800; color: #1a1a1a; margin-bottom: 10px; line-height: 1.3;
}
.act-card p { font-size: 0.88rem; color: #3a3a3a; line-height: 1.6; }

@media (max-width: 768px) {
  .act-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   ARANCELES
   ========================================================== */
#aranceles { background: #f5f0dc; padding: 70px 0; }

.aranceles-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}
.arancel-cards { display: flex; flex-direction: column; gap: 16px; }

.arancel-card {
  background: #fff; border-radius: 12px; padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-left: 5px solid #2E7D32;
}
.arancel-card.highlight { background: #1a5c2a; border-left-color: #F9A825; }
.arancel-card.highlight .arancel-titulo,
.arancel-card.highlight .arancel-precio { color: #fff; }

.arancel-titulo { font-size: 0.95rem; font-weight: 700; color: #1a1a1a; }
.arancel-sub    { font-size: 0.75rem; color: #666; margin-top: 3px; }
.arancel-card.highlight .arancel-sub { color: rgba(255,255,255,0.7); }
.arancel-precio { font-size: 1.5rem; font-weight: 800; color: #1a5c2a; white-space: nowrap; }

.descuentos-box {
  background: #fff; border-radius: 12px; padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.descuentos-box h3 {
  font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: #1a5c2a; margin-bottom: 16px;
}
.descuento-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed #e2e8f0;
  font-size: 0.88rem; color: #2d3748;
}
.descuento-item:last-child { border-bottom: none; padding-bottom: 0; }
.descuento-item i { color: #2E7D32; font-size: 0.9rem; flex-shrink: 0; }

.contacto-box {
  margin-top: 20px; background: #2E7D32; border-radius: 10px;
  padding: 18px 22px; color: #fff;
}
.contacto-box p { font-size: 0.82rem; line-height: 1.6; }
.contacto-box a { color: #d5f5dc; text-decoration: underline; }
.contacto-box strong { display: block; margin-bottom: 6px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }

@media (max-width: 768px) {
  .aranceles-layout { grid-template-columns: 1fr; }
}

/* ==========================================================
   PARTICIPACION Y ESPACIOS
   ========================================================== */
#espacios { background: #dceeff; padding: 70px 0; }

.espacios-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.espacio-card {
  background: #fff; border-radius: 12px; padding: 24px 16px;
  text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.espacio-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.espacio-icon {
  font-size: 1.8rem; margin-bottom: 12px; display: block;
}
.espacio-card h4 { font-size: 0.82rem; font-weight: 700; color: #1a5c2a; line-height: 1.3; }

@media (max-width: 900px) {
  .espacios-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .espacios-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================
   INSCRIPCION
   ========================================================== */
#inscripcion { background: #fff; padding: 70px 0; }

.reg-layout {
  display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start;
}
.reg-info-box {
  background: #1a5c2a; border-radius: 14px; padding: 28px 24px; color: #fff;
}
.reg-info-box h3 {
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 20px; opacity: 0.85;
}
.reg-info-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.84rem; line-height: 1.5;
}
.reg-info-item:last-child { border-bottom: none; }
.reg-info-item i { flex-shrink: 0; margin-top: 2px; opacity: 0.8; }

.reg-form-box {
  background: #f9fafb; border-radius: 14px; padding: 32px 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.reg-form-titulo {
  font-size: 0.84rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: #1a5c2a;
  margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 2px solid #e2e8f0;
}

.form-error-msg {
  background: #FFF5F5; border: 1px solid #FC8181; border-radius: 6px;
  color: #C53030; font-size: 0.84rem; padding: 10px 14px;
  margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.form-row.full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #4A5568;
}
.req { color: #C8102E; }
.form-group input,
.form-group select {
  border: 1px solid #CBD5E0; border-radius: 6px; padding: 9px 12px;
  font-size: 0.88rem; font-family: inherit; color: #2d3748;
  background: #fff; transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: #2E7D32; box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
}
.form-group input.invalid,
.form-group select.invalid { border-color: #FC8181; }
.form-submit-wrap { display: flex; justify-content: center; margin-top: 24px; }
.btn-registrarme {
  background: #2E7D32; color: #fff; border: none; border-radius: 50px;
  padding: 14px 52px; font-family: inherit; font-size: 0.95rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  transition: background 0.2s, transform 0.2s;
}
.btn-registrarme:hover { background: #1a5c2a; transform: translateY(-2px); }

@media (max-width: 860px) {
  .reg-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .reg-form-box { padding: 22px 18px; }
}

/* ==========================================================
   SPONSORS
   ========================================================== */
#sponsors { background: #f9fafb; padding: 56px 0; }
.sponsors-titulo {
  text-align: center; font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #718096; margin-bottom: 28px;
}
.sponsors-wrap {
  background: #fff; border-radius: 14px; padding: 36px 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center; gap: 32px 56px;
}
.sponsor-logo {
  max-height: 60px; width: auto; object-fit: contain;
  opacity: 0.85; transition: opacity 0.2s, transform 0.2s; display: block;
}
.sponsor-logo:hover { opacity: 1; transform: scale(1.06); }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { background: #1a5c2a; padding: 32px 24px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo img { height: 52px; width: auto; }
.footer-text {
  font-size: 0.78rem; color: rgba(255,255,255,0.7); line-height: 1.7; text-align: center;
}
.footer-text a { color: rgba(255,255,255,0.85); }
.footer-text a:hover { color: #fff; }
.footer-contact {
  font-size: 0.78rem; color: rgba(255,255,255,0.7); text-align: right;
}
.footer-contact a { color: #d5f5dc; }
.footer-divider {
  border: none; border-top: 1px solid rgba(255,255,255,0.15);
  margin: 20px auto 0; max-width: 1200px;
}
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-contact { text-align: center; }
}
