/* === DESIGN SYSTEM === */
:root {
  /* Colors */
  --navy: #0D1B2A;
  --navy-mid: #1A3054;
  --gold: #C9A84C;
  --gold-light: #D4B96A;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --text-dark: #0D1B2A;
  --text-muted: #6B7280;
  --overlay: rgba(13, 27, 42, 0.6);

  /* Transitions */
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--gold);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
}

.btn:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 168, 76, 0.3);
}

/* === NAVBAR === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 30px 0;
  background-color: var(--navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

header.scrolled {
  padding: 15px 0;
  background-color: rgba(13, 27, 42, 0.98);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo-box {
  background-color: var(--gold);
  padding: 12px 20px;
  border-radius: 0 0 8px 8px; /* Ribbon effect */
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--gold-light);
  transform: translateY(-5px); /* Slightly raised for the banner feel */
  transition: var(--transition);
}

.logo-box:hover {
  transform: translateY(0);
}

/* Ajuste del contenedor del logo para albergar imagen y texto */
.logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px; /* Espacio entre el logo y las letras */
  padding: 10px 20px;
}

/* Reducimos un poco el logo para que no sature el espacio */
.logo-img {
  max-height: 40px; 
  width: auto;
}

/* Restauramos y pulimos el estilo de las letras */
.logo-text-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; /* Un poco más pequeño para balancear con el logo */
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  text-transform: uppercase;
}

.logo-text-sub {
  font-family: 'Lato', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 2.5px;
  color: var(--navy);
  margin-top: -2px;
}

/* Ajuste específico para móvil */
@media (max-width: 768px) {
  .logo-img {
    max-height: 30px;
  }
  .logo-text-main {
    font-size: 0.9rem;
  }
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
}

.nav-links a:hover {
  color: var(--gold);
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition);
}

/* === HERO === */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform: scale(1.1);
  transition: transform 0.5s ease-out;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--navy) 0%, transparent 100%);
  opacity: 0.7;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
}

.hero-label {
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 1.2rem;
  margin-bottom: 20px;
  display: block;
}

.hero h1 {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 30px;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 40px;
  max-width: 600px;
}

/* === SECTIONS === */
section {
  padding: 100px 0;
}

.section-alt {
  background-color: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Feature Layout */
.feature-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 100px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-img {
  flex: 1;
  position: relative;
}

.feature-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  box-shadow: 20px 20px 0 var(--gold);
}

.feature-content {
  flex: 1;
  padding-left: 40px;
  border-left: 2px solid var(--gold);
}

.feature-row.reverse .feature-content {
  padding-left: 0;
  padding-right: 40px;
  border-left: none;
  border-right: 2px solid var(--gold);
  text-align: right;
}

.feature-content h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
}

.feature-content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* === FACILITIES CARDS === */
.facility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.facility-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.facility-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform 0.5s ease;
}

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

.facility-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.8), transparent);
}

.facility-label {
  position: relative;
  z-index: 2;
  width: 100%;
  background-color: var(--navy);
  color: var(--white);
  padding: 20px 40px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* === ROOM CARDS === */
.room-card {
  margin-bottom: 60px;
  border: 1px solid #eee;
  overflow: hidden;
}

.room-img-wrapper {
  height: 600px;
  position: relative;
}

.room-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-info-bar {
  background-color: var(--navy);
  color: var(--white);
  padding: 25px 40px;
  display: flex;
  justify-content: center;
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
}

.room-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
  background-color: var(--white);
}

.room-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.room-price {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.5rem;
}

/* === TESTIMONIALS === */
.testimonials {
  text-align: center;
  padding: 120px 0;
  background-color: var(--white);
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  height: 250px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  pointer-events: all;
}

.testimonial-slide p {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  line-height: 1.4;
  margin-bottom: 30px;
  font-style: italic;
}

.testimonial-author {
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--text-muted);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.nav-arrow {
  cursor: pointer;
  background-color: var(--gold);
  color: var(--white);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

/* === BOOKING FORM === */
.booking-section {
  padding: 100px 0;
}

.booking-form-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  border-radius: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group.full {
  grid-column: span 2;
}

label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

input, select, textarea {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
}

.wa-preview {
  background-color: #e7f3ef;
  border-left: 4px solid #25d366;
  padding: 20px;
  margin-bottom: 30px;
  font-family: 'Lato', sans-serif;
  color: #128c7e;
  font-style: italic;
}

/* === CONTACT PAGE === */
.contact-hero {
  height: 400px;
  background-color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.contact-layout {
  display: flex;
  gap: 60px;
}

.contact-info {
  flex: 1;
}

.contact-map {
  flex: 1.5;
}

.contact-item {
  margin-bottom: 30px;
}

.contact-item h3 {
  color: var(--gold);
  margin-bottom: 10px;
}

/* === FOOTER === */
footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 80px 0 40px;
  position: relative;
}

.footer-top-accent {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 20px;
  background-color: var(--navy);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

/* Fix: Asegurar que el logo del footer respete la columna y el centrado */
.footer-logo .logo-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  text-align: center;
}

/* Forzar que los textos del footer se mantengan en bloque y centrados */
.footer-logo .logo-text-main,
.footer-logo .logo-text-sub {
  display: block;
  text-align: center;
  width: 100%;
}

/* === CORRECCIÓN FOOTER SOCIAL LINKS === */
.social-links {
  display: flex;
  flex-direction: column; /* Cambiado a columna */
  gap: 15px;
  margin-top: 10px;
}

.social-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  transition: var(--transition);
}

.social-links li a svg {
  width: 24px;
  height: 24px;
}

.social-links li a:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--white);
  padding: 12px;
  flex: 1;
}

.newsletter-form .btn-ok {
  background: var(--gold);
  border: none;
  padding: 0 20px;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* === ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero h1 { font-size: 4rem; }
  .feature-row { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  header {
    padding: 15px 0;
  }
  
  .nav-container {
    padding: 0 20px;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  
  .hamburger span {
    background-color: var(--gold); /* Improved contrast on navy */
  }
  
  .hero h1 { font-size: 3rem; }
  .feature-row, .feature-row.reverse { 
    flex-direction: column; 
    text-align: left;
    gap: 30px;
  }
  .feature-content, .feature-row.reverse .feature-content {
    border: none;
    border-left: 2px solid var(--gold);
    padding: 0 0 0 20px;
    text-align: left;
  }
  .contact-layout { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }

  /* Footer Mobile */
  footer {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .social-links {
    align-items: center; /* Alineación horizontal al centro cuando es columna */
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .newsletter-form input {
    width: 100%;
  }

  .newsletter-form .btn-ok {
    width: 100%;
    padding: 15px;
    height: auto;
  }

  .footer-top-accent {
    display: none;
  }
}

/* === CORE CAROUSEL STYLES === */
.image-carousel {
    position: relative;
    width: 100%;
    /* Importante: Definir una relación de aspecto para móvil (ej. 4:3) */
    aspect-ratio: 4 / 3; 
    overflow: hidden;
    background-color: var(--off-white); /* Fondo mientras carga */
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-out; /* Transición suave */
    height: 100%;
    width: 100%;
}

.carousel-track img {
    min-width: 100%;
    height: 100%;
    object-fit: cover; /* Llena el espacio sin estirarse */
    flex-shrink: 0;
}

/* Botones más grandes y 'touch-friendly' en móvil */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5); /* Más contraste */
    color: var(--white);
    border: none;
    width: 44px; /* Touch target estándar */
    height: 44px;
    cursor: pointer;
    z-index: 5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}
.carousel-btn:hover { background-color: var(--gold); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* FIX: Hero section should animate immediately on load */
.hero-content.fade-up {
    animation: forceAppear 1s forwards ease-out 0.2s;
}

@keyframes forceAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Asegurar que la tarjeta móvil se vea perfecta */
.room-card {
    display: flex;
    flex-direction: column; 
    margin-bottom: 30px;
    border: 1px solid #eee;
    background-color: var(--white);
    overflow: hidden;
    border-radius: 8px; /* Toque moderno */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Sombra sutil */
}

.room-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.room-cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee; /* Separador sutil antes del precio */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Por si las pantallas son muy pequeñas */
    gap: 15px;
}

/* Menu Mobile Helper */
.nav-links.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--navy);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

@media (min-width: 769px) {
    .room-card {
        flex-direction: row;
        height: 400px;
    }
    .room-card .image-carousel {
        width: 45%;
        height: 100%;
        aspect-ratio: auto;
    }
}
