@font-face {
  font-family: "League Spartan";
  src: url("../fonts/LeagueSpartan-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DM-Sans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DM-Sans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@-webkit-keyframes icono-header {
  0% {
    top: 0;
  }
  50% {
    top: -0.3em;
  }
  100% {
    top: 0;
  }
}

@keyframes icono-header {
  0% {
    top: 0;
  }
  50% {
    top: -0.3em;
  }
  100% {
    top: 0;
  }
}

body {
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  color: #1A1C1C;
  background-color: #E6F3F3;
  /* Suavizado de fuente profesional (lo que Google Fonts aplica por defecto) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body a {
  color: #008687;
  font-weight: 500;
  text-decoration: none;
}

body a:hover {
  color: #D4AF37;
}

/* Estilo base global para botones dorados */
.button {
  padding: 15px 30px;
  border-radius: 30px;
  background-color: #D4AF37;
  color: #1A1C1C !important;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  font-size: 1.05rem;
  line-height: 1.5;
  display: inline-block;
  text-align: center;
}

.button:hover {
  background-color: #b8962e;
  color: #000 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#apartamentos,
#apartments,
#contacto,
#contact,
#hostal,
#hostel,
#habitaciones,
#rooms,
#mojacar,
#galeria,
#gallery {
  margin-top: 140px;
  margin-bottom: 80px;
}

#opiniones,
#opinions {
  margin-top: 52px;
  /*80px*/
}

#reservar,
#reservations {
  margin-top: 110px;
  margin-bottom: 90px;
}

.main-texts {
  color: #008687;
  font-family: "League Spartan", sans-serif;
}

.secondary-texts {
  color: #94761C;
  font-family: "League Spartan", sans-serif;
}

.logo {
  width: 180px;
  height: auto;
}

.hero {
  background: url("/img/hero-image.jpg");
  background-size: cover;
  background-position: bottom center;
}

.hero h1, .hero .h1 {
  width: 100%;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0 !important;
}

.hero-svg {
  width: 100%;
  max-width: 1150px; /* Aumentado para que sea más grande */
  height: auto;
}

/* Estilos para el nuevo formulario de reserva */
.widget_redforts_com {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem 6rem; /* Aumentado el largo lateral */
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  gap: 60px; /* Aumentado el espacio entre campos */
  align-items: flex-end;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Estilo específico color arena para el formulario de la sección de contacto */
#contacto .widget_redforts_com {
  background: rgba(242, 231, 213, 0.9);
  border: 1px solid rgba(89, 59, 35, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Sombra mucho más sutil y ligera */
}

.booking-field-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.booking-field-group label {
  color: #593b23;
  font-size: 0.95rem;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-icon-color {
  color: #593b23;
}

.arrival_redforts_com,
.departure_redforts_com {
  width: 280px;
  padding: 15px 25px;
  border-radius: 30px;
  border: 1px solid transparent;
  outline: none;
  transition: all 0.3s ease;
  font-size: 1.05rem;
}

.arrival_redforts_com:focus,
.departure_redforts_com:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Ajuste de alineación para el botón del widget */
.widget_redforts_com .button {
  margin-bottom: 0;
}

/* Ajuste móvil para el formulario */
@media (max-width: 1199px) {
  .widget_redforts_com {
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    gap: 15px;
    width: 90%;
    padding: 1.5rem;
  }
  .arrival_redforts_com, .departure_redforts_com {
    width: 100%;
  }
  .booking-field-group {
    width: 100%;
  }
}
#reservar .button, #reservations .button {
  margin-top: -3px;
  background-color: #008687;
  color: #fff;
}

#reservar .button:hover, #reservations .button:hover {
  background-color: #006d6e;
}

.pointer {
  cursor: pointer;
}

#gallery-modal .modal-content {
  border-radius: 25px;
  border: none;
  background-color: transparent; /* Fondo invisible para que la foto flote */
}

#gallery-modal .modal-body {
  padding: 0;
  position: relative;
}

#gallery-modal .modal-img {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  width: 100%;
  border: 5px solid #fff; /* Marco elegante tipo foto */
}

#gallery-modal .btn-close {
  background-color: #fff;
  opacity: 1;
  border-radius: 50%;
  padding: 12px;
  position: absolute;
  right: -15px;
  top: -15px;
  z-index: 1070;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

#gallery-modal .btn-close:hover {
  transform: scale(1.1);
}

/* Estilos para el Modal de Créditos */
#creditsModal .modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Estilos para los títulos de licencias dentro del modal de créditos */
#creditsModal .modal-license-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#creditsModal .credits-license-link {
  font-size: 0.7em; /* Más pequeño que el texto del h4 */
  margin-left: 8px; /* Espacio entre el texto y el icono */
  color: #008687; /* Color principal de los enlaces */
  opacity: 0.7; /* Sutil en reposo */
  transition: opacity 0.3s ease, color 0.3s ease;
}

#creditsModal .credits-license-link:hover {
  opacity: 1;
  color: #D4AF37; /* Color dorado al pasar el ratón */
}

/* Flechas de navegación del Modal */
#gallery-modal .modal-control-prev,
#gallery-modal .modal-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  z-index: 1080;
  padding: 10px;
}

#gallery-modal .modal-control-prev { left: 20px; }
#gallery-modal .modal-control-next { right: 20px; }

#gallery-modal .modal-control-prev:hover .carousel-control-prev-icon,
#gallery-modal .modal-control-next:hover .carousel-control-next-icon {
  background-color: rgba(212, 175, 55, 0.8);
}

#gallery-modal.single-image .modal-control-prev,
#gallery-modal.single-image .modal-control-next {
  display: none;
}

.navbar-toggler-icon {
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

.hamburger-bar {
  background-color: #008687;
  width: 30px;
  height: 3px;
}

.navbar-toggler .hamburger-bar:nth-of-type(2) {
  top: 6px;
}

.navbar-toggler .hamburger-bar:nth-of-type(3) {
  top: 12px;
}

.navbar-toggler .hamburger-bar {
  position: relative;
  -webkit-transition: all 500ms ease-in-out;
  transition: all 500ms ease-in-out;
}

.navbar-toggler.active .hamburger-bar:nth-of-type(1) {
  top: 2.8px;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  background-color: #008687;
}

.navbar-toggler.active .hamburger-bar:nth-of-type(2) {
  background-color: transparent;
}

.navbar-toggler.active .hamburger-bar:nth-of-type(3) {
  top: -2.8px;
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
  background-color: #008687;
}

.hero-link-container {
  position: absolute;
  bottom: 120px; /* Subido para que el botón esté más arriba */
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  z-index: 10;
}

.hero-link-icon {
  position: relative;
  display: block;
  -webkit-animation: icono-header 3s infinite;
          animation: icono-header 3s infinite;
}

.hero-link-icon .fa-stack {
  font-size: 30px;
}

.hero-link-icon .fa-diamond {
  color: #593b23;
}

.hero-icon-arrow {
  color: #fff !important; /* Color blanco para máxima legibilidad y contraste */
  opacity: 1;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8, %3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(10,141,214,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
  font-size: 28px;
}

.navbar-toggler {
  border-color: none !important;
}

.scrolled-down {
  -webkit-transform: translateY(-100%);
          transform: translateY(-100%);
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.scrolled-up {
  -webkit-transform: translateY(0);
          transform: translateY(0);
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.header-texts {
  font-family: "DM Sans", sans-serif;
  font-weight: 700; /* Ajustado al peso del archivo disponible */
  font-size: 20px;
  letter-spacing: -0.01em; /* DM Sans suele verse mejor con un ligero ajuste */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2.8rem;
  height: 2.8rem;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  background-size: 50%;
  transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: rgba(212, 175, 55, 0.8); /* Color dorado al pasar el ratón */
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 6px;
  border: none; /* Quitamos los bordes por defecto de Bootstrap */
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  width: 25px;
  border-radius: 10px;
  background-color: #D4AF37;
}

.nav-item {
  padding: 0 30px 0 30px;
}

.nav-link {
  color: #1A1C1C !important;
  margin-top: 20px;
}

.nav-scroll .nav-link {
  color: #008687 !important;
}

.nav-item:last-child {
  margin-bottom: 25px;
}

/* Estilos para los desplegables de la navbar */
.dropdown-item {
  color: #1A1C1C !important;
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
}

.nav-scroll .dropdown-item {
  color: #008687 !important;
}

.dropdown-item:hover {
  color: #D4AF37 !important;
  background-color: #f8f9fa;
}

/* Ajustes para el menú responsive (hasta 1400px debido a navbar-expand-xxl) */
@media (max-width: 1399.98px) {
  .navbar-nav {
    padding: 2rem 0;
  }
  .nav-item {
    padding: 0 !important; /* Eliminamos el padding lateral para centrar correctamente */
  }
  .nav-item a {
    margin-top: 0 !important; /* Eliminamos el margen superior que se aplica en escritorio */
  }
  .nav-link, .dropdown-item {
    font-size: 1.5rem !important; /* Texto más grande para mejor legibilidad */
    padding: 12px 0 !important;
  }
  .dropdown-menu {
    text-align: center;
    border: none;
  }
}

/* Ajustes para pantallas grandes (XXL) */
@media (min-width: 1400px) {
  .hero-svg {
    max-width: 1350px; /* SVG más grande en monitores grandes */
    padding: 0 20px;
  }
}

blockquote i {
  color: #D4AF37;
  font-size: 30px;
}

figcaption {
  margin-left: 48px;
  font-size: 17px !important;
}

/* Estilos unificados para la sección de contacto */
.contacto-direccion, .contacto-telefono, .contacto-email {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.contacto-direccion i, .contacto-telefono i, .contacto-email i {
  color: #D4AF37;
  font-size: 22px;
  margin-right: 15px;
  display: flex;
  justify-content: center;
  width: 25px; /* Asegura que todos los iconos ocupen el mismo espacio horizontal */
}

.contacto-direccion a, .contacto-telefono a, .contacto-email a {
  font-size: 18px;
}

.map {
  margin-top: 50px;
}

.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 100%;
  cursor: pointer;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  pointer-events: none;
  border: 0;
}

.map-responsive.active {
  cursor: default;
}

.map-responsive.active iframe {
  pointer-events: auto;
}

footer {
  background-color: #008687;
  color: #fff;
  padding: 40px 0 40px 0;
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer i {
  font-size: 35px;
}

footer i:hover {
  color: #D4AF37;
}

.whatsapp-icon {
  display: none;
}


@media (max-width: 575.98px) {
  .logo {
    width: 140px;
  }

  .header-texts {
    font-size: 16px;
    margin-top: 12px !important;
  }

  form span {
    display: block;
  }

  .contacto-email a, .contacto-telefono a {
    font-size: 17px;
  }

  .whatsapp-icon {
    position: fixed;
    display: flex; /* Se activa solo en dispositivos móviles */
    align-items: center;
    justify-content: center;
    bottom: 30px;
    right: 24px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s linear;
    background-color: #25D366; /* Fondo verde oficial de WhatsApp */
    width: 65px;
    height: 65px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  .mobile-whatsapp-icon {
    font-size: 38px !important;
    color: #fff !important; /* Icono blanco para resaltar */
    margin: 0 !important;
  }

  .whatsapp-icon a.disabled {
    pointer-events: none;
  }

  .appears {
    opacity: 1;
    transition-timing-function: linear;
  }

  .disappears {
    opacity: 0;
  }
}


@media (max-width: 767.98px) {
  .margin-bottom-48 {
    margin-bottom: 48px;
  }
  .hero {
    background-position: bottom right;
  }
  .opinions {
    margin-bottom: 50px;
  }
  #galeria,
  #gallery {
    margin-top: 50px;
  }
  #opiniones,
  #opinions {
    margin-top: 100px;
  }

  .header-texts {
    font-size: 18px;
    margin-top: 15px;
  }

  form span {
    display: block;
  }
}

@media (min-width: 768px) {
  .navbar-brand {
    -webkit-transform: translateX(10%);
            transform: translateX(10%);
  }
  .map {
    margin-top: 0px;
  }
}

@media only screen and (min-width: 100px) and (max-width: 767px) {
  .margin-reservation-fields {
    margin-right: 0rem;
  }
}

@media only screen and (min-width: 100px) and (max-width: 914px) {
  #reservar .button {
    margin-top: 1.5rem;
  }

  #reservations .button {
    margin-top: 1.5rem;
  }
}

@media (max-width: 910px) {
  #hero form, #hero h3 {
    display: none;
  }
}

@media only screen and (min-width: 911px) and (max-width: 1399px) {
  #hero h3 {
    margin-top: 10px; /* Reducido para evitar el hueco extraño en XL */
  }
}

@media (min-width: 992px) {
  .header-texts {
    font-weight: 800;
    font-size: 20px;
  }
  .navbar a {
    margin-top: 8px;
  }
  /* Aumentar texto de subtítulo y formulario */
  .hero h3 {
    font-size: 2rem;
    margin-top: 8px;
  }
}

@media (min-width: 1200px) {
  .carousel-height {
    height: 500px;
  }
  .carousel-height img {
    position: absolute;
    -o-object-fit: cover;
       object-fit: cover;
    top: 0;
    left: 0;
    height: 500px;
  }
}

@media (min-width: 1400px) {
  .navbar {
    background: transparent !important;
    -webkit-box-shadow: none !important;
            box-shadow: none !important;
  }
  .nav-link {
    color: #1A1C1C !important;
  }

  .header-texts {
    font-size: 17px;
  }

  .header-texts:hover {
    color: #D4AF37;
  }
  .nav-item:last-child {
    margin-bottom: 0px;
    margin-top: -4px;
  }
  .nav-scroll {
    background-color: #fff !important;
    -webkit-box-shadow: 5px -1px 12px -5px grey !important;
            box-shadow: 5px -1px 12px -5px grey !important;
  }

  .dropdown-menu {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  .nav-scroll .nav-link {
    color: #008687 !important;
  }

  .carousel-height {
    height: 750px;
  }
  .carousel-height img {
    position: absolute;
    -o-object-fit: cover;
       object-fit: cover;
    top: 0;
    left: 0;
    height: 750px;
  }
  /* Texto de los campos de reserva un poco más grandes */
  .widget_redforts_com {
    font-size: 1.2rem;
  }
}

@media (min-width: 1500px) {
  .header-texts {
    font-size: 20px;
  }

  .nav-item:last-child {
    margin-top: 0px;
  }
}

/* Estilos para los iconos de características de los apartamentos */
.apartment-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.apartment-features .feature-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 134, 135, 0.15);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.apartment-features .feature-item:hover {
  transform: translateY(-3px);
  border-color: #D4AF37;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.apartment-features .feature-item i {
  font-size: 1.1rem;
  color: #008687;
  margin-right: 12px;
  width: 24px;
  text-align: center;
}

.apartment-features .feature-item span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1A1C1C;
  line-height: 1.2;
}

/* Estilo para uniformizar el tamaño de las imágenes en los sliders */
.carousel {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Sutil degradado inferior para que los puntos de navegación se vean mejor */
.carousel-inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 75%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
}

.gallery-image {
  height: 280px; /* Altura fija para móviles */
  object-fit: cover; /* Asegura que la imagen llene el espacio sin deformarse */
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.carousel:hover .gallery-image {
  transform: scale(1.05); /* Efecto de zoom suave al pasar el ratón */
}

@media (min-width: 768px) {
  .gallery-image {
    height: 400px; /* Altura fija para escritorio */
  }
}

/* Estilos para la sección de Magia Local */
.mojacar-magic-section {
  position: relative;
  background: url("/img/mojacar/mojacar.jpg") center/cover no-repeat fixed;
  min-height: 800px;
  display: flex;
  align-items: center;
  margin-top: 140px;
  margin-bottom: 80px;
  padding: 120px 0;
}

.mojacar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.mojacar-title {
  font-family: "League Spartan", sans-serif;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2;
}

.local-card {
  background-color: rgba(255, 255, 255, 0.95);
  position: relative;
  z-index: 2;
  border-radius: 20px;
  overflow: hidden;
}

.local-card .card-icon {
  padding-top: 2rem;
  color: #008687;
  font-size: 3rem;
}

/* Ajuste de padding para botones en tarjetas */
.local-card .button {
  padding: 10px 25px;
}
