/* ----------------------------- */
/* RESET Y BASE */
/* ----------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fdfdfd;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------- */
/* HEADER HERO */
/* ----------------------------- */
header.hero {
  position: relative;
  text-align: center;
  color: white;
  background-color: #003865;
}

.hero-img {
  width: 100%;
  height: 695px;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 92%;
}

.logo {
  width: 150px;
  margin: 0 auto 1rem auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* ----------------------------- */
/* BOTONES Y ENLACES */
/* ----------------------------- */
.cta-btn {
  background-color: #D9B230;
  color: #000;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.cta-btn:hover,
.cta-btn:focus {
  background-color: #b08e1c;
  transform: scale(1.03);
}

.link-interno {
  color: #D9B230;
  font-weight: 600;
  text-decoration: underline;
}

.cta-btn {
  display: inline-block;
  margin: 1rem auto;
  text-align: center;
}

p a.cta-btn, div a.cta-btn {
  display: inline-block;
  margin: 1rem auto;
  text-align: center;
}

p:has(a.cta-btn), div:has(a.cta-btn) {
  text-align: center;
}


/* ----------------------------- */
/* IDIOMAS */
/* ----------------------------- */
.idiomas {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 20;
  justify-content: flex-end;
  align-items: center;
}

.idiomas a img {
  width: 28px;
  border-radius: 3px;
  transition: transform 0.2s ease;
}

/* ----------------------------- */
/* CONTENIDO GENERAL */
/* ----------------------------- */
main {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.seccion {
  margin-bottom: 3rem;
  animation: fadeIn 1s ease-in;
}

.seccion h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #003865;
}

.seccion h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #003865;
}

.seccion p,
.seccion ul,
.seccion dl {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}

ul li,
dd {
  margin-left: 1.5rem;
}

/* ----------------------------- */
/* CARRUSEL DE SALAS */
/* ----------------------------- */
.carrusel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carrusel figure {
  min-width: 300px;
  scroll-snap-align: start;
  text-align: center;
}

.carrusel figcaption {
  margin-top: 0.5rem;
  font-weight: 500;
  color: #003865;
}

/* ----------------------------- */
/* MAPA */
/* ----------------------------- */
.mapa iframe {
  border: none;
  border-radius: 0.5rem;
  width: 100%;
  height: 450px;
}

/* ----------------------------- */
/* FOOTER */
/* ----------------------------- */
footer.footer {
  background-color: #003865;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.footer .enlaces {
  margin-bottom: 1rem;
}

.footer .enlaces a {
  color: #D9B230;
  margin: 0 0.8rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer .enlaces a:hover {
  color: #ffffff;
}

.footer .redes-sociales {
  margin-bottom: 1rem;
}

.footer .redes-sociales a {
  color: #D9B230;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer .redes-sociales a:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.footer .creditos {
  font-size: 0.9rem;
  color: #ddd;
}

.footer .creditos a {
  color: #D9B230;
  text-decoration: underline;
}

.footer .creditos a:hover {
  color: #fff;
}



/* ----------------------------- */
/* ANIMACIONES */
/* ----------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------- */
/* RESPONSIVE DESIGN */
/* ----------------------------- */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1.25rem;
  }
  .carrusel {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-text {
    top: 60%;
  }

  .cta-btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .idiomas {
    /*
    top: -2.25rem;
    right: -4.25rem;
    */
    }
}






/* Contenedor principal */
.seccion {
  max-width: 1131px;
  margin: 29px auto;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.faq-container {
  margin: 3rem auto;
  padding: 0 1rem;
}

.faq-container h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #222;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem;
  font-size: 1.2rem;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  color: #D9B230;
  font-weight: bold;
  transition: background 0.3s;
}

.faq-question:hover {
  background-color: #f7f7f7;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1rem;
}

.faq-answer.open {
  padding: 0 10px 20px 29px;
}

.faq-answer p {
  color: #444;
  font-size: 1rem;
}


/* Colaboración con Civitatis */
.colaboracion-civitatis {
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #fff8e1;
  border-left: 6px solid #D9B230;
  font-size: 1rem;
  line-height: 1.6;
  border-radius: 8px;
}

/* Tarjeta de visita */
.tarjeta-visita {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
}
.tarjeta-visita .card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  max-width: 360px;
  margin: 2rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.card-content .rating {
  color: #1a936f;
  font-weight: bold;
}

.card-content .tag {
  font-size: 0.9rem;
  color: #d9534f;
  margin: 0.25rem 0;
}

.card-content .desde {
  font-size: 1rem;
  margin: 1rem 0;
}

.card-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-info,
.btn-reserva {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.btn-info {
  background-color: #D9B230;
  color: #fff;
}

.btn-reserva {
  background-color: #01665e;
  color: #fff;
}

.btn-info:hover {
  background-color: #c49e27;
}

.btn-reserva:hover {
  background-color: #014e48;
}

.slider-palacio {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 1rem;
  text-align: center;
  overflow: hidden;
}

.slider-palacio h2 {
  font-size: 2rem;
  color: #003865;
  margin-bottom: 1.5rem;
}

.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.slide {
  display: flex;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 2rem;
  align-items: flex-start;
  gap: 2rem;
}

.title-img {
  flex: 1;
  max-width: 50%;
}

.title-img img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.text-container {
  flex: 1;
  max-height: 400px;
  overflow-y: auto;
  text-align: left;
}

.slide h3 {
  color: #D9B230;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.slide p {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #003865;
  color: #fff;
  border: none;
  padding: 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.slider-btn:hover {
  background: #001f3f;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.estrellas-svg {
  color: #D9B230;
  font-size: 1.2rem;
  letter-spacing: 2px;
  display: inline-block;
  vertical-align: middle;
}











/* Responsive */
@media (max-width: 480px) {
  .tarjeta-visita .card {
    max-width: 95%;
  }

  .card-buttons {
    flex-direction: column;
  }
}



/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .faq-container {
    padding: 1.5rem;
  }

  .faq-container h1 {
    font-size: 1.5rem;
  }

  .faq h2 {
    font-size: 1.1rem;
  }

  .faq p {
    font-size: 0.95rem;
  }
}


/* Ajustes específicos para móvil */
@media (max-width: 768px) {
  .card-content {
    padding: 1rem 0.75rem;
  }

  .card-content h3 {
    font-size: 1.1rem;
  }

  .card-content .desde {
    font-size: 0.95rem;
  }

  .card-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-info,
  .btn-reserva {
    font-size: 0.95rem;
    padding: 0.6rem;
  }

  .colaboracion-civitatis {
    padding: 1rem;
    font-size: 0.95rem;
  }
}
