/* ===== Variables de color corporativo ===== */
:root {
  --rojo: #A71C20;
  --azul: #00529C;
  --azul-oscuro: #003A70;
  --dorado: #DCAF27;
  --texto: #222222;
  --fondo: #FAF8F3;
  --blanco: #FFFFFF;
}

/* ===== Reset y base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--azul-oscuro);
}

.contenedor {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ===== Encabezado y menú ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanco);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-bottom: 3px solid var(--dorado);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height 0.3s;
}

.logo img {
  height: 64px;
  width: auto;
  transition: height 0.3s;
}

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

.main-nav a {
  color: var(--azul);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.activo {
  color: var(--rojo);
  border-bottom-color: var(--dorado);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--azul);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.abierto span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.abierto span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.abierto span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Encabezado compacto al hacer scroll */
.site-header.compacto .header-inner {
  height: 70px;
}

.site-header.compacto .logo img {
  height: 52px;
}

/* ===== Hero (foto principal) ===== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 520px;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 58, 112, 0.65), rgba(0, 58, 112, 0.55));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.hero-contenido {
  color: #fff;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.hero-lema {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.25;
}

.hero-precio {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
}

.hero-precio strong {
  color: var(--dorado);
  font-size: 1.3em;
}

.hero-nota {
  font-size: 0.85rem;
  opacity: 0.85;
}

.hero-whatsapp img {
  width: min(260px, 70vw);
  height: auto;
  margin-top: 0.8rem;
  transition: transform 0.3s;
}

.hero-whatsapp:hover img {
  transform: translateY(-3px);
}

/* ===== Texto introductorio (h1) ===== */
.intro {
  padding: 3.5rem 0 1.5rem;
  text-align: center;
}

.intro h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  line-height: 1.5;
}

/* ===== Títulos de sección ===== */
.titulo-seccion {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: 0.12em;
  margin: 3rem 0 2.5rem;
  position: relative;
}

.titulo-seccion::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: var(--dorado);
  margin: 1rem auto 0;
}

.seccion {
  padding: 4rem 0;
}

.seccion-alt {
  background: var(--blanco);
}

/* ===== Tarjetas de habitaciones ===== */
.grid-habitaciones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 4rem;
}

.grid-habitacioness {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding-bottom: 4rem;
}

.tarjeta-habitacion {
  background: var(--blanco);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tarjeta-habitacion:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.tarjeta-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.tarjeta-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.tarjeta-body h3 {
  font-size: 1.35rem;
}

.precio {
  color: var(--rojo);
  font-weight: 700;
  font-size: 1.5rem;
}

.precio span {
  font-size: 0.8rem;
  color: var(--texto);
  font-weight: 400;
}

.por-noche {
  font-size: 0.85rem;
  color: #666;
  margin-top: -0.6rem;
}

.descripcion {
  font-size: 0.95rem;
}

.caracteristicas {
  list-style: none;
  border-top: 1px solid #eee;
  padding-top: 0.8rem;
}

.caracteristicas li {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.caracteristicas li::before {
  content: "✓";
  color: var(--dorado);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ===== Botones ===== */
.btn-whatsapp,
.btn-mapa {
  margin-top: auto;
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  padding: 0.85rem 1.4rem;
  text-align: center;
  text-decoration: none;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.btn-whatsapp:hover,
.btn-mapa:hover {
  background: var(--azul);
}

.btn-ancho {
  width: 100%;
  margin-top: 1.2rem;
}

.btn-mapa {
  background: var(--azul);
}

.btn-mapa:hover {
  background: var(--rojo);
}

/* ===== Conozca el hotel ===== */
.dos-columnas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.dos-columnas p {
  margin-bottom: 1rem;
}

.inauguracion {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--azul);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 3px;
  font-weight: 600;
}

.lista-destacados {
  list-style: none;
  border-left: 3px solid var(--dorado);
  padding-left: 1.5rem;
}

.lista-destacados li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
}

/* ===== Lugares de interés ===== */
.grid-lugares {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.tarjeta-lugar {
  background: var(--blanco);
  padding: 2rem;
  border-left: 4px solid var(--azul);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.tarjeta-lugar:nth-child(even) {
  border-left-color: var(--dorado);
}

.tarjeta-lugar h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* ===== Contacto ===== */
.datos-contacto p {
  margin-bottom: 1rem;
}

.datos-contacto a {
  color: var(--azul);
  text-decoration: none;
  font-weight: 600;
}

.datos-contacto a:hover {
  color: var(--rojo);
}

.mapa-enlace {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--fondo);
  border: 1px dashed var(--dorado);
  padding: 2rem;
}

.mapa-enlace .btn-mapa {
  margin-top: 0;
}

/* ===== Pie de página ===== */
.site-footer {
  background: var(--azul-oscuro);
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  border-top: 3px solid var(--dorado);
  font-size: 0.9rem;
}

.site-footer p {
  margin-bottom: 0.3rem;
}

/* ===== Responsive: tablet ===== */
@media (max-width: 1024px) {
  .grid-habitaciones {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-lugares {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav ul {
    gap: 1.2rem;
  }

  .main-nav a {
    font-size: 0.78rem;
  }
}

/* ===== Responsive: móvil ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanco);
    display: none;
    border-bottom: 3px solid var(--dorado);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }

  .main-nav.abierto {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #eee;
  }

  .hero {
    height: 70vh;
    min-height: 460px;
  }

  .grid-habitaciones,
  .grid-lugares,
  .dos-columnas {
    grid-template-columns: 1fr;
  }

  .tarjeta-img img {
    height: 220px;
  }

  .intro {
    padding-top: 2.5rem;
  }

  .titulo-seccion {
    margin: 2.2rem 0 2rem;
  }
}

/* ===== Responsive: móvil pequeño ===== */
@media (max-width: 480px) {
  .logo img {
    height: 50px;
  }

  .hero-lema {
    font-size: 1.6rem;
  }

  .hero-whatsapp img {
    width: 220px;
  }

  .tarjeta-body {
    padding: 1.3rem;
  }
}
