/* ==========================================================================
   Hotel Albamar — Viña del Mar
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --burgundy: #5c1220;
  --burgundy-dark: #3c0b14;
  --burgundy-soft: #7a2334;
  --gold: #bd9350;
  --gold-light: #ddc491;
  --gold-dark: #8f6c34;
  --cream: #faf7f1;
  --cream-dark: #f1e9db;
  --ink: #2a211d;
  --ink-soft: #695c53;
  --white: #ffffff;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --shadow-soft: 0 20px 60px -25px rgba(42, 19, 14, 0.45);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.2; color: var(--burgundy-dark); }
input, textarea { font-family: inherit; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.section { padding: 108px 0; }
.section--tight { padding: 72px 0; }
.section--cream-dark { background: var(--cream-dark); }
.section--burgundy { background: var(--burgundy); color: var(--cream); }
.section--burgundy h2, .section--burgundy h3 { color: var(--white); }

.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.section-head p { margin-top: 18px; color: var(--ink-soft); font-size: 1.05rem; }
.section--burgundy .section-head p { color: rgba(250,247,241,0.75); }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--burgundy); color: var(--white); border-color: var(--burgundy); }
.btn-primary:hover { background: var(--burgundy-dark); border-color: var(--burgundy-dark); }
.btn-gold { background: var(--gold); color: var(--burgundy-dark); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--burgundy); border-color: var(--burgundy); }
.btn-outline-dark:hover { background: var(--burgundy); color: var(--white); }
.btn-sm { padding: 11px 24px; font-size: 12px; }

/* --- Logo ------------------------------------------------------------------ */
.logo { display: flex; align-items: center; }
.logo-img { height: 48px; width: auto; display: block; }
.logo-img--dark { display: none; }
.site-header.is-solid .logo-img--light { display: none; }
.site-header.is-solid .logo-img--dark { display: block; }
body.no-hero .logo-img--light { display: none; }
body.no-hero .logo-img--dark { display: block; }
.site-footer .logo-img { height: 58px; margin-bottom: 22px; }

/* --- Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 26px 0;
  transition: var(--transition);
  color: var(--white);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header.is-solid {
  background: rgba(250, 247, 241, 0.97);
  backdrop-filter: blur(6px);
  padding: 16px 0;
  box-shadow: 0 2px 24px rgba(42,19,14,0.08);
  color: var(--ink);
}
.site-header.is-solid .logo-mark { border-color: var(--burgundy); color: var(--burgundy); }
body.no-hero .site-header { color: var(--ink); background: rgba(250,247,241,0.97); padding: 16px 0; box-shadow: 0 2px 24px rgba(42,19,14,0.08); }
body.no-hero .site-header .logo-mark { border-color: var(--burgundy); color: var(--burgundy); }

.main-nav { display: flex; align-items: center; gap: 44px; }
.main-nav ul { display: flex; gap: 38px; }
.main-nav a {
  font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 500;
  position: relative; padding-bottom: 4px;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: currentColor; transition: var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: #ebac00; }

.nav-toggle {
  display: none; background: none; border: none; color: currentColor;
  width: 30px; height: 22px; position: relative; z-index: 200;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: var(--transition);
}
.nav-toggle::before { top: 0; }
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle::after { bottom: 0; }
.nav-toggle.is-open::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.is-open span { opacity: 0; }
.nav-toggle.is-open::after { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* --- Hero ------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  color: var(--white); background-size: cover; background-position: center;
  padding-bottom: 120px;
  padding-top: 140px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,19,14,0.35) 0%, rgba(42,19,14,0.15) 40%, rgba(28,13,9,0.85) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow { color: #efd8aa; }
.hero .eyebrow::before { background: var(--gold-light); }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--white); font-weight: 500;
  line-height: 1.1;
}
.hero h1 em { color: #f5d390; font-style: italic; }
.hero p { margin-top: 24px; max-width: 520px; font-size: 1.1rem; color: rgba(255,255,255,0.85); }
.hero-actions { margin-top: 40px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; right: 40px; bottom: 44px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.75);
}
.hero-scroll .line { width: 1px; height: 46px; background: rgba(255,255,255,0.5); position: relative; overflow: hidden; }
.hero-scroll .line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--gold-light);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* --- Page header (non-home) --------------------------------------------- */
.page-hero {
  position: relative; min-height: 58vh; display: flex; align-items: center;
  color: var(--white); background-size: cover; background-position: center; margin-top: 0;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,19,14,0.55), rgba(28,13,9,0.6)); }
.page-hero-inner { position: relative; z-index: 2; padding-top: 90px; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero .eyebrow::before { background: var(--gold-light); }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.breadcrumb { margin-top: 18px; font-size: 13px; letter-spacing: 0.05em; color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--gold-light); }

/* --- Intro / About -------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; height: 560px; object-fit: cover; }
.about-media .frame {
  position: absolute; top: -22px; left: -22px; right: 22px; bottom: 22px;
  border: 1px solid var(--gold); z-index: -1;
}
.about-media-inner { position: relative; z-index: 1; }
.about-stats { display: flex; gap: 44px; margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--cream-dark); }
.about-stat .num { font-family: var(--font-serif); font-size: 2.3rem; color: var(--burgundy); }
.about-stat .label { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.about-text p { color: var(--ink-soft); margin-top: 18px; }
.about-text p:first-of-type { margin-top: 0; }

/* --- Rooms cards ----------------------------------------------------------- */
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.room-card { background: var(--white); box-shadow: var(--shadow-soft); }
.room-card-media { position: relative; height: 300px; overflow: hidden; }
.room-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.room-card:hover .room-card-media img { transform: scale(1.06); }
.room-card-tag {
  position: absolute; top: 18px; left: 18px; background: var(--burgundy); color: var(--white);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 14px;
}
.room-card-body { padding: 30px 30px 32px; }
.room-card-body h3 { font-size: 1.45rem; }
.room-card-body .meta { display: flex; gap: 16px; margin: 12px 0 16px; font-size: 12.5px; letter-spacing: 0.04em; color: var(--gold-dark); text-transform: uppercase; }
.room-card-body p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; }
.room-card-body .btn { width: 100%; justify-content: center; }

/* --- Amenities strip -------------------------------------------------------- */
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2px; background: var(--cream-dark); }
.amenity-item {
  background: var(--cream); padding: 42px 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.amenity-item svg { width: 34px; height: 34px; stroke: var(--gold-dark); }
.amenity-item h4 { font-family: var(--font-sans); font-weight: 500; font-size: 0.98rem; text-transform: none; color: var(--ink); }
.amenity-item p { font-size: 0.85rem; color: var(--ink-soft); }

/* Detailed amenities (amenidades.html) */
.amenities-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--cream-dark); border: 1px solid var(--cream-dark); }
.amenity-card { background: var(--white); padding: 44px 34px; }
.amenity-card svg { width: 32px; height: 32px; stroke: var(--gold-dark); margin-bottom: 22px; }
.amenity-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.amenity-card p { color: var(--ink-soft); font-size: 0.93rem; }

.info-list { border-top: 1px solid var(--cream-dark); }
.info-row { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--cream-dark); }
.info-row dt { font-family: var(--font-serif); font-size: 1.05rem; color: var(--burgundy); }
.info-row dd { color: var(--ink-soft); }

/* --- FAQ --------------------------------------------------------------- */
.faq-list { border-top: 1px solid var(--cream-dark); }
.faq-item { border-bottom: 1px solid var(--cream-dark); padding: 6px 0; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 34px 20px 0; position: relative;
  font-family: var(--font-serif); font-size: 1.08rem; color: var(--burgundy-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-sans); font-size: 1.3rem; font-weight: 300; color: var(--gold-dark);
  transition: var(--transition);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--ink-soft); padding: 0 34px 22px 0; font-size: 0.95rem; }

/* --- Location / CTA --------------------------------------------------------- */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.location-media { height: 100%; min-height: 460px; overflow: hidden; }
.location-media img { width: 100%; height: 100%; object-fit: cover; }
.location-text { background: var(--burgundy); color: var(--cream); padding: 80px 72px; display: flex; flex-direction: column; justify-content: center; }
.location-text .eyebrow { color: var(--gold-light); }
.location-text .eyebrow::before { background: var(--gold-light); }
.location-text h2 { color: var(--white); font-size: clamp(1.9rem, 3vw, 2.5rem); }
.location-text p { margin-top: 20px; color: rgba(250,247,241,0.78); }
.contact-line { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 0.95rem; }
.contact-line svg { width: 18px; height: 18px; stroke: var(--gold-light); flex-shrink: 0; }
.location-text .btn { margin-top: 32px; align-self: flex-start; }

/* --- Gallery preview / grid -------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery-grid a { position: relative; overflow: hidden; display: block; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid a::after { content: ''; position: absolute; inset: 0; background: rgba(42,19,14,0); transition: var(--transition); }
.gallery-grid a:hover::after { background: rgba(42,19,14,0.18); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

.gallery-grid .gallery-item { position: relative; overflow: hidden; }
.gallery-grid .gallery-item a { display: block; width: 100%; height: 100%; position: relative; }
.gallery-grid .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-grid .gallery-item:hover img { transform: scale(1.08); }
.gallery-grid .gallery-item a::after { content: ''; position: absolute; inset: 0; background: rgba(42,19,14,0); transition: var(--transition); }
.gallery-grid .gallery-item:hover a::after { background: rgba(42,19,14,0.18); }

.filter-bar { display: flex; gap: 12px; margin-bottom: 44px; }
.filter-btn {
  padding: 10px 22px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--cream-dark); background: transparent; color: var(--ink-soft); transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }
.gallery-item { display: none; }
.gallery-item.show { display: block; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(20, 9, 6, 0.94); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 84vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: 1px solid rgba(255,255,255,0.4); color: var(--white);
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.12); border-color: var(--gold-light); }
.lightbox-close { top: 30px; right: 30px; }
.lightbox-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 30px; top: 50%; transform: translateY(-50%); }

/* --- Testimonial / quote ----------------------------------------------------- */
.quote-band { text-align: center; max-width: 780px; margin: 0 auto; }
.quote-band svg { width: 34px; height: 34px; stroke: var(--gold); margin: 0 auto 26px; }
.quote-band p { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--burgundy-dark); line-height: 1.5; }
.quote-band cite { display: block; margin-top: 22px; font-style: normal; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* --- CTA banner --------------------------------------------------------- */
.cta-banner { background: #520b0d; color: var(--cream); padding: 90px 0; text-align: center; }
.cta-banner h2 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.cta-banner p { margin: 18px auto 34px; max-width: 560px; color: rgba(250,247,241,0.75); }
.cta-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* --- Values / Mission grid -------------------------------------------------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.value-card { border-top: 1px solid var(--gold); padding-top: 26px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.value-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* --- Contact page ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.contact-cards { display: grid; gap: 22px; }
.contact-card {
  display: flex; gap: 20px; padding: 30px; background: var(--white); box-shadow: var(--shadow-soft);
}
.contact-card .icon {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card .icon svg { width: 20px; height: 20px; stroke: var(--gold-dark); }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p, .contact-card a { color: var(--ink-soft); font-size: 0.93rem; }
.contact-card a:hover { color: var(--burgundy); }
.map-frame { width: 100%; height: 100%; min-height: 480px; border: 0; filter: grayscale(0.35) contrast(1.05); }
.hours-table { margin-top: 22px; border-top: 1px solid var(--cream-dark); }
.hours-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--cream-dark); font-size: 0.93rem; }
.hours-row span:first-child { color: var(--ink); }
.hours-row span:last-child { color: var(--ink-soft); }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--burgundy-dark); color: rgba(250,247,241,0.72); padding: 90px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; padding-bottom: 70px; border-bottom: 1px solid rgba(250,247,241,0.12); }
.footer-grid .logo { color: var(--white); margin-bottom: 20px; }
.footer-grid p { font-size: 0.9rem; line-height: 1.8; }
.footer-col h4 { color: var(--white); font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; margin-bottom: 22px; }
.footer-col ul li { margin-bottom: 12px; font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid rgba(250,247,241,0.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.footer-social a:hover { border-color: var(--gold-light); color: var(--gold-light); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 12.5px; }

/* --- Utilities ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

body.nav-locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .about-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media img { height: 420px; }
  .location-text { padding: 60px 40px; }
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities-detail { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 44px; }
}

@media (max-width: 780px) {
  .container { padding: 0 22px; }
  .section { padding: 76px 0; }
  .main-nav ul { display: none; }
  .nav-toggle { display: block; }
  .main-nav.is-open ul {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%;
    background: var(--burgundy); padding: 120px 40px 40px; z-index: 150; color: var(--white);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .main-nav.is-open ul li { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .main-nav.is-open ul a { display: block; padding: 20px 0; font-size: 15px; }
  .rooms-grid, .amenities-detail, .values-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; gap: 6px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery-grid .wide { grid-column: span 2; }
  .gallery-grid .tall { grid-row: span 1; }
  .hero { padding-bottom: 80px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-scroll { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .page-hero-inner { padding-top: 70px; }
}
