
html {
    scroll-behavior: smooth;
  }


/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: #f4f4f4;
  }
  

  main {
    padding: 1rem;
  }
  
  .container {
    width: 70%;
    margin: 0 auto;
    /*
    display: flex;
    justify-content: center;
    align-items: center;*/
  }


  header {
    background: #333;
    color: white;
    padding: 1rem 0;
    text-align: center;
  }
  
  header nav ul {
    list-style: none;
    padding: 0;
  }
  
  header nav ul li {
    display: inline;
    margin: 0 10px;
  }
  
  header nav ul li a {
    color: white;
    text-decoration: none;
  }
  
.centrado {
    display: flex;
    justify-content: center;    
  }

  section {
    margin-bottom: 2rem;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    
  }
  
  h2 {
    color: #333;
  }
  
  img {
    width: 100%;
    max-width: 300px;
    margin: 0.5rem;
    border-radius: 8px;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
  }
  
  table, th, td {
    border: 1px solid #ccc;
  }
  
  th, td {
    padding: 10px;
    text-align: left;
  }
  

  form {
    max-width: 400px;
    margin: auto;
    font-family: Arial, sans-serif;
  }
  
  fieldset {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
  }
  
  legend {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
  }
  
  label {
    margin-top: 10px;
    margin-bottom: 5px;
  }
  
  input,
  textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;          /* Esto es clave para que sea fluido */
    box-sizing: border-box; /* Para que padding no aumente el ancho */
  }
  
  button {
    margin-top: 15px;
    padding: 10px;
    font-size: 16px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  button:hover {
    background-color: #004999;
  }
  
  .tabla-responsive {
    overflow-x: auto;
    width: 100%;
  }
  

  .btn {
    display: inline-block;
    padding: 10px 20px;
    background:  #004999;
    color: white;
    text-decoration: none;
    border-radius: 4px;
  }
  
  footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 1rem;
  }
  



  /* Responsive */
  @media (max-width: 768px) {

    header nav ul li {
      display: block;
      margin: 10px 0;
    }
  
    img {
      max-width: 100%;
    }
    .centrado{
      display: flex;
      flex-direction: column ;

    }
    legend {
        display: inline-block;
        padding: 0 10px;
        font-weight: bold;
        font-size: 1rem;
        max-width: 100%;
        white-space: nowrap; /* evita que el texto se divida en varias líneas */
        overflow: hidden;

      }


    table, thead, tbody, th, td, tr {
      display: block;
    }


  
    td, th {
      padding: 10px;
      text-align: right;
    }
  
    td::before {
      content: attr(data-label);
      float: left;
      font-weight: bold;
      text-transform: uppercase;
    }
  }
  

