@font-face {
  font-family: "Panton";
  src: url("/assets/fonts/Panton.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

body {
  font-family: "Panton", sans-serif;
  background-color: #f8f9fa;
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  padding-left: 15px;
  padding-right: 15px;
}

header {
  background-color: transparent;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.fixed-top {
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.navbar-scrolled {
  background-color: rgba(159, 34, 65, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@supports not (backdrop-filter: blur(10px)) {
  .navbar-scrolled {
    background-color: #9F2241;
  }
}

.navbar-brand {
  display: flex;
  justify-content: flex-start;
  width: auto;
}

.navbar-brand img {
  max-height: 55px;
  width: auto;
  filter: brightness(100%);
  transition: filter 0.3s ease;
}

.navbar-scrolled .navbar-brand img {
  filter: brightness(100%);
}

.navbar-nav {
  gap: 1.5rem;
}

.nav-link {
  color: #000;
  font-weight: 300;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link:focus {
  color: #c9a35d !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #c9a35d;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

#avisos, #recursos, #galeria, #contacto {
  padding-top: 40px;
  padding-bottom: 40px;
  margin-bottom: 40px;
}

#avisos {
  margin-top: 80px;
}

#avisos .carousel-item {
  cursor: pointer;
}

.carousel-item img {
  object-fit: cover;
  max-height: 400px;
}

.carousel-control-prev, .carousel-control-next {
  width: 10%;
}

.carousel-control-icon {
  width: 40px;
  height: 40px;
  background-size: 100%;
}

.recurso-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recurso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.recurso-card .card-img-top {
  height: 130px;
  object-fit: contain;
  padding: 1rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #BC955C;
  position: relative;
}

.modal-content {
  background-color: rgba(37, 37, 37, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  color: #ffffff;
}

.modal-header {
  border-bottom: none;
}

.modal-title {
  font-size: 1rem;
  font-weight: bold;
  position: relative;
}

.btn-close {
  filter: invert(1);
}

.btn-recurso {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  padding: 10px 20px;
  margin: 10px;
  transition: all 0.3s ease;
  font-weight: 600;
  display: inline-block;
}

.modal-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  justify-content: center;
  padding: 20px;
}

.btn-recurso:hover {
  background-color: #c9a35d;
  border-color: #c9a35d;
  transform: translateY(-3px);
}

@supports not (backdrop-filter: blur(10px)) {
  .modal-content {
    background-color: rgba(37, 37, 37, 0.95);
  }
}

#carouselGaleria {
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#galeria .carousel-item {
  cursor: pointer;
}

#galeria .carousel-item img, #galeria .carousel-item video {
  object-fit: cover;
  max-height: 400px;
  transition: transform 0.3s ease;
}

#galeria .carousel-item:hover img, #galeria .carousel-item:hover video {
  transform: scale(1.05);
}

#galeria .carousel-caption {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
}

#galeriaModal .carousel-item img, #galeriaModal .carousel-item video {
  max-height: 70vh;
  object-fit: contain;
}

.accordion-button {
  background-color: #fff;
  color: #801531;
}

.accordion-button:not(.collapsed) {
  background-color: #801531;
  color: #ffffff;
}

.accordion-button:focus {
  box-shadow: none;
}

.email-link {
  color: #575757 !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
}

.email-link:hover {
  color: #801531 !important;
}

.card-text em {
  font-style: normal;
  font-size: 0.9rem;
}

.accordion-item .card-title {
  position: relative;
}

.accordion-item .card-title::after {
  content: none;
}

.map-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #000;
  border-radius: 8px;
}

footer {
  background-color: #9f2241;
  color: #ffffff;
  margin-top: auto;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer-image1 {
  max-width: 310px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  position: absolute;
  bottom: 80px;
  left: 20%;
  transform: translateX(-50%);
}

.footer-image1 img {
  max-width: 100%;
  height: auto;
}

footer .col-md-4 {
  position: relative;
  min-height: 150px;
}

.footer-links {
  columns: 2;
  gap: 1rem;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-link:hover {
  color: #DDC9A3 !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding-top: 1rem;
  font-size: 13px;
  margin-top: 5px;
}

#sitiosInteres .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 10px;
  padding-top: 5px;
  width: 100%;
}

.footer-bottom p {
  margin-bottom: 5px;
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #9F2241;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.show {
  opacity: 1;
}

.scroll-to-top:hover {
  background-color: #c9a35d;
}

section h2 {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

section h2::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: #801531;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .carousel-item img {
    max-height: 200px;
  }
  .footer-image1 {
    max-width: 250px;
    top: 40px;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
  }
  .navbar-brand {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .navbar-brand img {
    max-height: 50px;
  }
  .map-container {
    padding-bottom: 65%;
  }
  .recurso-card .card-img-top {
    height: 100px;
  }
  .recurso-card {
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .carousel-item img {
    max-height: 150px;
  }
  .footer-links {
    columns: 1;
  }
  .footer-image1 {
    max-width: 250px;
    top: 40px;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
  }
  .navbar-brand {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .navbar-brand img {
    margin-left: 30px;
    max-height: 45px;
  }
  .scroll-to-top {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .card-title {
    font-size: 0.9rem;
  }
  .modal-title {
    font-size: 1.2rem;
  }
  .btn-recurso {
    padding: 8px 16px;
    margin: 8px;
    font-size: 0.9rem;
  }
  #avisos, #recursos, #galeria, #contacto {
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
}

@media (min-width: 1440px) and (max-width: 1450px) {
  #carouselAvisos .carousel-item img {
    max-height: 350px;
    object-fit: cover;
    width: 100%;
    margin: 0 auto;
  }
  #carouselGaleria .carousel-item img, #carouselGaleria .carousel-item video {
    max-height: 350px;
    object-fit: cover;
    width: 100%;
    margin: 0 auto;
  }
  #galeriaModal .carousel-item img, #galeriaModal .carousel-item video {
    max-height: 60vh;
    object-fit: contain;
    width: 90%;
    margin: 0 auto;
  }
  .footer-image1 {
    max-width: 320px;
    width: 100%;
    bottom: 70px;
    left: 50%;
  }
  .container {
    max-width: 1400px;
    padding-left: 20px;
    padding-right: 20px;
  }
}