@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* Reset */
* {
 margin: 0; 
 padding: 0;
 box-sizing: border-box;
}

/* Main*/
html,
body {
  font-family: 'Montserrat', sans-serif;
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }

p {
  font-size: 16px;
  line-height: 1.7em;
  margin: 10px 0;
}

a {
  text-decoration: none;
}

/* Utility Classes */
.container {
  margin: auto;
  max-width: 1400px;
  overflow: auto;
  padding: 0 10px;
}

.hero-content {
  padding-top: 380px;
  text-align: center;
  margin: 0 auto;
  width: 90%;
}

.container-flex {
  display: flex;
  flex-direction: column;
  gap: 40px;
  color: #ffffff;
  -webkit-text-stroke: 3px black; /* Para Chrome/Safari */
  text-stroke: 2px black; /* Estándar */
  paint-order: stroke fill;
  font-family: 'Great Vibes', cursive;
  font-size: 1.2em; /* Suele necesitar un tamaño un poco mayor */
}

.title-1 {
  font-size: 110px;
  line-height: 1.2;
  font-weight: 400;
  align-self: flex-start;
  margin-left: 200px; /* Margen opcional */
}

.title-2 {
  font-size: 110px;
  line-height: 1.2;
  font-weight: 400;
  align-self: flex-end; 
  margin-right: 100px; /* Margen opcional */
}


.display-2 {
  font-size: 3.5rem;
  margin-bottom: 40px;
  line-height: 1.2;
  font-size: 70px;
  font-weight: 400;
}

.btn {
  background: #2CBCF2;
  color: #fff;
  display: inline-block;
  font-size: 15px;
  padding: 12px 23px;
  cursor: pointer;
  letter-spacing: 1px;
  border-radius: 4px;
}

/* Nav */
#main-header {
  position: relative;
  color: white;
  background: #333 url('../img/Portada2.jpg') center/cover no-repeat;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 80px;
  min-height: 80vh;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-link {
  display: inline-block;
}

.logo {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Barra de navegación */
.main-nav {
  padding: 20px 0;
  position: absolute;
  width: 100%;
  z-index: 10;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu li {
  margin: 0 10px;
  position: relative;
}

.nav-menu > li > a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: block;
}

.nav-menu > li > a:hover {
  background-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-left: 20px;
}

.redes-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.redes {
  height: 28px; 
  width: auto;
  transition: transform 0.3s ease;
  filter: brightness(0.9);
}

.redes-link:hover .redes {
  transform: scale(1.15);
  filter: brightness(1.2) drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.redes-link[aria-label="WhatsApp"]:hover .redes {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(37,211,102,0.4));
}

.redes-link[aria-label="Instagram"]:hover .redes {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(225,48,108,0.4));
}

/* Contenido hero */
.hero-content {
  padding-top: 380px;
  text-align: center;
  margin: 0 auto;
  width: 90%;
}

.display-1 {
  font-size: 3.5rem;
  margin-bottom: 40px;
  line-height: 1.2;
  font-size: 70px;
  font-weight: 400;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #ff6b6b;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-large {
  padding: 15px 40px;
  font-size: 1.1rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Description */
#description {
  padding-top: 120px;
  padding-bottom: 100px;
  text-align: center;
}

#description h2 {
  padding-bottom: 20px;
}

.description-row {
  padding-top: 20px;
}

.description-box {
  float: left;
  width: 33%;
  padding: 25px;
}

.description-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Divisor */
#divisor {
  background: #ab2228;
 /* background: url('../img/Espacios2.jpg');*/
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding-top: 50px;
  padding-bottom: 30px;
  color: #fff;
  text-align: center;
  font-weight: 300;
}

/* alojamiento */
.alojamiento-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.alojamiento h2{
  font-size: 56px;
  font-weight: 300;
  text-align: center;
}

.alojamiento-box {
  flex: 1;
  min-width: 300px;
  max-width: calc(50% - 15px);
  margin: 0 0 40px 0;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(164, 42, 42, 0.272);
}

.image-grid {
  position: relative;
}

.main-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  background: #f9f9f9;
}

.thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  border-radius: 4px;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.thumb:hover {
  transform: scale(1.05);
}

.thumb.active {
  border-color: #c49a6c;
  opacity: 0.8;
}

.alojamiento-box h4 {
  color: #3a2c1a;
  padding: 15px 20px 5px;
  font-size: 1.4rem;
}

.alojamiento-box p {
  color: #666;
  padding: 0 20px 20px;
  line-height: 1.6;
}

.alojamiento-title {
  text-align: center;
  font-size: 2.5rem;
  color: #3a2c1a;
  margin-bottom: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.alojamiento-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #c49a6c;
}

.title-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.title-container h2 {
  font-size: 2.5rem;
  color: #3a2c1a;
  padding-bottom: 10px;
  border-bottom: 2px solid #c49a6c; /* Línea decorativa */
}

/* About */
#about {
  padding-top: 80px;
  padding-bottom: 80px;
}

.about-image {
  float: left;
  width: 50%;
  padding: 40px;
}

.about-image img {
  width: 100%;
}

.about-text {
  float: right;
  width: 50%;
  padding: 150px 50px;
}

.about-text p {
  padding-top: 20px;
}

/* Footer */
#mainfooter {
  background: #F9F9F9;
  text-align: center;
  padding: 20px;
}

/* Slider */

.slider {
  width: 100%;
  max-width: 1300px;
  height: 80vh;
  max-height: 800px;
  min-height: 500px;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
  border-radius: 15px; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.list {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.list .item {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.list img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.buttons {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2%;
  transform: translateY(-50%);
  z-index: 10;
}

.buttons button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(171, 34, 40, 0.8);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buttons button:hover {
  background-color: rgba(171, 34, 40, 1);
  transform: scale(1.1);
}

.dots {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.dots li {
  width: 15px;
  height: 15px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  list-style: none;
}

.dots li.active {
  width: 40px;
  background-color: white;
  border-radius: 10px;
}

.list .item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  z-index: 1;
}

/* Boton inicio */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ab2228; /* Color que combina con tu diseño */
  color: white;
  border: none;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.back-to-top:hover {
  background-color: #8a1c1f; /* Color más oscuro al hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}



/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .social-icons {
    margin: 10px 0 0 0;
    width: 100%;
    justify-content: center;
    order: 1;
  }
  
  .hero-content {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
    width: 60%;
  }
  
  .display-1 {
    font-size: 2.5rem;
  }

  #main-header {
    background-position: 60% center;
    min-height: auto;
    padding: 100px 0 60px;
  }

  .main-img {
    height: 250px;
  }
  
  .thumb {
    height: 60px;
  }

  .alojamiento-box {
    max-width: 100%;
    min-width: 250px;
  }

  .alojamiento-row {
    gap: 20px;
  }

  .slider {
    height: 400px;
  }
  
  .buttons button {
    width: 40px;
    height: 40px;
  }

  .title-1 {
    font-size: clamp(2.5rem, 6vw, 0px);
    line-height: 1.2;
    font-weight: 300;
    margin-left: 10px !important;
  }

  .title-2 {
    font-size: clamp(2.5rem, 6vw, 70px);
    line-height: 1.2;
    font-weight: 100;
    margin-right: 10px !important;
  }
}

/* Móviles (default) - Mobile First */
.title-1, .title-2 {
  font-size: 2rem;
  line-height: 1.2;
  text-align: center;
  margin: 0 auto 20px !important;
  width: 90%;
}

/* Móviles pequeños (≤360px) */
@media (max-width: 360px) {
  .title-1, .title-2 {
    font-size: 1.8rem;
  }
}

/* Móviles landscape (≤767px) */
@media (max-width: 767px) and (orientation: landscape) {
  .title-1, .title-2 {
    font-size: 2rem;
  }
}

/* Tablets pequeñas (≥540px) */
@media (min-width: 540px) {
  .title-1, .title-2 {
    font-size: 2.8rem;
    margin-left: 30px !important;
    margin-right: 30px !important;
  }
}

/* Tablets (≥768px) */
@media (width: 768px) and (height: 1024px) {
  .title-1, .title-2 {
    font-size: 3.5rem;
    margin-left: -300px !important;
    margin-right: 70px !important;
  }
}

@media (width: 820px) and (height: 1180px) {
  .title-1, .title-2 {
    font-size: 3.2rem;
    margin-left: -120px !important;
    margin-right: -90px !important;
  }
}

/* iPad Pro portrait (1024x1366) */
@media (width: 1024px) and (height: 1366px) {
  .title-1, .title-2 {
    font-size: 10.2rem;
    margin-left: -120px !important;
    margin-right: -90px !important;
  }
}

/* Laptops pequeñas (≥992px) */
@media (min-width: 992px) {
  .title-1, .title-2 {
    font-size: 4.5rem;
    margin-left: 150px !important;
    margin-right: 120px !important;
  }
}

/* Laptops (≥1200px) */
@media (min-width: 1200px) {
  .title-1, .title-2 {
    font-size: 5rem;
    margin-left: 200px !important;
    margin-right: 150px !important;
  }
}

/* Pantallas grandes (≥1400px) */
@media (min-width: 1400px) {
  .title-1, .title-2 {
    font-size: 5.5rem;
    margin-right: -150px !important;
    margin-left: -150px !important;
  }
}

/* Pantallas extra grandes (≥1920px) */
@media (min-width: 1920px) {
  .title-1, .title-2 {
    font-size: 6rem;
    margin-left: 300px !important;
    margin-right: 250px !important;
  }
}
