/* ===========================================================
   Hotel Posada Mirador — hoja de estilos principal
   Paleta: verde bosque oscuro + crema + terracota (acento)
=========================================================== */

:root {
  --verde-oscuro: #1f3733;
  --verde-medio: #2c4d47;
  --crema: #faf6ee;
  --crema-2: #f2ebdc;
  --terracota: #e07856;
  --texto-oscuro: #223028;
  --texto-claro: #f6f1e7;
  --gris-suave: #6b7570;
  --borde: rgba(0,0,0,0.08);
  --sombra: 0 10px 30px rgba(31,55,51,0.12);
  --radius: 10px;
  --fuente-titulos: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --fuente-texto: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fuente-texto);
  color: var(--texto-oscuro);
  background: var(--crema);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--fuente-titulos);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--verde-oscuro);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.4rem; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--terracota);
  font-weight: 600;
  margin-bottom: 12px;
}

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--crema-2);
}

.section--dark {
  background: var(--verde-oscuro);
  color: var(--texto-claro);
}

.section--dark h2, .section--dark h3 { color: var(--texto-claro); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head p {
  color: var(--gris-suave);
}

.section--dark .section-head p { color: rgba(246,241,231,0.75); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--terracota);
  color: #fff;
}
.btn-primary:hover { background: #c9633f; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(224,120,86,0.35); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--verde-oscuro);
}
.btn-outline:hover { background: var(--verde-oscuro); color: #fff; }

.section--dark .btn-outline { color: var(--texto-claro); }
.section--dark .btn-outline:hover { background: var(--texto-claro); color: var(--verde-oscuro); }

.btn-light {
  background: #fff;
  color: var(--verde-oscuro);
}
.btn-light:hover { background: var(--crema-2); transform: translateY(-2px); }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1ebd5a; transform: translateY(-2px); }

.btn-sm { padding: 10px 22px; font-size: 0.82rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--verde-oscuro);
  position: relative;
  padding: 4px 0;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--terracota);
}

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--verde-oscuro);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(20,36,33,0.55), rgba(20,36,33,0.78)), url("../images/gallery/vista-barranca-1.jpg") center/cover no-repeat;
}

.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* ---------- Franja de stats ---------- */
.stat-strip {
  background: var(--verde-oscuro);
  color: var(--texto-claro);
}
.stat-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.stat { text-align: center; flex: 1 1 160px; }
.stat .num { font-family: var(--fuente-titulos); font-size: 2.2rem; color: var(--terracota); display: block; }
.stat .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }

/* ---------- Tarjetas de habitaciones ---------- */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.room-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}
.room-card:hover { transform: translateY(-6px); }

.room-card .thumb {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
}

.room-card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35));
}

.room-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.room-card h3 { margin-bottom: 0; }
.room-card .cap { font-size: 0.8rem; color: var(--gris-suave); display: flex; align-items: center; gap: 6px; }
.room-card p { color: var(--gris-suave); font-size: 0.92rem; flex: 1; margin: 0; }
.room-card .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- Amenidades ---------- */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.amenity-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.amenity-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,36,33,0.05) 40%, rgba(20,36,33,0.85));
}
.amenity-card .info { position: relative; z-index: 2; padding: 26px; }
.amenity-card h3 { color: #fff; }
.amenity-card p { color: rgba(255,255,255,0.85); font-size: 0.92rem; margin: 0; }

/* ---------- Restaurante ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--sombra); }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--borde); }
.section--dark .hours-table td { border-bottom-color: rgba(255,255,255,0.15); }
.hours-table td:last-child { text-align: right; font-weight: 600; }

/* ---------- Galería ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-grid a { display: block; height: 100%; border-radius: var(--radius); overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid .tall { grid-row: span 2; }

/* ---------- CTA evento ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--verde-oscuro), var(--verde-medio));
  color: var(--texto-claro);
  border-radius: 18px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h3 { color: #fff; margin-bottom: 8px; }
.cta-banner p { margin: 0; color: rgba(246,241,231,0.85); max-width: 480px; }

/* ---------- Traslados ---------- */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.option-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--sombra);
}
.option-card .icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--crema-2);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--verde-oscuro);
}
.option-card .icon svg { display: block; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info dt { font-weight: 700; color: var(--verde-oscuro); margin-top: 18px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-info dd { margin: 6px 0 0; color: var(--gris-suave); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--sombra); min-height: 340px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--borde);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social-row a svg { display: block; width: 18px; height: 18px; }
.social-row a:hover { background: var(--verde-oscuro); color: #fff; border-color: var(--verde-oscuro); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--verde-oscuro);
  color: rgba(246,241,231,0.75);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; font-family: var(--fuente-texto); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-grid img { height: 40px; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

/* ---------- Página interior: encabezado simple ---------- */
.page-hero {
  background: linear-gradient(180deg, rgba(20,36,33,0.6), rgba(20,36,33,0.75)), url("../images/gallery/vista-barranca-2.jpg") center/cover;
  color: #fff;
  padding: 150px 0 70px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .nav-links { position: fixed; top: 74px; left: 0; right: 0; background: var(--crema); flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid var(--borde); transform: translateY(-130%); transition: transform 0.3s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .header-cta .btn-outline { display: none; }
  .cta-banner { flex-direction: column; text-align: center; }
}
