/* =========================================================
   VARIABLES - ESTILO NARANJA HOTEL REX (IGUAL A LA FACHADA)
   ========================================================= */
:root {
  --bg-black: #e65c00;
  --bg-dark: #cc5200;
  --text-white: #ffffff;
  --text-gray: #ffebd6;
  --border-color: rgba(255, 255, 255, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--bg-black);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
.btn-primary,
.nav-links a,
.loader-text {
  font-family: "Jura", sans-serif;
  text-transform: uppercase;
}

/* =========================================================
   PRELOADER
   ========================================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.8s ease-out,
    visibility 0.8s ease-out;
}
#preloader.oculto {
  opacity: 0;
  visibility: hidden;
}
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.loader-text {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 8px;
  animation: pulse 1.5s infinite;
}
.rocket-loader {
  width: 60px;
  height: 60px;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-rocket 2.5s ease-in-out forwards;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
@keyframes draw-rocket {
  to {
    stroke-dashoffset: 0;
  }
}

/* =========================================================
   SLIDESHOW FONDOS
   ========================================================= */
.slideshow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120vh;
  z-index: -10;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.slide.active {
  opacity: 1;
}

/* =========================================================
   NAVBAR Y LOGO
   ========================================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(230, 92, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}
.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.navbar-logo {
  height: 45px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}
.nav-links a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: 0.3s;
}
.nav-links a:hover {
  color: #ffd1b3;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  display: flex;
  align-items: flex-end;
  padding: 0 5% 100px 5%;
  height: 100vh;
  text-align: left;
  background-color: transparent;
}
.hero-content {
  max-width: 700px;
}
.hero-content h2 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 4px;
  margin-bottom: 10px;
  color: var(--text-gray);
}
.hero-content h1 {
  font-size: clamp(50px, 8vw, 90px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
  margin-bottom: 30px;
}
.hero-content p {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-white);
  margin-bottom: 40px;
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn-primary {
  display: inline-block;
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
  padding: 18px 40px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.4s ease;
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--text-white);
  color: var(--bg-black);
}
button.btn-primary {
  width: 100%;
  margin-top: auto;
}

/* =========================================================
   ESTRUCTURA DE SECCIONES
   ========================================================= */
.section {
  padding: 120px 5%;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background-color: transparent;
}
.black-section {
  background-color: rgba(230, 92, 0, 0.5);
}
.dark-section {
  background-color: rgba(204, 82, 0, 0.7);
}
.section-header {
  margin-bottom: 80px;
}
.section-title {
  font-size: 40px;
  letter-spacing: 6px;
  color: var(--text-white);
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: stretch;
}

/* =========================================================
   ALERTA PERSONA EXTRA
   ========================================================= */
.alert-banner {
  border: 1px solid var(--text-white);
  padding: 25px 30px;
  margin: 0 auto 60px;
  max-width: 900px;
  text-align: center;
  background-color: rgba(204, 82, 0, 0.8);
  backdrop-filter: blur(5px);
}
.alert-icon {
  display: none;
}
.alert-text strong {
  font-size: 20px;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
  font-family: "Jura", sans-serif;
  text-transform: uppercase;
}
.alert-text span {
  font-size: 14px;
  color: var(--text-white);
}

/* =========================================================
   TARJETAS DE HABITACIÓN
   ========================================================= */
.card {
  background: rgba(204, 82, 0, 0.9);
  display: flex;
  flex-direction: column;
  text-align: left;
  height: 100%;
  border: 1px solid var(--border-color);
  transition: 0.4s;
  backdrop-filter: blur(5px);
}
.card:hover {
  border-color: var(--text-white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.card-img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}
.card-content {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-content h3 {
  font-size: 24px;
  letter-spacing: 3px;
  margin-bottom: 20px;
  color: var(--text-white);
}
.card-content p {
  font-size: 15px;
  color: var(--text-white);
  font-weight: 300;
  margin-bottom: 30px;
  flex-grow: 1;
}

/* =========================================================
   AMENIDADES
   ========================================================= */
.services-grid {
  gap: 30px;
}
.service-item {
  padding: 40px 30px;
  border: 1px solid var(--border-color);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-icon {
  display: none;
}
.service-item h3 {
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--text-white);
}
.service-item p {
  font-size: 15px;
  color: var(--text-gray);
  flex-grow: 1;
}

.highlight-box {
  background-color: var(--text-white);
  color: var(--bg-black);
}
.highlight-box h3,
.highlight-box p {
  color: var(--bg-black);
}

.amenity-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid rgba(230, 92, 0, 0.3);
}

.parking-images-grid {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}
.parking-img {
  width: 50%;
  height: 250px;
  object-fit: cover;
  border: 1px solid rgba(230, 92, 0, 0.3);
}

.restaurante-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.boutique-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.clean-list {
  list-style: none;
  margin-top: 15px;
}
.clean-list li {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}
.border-left {
  border: none;
  border-left: 2px solid var(--text-white);
  padding-left: 30px;
  background: transparent;
}

/* =========================================================
   RECONOCIMIENTOS
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}
.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  transition:
    transform 0.4s ease,
    border-color 0.4s ease;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  border-color: var(--text-white);
  z-index: 2;
  position: relative;
}

/* =========================================================
   PET FRIENDLY
   ========================================================= */
.pet-section {
  padding: 100px 5%;
  text-align: center;
}
.pet-content {
  max-width: 800px;
  margin: 0 auto;
}
.pet-content p {
  font-size: 18px;
  color: var(--text-white);
  margin-bottom: 40px;
  font-weight: 300;
}
.pet-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border: none;
  background-color: transparent;
  transition: transform 0.4s ease;
}
.pet-img:hover {
  transform: scale(1.03);
}

/* =========================================================
   UBICACIÓN
   ========================================================= */
.black-sectionubicacion {
  background-color: var(--bg-black);
  padding: 100px 5%;
}
.map-container {
  width: 100%;
  max-width: 900px;
  height: 450px;
  margin: 0 auto;
  border: 4px solid var(--text-white);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.map-wrapper {
  width: 100%;
  height: 100%;
  background: #fff;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 100px 5% 50px;
  background: var(--bg-dark);
  text-align: center;
  border-top: 1px solid var(--border-color);
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
  object-fit: contain;
}
.footer h2 {
  font-size: 30px;
  letter-spacing: 8px;
  margin-bottom: 10px;
  color: var(--text-white);
}
.footer-address {
  color: var(--text-gray);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 30px;
  font-weight: 300;
}
.footer-links {
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-white);
  text-decoration: none;
  font-family: "Jura", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  transition: 0.3s;
  margin: 10px 0;
}
.footer-links a:hover {
  color: #ffd1b3;
}
.separator {
  margin: 0 20px;
  color: var(--border-color);
}
.copyright {
  font-size: 12px;
  color: #ffebd6;
}

/* =========================================================
   BOTONES WHATSAPP
   ========================================================= */
.wa-btn {
  position: fixed;
  right: 0;
  padding: 15px 25px;
  background: rgba(204, 82, 0, 0.9);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  font-family: "Jura", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  z-index: 2000;
  transition: 0.3s;
}
.wa-btn:hover {
  background: var(--text-white);
  color: var(--bg-black);
}
.wa-1 {
  bottom: 100px;
}
.wa-2 {
  bottom: 30px;
}

/* =========================================================
   ANIMACIONES FADE IN
   ========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 1s ease-out,
    transform 1s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVO / MÓVIL
   ========================================================= */
@media (max-width: 768px) {
  .hero {
    align-items: center;
    text-align: center;
    padding-top: 150px;
    padding-bottom: 150px;
  }
  .hero-content h1 {
    font-size: 40px;
  }
  .navbar-logo {
    height: 35px;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    transition: 0.4s;
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links li {
    margin: 20px 0;
  }
  .wa-btn {
    font-size: 10px;
    padding: 10px 15px;
    right: 0;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-img {
    height: 200px;
  }
  .pet-img {
    max-height: 300px;
  }
  .parking-images-grid {
    flex-direction: column;
  }
  .parking-img {
    width: 100%;
    height: 200px;
  }
  .restaurante-grid {
    grid-template-columns: 1fr 1fr;
  }
  .boutique-grid {
    grid-template-columns: 1fr 1fr;
  }
  .separator {
    display: none;
  }
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
