/* Estilos.css */

/*CSS Reset */

*{

    padding: 0%;
    margin: 0%;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;

}

/* Fondo con imagen */

body.fondo-imagen {

  background-image: url("imagenes/fondo.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

}

body.fondo-pagina1 {

  background-image: url("imagenes/carretera.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

}

body.fondo-pagina2 {

  background-image: url("imagenes/carretera2.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

}

/* Estilos para los títulos y subtítulos */

h1 {

    font-size: 36px;
    margin-bottom: 20px;
    text-align: left;
    color: #fd1201;

}

h2 {

    font-size: 28px;
    margin-bottom: 15px;
    text-align: left;
    color: #d9f539;

}

.inicio {

    font-size: 20px;
    margin-bottom: 15px;
    text-align: left;
    color: #91ff00;
    text-align: justify;

}
/* Estilo para el menú de navegación */

:root{
  --menu-bg: #003B5C;
  --menu-link: #FFFFFF;
  --menu-hover: #005F8C;
  --menu-height: 56px;
}

nav.menu{
  background: var(--menu-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav.menu ul{
  list-style: none;
  margin: 0;
  padding: 0 16px;
  max-width: 1100px;
  margin-inline: none;
  height: var(--menu-height);
  display: flex;
  align-items: center;
  gap: 8px;
}

nav.menu li{ margin: 0; }

nav.menu a{
  display: inline-block;
  padding: 10px 14px;
  color: var(--menu-link);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color .18s ease, transform .12s ease;
  font-weight: 600;
  line-height: 1;
}

nav.menu a:hover,
nav.menu a:focus{
  background: var(--menu-hover);
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

nav.menu a.active{
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  box-shadow: inset 0 -2px 0 rgba(255,255,255,0.06);
}

@media (max-width:700px){
  nav.menu ul{
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 6px;
    height: auto;
  }
  nav.menu a{ width: 100%; text-align: center; padding: 12px; }
}

body {

    font-family: Arial, sans-serif;
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
    text-align: justify;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 18px;

}

/* Estilos para las imagenes */

.content-img.float-left img {
  float: left;
  margin: 0 16px 16px 0;
  max-width: 45%;
  height: auto;
}

.content-img.float-right img {
  float: right;
  margin: 0 0 16px 16px;
  max-width: 45%;
  height: auto;
}

/* Estilo para formularios */

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

form li + li {
  margin-top: 1em;
}

label {
  /* Tamaño y alineación uniforme */
  display: inline-block;
  width: 90px;
  text-align: right;
}

input,
textarea {
  /* Para asegurarse de que todos los campos de texto tienen la misma configuración de letra
     Por defecto, las áreas de texto tienen un tipo de letra monoespaciada */
  font: 1em sans-serif;

  /* Tamaño uniforme del campo de texto */
  width: 300px;
  box-sizing: border-box;

  /* Hacer coincidir los bordes del campo del formulario */
  border: 1px solid #999;
}

input:focus,
textarea:focus {
  /* Destacado adicional para elementos que tienen el cursor */
  border-color: #000;
}

textarea {
  /* Alinear los campos de texto multilínea con sus etiquetas */
  vertical-align: top;

  /* Proporcionar espacio para escribir texto */
  height: 5em;
}

.button {
  /* Alinear los botones con los campos de texto */
  padding-left: 90px; /* mismo tamaño que los elementos de la etiqueta */
}

button {
  /* Este margen adicional representa aproximadamente el mismo espacio que el espacio
     entre las etiquetas y sus campos de texto */
  margin-left: 0.5em;
}