/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* VARIABLES */
:root {
  --blanco: #fff;
  --negro: #000;
  --rojo: #ff2d55;
}

/* BODY Y FONDO GENERAL */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-image: url('./img/LDA.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  color: var(--blanco);
}



/* ENCABEZADO */
.encabezado {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}


.w-100{
  width: 100% !important;
}
.logo img{
  
  max-width: 100px;
  height: auto;
  background: transparent;
}

.index-h1{
  text-decoration: none;
}
  



/* MENÚ */
.menu ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.menu a {
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  color: var(--negro);
  border-radius: 5px;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.menu a:hover {
  background-color: #ddd;
}

/* TEXTOS GENERALES */
h1 {
  color:var(--rojo);
  text-align: center;
  text-decoration: underline;
  font-size: 2.5rem;
  margin: 2rem 0 1rem;
  font-weight: bold !important
}

p {
  color: var(--blanco);
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}



/* SECCIONES */
main section {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  padding: 2rem 1rem;
}

/* titulos */
.titulo-servicios , .titulo-contacto , .titulo-index, .titulo-galeria, .titulo-nosotros{
  color: var(--rojo);
  text-transform: capitalize;
  font-size: 2rem;
  font-family: "Oswald", sans-serif;
}

.parrafo-servicios {
  font-style: italic;
  font-size: 1.5em;

}

/* GALERÍA */
.imagenes-galería {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.imagenes-galería img {
  width: 90%;
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}



/* FORMULARIO */
form {
  margin-top: 1rem;
}

.campo-formulario {
  margin-bottom: 1rem;
  max-width: 400px;
}

.campo-formulario label,
.campo-formulario input,
.campo-formulario textarea  {
  color: var(--rojo);
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
}

input,
textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
}


/* BOTÓN */
button {
  padding: 0.75rem 1.5rem;
  background-color: var(--rojo);
  color: var(--blanco);
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #e60033;
}

/* FOOTER */
footer {
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--blanco);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 17rem;
  width: 100%;
  display: flex flow-root;
  justify-content: center;
  position: relative;
}  


main{
  width: 70%;
  max-width: 1200px;            
  margin: 0 auto ;
  padding: 2rem 0 1rem;
  margin-top: 10rem;
}

footer img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
}

.redes{
  text-align: center;
}

.links{
  margin-top: 0;
  margin-bottom: 1rem;
}


/* media query */
@media only screen and (min-width: 620px) {
  
  main {
    width: 80%;
    padding: 3rem 2rem;
  }

  
  .imagenes-galería {
    justify-content: space-between;
  }

  .imagenes-galería img {
    width: 48%;
  }

  
  h1 {
    font-size: 3rem;
  }

  
  button {
    font-size: 1.1rem;
    padding: 1rem 2rem;
  }

  
  .campo-formulario {
    margin-bottom: 2rem;
  }

  
  footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    flex-wrap: wrap;
  }

  .links {
    margin-top: 0;
  }
}

