/* ========================================
   Canal El Gabino — Estilos personalizados
   ======================================== */

/* Variables */
:root {
  --color-primary: #0d6efd;
  --color-danger: #dc3545;
  --color-warning: #ffc107;
  --color-dark: #212529;
}

/* ---- Alert banner ---- */
.alert-banner {
  background: linear-gradient(135deg, #dc3545, #c41230);
  color: white;
  font-size: 0.9rem;
}

/* ---- Hero ---- */
.hero-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 420px;
  display: flex;
  align-items: center;
}

.stats-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* ---- Page headers (subpáginas) ---- */
.page-header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

/* ---- Icon circles ---- */
.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Blockquote card ---- */
.blockquote-card {
  background: #f8f9fa;
}

.blockquote-card blockquote p {
  font-style: italic;
  color: #2c3e50;
}

/* ---- CTA section ---- */
.cta-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #c0392b 100%);
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dee2e6;
}

.timeline-item {
  position: relative;
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-size: 0.85rem;
  box-shadow: 0 0 0 3px white, 0 0 0 4px #dee2e6;
}

.timeline-result {
  background: #f8f9fa;
  border-left: 3px solid #dee2e6;
}

.timeline-admision .timeline-result {
  background: #d1e7dd;
  border-left-color: #198754;
}

.timeline-inaccion .timeline-result {
  background: #f8d7da;
  border-left-color: #dc3545;
}

/* ---- Phase cards ---- */
.phase-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.phase-card.phase-1 .phase-number { background: #0d6efd; }
.phase-card.phase-2 .phase-number { background: #fd7e14; }
.phase-card.phase-3 .phase-number { background: #6f42c1; }
.phase-card.phase-4 .phase-number { background: #dc3545; }

/* ---- SOSAFE cards ---- */
.sosafe-card pre.sosafe-text {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 10px 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #2c3e50;
  margin-bottom: 8px;
}

/* ---- Footer ---- */
.footer {
  border-top: 3px solid #dc3545;
}

/* ---- Paradox banner ---- */
.paradox-banner {
  background: linear-gradient(135deg, #1a1a2e, #2d1b4e);
  border-top: 3px solid #ffc107;
  border-bottom: 3px solid #ffc107;
}

/* ---- Flow chain (contexto page) ---- */
.flow-node {
  min-width: 130px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.smaller {
  font-size: 0.72rem;
}

/* ---- Gallery ---- */
.gallery-thumb-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #000;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-card:hover .gallery-thumb {
  transform: scale(1.05);
  opacity: 0.85;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 576px) {
  .hero-section {
    min-height: auto;
  }

  .stat-number {
    font-size: 1.6rem;
  }
}
