:root {
  --primary: #8b1e23;
  --primary-light: #a93b40;
  --dark: #1e1e1e;
  --bg: #fafafa;
  --max-width: 1200px;
  --radius: 0.5rem;
  --transition: 0.3s ease;
}

html, body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}


/* ---------- Reset básico ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--dark);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity var(--transition);
}
a:hover { opacity: 0.8; }

.container {
  max-width: var(--max-width);
  padding: 0 1rem;
  margin: 0 auto;
}

/* ---------- Header & Navegación Mejorada ---------- */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.logo img {
  height: 60px;
  transition: transform 0.3s ease;
}
.logo img:hover {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Enlaces de navegación */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  transition: opacity 0.3s ease;
}
.nav-links a {
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--primary);
  left: 0;
  bottom: -4px;
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}

/* ---------- Botón burger responsive ---------- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2000;
}
.burger span {
  width: 26px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animación burger → cruz */
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Responsive ---------- */
@media (max-width: 945px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 1rem 1.5rem;
    width: 220px;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    border-radius: 0 0 0 8px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .burger {
    display: flex;
  }
}


/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  background: center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition);
}
.btn.primary   { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-light); }
.btn.outline   { background: transparent; color: #fff; border-color: #fff; }
.btn.outline:hover { background: #fff; color: var(--primary); }

/* ---------- Secciones genéricas ---------- */
section { padding: 4rem 1rem; }
.section-title {
  font-size: 2rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 3rem;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.feature {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature img { height: 180px; object-fit: cover; width: 100%; }
.feature-body { padding: 1rem 1.25rem 2rem; }
.feature h3 { color: var(--primary); margin-bottom: 0.5rem; }
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* ---------- Horarios ---------- */
.schedule {
  background: var(--primary);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 500px;
  margin: 0 auto;
}
.hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.25rem;
}
.hours-list li:last-child { border: none; }
.note {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 1rem;
  text-align: center;
}

/* ---------- Habitaciones ---------- */
.rooms-list {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.rooms-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Testimonios ---------- */
.testimonials { background: #fff; border-top: 1px solid #eee; }
.testimonial {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
}
.stars { font-size: 1.2rem; color: var(--primary); margin-bottom: 0.25rem; }


/* ---------- Contacto & Footer ---------- */
.contact { text-align: center; }
.contact a { font-weight: 600; }

.site-footer {
  background: var(--dark);
  color: #ddd;
  text-align: center;
  padding: 2rem 1rem;
}
.site-footer a { color: #ddd; }
.site-footer a:hover { color: #fff; }

/* ---------- Animaciones fade-in ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in      { opacity: 0; }
.fade-in.show { animation: fadeIn 0.8s forwards; }
.fade-in-down      { opacity: 0; transform: translateY(-20px); }
.fade-in-down.show { animation: fadeIn 0.8s forwards; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background: var(--dark);
    width: 220px;
    padding: 1rem;
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .nav-links.open { transform: translateX(0); }
  .burger { display: flex; }
}

/* Animación burger → cruz */
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ---------- Testimonios ---------- */
.testimonial-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial {
  flex: 0 0 100%;
  padding: 2rem 1rem;
  text-align: center;
}
.testimonial strong {
  font-size: 1.1rem;
  color: var(--primary);
}
.testimonial .stars {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: gold;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.testimonial-nav button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
}
.testimonial-nav button:hover {
  background: var(--primary-light);
}

/* ---------- Galeria ---------- */
.gallery-viewport {
  position: relative;
  min-height: 100px;
}

.gallery-track {
  position: relative;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

/* 🔽 Móvil: solo 1 imagen por fila */
@media (max-width: 640px) {
  .gallery-slide {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.gallery-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.gallery-slide a img {
  height: 250px;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius);
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.gallery-slide a:hover img {
  transform: scale(1.05);
}

.gallery-nav {
  text-align: center;
  margin-top: 1rem;
}
.gallery-nav button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  margin: 0 0.5rem;
}
.gallery-nav button:hover {
  background: var(--primary-light);
}

/* ---------- Habitaciones ---------- */
.room-types {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.room-card {
  text-align: center;
}
.room-card .icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.rooms-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}
.rooms-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rooms-features .icon {
  font-size: 1rem;
  color: var(--primary);
}

.site-footer {
  background: var(--dark);
  color: #ddd;
  padding: 2.5rem 1rem;
  font-size: 0.95rem;
}

.site-footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 80px;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.footer-logo img:hover {
  opacity: 1;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}
.footer-links a {
  color: #ddd;
  font-weight: 500;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  opacity: 0.8;
}
.footer-bottom a {
  color: #ccc;
}
.footer-bottom a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 640px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .footer-links {
    justify-content: center;
  }
}

/* Flecha */
.scroll-arrow {
  display: inline-block;
  margin-top: 2rem;
  font-size: 5rem;
  color: #fff;
  animation: bounce 2s infinite;
  transition: opacity 0.3s;
}
.scroll-arrow:hover {
  opacity: 0.7;
}

/* Animación de rebote */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

/* Flecha arriba */
.scroll-top {
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  font-size: 1.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}
.scroll-top:hover {
  background: var(--primary-light);
}


