/* —————— VARIABLES Y RESET —————— */
:root {
    --blue-dark: #004080;
    --blue-light: #0073e6;
    --magenta: #ff3366;
    --text: #ffffff;
    --bg-gradient: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
    --shadow: rgba(0, 0, 0, 0.2);
  }
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text);
    line-height: 1.5;
  }
  
  /* —————— HEADER —————— */
  .header {
    background: rgba(0,0,0,0.4);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .header .logo {
    width: 35%;
  }
  .btn-redireccion {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    max-width:400px;
    padding:0.75rem 1.5rem;
    background:var(--magenta);
    color:var(--text);
    font-weight:600;
    text-transform:uppercase;
    border:none;
    border-radius:50px;
    box-shadow:0 4px 12px var(--shadow);
    cursor:pointer;
    text-decoration:none;
    gap:0.5rem;
    transition:transform 0.2s, filter 0.2s;
  }
  .btn-redireccion svg { width:20px; height:20px; fill:var(--text); }
  .btn-redireccion:hover { transform:translateY(-2px); filter:brightness(1.1); }
  /* — Contenedor y tabla — */
  .table-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow);
    overflow-x: auto;
    margin-bottom: 1.5rem;
  }
  .category {
    background:var(--blue-dark);
    padding:0.75rem 1rem;
    border-radius:12px 12px 0 0;
    font-size:1.2rem;
    font-weight:600;
    text-align:center;
  }
  th, td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    word-wrap: break-word;
    text-align: left;
  }
  /* —————— CONTENEDOR COMÚN —————— */
  .container {
    flex: 1;
    max-width: 1000px;
    width: 90%;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  /* —————— FOOTER —————— */
  .footer {
    background: var(--blue-dark);
    color: var(--text);
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.5rem;
    align-items: start;
  }
  .footer h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
  }
  .footer ul {
    list-style: none;
    padding: 0;
  }
  .footer ul li {
    margin-bottom: 0.5rem;
  }
  .footer ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
  }
  .footer ul li a:hover {
    color: var(--magenta);
  }
  
  .footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
  }
  .social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--text);
  }
  .social-link:hover {
    color: var(--magenta);
  }
  
  .footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.8;
  }
  
  /* —————— RESPONSIVE COMÚN —————— */
  @media (max-width: 768px) {
    .header .logo {
      width: 70%;
    }
    table {
      table-layout: fixed;
      width: 100%;
    }
    .container {
      width: 100%;
      padding: 5px;
      box-shadow: none;
    background: none;
    }
    .btn-redireccion {
        width: 85%;
      }
    th, td {
      font-size: 0.7rem;
    }
    .footer {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .footer-bottom {
      margin-top: 2rem;
    }
    .footer-social {
      align-items: center;
    }
    
  }
  