
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #e2d28b;
}

.logo img {
    max-width: 150px;
    height: auto;
    display: block;
}



main {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

h1, h2, h3 {
    color: #007fa3;
}

form {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

label {
    display: block;
    margin: 0.5rem 0 0.2rem;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
input[type="date"],
input[type="time"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #007fa3;
    color: white;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #005f7a;
}



.slider {
    max-width: 1000px;
    height: 300px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
  }
  
  .slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
  
  .slide.active {
    display: block;
  }
  
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .caption {
    position: absolute;
    bottom: 0;
    background: rgba(0, 40, 60, 0.8);
    color: white;
    width: 100%;
    padding: 20px;
    font-size: 20px;
  }
  
  .prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
  }
  
  .prev { left: 20px; }
  .next { right: 20px; }
  


.contenedor-noticias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

.tarjeta-noticia {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: calc(50% - 2rem); 
    min-width: 400px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.tarjeta-noticia:hover {
    transform: translateY(-5px);
}

.tarjeta-noticia img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.tarjeta-noticia .contenido {
    padding: 1rem 1.2rem 1.2rem 1.2rem; 
    flex: 1;
}

.tarjeta-noticia h3 {
    font-size: 1.6rem;
    margin: 0 0 0.4rem 0; 
    color: #007aa3;
}

.tarjeta-noticia p {
    font-size: 1.1rem;
    color: #555;
}

  .btn-cita {
    margin-top: 10px;
    background-color: #00a8cc;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .btn-cita:hover {
    background-color: #007a99;
  }
  .caption {
    position: absolute;
    bottom: 0;
    background: rgba(0, 40, 60, 0.8);
    color: white;
    width: 100%;
    padding: 20px;
    font-size: 20px;
  
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }


  .nofocus {
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
  }

  ::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-track {
  background: #e0f7fa;
}

::-webkit-scrollbar-thumb {
  background-color: #00a8cc;
  border-radius: 10px;
  border: 2px solidrgb(219, 233, 235);
}




.nofocus {
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
  }

::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(to bottom, #e6f9fc, #d2edf3);
  border-radius: 10px;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #00a8cc, #007c9d);
  border-radius: 20px;
  border: 3px solid #e0f7fa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, transform 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #0093b9, #005c73);
  transform: scale(1.05);
}

::-webkit-scrollbar-button {
  background-color: #00a8cc;
  height: 15px;
  border: none;
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-button:hover {
  background-color: #007c9d;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #00a8cc #e0f7fa;
}

#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background:rgba(207, 207, 230, 0.79);
  color:rgb(0, 0, 0);
  padding: 15px;
  text-align: center;
  z-index: 9999;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.cookie-buttons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cookie-buttons button {
  background-color: #007a99;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cookie-buttons button:hover {
  background-color: #005f73;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: left;
}





