/* =========================
   Reset & Variables
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
   --primary-color: #d4ba4c;
   --primary-hover: #c4ad44;
    --secondary-color: #0F172A;
    --text-color: #454F5E;
    --bg-color: #fefefe;
    --section-bg: #F9F0C8;
    --white: #ffffff;
    --black: #000000;

    /* Font */
   --font-family: 'Libre Baskerville', serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Layout */
    --container-max-width: 1240px;
    --container-padding: 1rem;

    /* Effects */
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================
   Layout helpers
   ========================= */
.container { max-width: var(--container-max-width); margin: 0 auto; padding: 0 var(--container-padding); }
.section { padding: 4rem 0; }
.section__title { font-size: 2rem; font-weight: var(--font-weight-semibold); color: var(--secondary-color); margin-bottom: 2rem; }
.section__title--center { text-align: center; }

/* =========================
   Buttons
   ========================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.5rem; border: 2px solid var(--primary-color);
    border-radius: 0; font-weight: var(--font-weight-medium);
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px;
    cursor: pointer; transition: var(--transition);
}
.btn--primary { background-color: var(--bg-color); color: var(--primary-color); border-color: var(--primary-color); }
.btn--primary:hover { background-color: var(--primary-hover); color: var(--black); border-color: var(--primary-hover); }
.btn--small { padding: 0.75rem 1.5rem; font-size: 0.7rem; }

/* =========================
   Header & Navigation
   ========================= */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 0.5rem 0;
}
.nav__container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: var(--container-max-width); margin: 0 auto; padding: 0 var(--container-padding);
    min-height: 50px;
}
.nav__desktop { display: flex; align-items: center; width: 100%; justify-content: space-between; }
.nav__menu { display: flex; }
.nav__list { display: flex; gap: 3rem; align-items: center; }
.nav__link { color: var(--text-color); font-weight: var(--font-weight-medium); font-size: 1rem; position: relative; padding: 0.5rem 0; transition: var(--transition); }
.nav__link:hover { color: var(--primary-color); }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--primary-color); transition: width .3s ease; }
.nav__link:hover::after { width: 100%; }

/* Mobile menu */
.nav__mobile-menu { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 70px; background: var(--bg-color); z-index: 101; padding: 0 1rem; align-items: center; justify-content: space-between; }
.nav__toggle { display: flex; flex-direction: column; gap: 4px; cursor: pointer; padding: 10px; }
.nav__toggle-line { width: 25px; height: 3px; background: var(--text-color); transition: all .3s ease; }
.nav__toggle.active .nav__toggle-line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav__toggle.active .nav__toggle-line:nth-child(2) { opacity: 0; }
.nav__toggle.active .nav__toggle-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
.nav__menu.show-menu { left: 0; }

/* Slide-out menu on mobile */
@media (max-width: 768px) {
  .nav__desktop { display: none; }
  .nav__mobile-menu { display: flex; }
  .nav__menu {
         position: fixed; top: 70px; left: -100%; width: 100%;
         height: auto; max-height: 60vh; overflow-y: auto;
         background: var(--bg-color); flex-direction: column; justify-content: flex-start; align-items: center;
         padding: 1rem 0; transition: var(--transition); box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 100;
  }
  .nav__list { flex-direction: column; gap: 1.5rem; }
  .nav__link { font-size: 1.1rem; padding: 0.5rem 1rem; }
   .nav__reserve-mobile { margin-left: auto; }
}

/* =========================
   Hero
   ========================= */
.hero {
    position: relative; height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); overflow: hidden;
}
.hero__bg {
   position: absolute; inset: 0;
   background: url('FONDO\ HOTEL.png') right center/cover no-repeat;
   z-index: -1;
}
.hero__container { max-width: var(--container-max-width); padding: 0 var(--container-padding); z-index: 1; width: 100%; display: flex; justify-content: flex-end; }
.hero__content { max-width: 560px; margin-right: clamp(1rem, 6vw, 100px); }
.hero__logo { margin-bottom: 0rem; }
.hero__logo-img { width: 270px; height: auto; margin: 0 auto; filter: brightness(1.1); }
.hero__title { font-size: 6rem; font-weight: 100; margin-bottom: 1rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); letter-spacing: 2px; color: #BE9D57;}
.hero__subtitle { font-size: 2rem; margin-bottom: 2rem; text-shadow: 1px 1px 7px rgba(0,0,0,0.5); opacity: .95; color: #BE9D57;}
.hero__stars { display: flex; justify-content: center; gap: .5rem; font-size: 2.2rem; color: #BE9D57; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }

@media (max-width: 768px) {
  .hero__title { font-size: 2.5rem; }
  .hero__subtitle { font-size: 1.2rem; }
  .hero__logo-img { width: 120px; }
}

@media (max-width: 1024px) {
   .hero__container { justify-content: center; }
   .hero__content { text-align: center; margin-right: 0; }
   .about__container {       display: flex;
      flex-direction: column; /* Apila texto y carrusel */
      justify-content: center;
      align-items: center; /* Centra horizontalmente */
      text-align: center;
   }

}

/* =========================
   About
   ========================= */
.about { background: var(--bg-color); }
.about__container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__description { font-size: 1.1rem; line-height: 1.6; color: var(--text-color); }
.about__images { max-width: 560px; height: 350px; border: 3px solid #BE9D57; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.about-swiper { height: 350px; max-width: 560px; margin: 0 auto; }
.about__img { width: 100%; height: 350px; object-fit: cover; border-radius: 8px; }

/* =========================
   Rooms
   ========================= */
.rooms { background: var(--section-bg); }
.rooms__container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: stretch; }
/* Card style for each room */
.room { display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; background: var(--white); padding: 2rem; border: 2px solid #BE9D57; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.room__title { font-size: 1.8rem; font-weight: var(--font-weight-semibold); color: var(--secondary-color); margin-bottom: 1rem; }
.room__description { font-size: 1rem; line-height: 1.6; color: var(--text-color); }
.room__images { width: 100%; max-width: 420px; margin: 0 auto; }
.room-swiper { height: 280px; width: 100%; }
.room__img { width: 100%; height: 280px; object-fit: cover; border-radius: 8px; }

/* =========================
   Services
   ========================= */
.services { background: var(--bg-color); }
.services__container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.service { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2rem; background: var(--white); box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: var(--transition); border: 3px solid #BE9D57; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.service:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.2); }
.service__icon { width: 60px; height: 60px; background:  #d4ba4c; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; transition: var(--transition); border: 3px solid #BE9D57; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);}
.service:hover .service__icon { background: var(--primary-hover); }
.service__icon i { font-size: 1.5rem; color: var(--white); }
.service__title { font-size: 1rem; font-weight: var(--font-weight-medium); color: var(--secondary-color); }

/* =========================
   Contact
   ========================= */
.contact { background: var(--section-bg); }
.contact__container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;  }
.contact__form { background: var(--white); padding: 2rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border: 3px solid #BE9D57; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.form__group { margin-bottom: 1.5rem; }
.form__label { display: block; font-weight: var(--font-weight-medium); color: var(--text-color); margin-bottom: 0.5rem; }
.form__input, .form__textarea { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; font-size: 1rem; background: #fafafa; transition: var(--transition); }
.form__input:focus, .form__textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(212,186,76,0.2); }
.form__button { width: 100%; margin-top: 1rem; }
.contact__map { max-width: 500px; margin: 0 auto; margin-top: 100px; border: 3px solid #BE9D57; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);}
.map__img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; display: block; }

/* =========================
   Footer
   ========================= */
.footer { background: var(--bg-color); padding: 3rem 0 2rem; border-top: 1px solid #eee; }
.footer__content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; align-items: start; }
.footer__title { font-size: 1.5rem; font-weight: var(--font-weight-semibold); color: var(--secondary-color); margin-bottom: 1.5rem; }
.footer__item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.footer__item i { color: var(--primary-color); font-size: 1.2rem; margin-top: 0.2rem; }
.footer__logo { text-align: center; }
.footer__logo-img { width: 120px; margin: 0 auto 1rem; }
.footer__copyright { font-size: 0.9rem; color: var(--text-color); }
.footer__image { max-width: 500px; margin: 0 auto; border: 3px solid #BE9D57; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.footer__img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; }

/* =========================
   WhatsApp floating button
   ========================= */
.whatsapp-btn { position: fixed; bottom: 20px; left: 20px; z-index: 1000; display: none; }
.whatsapp-btn__link { display: flex; align-items: center; background: #25D366; color: var(--white); padding: 14px; border-radius: 50px; box-shadow: 0 4px 12px rgba(37,211,102,0.4); transition: var(--transition); }
.whatsapp-btn__link:hover { background: #20b954; transform: scale(1.05); }
.whatsapp-btn__link i { font-size: 1.5rem; }
.whatsapp-btn__text { margin-left: .5rem; font-weight: var(--font-weight-medium); white-space: nowrap; max-width: 0; overflow: hidden; transition: max-width .3s ease; }
.whatsapp-btn__link:hover .whatsapp-btn__text { max-width: 200px; margin-left: .75rem; }

/* =========================
   Swiper (carousels)
   ========================= */
.swiper { width: 100%; height: 100%; }
.swiper, .about-swiper, .room-swiper { --swiper-navigation-color: #ffffff; --swiper-pagination-color: #ffffff; --swiper-theme-color: #ffffff; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.swiper-button-next, .swiper-button-prev {
    color: #ffffff;
    background: transparent;
    border: none;
    box-shadow: none;
   width: 28px;
   height: 28px;
}
.swiper-button-next:hover, .swiper-button-prev:hover { background: transparent; box-shadow: none; }
.swiper-button-next:after, .swiper-button-prev:after { font-size: 9px; color: #ffffff !important; }
.swiper-pagination-bullet { background: #ffffff; opacity: 1; box-shadow: none; border: none; }
.swiper-pagination-bullet-active { background: #ffffff; border: none; transform: none; }

/* =========================
   Responsive
   ========================= */
@media (max-width: 1024px) {
   .about__container, .room, .contact__container { grid-template-columns: 1fr; gap: 2rem; }
   .rooms__container { grid-template-columns: 1fr; }
   .footer__content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
   .footer__item { justify-content: center; }
   /* Center About section content and carousel */
   .about__container { display: grid; justify-items: center; text-align: center; }
   .about__images { margin: 0 auto; }
}

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .section__title { font-size: 1.5rem; }
  .services__container { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .about-swiper { max-width: 420px; height: 300px; }
  .about__images { max-width: 420px; height: 300px; }
  .about__img { height: 300px; }
  .room-swiper { max-width: 320px; height: 230px; }
  .room__img { height: 230px; }
  .contact__map { max-width: 420px; margin-top: 100px; }
  .footer__image { max-width: 420px; }
  .whatsapp-btn { bottom: 15px; left: 15px; }
  .whatsapp-btn__text { display: none; }
   /* Smaller arrows on tablets */
   .swiper-button-next, .swiper-button-prev { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 .5rem; }
  .btn { padding: .75rem 1.5rem; font-size: .7rem; }
  .contact__form { padding: 1.5rem; }
  .services__container { grid-template-columns: 1fr; gap: 1rem; }
  .service { padding: 1.5rem; }
  .service__icon { width: 50px; height: 50px; }
  .service__title { font-size: .9rem; }
  .about-swiper { height: 240px; max-width: 340px; }
  .about__images { max-width: 340px; height: 245px; }
  .about__img { height: 240px; }
  .room-swiper { height: 200px; max-width: 280px; }
  .room__img { height: 200px; }
  .map__img { height: 240px; }
  .footer__image { max-width: 340px; }
  .footer__img { height: 200px; }
   .swiper-button-next, .swiper-button-prev { width: 22px; height: 22px; }
}

/* =========================
   Simple keyframe helpers
   ========================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.fade-in-up { animation: fadeInUp .6s ease-out forwards; }
.fade-in-left { animation: fadeInLeft .6s ease-out forwards; }
.fade-in-right { animation: fadeInRight .6s ease-out forwards; }