:root {
  --bg-deep: #0b051d;
  --bg-dark: #140a30;
  --bg-card: rgba(28, 15, 62, 0.78);
  --bg-card-light: #ffffff;
  --purple-900: #1e0b4b;
  --purple-700: #4c1d95;
  --purple-500: #7c3aed;
  --magenta-600: #be185d;
  --magenta-500: #db2777;
  --magenta-400: #f472b6;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --cyan-400: #22d3ee;
  --blue-600: #0284c7;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --text-light: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dark: #1e1b4b;
  --border-glass: rgba(255, 255, 255, 0.15);
  --shadow-glow: 0 12px 40px -10px rgba(219, 39, 119, 0.35);
  --radius-lg: 18px;
  --radius-md: 12px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-light);
}

body {
  background:
    radial-gradient(circle at 12% 15%, rgba(219, 39, 119, 0.25) 0%, transparent 38%),
    radial-gradient(circle at 88% 18%, rgba(6, 182, 212, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 50% 60%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #0b051d 0%, #150934 50%, #0d0622 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Top Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 4%;
  background: rgba(11, 5, 29, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-light);
  min-width: 0;
}

.brand-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 65%, #f5d0fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(219, 39, 119, 0.55);
  border: 2px solid rgba(244, 114, 182, 0.65);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-siglas {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #ffffff, #f472b6, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.35rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-collapse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  list-style: none;
  margin: 0 auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
  padding: 0.38rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--magenta-500), var(--purple-500));
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(219, 39, 119, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(219, 39, 119, 0.6);
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal-600), var(--blue-600));
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.55);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.btn-admin {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b051d;
  font-weight: 800;
  padding: 0.55rem 1rem;
  font-size: 0.84rem;
}

.btn-admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.btn-sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.8rem;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.35);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 3rem 4% 2.5rem;
  max-width: 1380px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.badge-lema {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(219, 39, 119, 0.18);
  border: 1px solid rgba(244, 114, 182, 0.45);
  color: #fbcfe8;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.hero-title {
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  font-weight: 900;
  line-height: 1.14;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.hero-title .edicion-pill {
  display: inline-block;
  background: linear-gradient(135deg, var(--magenta-500), #9333ea);
  padding: 0.1rem 0.65rem;
  border-radius: 12px;
  font-size: 0.85em;
  margin-right: 0.35rem;
  box-shadow: 0 4px 16px rgba(219, 39, 119, 0.45);
}

.hero-title .gradient-text {
  background: linear-gradient(90deg, #ffffff 0%, #f472b6 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--gold-400);
  font-style: italic;
  margin-bottom: 0.9rem;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 640px;
}

.hero-meta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.65rem;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1rem;
  border-radius: 14px;
  min-width: 0;
}

.meta-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(219, 39, 119, 0.22);
  color: var(--magenta-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.meta-info {
  min-width: 0;
}

.meta-info small {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.meta-info strong {
  font-size: 0.92rem;
  color: #ffffff;
  word-break: break-word;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.75rem;
}

/* Countdown */
.countdown-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.countdown-boxes-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.countdown-box {
  background: rgba(15, 7, 40, 0.75);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  min-width: 66px;
  text-align: center;
}

.countdown-box span {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--cyan-400);
  line-height: 1.1;
}

.countdown-box small {
  font-size: 0.66rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.countdown-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 220px;
}

/* Hero Identity Card */
.hero-visual {
  position: relative;
}

.identity-showcase {
  background: linear-gradient(160deg, rgba(35, 16, 78, 0.9), rgba(16, 9, 40, 0.92));
  border: 1px solid rgba(244, 114, 182, 0.38);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow-glow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.identity-floating-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.65rem 1rem;
  border-radius: 16px;
}

.identity-floating-badge img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 50%;
  padding: 4px;
  flex-shrink: 0;
}

.identity-floating-badge strong {
  display: block;
  font-size: 0.9rem;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.identity-floating-badge span {
  font-size: 0.74rem;
  color: var(--cyan-400);
  font-weight: 600;
}

.identity-art-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  padding: 0.5rem;
  box-shadow: inset 0 0 20px rgba(124, 58, 237, 0.15);
}

.identity-art-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.identity-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.identity-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.55rem 0.4rem;
  text-align: center;
}

.identity-stat strong {
  display: block;
  font-size: 0.95rem;
  color: var(--gold-400);
  font-weight: 900;
}

.identity-stat small {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
  line-height: 1.2;
}

/* Sections */
.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3.5rem 4%;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan-400);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.35rem);
  font-weight: 900;
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Ejes Grid */
.ejes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.eje-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.eje-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.eje-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--eje-color, var(--magenta-500));
  z-index: 2;
}

.eje-thumb {
  width: 100%;
  height: 185px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-glass);
}

.eje-card-body {
  padding: 1.45rem;
  flex: 1;
}

.eje-badge {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.eje-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: #ffffff;
}

.eje-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Programa General Section */
.programa-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill.active,
.filter-pill:hover {
  background: linear-gradient(135deg, var(--magenta-500), var(--purple-500));
  color: #ffffff;
  border-color: transparent;
}

.programa-bloque {
  margin-bottom: 1.85rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: rgba(20, 10, 48, 0.85);
}

.bloque-header {
  padding: 0.95rem 1.35rem;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bloque-recepcion .bloque-header {
  background: linear-gradient(90deg, #3b0764, #581c87);
}

.bloque-turno1 .bloque-header {
  background: linear-gradient(90deg, #be185d, #db2777);
}

.bloque-turno2 .bloque-header {
  background: linear-gradient(90deg, #0f766e, #0d9488);
}

.programa-table {
  width: 100%;
  border-collapse: collapse;
}

.programa-table th,
.programa-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.programa-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.programa-table tr:last-child td {
  border-bottom: none;
}

.programa-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

.horario-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.88rem;
}

.duracion-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--cyan-400);
  white-space: nowrap;
}

.actividad-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.actividad-detalle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Ponencias & Videos Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.card-thumb {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--border-glass);
}

.card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.tag-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  background: rgba(219, 39, 119, 0.22);
  color: #fbcfe8;
}

.tag-chip.teal {
  background: rgba(13, 148, 136, 0.25);
  color: #99f6e4;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  color: #ffffff;
}

.card-speaker {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 0.15rem;
}

.card-inst {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Video Container */
.video-frame-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.video-frame-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Galeria Grid */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.35rem;
}

.galeria-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  cursor: pointer;
}

.galeria-item img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.galeria-item:hover img {
  transform: scale(1.04);
}

.galeria-caption {
  padding: 1rem 1.2rem;
}

.galeria-caption h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.galeria-caption p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Registro & Constancias Panels */
.dual-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.85rem;
  align-items: start;
}

.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 22px;
  padding: 1.85rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.turnos-summary-box {
  background: rgba(15, 7, 40, 0.65);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.turnos-summary-box h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-400);
  margin-bottom: 0.2rem;
}

.turno-mini-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.86rem;
}

.turno-mini-row span:last-child {
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.dot-recepcion,
.dot-turno1,
.dot-turno2 {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.32rem;
}

.dot-recepcion { background: #9333ea; }
.dot-turno1 { background: #db2777; }
.dot-turno2 { background: #0d9488; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #e2e8f0;
}

.form-control {
  width: 100%;
  background: rgba(11, 5, 29, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.72rem 0.95rem;
  color: #ffffff;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--magenta-400);
  box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.25);
}

/* Certificate Preview Area */
.constancia-search-box {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.constancia-search-box input {
  flex: 1;
}

.quick-folios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.35rem;
}

.quick-folio-chip {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan-400);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.quick-folio-chip:hover {
  background: rgba(6, 182, 212, 0.3);
}

.certificate-canvas-container {
  margin-top: 1.35rem;
  text-align: center;
  background: rgba(11, 5, 29, 0.65);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 1.25rem;
}

.cert-actions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.cert-actions-btns {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

#certCanvas {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(245, 158, 11, 0.4);
}

/* Modal / Lightbox / Admin Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 3, 18, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: #160b36;
  border: 1px solid rgba(244, 114, 182, 0.35);
  border-radius: 22px;
  max-width: 1120px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.75rem;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
}

.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-right: 2.5rem;
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.9rem;
  margin-bottom: 1.35rem;
}

.admin-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.admin-tab.active {
  background: linear-gradient(135deg, var(--gold-500), #d97706);
  color: #0b051d;
  border-color: transparent;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 620px;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.admin-table th {
  color: var(--gold-400);
  text-transform: uppercase;
  font-size: 0.74rem;
}

/* Footer */
.footer {
  background: #070312;
  border-top: 1px solid var(--border-glass);
  padding: 3rem 4% 2rem;
  margin-top: 2.5rem;
}

.footer-pillars {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pillar-item span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.pillar-item strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.hashtag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hashtag-pill {
  font-size: 0.76rem;
  color: #f472b6;
  background: rgba(219, 39, 119, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  left: 1.25rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  background: #1e1b4b;
  border-left: 4px solid var(--teal-500);
  color: #ffffff;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.88rem;
  font-weight: 600;
  max-width: 420px;
  pointer-events: auto;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS (Tablets y Smartphones)
   ============================================================================ */

@media (max-width: 1040px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .nav-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 6, 34, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.1rem 4% 1.35rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.65);
  }

  .nav-collapse.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.35rem;
  }

  .nav-links a {
    display: block;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .hero-grid,
  .dual-panel {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 2rem 4% 1.75rem;
  }

  .section {
    padding: 2.6rem 4%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .glass-panel {
    padding: 1.35rem;
    border-radius: 18px;
  }

  .constancia-search-box {
    flex-direction: column;
  }

  .constancia-search-box .btn {
    width: 100%;
  }

  .cert-actions-header {
    flex-direction: column;
    align-items: stretch;
  }

  .cert-actions-btns {
    width: 100%;
  }

  .cert-actions-btns .btn {
    flex: 1;
  }

  /* Tabla del Programa General adaptada a tarjetas en pantallas móviles */
  .programa-table thead {
    display: none;
  }

  .programa-table,
  .programa-table tbody,
  .programa-table tr,
  .programa-table td {
    display: block;
    width: 100%;
  }

  .programa-table tr {
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .programa-table td {
    padding: 0.28rem 0;
    border: none;
  }

  .modal-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.65rem;
    -webkit-overflow-scrolling: touch;
  }

  .admin-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .brand-sub {
    display: none;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .countdown-boxes-wrap {
    width: 100%;
  }

  .countdown-box {
    min-width: 0;
    padding: 0.45rem 0.35rem;
  }

  .countdown-box span {
    font-size: 1.18rem;
  }

  .identity-stats-row {
    grid-template-columns: 1fr;
  }

  .filter-pills {
    width: 100%;
  }

  .filter-pill {
    flex: 1 1 auto;
    text-align: center;
  }

  .programa-print-btn-wrap,
  .programa-print-btn-wrap .btn {
    width: 100%;
  }

  .footer-pillars {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
  }
}
