/* ============================================================
   JORNADAS TÉCNICAS — PROTECCIÓN CIVIL / NEAMTWS
   CSS unificado para index.html y presentaciones.html
   ============================================================ */

/* ── VARIABLES GLOBALES ─────────────────────────────────── */
:root {
  --azul-oscuro:  #003366;
  --azul-medio:   #004f9f;
  --azul-claro:   #1a6dbf;
  --azul-suave:   #dce8f5;
  --azul-borde:   #b0c8e8;
  --dorado:       #f0c040;
  --rojo-es:      #c8102e;
  --gris-fondo:   #f4f4f2;
  --gris-borde:   #d0cfc8;
  --gris-texto:   #555550;
  --negro-texto:  #1a1a1a;
  --blanco:       #ffffff;
  --font:         Arial, Helvetica, sans-serif;
}

/* ── RESET ──────────────────────────────────────────────── */
*    { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--gris-fondo); color: var(--negro-texto); }

/* ============================================================
   CABECERA  (altura 60px, compartida en ambas páginas)
   ============================================================ */
.header {
  height: 90px;
  background: var(--azul-oscuro);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  width: 100%;
}
.header-left,
.header-right { display: flex; align-items: center; gap: 10px; }

.escudo { width: 34px; height: 42px; flex-shrink: 0; }

.logo-txt            { display: flex; flex-direction: column; }
.logo-txt .t1        { font-size: 9px;  font-weight: bold; color: var(--blanco);  text-transform: uppercase; letter-spacing: 0.4px; line-height: 1.3; }
.logo-txt .t2        { font-size: 8px;  color: #a8c8e8;  text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.3; }
.logo-txt .t3        { font-size: 8px;  color: var(--dorado); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; line-height: 1.3; }

.sep { width: 1px; height: 28px; background: #2a5a8a; margin: 0 6px; }

.logo-neam    { display: flex; flex-direction: column; align-items: flex-end; }
.logo-neam .n1 { font-size: 11px; font-weight: bold; color: var(--blanco); letter-spacing: 1px; }
.logo-neam .n2 { font-size: 9px; color: #a8c8e8; }

/* ============================================================
   MENÚ DE NAVEGACIÓN  (compartido)
   ============================================================ */
nav {
  background: var(--azul-medio);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
nav a {
  display: inline-block;
  padding: 10px 20px;
  font-size: 13px;
  color: #d0e4f8;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
nav a.active { color: var(--blanco); border-bottom-color: var(--dorado); background: rgba(255,255,255,0.08); }
nav a:hover  { color: var(--blanco); background: rgba(255,255,255,0.10); }

/* ============================================================
   HERO / BANNER  (altura 200px, compartido)
   ============================================================ */
.hero {
  height: 200px;
  background: linear-gradient(135deg, #001a3a 0%, #003370 55%, #004fa0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  overflow: hidden;
}
.hero-badge { font-size: 11px; letter-spacing: 2px; color: var(--dorado); text-transform: uppercase; margin-bottom: 10px; }
.hero h1    { font-size: 15px; font-weight: bold; color: var(--blanco); line-height: 1.45; margin-bottom: 8px; max-width: 860px; }
.hero-sub   { font-size: 12px; color: #a8ccea; max-width: 760px; line-height: 1.5; }

/* ============================================================
   CONTENEDOR PRINCIPAL  (compartido)
   ============================================================ */
.main-content {
  display: flex;
  justify-content: center;
  padding: 32px 16px 40px;
  background: var(--gris-fondo);
}

/* ── TARJETA 900px ──────────────────────────────────────── */
.card {
  width: 900px;
  max-width: 100%;
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: 12px;
  overflow: hidden;
}

/* Cabecera de tarjeta */
.card-top {
  background: var(--azul-suave);
  border-bottom: 2px solid var(--azul-borde);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.card-top-icon {
  width: 48px; height: 48px;
  background: var(--azul-medio);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-top-title { font-size: 14px; font-weight: bold; color: var(--azul-oscuro); margin-bottom: 3px; }
.card-top-sub   { font-size: 12px; color: var(--gris-texto); line-height: 1.5; }

/* Cuerpo de tarjeta */
.card-body { padding: 24px 28px; }

/* ============================================================
   COMPONENTES — INDEX (página de inicio)
   ============================================================ */

/* Franja de datos rápidos (index) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.info-item {
  background: var(--gris-fondo);
  border: 1px solid var(--gris-borde);
  border-left: 4px solid var(--azul-medio);
  border-radius: 6px;
  padding: 12px 14px;
}
.info-label { font-size: 11px; color: var(--gris-texto); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.info-value { font-size: 14px; font-weight: bold; color: var(--azul-oscuro); }

/* Títulos de sección (index) */
.section-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--azul-oscuro);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 2px solid var(--azul-borde);
  padding-bottom: 8px;
  margin-bottom: 16px;
  margin-top: 24px;
}
.section-title:first-of-type { margin-top: 0; }

/* Texto descriptivo */
.desc-text { font-size: 13px; color: #333330; line-height: 1.7; margin-bottom: 12px; }

/* Lista de objetivos numerados (index) */
.objectives { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.objectives li { display: flex; gap: 10px; font-size: 13px; color: #333330; line-height: 1.5; }
.obj-bullet {
  width: 20px; height: 20px;
  background: var(--azul-medio);
  border-radius: 50%;
  color: var(--blanco);
  font-size: 11px; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}

/* Sesiones del programa (index) */
.session-list { display: flex; flex-direction: column; gap: 10px; }
.session-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--gris-borde);
  border-radius: 8px;
  background: var(--blanco);
}
.session-day {
  background: var(--azul-oscuro);
  color: var(--blanco);
  font-size: 11px; font-weight: bold;
  border-radius: 6px;
  padding: 4px 8px;
  min-width: 54px; text-align: center;
  flex-shrink: 0;
}
.session-time    { font-size: 12px; color: var(--gris-texto); min-width: 52px; padding-top: 2px; flex-shrink: 0; }
.session-name    { font-size: 13px; font-weight: bold; color: var(--negro-texto); margin-bottom: 2px; }
.session-speaker { font-size: 12px; color: var(--gris-texto); }

/* Etiquetas de tipo */
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 5px;
  margin-top: 4px;
}
.tag-azul  { background: #dce8f5; color: #003366; }
.tag-teal  { background: #d4f0e4; color: #085041; }
.tag-ambar { background: #faeeda; color: #633806; }
.tag-rojo  { background: #fde8e8; color: #7a1010; }

/* Grid de organismos (index) */
.org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.org-item {
  border: 1px solid var(--gris-borde);
  border-radius: 8px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.org-icon  { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.org-name  { font-size: 12px; font-weight: bold; color: var(--azul-oscuro); line-height: 1.4; }
.org-role  { font-size: 11px; color: var(--gris-texto); }

/* Aviso institucional (index) */
.aviso-bar {
  background: #fff3cd;
  border-bottom: 2px solid var(--dorado);
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 8px 20px;
  font-size: 12px; color: #7a5a00;
}
.aviso-bar svg { flex-shrink: 0; }

/* Enlace estándar */
.enlace {
  color: var(--azul-claro);
  text-decoration: none;
  border-bottom: 1px solid var(--azul-borde);
  font-size: 13px;
  transition: color 0.15s, border-color 0.15s;
}
.enlace:hover {
  color: var(--azul-oscuro);
  border-bottom-color: var(--azul-oscuro);
}

/* Enlace sutil — para textos secundarios */
.enlace-sutil {
  color: var(--gris-texto);
  text-decoration: none;
  border-bottom: 1px dotted var(--gris-borde);
  font-size: 12px;
  transition: color 0.15s;
}
.enlace-sutil:hover {
  color: var(--azul-medio);
  border-bottom-color: var(--azul-borde);
}

/* Enlace con icono PDF — igual que .pres-link pero reutilizable */
.enlace-doc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--azul-medio);
  text-decoration: none;
  border: 1px solid var(--azul-borde);
  padding: 3px 9px;
  border-radius: 5px;
  white-space: nowrap;
  transition: background 0.15s;
}
.enlace-doc:hover { background: var(--azul-suave); }
/* ============================================================
   COMPONENTES — PRESENTACIONES (segunda página)
   ============================================================ */

/* Franja de datos rápidos (presentaciones) */
.info-strip {
  display: flex; flex-wrap: wrap; gap: 12px;
  background: var(--azul-suave);
  border: 1px solid var(--azul-borde);
  border-radius: 8px; padding: 14px 18px;
  margin-bottom: 28px;
}
.info-pill { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--azul-oscuro); }
.info-pill svg { flex-shrink: 0; }

/* Cabecera de día (presentaciones) */
.day-header {
  display: flex; align-items: center; gap: 12px;
  background: var(--azul-oscuro); color: var(--blanco);
  padding: 10px 16px; border-radius: 8px;
  margin-bottom: 14px; margin-top: 24px;
  font-size: 13px; font-weight: bold;
}
.day-header:first-of-type { margin-top: 0; }
.day-date { font-size: 11px; color: #a8c8e8; font-weight: normal; }

/* Título de bloque temático (presentaciones) */
.block-title {
  font-size: 11px; font-weight: bold;
  color: var(--azul-medio);
  text-transform: uppercase; letter-spacing: 0.8px;
  padding: 8px 0 4px 0;
  border-bottom: 1px solid var(--azul-borde);
  margin-bottom: 10px; margin-top: 18px;
}

/* Filas de presentación (presentaciones) */
.pres-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.pres-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--gris-borde);
  border-radius: 8px;
  transition: background 0.15s;
}
.pres-item:hover { background: #f8f8f6; }

.pres-num {
  min-width: 26px; height: 26px;
  background: var(--azul-suave); color: var(--azul-oscuro);
  border-radius: 50%;
  font-size: 11px; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pres-info   { flex: 1; }
.pres-title  { font-size: 13px; font-weight: bold; color: var(--negro-texto); margin-bottom: 2px; line-height: 1.4; }
.pres-author { font-size: 12px; color: var(--gris-texto); margin-bottom: 4px; }
.pres-org    { font-size: 11px; color: var(--azul-claro); }

.pres-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--azul-medio);
  text-decoration: none;
  border: 1px solid var(--azul-borde);
  padding: 3px 9px; border-radius: 5px;
  flex-shrink: 0; white-space: nowrap; margin-top: 2px;
}
.pres-link:hover { background: var(--azul-suave); }

/* Nota de coordinación (presentaciones) */
.coordina {
  margin-top: 28px; padding: 14px 18px;
  background: var(--gris-fondo);
  border: 1px solid var(--gris-borde);
  border-radius: 8px;
  font-size: 12px; color: var(--gris-texto);
}
.coordina strong { color: var(--negro-texto); }

/* ============================================================
   PIE DE PÁGINA  (compartido, 40px)
   ============================================================ */
footer {
  height: 40px;
  background: var(--azul-oscuro);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #7ab4e8;
  letter-spacing: 0.3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 660px) {
  .header            { padding: 0 12px; }
  .logo-txt .t1      { font-size: 7px; }
  .logo-txt .t2,
  .logo-txt .t3      { font-size: 7px; }
  .logo-neam .n1     { font-size: 9px; }

  nav a              { padding: 9px 10px; font-size: 11px; }

  .hero              { height: auto; padding: 24px 14px; }
  .hero h1           { font-size: 13px; }

  .card-top          { flex-direction: column; }
  .card-body         { padding: 16px 14px; }

  .info-strip        { flex-direction: column; gap: 8px; }
  .session-item      { flex-wrap: wrap; }
  .pres-item         { flex-wrap: wrap; }
}