/* Color Palette and Variables */
:root {
  --bg-color: #0a0a0a;
  --text-primary: #f2f2f2;
  --text-secondary: #aaaaaa;
  --accent-red: #bb0a1e; /* Velvet deep red */
  --accent-gold: #c5a059; /* Softer luxurious gold */
  --glass-bg: rgba(20, 20, 20, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

header.glass {
  padding: 1rem 5%;
  background: rgba(10, 10, 10, 0.85);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-red);
  transition: width 0.3s;
}

nav a:hover {
  color: var(--accent-red);
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 10s linear;
  filter: brightness(0.6) contrast(1.15) saturate(1.1);
}

.hero:hover .hero-bg {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,1) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease 0.5s forwards;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  display: block;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.hero-main-title {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--accent-red);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: all 0.3s;
  border: 1px solid var(--accent-red);
  box-shadow: 0 4px 15px rgba(187, 10, 30, 0.3);
}

.btn:hover {
  background-color: transparent;
  color: var(--accent-red);
  box-shadow: 0 0 20px rgba(187, 10, 30, 0.6);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--accent-gold);
  color: var(--bg-color);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.5);
}

.btn-facebook {
  background-color: transparent;
  border: 1px solid #1877F2;
  color: #1877F2;
  box-shadow: none;
}

.btn-facebook:hover {
  background-color: #1877F2;
  color: #fff;
  box-shadow: 0 0 20px rgba(24, 119, 242, 0.5);
}

.btn-instagram {
  background-color: transparent;
  border: 1px solid #E1306C;
  color: #E1306C;
  box-shadow: none;
}

.btn-instagram:hover {
  background-color: #E1306C;
  color: #fff;
  box-shadow: 0 0 20px rgba(225, 48, 108, 0.5);
}

/* Sections */
section {
  padding: 6rem 5%;
}

.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--accent-gold);
}

/* Habitaciones */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.room-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.room-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(187, 10, 30, 0.2);
  border-color: rgba(187, 10, 30, 0.3);
}

.room-img-container {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  height: 100%;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.room-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.carousel-img {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
  pointer-events: none; /* Let clicks pass through if needed, though we will make dots clickable */
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s, transform 0.3s;
  pointer-events: auto; /* Re-enable for the dots */
}

.carousel-dot.active {
  background-color: var(--accent-gold);
  transform: scale(1.2);
}

.room-card:hover .room-img {
  transform: scale(1.05);
}

.room-info {
  padding: 2rem;
  border-top: none;
}

.room-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.room-price {
  color: var(--accent-red);
  font-weight: 600;
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
}

.room-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  line-height: 1.5;
}

/* Amenidades */
.amenities-section {
  position: relative;
  background-color: #050505;
  margin-top: 2rem;
}

.amenities-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  mask-image: linear-gradient(to right, transparent, black);
  -webkit-mask-image: linear-gradient(to right, transparent, black);
  z-index: 0;
}

.amenities-content {
  position: relative;
  z-index: 1;
  max-width: 55%;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.amenity-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.amenity-icon {
  color: var(--accent-red);
  font-size: 2.2rem;
  text-shadow: 0 0 15px rgba(187, 10, 30, 0.4);
}

.amenity-title {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.amenity-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Bolsa de Trabajo */
.jobs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.job-card {
  padding: 2.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent-red);
  transition: transform 0.3s ease;
}

.job-card:hover {
  transform: translateX(10px);
}

.job-info h4 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
}

.job-profile {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.job-profile strong {
  color: var(--accent-gold);
}

.job-form-container {
  padding: 2.5rem;
  border-radius: 12px;
  height: fit-content;
}

.form-select {
  width: 100%;
  padding: 1.2rem;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  border-radius: 8px;
  transition: all 0.3s;
  appearance: none;
}

.form-select:focus {
  outline: none;
  border-color: var(--accent-red);
  background-color: rgba(255,255,255,0.05);
  box-shadow: 0 0 10px rgba(187, 10, 30, 0.2);
}

.form-select option {
  background-color: var(--bg-color);
  color: var(--text-primary);
}

.job-form textarea {
  min-height: 110px;
}

/* Contact & Info Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.info-item {
  margin-bottom: 2.5rem;
}

.info-item h4 {
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.info-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.watermark-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 700px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}
.section-with-watermark {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  border-radius: 8px;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  background-color: rgba(255,255,255,0.05);
  box-shadow: 0 0 10px rgba(187, 10, 30, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: #050505;
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 992px) {
  .amenities-content {
    max-width: 100%;
  }
  .amenities-bg {
    display: none;
  }
  .jobs-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-main-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }
  
  nav ul {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
  }

  nav ul.active {
    left: 0;
  }

  nav ul li a {
    font-size: 1.5rem;
  }

  .mobile-menu {
    display: block;
    z-index: 1001;
  }
  
  .amenities-grid {
    grid-template-columns: 1fr;
  }
}

/* Lightbox Modal */
.room-img {
  cursor: pointer;
}

.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  padding-top: 40px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: hidden; 
  background-color: rgba(5, 5, 5, 0.95); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.93);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.show .modal-content {
  transform: scale(1);
}

#modal-caption {
  margin: 1.5rem auto;
  width: 80%;
  max-width: 800px;
  text-align: center;
  color: var(--accent-gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.close-modal {
  position: absolute;
  top: 25px;
  right: 40px;
  color: var(--text-primary);
  font-size: 45px;
  font-weight: 300;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  z-index: 2001;
}

.close-modal:hover {
  color: var(--accent-red);
  transform: scale(1.1);
}

@media only screen and (max-width: 768px){
  .modal-content {
    max-width: 95%;
    max-height: 75vh;
  }
  .close-modal {
    top: 20px;
    right: 25px;
    font-size: 38px;
  }
  #modal-caption {
    font-size: 1.1rem;
    margin: 1rem auto;
  }
}

/* Lightbox Modal Nav Arrows */
.prev-modal, .next-modal {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: var(--text-primary);
  font-weight: 300;
  font-size: 48px;
  transition: color 0.3s ease, transform 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2002;
}

.prev-modal {
  left: 30px;
}

.next-modal {
  right: 30px;
}

.prev-modal:hover, .next-modal:hover {
  color: var(--accent-gold);
  transform: scale(1.15);
}

@media only screen and (max-width: 768px){
  .prev-modal, .next-modal {
    font-size: 38px;
    padding: 10px;
  }
  .prev-modal {
    left: 15px;
  }
  .next-modal {
    right: 15px;
  }
}
