/* ==========================================================
   6ª JORNADAS LATINOAMERICANAS DE LA SAH 2026
   Tipografía: Cabin
   Azul oscuro: #00529e | Azul medio: #008cd2 | Azul claro: #53abd5
   Rojo acento: #C8102E
   ========================================================== */

*, *::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; }

/* ==========================================================
   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-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-evento { height: 48px; width: auto; }
.logo-sah    { height: 44px; width: auto; }

#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: #00529e;
  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: #008cd2; background: #EBF4FF; }

.nav-menu li a.nav-register {
  background: #C8102E;
  color: #fff !important;
  border-radius: 20px;
  padding: 6px 16px;
}
.nav-menu li a.nav-register:hover { background: #a00e25 !important; }

.nav-menu li a.nav-templates {
  background: #008cd2;
  color: #fff !important;
  border-radius: 20px;
  padding: 6px 16px;
}
.nav-menu li a.nav-templates:hover { background: #006fa8 !important; }

/* Hamburguesa */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #00529e;
  padding: 4px 8px;
}

/* Menú desplegable en móvil */
@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; }
}

/* ==========================================================
   HERO
   ========================================================== */
.section-banner { width: 100%; height: auto; display: block; }

.hero-wrap {
  position: relative;
  line-height: 0;
  overflow: hidden;
}

/* ==========================================================
   HERO – Shimmer / destello de barrido
   ========================================================== */
.hero-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent   15%,
    rgba(255,255,255,0.32) 50%,
    transparent   85%
  );
  animation: shimmerBarrer 4.5s ease-in-out infinite;
}

@keyframes shimmerBarrer {
  0%   { left: -70%; }
  100% { left: 160%; }
}

/* ==========================================================
   HELPERS – Section titles
   ========================================================== */
.section-title-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}
.section-title-img { max-width: 480px; height: auto; }

/* ==========================================================
   AUTORIDADES
   ========================================================== */
.sec-autoridades {
  background-color: #008cd2;
  background-image: url('img/latam_autoridades.png');
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: left top;
  padding: 60px 0;
}
.sec-autoridades-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.autoridades-img-wrap {
  display: flex;
  justify-content: center;
}
.autoridades-cuadro {
  max-width: 860px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* ==========================================================
   DISERTANTES
   ========================================================== */
.sec-disertantes {
  background-color: #53abd5;
  background-image: url('img/latam_disertantes_fdo.png');
  background-size: cover;
  background-position: center;
  padding: 60px 0;
}
.sec-disertantes-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.sec-disertantes-inner {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.disertantes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dis-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 14px 18px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}
.dis-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.dis-photo-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #008cd2;
  margin-bottom: 12px;
  background: #d0e8f5;
  flex-shrink: 0;
}
.dis-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dis-info { flex: 1; }

.dis-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1c42d4;
  margin-bottom: 6px;
  line-height: 1.3;
}
.dis-cargo {
  font-size: 0.72rem;
  color: #000;
  line-height: 1.45;
}

/* ==========================================================
   PROGRAMA
   ========================================================== */
.sec-programa {
  background: #00529e;
  padding: 64px 0;
}

/* ---- Leyenda ---- */
.prog-leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.pl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 20px;
}
.pl-sub { background: #dbeeff; color: #00529e; }
.pl-sim { background: #d4f0e8; color: #0d5c37; }
.pl-edu { background: #fff3cd; color: #7a4100; }
.pl-ash { background: #ede9ff; color: #3d1fa0; }
.pl-esp { background: #ffe5e8; color: #C8102E; }
.pl-brk { background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.85); }

/* ---- Tabs ---- */
.prog-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  justify-content: center;
}
.prog-tab-btn {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
  border: none;
  padding: 10px 28px;
  border-radius: 8px 8px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.prog-tab-btn:hover { background: rgba(255,255,255,0.25); color: #fff; }
.prog-tab-btn.active { background: #fff; color: #00529e; }

/* ---- Panel ---- */
.prog-panel { display: none; }
.prog-panel.active { display: block; }

.prog-wrap {
  background: #fff;
  border-radius: 0 8px 8px 8px;
  overflow-x: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ---- Tabla ---- */
.prog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 560px;
}
.prog-table thead th {
  background: #00529e;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.prog-table thead th:first-child { width: 118px; }

.prog-hora {
  padding: 10px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #00529e;
  white-space: nowrap;
  vertical-align: middle;
  border-bottom: 1px solid #e8edf2;
  background: #f7fafc;
}

/* ---- Celdas de contenido ---- */
.pc {
  padding: 10px 14px;
  vertical-align: middle;
  border-bottom: 1px solid #e8edf2;
  border-left: 1px solid #e8edf2;
  line-height: 1.35;
}
.pc strong { display: block; font-size: 0.8rem; }
.pt {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  opacity: 0.75;
}

.pc-sub { background: #dbeeff; color: #003e7a; }
.pc-sim { background: #d4f0e8; color: #0a4226; }
.pc-edu { background: #fff3cd; color: #6a3800; }
.pc-ash { background: #ede9ff; color: #321880; }
.pc-esp { background: #ffe5e8; color: #9b1425; text-align: center; }
.pc-brk { background: #f0f4f8; color: #718096; text-align: center; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.pc-vacio { background: #f7fafc; }

.prog-table tbody tr:last-child .prog-hora,
.prog-table tbody tr:last-child .pc { border-bottom: none; }

/* ==========================================================
   REGISTRACIÓN
   ========================================================== */
.sec-registracion {
  background-color: #53abd5;
  background-image: url('img/latam_registracion_fdo.png');
  background-size: cover;
  background-position: center;
  padding: 60px 0;
}

.reg-contenedor {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Valor + Formas de pago ---- */
.reg-pago-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  background: #00529e;
  border-radius: 10px 10px 0 0;
  padding: 32px 40px;
  margin-bottom: 0;
}

.reg-valor-box {
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 32px;
  min-width: 230px;
  flex-shrink: 0;
  gap: 4px;
}

.reg-valor-titulo {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.reg-valor-icon {
  font-size: 1.8rem;
  color: #C8102E;
  line-height: 1;
  margin: 6px 0;
}

.reg-valor-precio {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
}

.reg-formas-box {
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.reg-formas-titulo {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reg-formas-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.reg-formas-lista li {
  font-size: 0.9rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.reg-formas-lista li::before {
  content: '•';
  color: #C8102E;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.reg-formas-lista small {
  font-size: 0.78rem;
  opacity: 0.88;
}

/* ---- Datos bancarios ---- */
.reg-bancos-wrap {
  background: rgb(210, 211, 213);
  border-radius: 0 0 10px 10px;
  padding: 20px 28px;
  margin-bottom: 28px;
  font-size: 0.84rem;
  color: #2d3748;
}

.reg-bancos-texto {
  margin-bottom: 16px;
  line-height: 1.55;
}

.reg-bancos-texto a {
  color: #00529e;
  font-weight: 700;
}

.reg-bancos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.reg-banco-item {
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ---- Formulario ---- */
.reg-form-box {
  background: rgba(255,255,255,0.97);
  border-radius: 12px;
  padding: 32px 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.reg-form-btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 36px;
}

.btn-formulario-externo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #00529e;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.03em;
}
.btn-formulario-externo:hover {
  background: #008cd2;
  transform: translateY(-2px);
}
.reg-form-titulo {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #00529e;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid #E2E8F0;
}
.reg-form-titulo span { font-weight: 400; color: #718096; font-style: italic; text-transform: none; letter-spacing: 0; }

.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-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: #008cd2;
  box-shadow: 0 0 0 3px rgba(0,140,210,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: #00529e;
  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: #008cd2;
  transform: translateY(-2px);
}

/* ==========================================================
   INFORMACIÓN GENERAL
   ========================================================== */
.sec-infogeneral {
  background-color: #a7a9ac;
  background-image: url('img/latam_infogral_fondo.png');
  background-size: cover;
  background-position: center;
  padding: 60px 0;
}

.infogral-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}

.infogral-card {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0;
}
.infogral-card:hover { transform: translateY(-4px); }

.infogral-card-box {
  background: #00529e;
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  transition: box-shadow 0.2s;
}
.infogral-card:hover .infogral-card-box {
  box-shadow: 0 8px 22px rgba(0,0,0,0.32);
}

.infogral-card img {
  width: 100%;
  max-width: 90px;
  height: auto;
}

.infogral-card span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}

/* ==========================================================
   SPONSORS – Carousel
   ========================================================== */
.sec-sponsors {
  background-image: url('img/latam_sponsors_fondo.png');
  background-size: cover;
  background-position: center;
  padding: 56px 0;
}

.sponsors-band {
  overflow: hidden;
}

.sponsors-ticker {
  display: flex;
  align-items: center;
  gap: 0;
  animation: sponsorsTicker 39s linear infinite;
  width: max-content;
}

.sponsors-ticker:hover {
  animation-play-state: paused;
}

.sponsors-ticker img {
  height: 75px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

@keyframes sponsorsTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: #00529e;
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-bloque {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-logo-sah {
  max-height: 72px;
  width: auto;
  display: block;
}

.footer-logo-org {
  max-height: 52px;
  width: auto;
  display: block;
}

.footer-nombre {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.footer-contacto {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.80);
  line-height: 1.2;
}
.footer-contacto a {
  color: rgba(255,255,255,0.80);
  display: block;
}
.footer-contacto a:hover { color: #fff; }

/* ==========================================================
   MODALES
   ========================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 10px;
  max-width: 760px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 6px;
  padding-top: 38px;
  position: relative;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #718096;
  transition: color 0.2s;
  z-index: 1;
}
.modal-close:hover { color: #C8102E; }

.modal-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* ==========================================================
   COPYRIGHT
   ========================================================== */
.site-copyright {
  background: #003d78;
  color: rgba(255,255,255,0.55);
  text-align: center;
  font-size: 0.72rem;
  padding: 10px 24px;
  letter-spacing: 0.02em;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 960px) {
  .infogral-grid { grid-template-columns: repeat(3, 1fr); }
  .disertantes-grid { grid-template-columns: repeat(2, 1fr); }
  .reg-bancos-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .disertantes-grid { grid-template-columns: 1fr; }
  .infogral-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .reg-form-box { padding: 22px 18px; }
  .footer-inner { gap: 36px; }
  .reg-pago-wrap { flex-direction: column; }
  .reg-bancos-grid { grid-template-columns: 1fr; }
  .sponsors-ticker img { height: 60px; }
}

@media (max-width: 400px) {
  .infogral-grid { grid-template-columns: repeat(2, 1fr); }
}
