  :root {
    --color-text: #1e293b;  
    --color-muted: #666;
    --color-border: #e5e5e5;
    --radius: 10px;
      --font-base: "Inter", system-ui, sans-serif;
  --color-text: #222;
  --color-black: #000;

  --color-primary: #020918;       /* Azul eléctrico */
    --color-primary-dark: #151d37;
    --color-accent: #7c3aed;        /* Violeta para degradados */
   
    --color-bg: #f8fafc;            /* Fondo general muy claro */
    --color-card: #ffffff;
    --color-border: #e2e8f0;

}
  


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

body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}




  h1, h2, h3, h4 {
    margin: 0;
    font-weight: 600;
  }

  p {
    margin: 0;
  }

  /* ---------- HEADER ----------- */
  header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
  }

  /* --- NAV --- */
 /* --- NAVEGACIÓN --- */
  nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky; top: 0; z-index: 100;
  }
  .brand { font-weight: 700; font-size: 1.1rem; color: var(--color-primary); }
  nav ul { display: flex; gap: 1.5rem; }
  nav ul li a { font-size: 0.95rem; font-weight: 500; color: var(--color-muted); }
  nav ul li a:hover { color: var(--color-primary); }

   a { text-decoration: none; color: inherit; transition: color 0.2s; }
  ul { list-style: none; }

/* ------------------------------
   NAVBAR
--------------------------------*/




  @media (min-width: 768px) {
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    nav {
      margin-top: 0;
    }
  }

  /* ---------- HERO ----------- */
  .hero {
    text-align: center;
    max-width: 900px;
    margin: auto;
    padding: 1rem 0 3rem;
  }

  .hero h2 {
    font-size: 1.8rem;
    margin-bottom: .7rem;
  }

  .hero p {
    color: var(--color-muted);
    font-size: .95rem;
    line-height: 1.4;
  }

  /* ---------- SECTIONS ----------- */
  .section {
    max-width: 1200px;
    margin: auto;
    margin-bottom: 3rem;
  }

  .section-title {
    margin-bottom: .3rem;
    font-size: 1.3rem;
  }

  .section-sub {
    margin-bottom: 1.5rem;
    color: var(--color-muted);
    font-size: .95rem;
  }

  /* ---------- GRID DE TARJETAS ----------- */
  .cards {
    display: grid;
    gap: 1.5rem;
  }

  @media (min-width: 768px) {
    .cards {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  /* ---------- CARD ----------- */
  .card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
  }

  .card img {
    width: 100%;
    display: block;
  }

  .card-content {
    padding: 1rem;
  }

  .card h4 {
    font-size: 1rem;
    margin-bottom: .3rem;
  }

  .card p {
    color: var(--color-muted);
    font-size: .9rem;
    margin-bottom: 1rem;
  }

  .btn {
    display: inline-block;
    background: #000;
    color: white;
    padding: .7rem 1rem;
    text-decoration: none;
    font-size: .9rem;
    border-radius: 4px;
  }

  /* --- GRID DE 3 CARDS PARA LA SECCIÓN S2 --- */
  .cards-3 {
    display: grid;
    gap: 1.5rem;
  }

  @media (min-width: 768px) {
    .cards-3 {
      grid-template-columns: repeat(3, 1fr);
    }
  }

.container {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}
.code-block {
  background: #f7f7f7;
  padding: 20px;
  border-radius: 8px;
  font-family: monospace;
  overflow-x: auto;
  border: 1px solid var(--color-border);
}

.team-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.team-card h3 { margin-bottom: 8px; }
.team-card p { color: var(--color-muted); margin-bottom: 12px; }

.team-card a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--color-black);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

.team-card a:hover { opacity: 0.85; }

/* ------------------------------
   MOBILE
--------------------------------*/
@media (max-width: 700px) {
  nav ul { gap: 14px; }
  .team-card { padding: 16px; }
}


.gallery {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.btn-link {
  display: inline-block;
  margin-top: 16px;
  background: var(--color-black);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
}

.btn-link:hover { opacity: .85; }

.exercise-header {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 12px;
}

small {
  color: var(--color-muted);
  display: block;
  margin-bottom: 12px;
}

/* Responsive */
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}




/* ============================================
     BITÁCORA — ESTILOS INTEGRADOS
===============================================*/

/* --- HERO ESPECIAL (solo si la bitácora lo usa) --- */
.hero-bitacora {
  text-align: center;
  padding: 6rem 1rem 4rem;
  background: linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero-bitacora::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

/* --- Títulos en degradado --- */
.gradient-title {
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
     SYLLABUS GRID (solo bitácora)
===============================================*/

.syllabus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.syllabus-item {
  background: var(--color-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.syllabus-item:hover { transform: translateY(-3px); }

.syllabus-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: .5rem;
}

.syllabus-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .syllabus-grid { grid-template-columns: repeat(4, 1fr); }
  .syllabus-item.full-width { grid-column: 1 / -1; }
}

/* ============================================
     TIMELINE — BITÁCORA
===============================================*/

.timeline-wrapper {
  position: relative;
  padding-left: 40px;
  margin-top: 3rem;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 14px; top: 0; bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  background: var(--color-card);
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 3rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px; top: 2rem;
  width: 14px; height: 14px;
  border: 3px solid var(--color-primary);
  background: var(--color-card);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--color-bg);
}

.exercise-header {
  font-size: 1.3rem;
  font-weight: 700;
}

.tag {
  background: #eef2ff;
  color: var(--color-primary);
  padding: .25rem .75rem;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 1rem;
}

/* ============================================
     GALERÍA — BITÁCORA
===============================================*/

.gallery-container {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .gallery-container { grid-template-columns: repeat(3, 1fr); }
}

.gallery-card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: rgba(37,99,235,0.3);
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-card:hover .gallery-img { transform: scale(1.05); }

.gallery-meta {
  padding: 1rem;
  border-top: 1px solid var(--color-border);
  flex-grow: 1;
}

.gallery-desc {
  font-size: .9rem;
  color: var(--color-muted);
}

.gallery-link {
  margin-top: auto;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.gallery-link:hover { text-decoration: underline; }

/* ============================================
     MODAL (Imágenes grandes)
===============================================*/

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(5px);
}

.modal-content {
  margin: 5% auto;
  max-width: 90%;
  max-height: 75vh;
  animation: fadeIn .3s;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}

.close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.close:hover { color: var(--color-primary); }
