/* ================================================================
   SKYLINE CHASE — Estilos del Diario de Desarrollo (DevBlog)
   SECCIÓN GANTT (COMPACTA)
================================================================ */

:root {
  --rojo: #c0392b;
  --rojo-vivo: #e74c3c;
  --rojo-oscuro: #7b1818;
  --negro: #0a0a0a;
  --gris-oscuro: #1a1a1a;
  --gris-medio: #2a2a2a;
  --gris-texto: #888888;
  --blanco: #ffffff;
  --blanco-suave: #cccccc;
  --fuente-titulo: "Bebas Neue", sans-serif;
  --fuente-cuerpo: "Barlow", sans-serif;

  /* Colores Gantt */
  --bg-header-gantt: #2c3e50;
  --bg-block-gantt: #f2f2f2;
  --col-tasques: #3498db;
  --col-recerca: #e67e22;
  --col-desarrollo: #2ecc71;
  --col-memoria: #9b59b6;
}

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

body {
  font-family: var(--fuente-cuerpo);
  background-color: var(--negro);
  color: var(--blanco);
  line-height: 1.7;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rojo-oscuro);
}

.nav-logo {
  font-family: var(--fuente-titulo);
  font-size: 1.4rem;
  letter-spacing: 3px;
}

.nav-logo span {
  color: var(--rojo);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--blanco-suave);
  font-size: 0.88rem;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--rojo-vivo);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.tiene-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--gris-oscuro);
  border-top: 3px solid var(--rojo);
  width: 130px;
  list-style: none;
}

.tiene-submenu:hover .submenu {
  display: block;
}
.submenu li a {
  padding: 10px;
  display: block;
  font-size: 0.75rem;
}

.btn-download {
  background: var(--rojo);
  color: var(--blanco);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: all 0.2s;
}

/* SECCIÓN GANTT */
#DevBlog {
  padding: 4rem 2rem;
  text-align: center;
  background-color: var(--negro);
}

.section-tag {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--fuente-titulo);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 2px;
  margin-bottom: 2rem;
  color: var(--blanco);
}

/* TABLA GANTT (EL DIAGRAMA) */
.gantt-card {
  background-color: #ffffff; /* Fondo blanco del diagrama */
  border-radius: 10px;
  padding: 15px;
  overflow-x: auto;
  color: #333;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  max-width: 1200px;
  margin: 0 auto;
}

.gantt-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 950px; /* Tamaño mínimo para no amontonarse */
}

.gantt-table th,
.gantt-table td {
  border: 1px solid #ccc;
  padding: 4px 1px;
  font-size: 10px;
  height: 22px;
  text-align: center;
}

/* Cabecera Excel */
.header-excel {
  background-color: var(--bg-header-gantt);
  color: white;
  font-family: var(--fuente-titulo);
  font-size: 12px;
}

/* Columnas de semanas (estrechas) */
.gantt-table th:not(:first-child):not(:nth-child(2)),
.gantt-table td:not(:first-child):not(:nth-child(2)) {
  width: 20px;
}

/* Filas de Bloque Principal */
.row-block {
  background-color: var(--bg-block-gantt);
  font-weight: bold;
  text-align: left !important;
  height: 28px;
}

/* Filas de Subtareas */
.row-sub td:first-child {
  text-align: left !important;
  padding-left: 15px;
  font-style: italic;
  color: #555;
  width: 200px;
}

.col-hrs {
  width: 40px !important;
  font-weight: bold;
}

/* Colores de las barras de progreso */
.b1 {
  background-color: var(--col-tasques);
}
.b2 {
  background-color: var(--col-recerca);
}
.b3 {
  background-color: var(--col-desarrollo);
}
.b4 {
  background-color: var(--col-memoria);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid var(--gris-medio);
  color: var(--gris-texto);
  font-size: 0.85rem;
}
.footer-name {
  color: var(--rojo-vivo);
  font-weight: 600;
}

/* Ocultamos el cursor original en toda la página */
*,
body {
  cursor: none !important;
}

/* ── CURSOR ── */
* {
  cursor: none !important;
}

.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  top: 0;
  left: 0;
}
.cursor-coin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--gold2);
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transform: translate(-50%, -50%);
  transition:
    width 0.12s,
    height 0.12s,
    box-shadow 0.12s;
}
.cursor-coin.hovering {
  width: 36px;
  height: 36px;
  box-shadow: 0 0 20px rgba(245, 197, 24, 0.7);
}
.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: trail-fade 0.5s ease forwards;
}
@keyframes trail-fade {
  0% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
}
