/* horario.css */

/* ---------- ESTILOS GENERALES ---------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    margin: 40px;
    color: #333;
  }
  
  h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
  }
  
  p {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* ---------- TABLA PRINCIPAL ---------- */
  table {
    width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
  }
  
  th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
  }
  
  th {
    background-color: #2c3e50;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  tbody tr:hover {
    background-color: #f1f1f1;
  }
  
  caption {
    margin-top: 20px;
    font-style: italic;
    color: #555;
    text-align: center;
  }
  
  /* ---------- BOTÓN ---------- */
  .boton-contenedor {
    position: relative;
    display: flex;
    margin-top: 40px;
    justify-content: center;
  }
  
  .boton-ir {
    background-color: #ccc;
    color: #666;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    cursor: not-allowed;
    pointer-events: none;
    transition: background-color 0.3s ease;
  }

  
  .boton-ir:hover {
    background-color: #34495e;
  }

  .boton-volver {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2c3e50;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }

  .boton-volver:hover {
    background-color: #34495e;
  }

  /* Estilos cuando el botón está activo */
  .boton-ir.activo {
  background-color: #2c3e50;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}
  
  .boton-ir.activo:hover {
    background-color: #34495e;
  }

  .tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    width: max-content;
    max-width: 260px;
    font-size: 14px;
  }

  .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
  }

  .boton-contenedor:hover .tooltip {
    visibility: visible;
    opacity: 1;
  }

  
  /* ---------- DISEÑO RESPONSIVO ---------- */
  @media screen and (max-width: 768px) {
    body {
      margin: 20px 10px;
    }
  
    table {
      width: 90%;
      border: 0;
      box-shadow: none;
    }
  
    thead {
      display: none;
    }
  
    tr {
      display: block;
      margin-bottom: 20px;
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.08);
      padding: 12px;
    }
  
    td {
      display: flex;
      justify-content: space-between;
      padding: 10px 12px;
      border: none;
      border-bottom: 1px solid #eee;
    }
  
    td:last-child {
      border-bottom: none;
    }
  
    tr:last-child td:last-child {
      border-bottom: none;
    }
  
    td::before {
      content: attr(data-label);
      font-weight: bold;
      color: #2c3e50;
      margin-right: 10px;
    }
    .boton-ir {
      width: 90%;
      text-align: center;
    }
}
  