/* =========================================================
   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.35);
}

* {
  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,
.btn-action,
.nav-links a,
.loader-text,
.big-phone,
.big-phone-white {
  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: 36px;
  font-weight: 700;
  letter-spacing: 6px;
  animation: pulse 1.5s infinite;
}
.rocket-loader {
  width: 55px;
  height: 55px;
  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 0.8s 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.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}
.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.navbar-logo {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}
.nav-links a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: 0.3s;
}
.nav-links a:hover {
  color: #ffd1b3;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.menu-toggle .bar {
  width: 26px;
  height: 3px;
  background-color: var(--text-white);
}

/* =========================================================
   ESTRUCTURA DE SECCIONES
   ========================================================= */
.section {
  padding: 80px 5%;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background-color: transparent;
}
.links-hub-section {
  padding-top: 40px;
}
.black-section {
  background-color: rgba(230, 92, 0, 0.45);
  backdrop-filter: blur(4px);
}
.dark-section {
  background-color: rgba(204, 82, 0, 0.65);
  backdrop-filter: blur(4px);
}
.section-header {
  margin-bottom: 50px;
}
.section-title {
  font-size: clamp(26px, 4.5vw, 38px);
  letter-spacing: 5px;
  color: var(--text-white);
}
.section-subtitle {
  color: var(--text-gray);
  font-size: 15px;
  margin-top: 8px;
  font-weight: 300;
  letter-spacing: 1px;
}

.hub-container {
  max-width: 780px;
  margin: 0 auto;
}

.grid-container {
  display: grid;
  gap: 25px;
  max-width: 1150px;
  margin: 0 auto;
  align-items: stretch;
}
.two-cols {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.three-cols {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* =========================================================
   DISEÑO DE LAS TARJETAS FLOTANTES (GLASSMORPHISM)
   ========================================================= */
.glass-card {
  background: rgba(180, 70, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  padding: 35px 25px;
  text-align: center;
  position: relative;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}

.card-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-white);
  font-family: "Jura", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  padding: 5px 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-title {
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 4px;
  margin-bottom: 10px;
  color: var(--text-white);
}

.card-desc {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 20px;
}

.link-pill {
  width: 100%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(255, 255, 255, 0.6);
  padding: 12px 15px;
  margin-bottom: 18px;
  font-family: "Jura", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-gray);
  word-break: break-all;
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn-action {
  display: inline-block;
  width: 100%;
  padding: 15px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--text-white);
}

.btn-main {
  background: var(--text-white);
  color: var(--bg-black);
  font-size: 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}
.btn-main:hover {
  background: var(--bg-dark);
  color: var(--text-white);
  border-color: var(--text-white);
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-sub {
  background: transparent;
  color: var(--text-white);
  font-size: 11px;
  padding: 14px 10px;
}
.btn-sub:hover {
  background: var(--text-white);
  color: var(--bg-black);
}

.btn-primary {
  display: inline-block;
  width: 100%;
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
  padding: 15px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--text-white);
  color: var(--bg-black);
}

.btn-orange-solid {
  background: var(--bg-black);
  color: var(--text-white);
  border: 2px solid var(--bg-black);
}
.btn-orange-solid:hover {
  background: var(--bg-dark);
  color: var(--text-white);
  border-color: var(--bg-dark);
}

.btn-orange-outline {
  background: transparent;
  color: var(--bg-black);
  border: 2px solid var(--bg-black);
}
.btn-orange-outline:hover {
  background: var(--bg-black);
  color: var(--text-white);
}

.action-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

/* =========================================================
   TARJETAS DE LOS 5 TELÉFONOS
   ========================================================= */
.service-item {
  padding: 30px 20px;
  border: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: 0.3s;
  background: rgba(204, 82, 0, 0.65);
  backdrop-filter: blur(5px);
}
.service-item:hover {
  border-color: var(--text-white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.highlight-box {
  background-color: rgba(255, 255, 255, 0.94);
  color: var(--bg-black);
}
.highlight-box h3,
.highlight-box p {
  color: var(--bg-black);
}
.highlight-box p {
  font-size: 13px;
  margin-bottom: 18px;
}

.card-solid-orange {
  background: rgba(180, 70, 0, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--text-white);
}

.line-tag {
  display: inline-block;
  align-self: center;
  background: rgba(230, 92, 0, 0.12);
  color: var(--bg-black);
  border: 1px solid var(--bg-black);
  padding: 4px 10px;
  font-family: "Jura", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.line-tag-white {
  display: inline-block;
  align-self: center;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  border: 1px solid var(--text-white);
  padding: 4px 10px;
  font-family: "Jura", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.big-phone {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  color: var(--bg-black);
  letter-spacing: 1.5px;
  margin: 8px 0 12px;
}
.big-phone-white {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 1.5px;
  margin: 12px 0 18px;
}

/* =========================================================
   SECCIÓN DEL CÓDIGO QR
   ========================================================= */
.qr-showcase {
  padding: 40px 25px;
  align-items: center;
}
.qr-image-wrapper {
  background: #ffffff;
  border: 3px solid var(--bg-black);
  padding: 14px;
  margin: 18px auto;
  display: inline-block;
}
.qr-img-box {
  width: 230px;
  height: 230px;
  object-fit: contain;
  display: block;
}

/* =========================================================
   UBICACIÓN
   ========================================================= */
.black-sectionubicacion {
  background-color: rgba(230, 92, 0, 0.6);
  backdrop-filter: blur(5px);
  padding: 80px 5%;
}
.map-container {
  width: 100%;
  max-width: 900px;
  height: 400px;
  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 TRANSPARENTE
   ========================================================= */
.transparent-footer {
  padding: 80px 5% 40px;
  background: rgba(160, 60, 0, 0.55);
  backdrop-filter: blur(8px);
  text-align: center;
  border-top: 1px solid var(--border-color);
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-logo {
  height: 55px;
  width: auto;
  margin-bottom: 15px;
  object-fit: contain;
}
.transparent-footer h2 {
  font-size: 26px;
  letter-spacing: 6px;
  margin-bottom: 8px;
  color: var(--text-white);
}
.footer-address {
  color: var(--text-gray);
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  font-weight: 300;
}
.footer-links {
  margin-bottom: 35px;
  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: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  transition: 0.3s;
  margin: 6px 0;
}
.footer-links a:hover {
  color: #ffd1b3;
}
.separator {
  margin: 0 12px;
  color: var(--border-color);
}
.copyright {
  font-size: 11px;
  color: #ffebd6;
}

/* =========================================================
   BOTONES WHATSAPP FLOTANTES
   ========================================================= */
.wa-btn {
  position: fixed;
  right: 0;
  padding: 12px 18px;
  background: rgba(204, 82, 0, 0.95);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  font-family: "Jura", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
  z-index: 2000;
  transition: 0.3s;
}
.wa-btn:hover {
  background: var(--text-white);
  color: var(--bg-black);
}
.wa-1 {
  bottom: 90px;
}
.wa-2 {
  bottom: 25px;
}

/* =========================================================
   ANIMACIONES FADE IN
   ========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVO / MÓVIL (CORRECCIONES DE VISUALIZACIÓN EN CELULAR)
   ========================================================= */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 4%;
  }
  .navbar-logo {
    height: 32px;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    background: rgba(204, 82, 0, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    transition: 0.4s;
    text-align: center;
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links li {
    margin: 15px 0;
  }
  .section {
    padding: 60px 4%;
  }
  .glass-card {
    padding: 25px 15px;
  }
  .action-grid,
  .action-pair {
    grid-template-columns: 1fr;
  }
  .qr-img-box {
    width: 200px;
    height: 200px;
  }
  .wa-btn {
    font-size: 9px;
    padding: 8px 12px;
    right: 0;
  }
  .separator {
    display: none;
  }
  .footer-links {
    flex-direction: column;
    gap: 6px;
  }
  .map-container {
    height: 320px;
  }
}
