* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Monserrat', sans-serif;
    background: url(../images/background.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Navigation Bar */

.menu-main{
    display: flex;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid #ffffff;
    height: 80px;
}

.menu-main a{
    flex: 1;
    font-family: arial;
    display: flex;
    color: #9b9b9b;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;    
    justify-content: center;
    align-items: center;
}

.menu-main a:hover{
    background: rgba(0,0,0, .1);
}

@media (max-width: 768px){
    .menu-main{
        height: auto;;
        border-bottom: 0px;
        display: block;
        
    }
    .menu-main a{
        height: 45px;
        border-bottom: 1px solid #29487d;
        
    }
    
    
}

.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;
  }

  .logo img{
    width: 250px;
    height: auto;
  }
  
  .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: auto;
    position: relative;
    background: none;
}

@media (max-width: 768px) {
    .pleca-col {
        height: 1px;
    }
}

@media (max-width: 480px) {
    .pleca-col {
        height: 1px;
    }
}

.pleca {
    display: flex;
    align-items: center;
    padding: 10px 70px;
  }
  
  .logo-izq img {
    width: 100%;
    max-width: 300px;
    margin-right: 5px;
  }

  .infor p{
    display: inline;
  }

  .infor img{
    width: 100%;
    max-width: 400px;
    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;
}

.fondo2 {
    background-color: #fff;
    text-align: center;
    height: auto;
}

.fondo4 {
    /* background-image: url(../images/textura1.png); */

    background-color: #ffffff;
    text-align: center;
    height: 600px;
}

.row, .titulo {
    padding: 15px;
    margin: 15px;
}

@media (max-width: 768px) {
    .row, .titulo {
        margin-top: 100px;
    }
}

@media (max-width: 480px) {
    .row, .titulo {
        margin-top: 75px;
        padding: 0px;
    }
}

.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;
}

.right > div:first-child {
    border-right: 4px solid #691C33;
    padding-right: 10px; 
}

.calendario {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.calendario .icono {
    width: 100%;
    max-width: 500px;
    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;
    }
}

@media (max-width: 768px) {
    .column {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .column {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}


.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: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.btn-container2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    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;
}

@media (max-width: 768px) {
    .item2 {
        padding: 20px;
        grid-template-columns: repeat(1, 1fr);
    }

    .calendario .icono {
        width: 100%;
    }

    .btn-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .img-center {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .item2 {
        padding: 20px;
        grid-template-columns: repeat(1, 1fr);
    }

    .calendario .icono {
        width: 100%;
    }
    
    .btn-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .img-center {
        width: 100%;
    }
}

/*ESTILOS DE LOS VIDEOS CONSULTA_PERSONA */

    /* Botón para abrir el modal */
    .open-modal {
        background-color: #691d33;
        color: white;
        padding: 15px 25px;
        text-decoration: none;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        font-size: 16px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        margin: 10px;
      }
  
      .open-modal:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
      }
  
      /* Estilo del modal */
      .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        justify-content: center;
        align-items: center;
      }
  
      .modal-content {
        /* background-color: white; */
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        position: relative;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      }
  
      /* Botón de cierre circular */
      .close-modal {
        background-color: #bc945c;
        color: white;
        width: 35px;
        height: 35px;
        border: none;
        border-radius: 50%;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        position: absolute;
        top: 10px;
        right: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease, transform 0.2s ease;
      }
  
      .close-modal:hover {
        background-color: #d2b180;
        transform: scale(1.2);
      }
  
      /* Video dentro del modal */
      video {
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        max-width: 100%;
        cursor: pointer;
      }

/* 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;
}

.container {
    display: flex; 
    flex-direction: column;
    justify-content: center;
    flex: 1; 
    /* margin: 30px;  */
    height: 100vh;
}


.consulta2{
    justify-content: center;
    align-items: center;
}


/* 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%;
}

