/* ========================= */
/*        GENERAL            */
/* ========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Georgia, Serif;
  font-size: 15px;
}

.container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 10px;
}

/* ========================= */
/*         HEADER            */
/* ========================= */
header {
  text-align: center;
  border: 1px solid #666;
  background: #cccccc;
}

/* ========================= */
/*          NAV              */
/* ========================= */
nav {
  padding: 0.2%;
  background: #f06156;
  margin-top: 0.5%;
  height: auto;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  margin: 0;
}

nav ul li {
  margin: 2px;
}

nav ul li a {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  color: #75302a;
  font-weight: bold;
  padding: 6px 15px;
  background: #fafafa;
  border-radius: 3px;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background-color: grey;
  text-decoration: underline;
  color: blueviolet;
  font-size: 20px;
}

/* ========================= */
/*       MAIN CONTENT        */
/* ========================= */
.main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

/* SECTION & ASIDE */
section {
  flex: 1 1 68%;
  background: #fafafa;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 3px;
}

aside {
  flex: 1 1 30%;
  background: #ccc;
  color: #333;
  padding: 10px;
  border-radius: 3px;
}

/* ========================= */
/*         FOOTER            */
/* ========================= */
footer {
  position: fixed;
  width: 100%;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px 0;
  background-color: #333;
  text-align: center;
}

footer a {
  color: #fff;
}

/* ========================= */
/*       TEXT STYLES         */
/* ========================= */
h2 {
  color: #f06156;
}

h3 {
  font-size: 14px;
  padding: 5px;
  color: #333;
  background-color: pink;
  text-align: center;
}

.titulo1 {
  background-color: green;
  padding: 10px;
  font-weight: bold;
  text-align: center;
}

.mi-estilo {
  background-color: beige;
  color: black;
  text-decoration: underline;
  font-size: 16px;
  font-weight: bold;
  padding: 15px;
}

.bgPink {
  background-color: pink;
  color: black;
  font-weight: bold;
}

/* ========================= */
/*          FORMS            */
/* ========================= */
input, select, textarea, button {
  width: 90%;
  max-width: 400px;
  margin: 10px auto;
  display: block;
  padding: 10px;
  border: 2px solid green;
}

/* ========================= */
/*         IMAGES            */
/* ========================= */
img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* ========================= */
/*         BOTONES           */
/* ========================= */
.boton-consulta {
  background-color: #4CAF50;
  color: black;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s;
  margin: 10px auto;
}

.boton-consulta:hover {
  color: red;
  text-decoration: underline;
  background-color: grey;
}

/* ========================= */
/*        ENLACES            */
/* ========================= */
.enlace {
  color: #3498db;
  text-decoration: none;
  font-size: 15px;
}

.enlace:hover {
  color: blueviolet;
  font-size: 20px;
  text-decoration: underline;
}

/* ========================= */
/*         TABLAS            */
/* ========================= */
td, th {
  border: black 1px solid;
}

.tabla1 {
  background-color: beige;
  padding: 10px;
  font-weight: bold;
  text-align: center;
}

/* ========================= */
/*        CHECKBOXES         */
/* ========================= */
.checkbox-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 10px;
}

.checkbox-container input[type="checkbox"] {
  display: block;
  margin: 4px;
}

/* ========================= */
/*      INFO CLASES          */
/* ========================= */
.info_clases {
  display: inline-block;
  background-color: beige;
  width: 90%;
  max-width: 200px;
  padding: 10px;
  margin: 10px auto;
  overflow: hidden;
  box-sizing: border-box;
}

/* ========================= */
/*      MEDIA QUERIES        */
/* ========================= */

/* Tablet */
@media screen and (max-width: 980px) {
  .main-content {
    flex-direction: row;
  }
  section {
    flex: 1 1 65%;
  }
  aside {
    flex: 1 1 30%;
  }
}

/* Small Tablet / Large Phone */
@media screen and (max-width: 700px) {
  .main-content {
    flex-direction: column;
  }

  section,
  aside {
    flex: 1 1 100%;
    width: 100%;
  }

  aside {
    background: #333;
    color: #fff;
  }

  nav,
  section {
    font-size: 1.2em;
  }
}

/* Mobile */
@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 5px;
  }

  nav,
  section,
  aside {
    font-size: 1.2em;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  nav ul li a {
    width: 100%;
    padding: 12px;
  }

  .main-content {
    flex-direction: column;
    gap: 5px;
  }

  section,
  aside {
    flex: 1 1 100%;
    width: 100%;
  }

  aside {
    background-color: #444;
    color: #fff;
  }

  h3 {
    font-size: 16px;
    padding: 8px;
  }

  .titulo1 {
    font-size: 16px;
    padding: 8px;
  }

  .mi-estilo {
    font-size: 15px;
    padding: 10px;
  }

  .info_clases {
    width: 100%;
    max-width: none;
    font-size: 14px;
  }

  input,
  select,
  textarea,
  button {
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    padding: 8px;
  }

  .boton-consulta {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }

  footer {
    position: static;
    padding: 15px 0;
    font-size: 14px;
  }

  .checkbox-container {
    flex-direction: column;
    margin-left: 0;
  }

  .tabla1,
  td, th {
    font-size: 13px;
    padding: 5px;
  }

  .enlace {
    font-size: 14px;
  }

  .enlace:hover {
    font-size: 16px;
  }
}
