/* styles.css */

body {
    font-family: Poppins,"Poppins Fallback";
    margin: 0;
    padding: 0;
    /* Añade un margen inferior igual a la altura del footer */
    text-align: center;
    background-color: #f4f4f4;
}

html, body {
    overflow-x: hidden;
}

nav {
    position: fixed;
    width: 100%;
    background-color: #e50602;
    padding: 1em;
    text-align: center;
    display: flex;
    align-items: center; /* Centra verticalmente los elementos */
    justify-content: center; /* Centra horizontalmente los elementos */
    z-index: 1000; /* Add this line */
}

.topnav {
    position: fixed;
    width: 100%;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5em;
}

section {
    padding: 1.6em;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    margin-top: 10px;
}

nav img {
    max-height: 50px; /* Ajusta la altura según tus necesidades */
    margin-right: 5px;
}
nav .icon{
    display: none;
      
}
img {
    max-width: 100%;
    background-attachment: scroll;
}
#desc1{
  padding: 40px 50px !important;
  width: auto !important;
  border: 0 solid #333;
  box-sizing: border-box;
  line-height: 2;
  text-align: center !important;
  font-size: 18px !important;
}
#desc1 p span{
    color: rgb(34, 34, 34);
    font-size: 22px !important;
    font-weight: 400 !important;
    text-align: left;
  }

  #anuncios2{
    max-width: 876px !important;
  }
.button {
    display: inline-block;
    padding: 15px 25px;
    font-size: 24px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    outline: none;
    color: #fff;
    background-color:  #e50602;
    border: none;
    border-radius: 15px;
    box-shadow: 0 9px #999;
  }

  .button:hover {background-color: #ad0906}

.button:active {
  background-color: #ad0906;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}

.centered-section {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    background-color: #fff;
}
.sep{
    padding: 1em;
}
/* Additional styles for the text */
.centered-section .font-size-36 {
    text-align: center;
    display: block;
}

.columns-container {
    display: flex;
    justify-content: space-between;
    width: 90%; /* Ajusta el ancho según tus necesidades */
    margin-top: 20px; /* Añade un espacio entre la sección de anuncios y las columnas */
    overflow: hidden; /* Add this line */
}

.column {
    flex: 1;
    margin: 0 10px;
    margin: 0 auto;
}

.column img {
    width: 75%;
    height: 85%;
    transition: transform 0.3s ease-in-out;
}

.column-2 img {
    height: 85%;
    transition: transform 0.3s ease-in-out;
}

.column-2{
    margin: 5px;
}

.column:hover img.scale-on-hover {
    transform: scale(1.1);
}

footer {
    display: flex;
    justify-content: space-around;
    background-color: #333;
    color: #fff;
    text-align: left;
    padding: 10px;
    clear: both;
    position: relative;
    padding: 3em;
    margin-bottom: 0;
}

.footer-column {
    flex: 1;
    margin: 0 10px;
    display: block;
    margin-bottom: 20px;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 5px;
    justify-content: center;
}

.footer-column p {
    font-size: 14px;
    margin-right: 10px;
}

.social-icons a {
    color: #fff;
    margin-right: 10px;
    font-size: 20px;
    text-decoration: none;
}

    /* Estilos para el formulario */
    form {
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
        background-color: #f4f4f4;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        height: 100%;
    }

    label {
        display: block;
        margin-bottom: 8px;
        font-size: 18px !important;
    }

    input,
    textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 16px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }

    input[type="submit"] {
        background-color: #e60202;
        color: #fff;
        cursor: pointer;
        font-size: 18px;
        padding: 12px;
        border: none;
        border-radius: 4px;
    }

    input[type="submit"]:hover {
        background-color: #c70000;
    }

/* Consulta de medios para pantallas más pequeñas (ejemplo: dispositivos móviles) */
@media only screen and (max-width: 756px) {
    section {
        padding: 1.2em;
    }
    nav {
        flex-direction: column; /* Apila los elementos verticalmente */
    }

    nav img {
        max-height: 50px; /* Ajusta la altura según tus necesidades */
        margin-right: 35px;
    }

    nav a {
        margin: 1em 0;
        margin-right: 35px;
    }
    
    footer {
        display: grid;
        grid-template-columns: 1fr; /* Divide el footer en tres columnas */
    }

    .footer-column h3 {
        margin-bottom: 10px; /* Ajusta el espacio entre el título y la lista */
    }

    .footer-column {
        list-style: none; /* Quita los puntos de la lista */
        padding: 0; /* Elimina el relleno predeterminado de la lista */
    }
    #desc1 p span{
        color: rgb(34, 34, 34);
        font-size: 18px !important;
        font-weight: 400 !important;
        text-align: left;
      }
}

/* Agrega este código al final de la sección <style> */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    text-align: center;
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  

/* Media query para pantallas más pequeñas */
@media only screen and (max-width: 756px) {
    .columns-container {
        flex-direction: column; /* Cambia la dirección de las columnas a apiladas verticalmente */
        align-items: stretch; /* Estira las columnas para ocupar todo el ancho */
    }

    .column {
        margin-bottom: 100px; /* Añade espacio entre las columnas apiladas */
    }
    .column img {
        width: 274px;
        height: 85%;
    }
}

@media screen and (max-width: 756px) {
    .topnav a:not(:first-child) {display: none;}
    .topnav a.icon {
      float: right;
      display: block;
      position: absolute;
      left: 20px;
      top: 0;
    }
  }
  
  @media screen and (max-width: 756px) {
    .topnav.responsive {position: fixed;}
    .topnav.responsive .icon {
      position: absolute;
      left: 20px;
      top: 0;
    }
    .topnav.responsive a {
      float: none;
      display: block;
      text-align: left;
    }
  }
