/* ==========================================================================
   HOTEL ALTAMIRA VILLAGE — theme.css
   Sistema de diseño compartido para las páginas del sitio (landing, habitaciones,
   servicios, ubicación, galería, blog). Tokens alineados con reservas.css para
   mantener un único lenguaje visual en todo el sitio.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens (heredados de reservas.css)
   -------------------------------------------------------------------------- */
:root {
  /* Marca */
  --hotel-primary: #0D3226;          /* Verde Pino */
  --hotel-primary-hover: #082119;
  --hotel-primary-rgb: 13, 50, 38;
  --hotel-accent-gold: #c5a880;      /* Champagne */
  --hotel-accent-gold-hover: #b4976f;

  /* Superficies */
  --bg-primary: #ffffff;             /* Blanco puro */
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;

  /* Texto */
  --text-primary: #0f172a;           /* Slate/Navy */
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-on-primary: #ffffff;

  /* Líneas / bordes */
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Tipografía */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaciado / layout */
  --container-max: 1280px;
  --margin-mobile: 20px;
  --margin-desktop: 64px;
  --section-gap: 96px;
  --gutter: 32px;

  /* Sombras (sutiles, premium) */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.10);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset y base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--text-primary);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

.section { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.section--alt { background-color: var(--bg-secondary); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hotel-primary);
  margin-bottom: 1rem;
}

.section-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--text-primary); }
.section-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 42rem;
  line-height: 1.7;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--hotel-primary); color: var(--text-on-primary); }
.btn-primary:hover { background: var(--hotel-primary-hover); }
.btn-outline { background: transparent; color: var(--hotel-primary); border-color: var(--hotel-primary); }
.btn-outline:hover { background: var(--hotel-primary); color: var(--text-on-primary); }
.btn-ghost {
  background: transparent;
  color: var(--hotel-primary);
  border: none;
  border-bottom: 1px solid var(--hotel-primary);
  padding: 0 0 0.35rem;
  border-radius: 0;
}
.btn-ghost:hover { color: var(--hotel-primary-hover); gap: 0.75rem; }

/* --------------------------------------------------------------------------
   5. Navbar
   -------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.85rem var(--margin-mobile);
}
.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hotel-primary);
}
.site-nav__brand img { height: 34px; width: auto; object-fit: contain; }
.site-nav__links { display: flex; align-items: center; gap: 2rem; }
.site-nav__link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.site-nav__link:hover { color: var(--hotel-primary); }
.site-nav__link.is-active { color: var(--hotel-primary); border-bottom-color: var(--hotel-primary); }
.site-nav__cta { margin-left: 0.5rem; }
.site-nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--hotel-primary);
  cursor: pointer;
  padding: 0.25rem;
}
.site-nav__toggle .material-symbols-outlined { font-size: 2rem; }

/* Spacer para compensar la navbar fija */
.nav-spacer { height: 64px; }

/* --------------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--section-gap) 0 2.5rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--gutter);
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hotel-primary);
  margin-bottom: 1.25rem;
}
.site-footer__brand img { height: 40px; width: auto; }
.site-footer p { color: var(--text-secondary); margin: 0 0 1rem; }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.site-footer__list li { margin-bottom: 0.85rem; color: var(--text-secondary); }
.site-footer__list a { color: var(--text-secondary); transition: var(--transition); }
.site-footer__list a:hover { color: var(--hotel-primary); }
.site-footer__social { display: flex; gap: 1rem; color: var(--hotel-primary); }
.site-footer__social a { transition: var(--transition); }
.site-footer__social a:hover { color: var(--hotel-primary-hover); }
.site-footer__bottom {
  grid-column: 1 / -1;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   7. Placeholder de imagen (slots que el cliente reemplazará)
   El nombre de archivo final se indica en data-img y como comentario en el HTML.
   -------------------------------------------------------------------------- */
.img-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background:
    linear-gradient(135deg, rgba(var(--hotel-primary-rgb), 0.06), rgba(var(--hotel-primary-rgb), 0.02)),
    var(--bg-tertiary);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
}
.img-placeholder .material-symbols-outlined { font-size: 2.5rem; color: var(--hotel-primary); opacity: 0.5; }
.img-placeholder span.label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. WhatsApp flotante
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .container { padding-left: var(--margin-desktop); padding-right: var(--margin-desktop); }
  .nav-spacer { height: 72px; }
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-gap: 64px; }
  .site-nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.5rem;
    background: var(--bg-primary);
    padding: 6rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .site-nav__links.is-open { transform: translateX(0); }
  .site-nav__toggle { display: inline-flex; z-index: 101; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
