* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Monserrat', sans-serif;
    background-size: cover;
}

/* Navigation Bar */
.navbar {
    font-size: 18px;
    background-color: #F2F2F2;
    padding-bottom: 10px;
}

.main-nav {
    list-style-type: none;
    display: none;
  }
  
  .nav-links,
  .logo {
    display: block;
    color: black;
    text-align: center;
    padding: 10px 10px;
    text-decoration: none;
  }
  
  .main-nav li {
    text-align: center;
    margin: 15px auto;
  }
  
  .logo {
    display: inline-block;
    font-size: 22px;
    margin-top: 10px;
    margin-left: 20px;
  }
  
.navbar-toggle {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
}
  
.active {
    display: block;
}



.nav-links:hover {
    background-color: rgba(0,0,0, .1);
}
  
@media screen and (min-width: 768px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        padding-bottom: 0;
        height: 70px;
        align-items: center;
    }
  
    .main-nav {
        display: flex;
        margin-right: 30px;
        flex-direction: row;
        justify-content: flex-end;
    }
  
    .main-nav li {
        margin: 0;
    }
  
    .nav-links {
        margin-left: 10px;
    }
  
    .logo {
        margin-top: 5px;
    }
  
    .navbar-toggle {
        display: none;
    }
  

}

.pleca-col {
    width: 100%;
    height: 1px;
    position: relative;
    background: none;
}

.pleca {
    display: flex;
    align-items: center;
    padding: 10px 70px;
  }
  
  .logo-izq img {
    width: 100%;
    max-width: 250px;
    margin-right: 5px;
  }
  
  .texto-derecha p {
    font-size: 20px;
    color: #8B0000; 
    font-weight: bold;
    border-left: 5px solid #8B0000; /* Color de la pleca */
  }


/* cuerpo de pagina */


.clearfix {
    clear: both;
    margin-bottom: 25px;
}

.column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.item {
    padding: 20px;
    text-align: center;
    background-image: url(../images/background.png);
}

.item a {
    text-decoration: none;
}

h1 {
    color: #8B0000;
    text-align: center;
}

h2 {
    color: #A07B4A;
    text-align: center;
}

h3 {
    margin-top: 20px;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .column1 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .column1 {
        grid-template-columns: 1fr;
    }
}

.fondo, .fondo3 {
    background-image: url(../images/background.png);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.fondo2 {
    background-color: #fff;
    text-align: center;
}

.fondo4 {
    background-image: url(../images/textura1.png);
    text-align: center;
    height: auto;
}

.row, .titulo {
    padding: 15px;
    margin: 15px;
    margin-top: 200px;
    z-index: 2;
}

@media (max-width: 768px) {
    .row, .titulo1 {
        margin-top: 150px;
        z-index: 2;
    }
}

@media (max-width: 480px) {
    .row, .titulo {
        margin-top: 100px;
        z-index: 2;
    }
}

.titulo {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding: 15px 70px;
}

.titulo h1 {
    color: #8e2b2f;
}

.titulo h3 {
    color: #A07B4A;
}

.item2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.calendario {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
}

.calendario .icono {
    max-width: 100px;
    height: auto;
}

.calendario .texto a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #8e2b2f;
    text-align: center;
}

.calendario .pleca {
    max-width: 80px;
    height: auto;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .calendario {
        flex-direction: column;
        gap: 10px;
    }

    .calendario .texto a {
        font-size: 1rem;
    }
}

.info {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.info div {
    text-align: left;
    padding: 15px;
    border-radius: 8px;
}

strong {
    display: block;
    font-size: 1.1rem;
}

p {
    color: #333;
    margin: 5px 0 0;
}


/* FONDO 2 */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.btn {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 10px;
    width: 200px;
    text-align: center;
}

.btn img {
    max-width: 250px;
    height: auto;
    margin-bottom: 10px; /* Espaciado entre la imagen y el texto */
}

.text-align {
    margin: 5px;
    padding: 25px;
}

.texto2 h2 {
    color: #000;
    padding-bottom: 5px;
    text-align: left;
    padding: 10px;
}

.texto2 p {
    margin-bottom: 15px;
    line-height: 1.6;
    padding: 15px;
    text-align: left;
}

hr {
    border-bottom: 3px solid #691C33;
}


.img-center {
    display: block;
    width: 40%;
    margin: auto;
}

.item3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 15px 70px;
}

.consultap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
    gap: 10px;
    margin-bottom: 57px;
}

@media (max-width: 1450px) {
    .consultap {
        grid-template-columns: 1fr; /* Una columna para pantallas pequeñas */
    }
}

.left img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; 
}

.right {
    display: grid;
    grid-template-rows: auto auto;
    justify-content: center; 
    align-items: center; 
}

.right .correo {
    width: 100%; 
    max-width: 800px; 
    height: auto; 
    margin: 0 auto; 
}

.bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    justify-content: center; 
    align-items: center; 
    gap: 10px; 
}

.bottom a {
    display: flex; 
    justify-content: center;
    align-items: center;
}

/* pie de footer */
ul {
    list-style: none;
    padding-left: 0;
}

footer {
    background-color: #691C33;
    color: #bbb;
    line-height: 1.5;
}

footer a {
    text-decoration: none;
    color: #eee;
}

a:hover {
    text-decoration: underline;
}

.ft-title {
    color: #fff;
    font-family: "Merriweather", serif;
    font-size: 1.375rem;
    padding-bottom: 0.625rem;
}

.ft-text {
    color: #fff;
    width: 200px;
    font-size: 1.05rem;
    margin-top: 35px;
}

.footer-img {
    max-width: 100%;
    width: 300px;
    margin-top: 35px;
}


/* Sticks footer to bottom */
body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}


/* Footer main */
.ft-main {
    padding: 1px 2px;
    display: flex;
    flex-wrap: wrap;
}

@media only screen and (min-width: 437px) {
    .ft-main {
        justify-content: space-evenly;
    }
}

@media only screen and (min-width: 1240px) {
    .ft-main {
        justify-content: space-evenly;
    }
}

.ft-main-item {
    padding: 1.25rem;
    min-width: 12.5rem;
}

/* Footer social */
.ft-social {
    padding: 0 1.875rem 1.25rem;
}

.ft-social-list {
    display: flex;
    justify-content: center;
    padding-top: 3.25rem;
}

.ft-social-list li {
    margin: 0.5rem;
    font-size: 1.25rem;
}

.ft-social-pie {
    padding: 0 1.875rem 1.25rem;
    max-width: 100%;
    width: 100%;
    height: 40px;
}

.ft-social-list li a img {
    max-width: 100%;
    width: 60px;
}

@media (max-width: 768px) {
    .ft-social-pie {
        width: 100%;
    }
}

.ft-social img {
    max-width: 100%;
    width: 100%;
}

