/* ============================================
   Hotel La Pérgola — Laraquete, Biobío
   Design system: harbor dusk palette
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,500;0,600;1,400&family=Work+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --navy: #223449;
  --navy-dark: #182636;
  --rust: #C1552C;
  --rust-dark: #A3441F;
  --sand: #F3EEE4;
  --sand-2: #EAE3D3;
  --charcoal: #33312C;
  --teal: #4C7A78;
  --white: #FFFDF9;
  --border-soft: rgba(51, 49, 44, 0.12);

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 4px;
  --radius-lg: 10px;
  --max-width: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: min(100%, var(--max-width));
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.15;
}

section { padding: 88px 0; }

@media (max-width: 720px) {
  section { padding: 56px 0; }
}

/* ---------- Boat tag (signature element) ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--rust);
  color: var(--sand);
  padding: 5px 11px;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(24, 38, 54, 0.4);
}
.tag.tag--outline {
  background: transparent;
  border: 1px solid var(--rust);
  color: var(--rust-dark);
}
.tag.tag--navy { background: var(--navy); color: var(--sand); }

.eyebrow {
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: scale(0.98); }

.btn--rust { background: var(--rust); color: var(--white); }
.btn--rust:hover { background: var(--rust-dark); }

.btn--outline-light { background: transparent; color: var(--sand); border-color: rgba(243,238,228,0.55); }
.btn--outline-light:hover { background: rgba(243,238,228,0.12); }

.btn--outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline-dark:hover { background: var(--navy); color: var(--sand); }

.btn--full { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 238, 228, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 75px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-text .name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
}
.brand-text .place {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--teal);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--charcoal);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.main-nav a:hover { color: var(--rust); border-color: var(--rust); }

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

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--sand);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 14px;
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-140%);
    transition: transform .25s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav .btn { margin-top: 8px; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  color: var(--sand);
  background-image: linear-gradient(180deg, rgba(24,38,54,0.25) 0%, rgba(24,38,54,0.42) 40%, rgba(24,38,54,0.75) 75%, rgba(24,38,54,0.95) 100%), url('images/hero.jpg');
  background-size: cover;
  background-position: center 25%;
}
.hero-inner {
  position: relative;
  width: 100%;
  padding-bottom: 64px;
}
.hero .tag { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  color: var(--sand);
  max-width: 720px;
  margin-bottom: 18px;
  text-shadow: 0 3px 12px rgba(24, 38, 54, 0.6);
}
.hero p {
  font-size: 17px;
  max-width: 520px;
  color: rgba(243,238,228,0.95);
  margin-bottom: 30px;
  text-shadow: 0 2px 8px rgba(24, 38, 54, 0.5);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.chip {
  font-size: 12.5px;
  font-family: var(--font-mono);
  letter-spacing: .5px;
  border: 1px solid rgba(243,238,228,0.5);
  color: var(--sand);
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(24, 38, 54, 0.35);
  box-shadow: 0 2px 6px rgba(24, 38, 54, 0.35);
}

/* ---------- Bienvenida ---------- */
.bienvenida .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.bienvenida h2 { font-size: 32px; margin-bottom: 20px; }
.bienvenida p { color: #56534b; margin-bottom: 16px; font-size: 15.5px; }
.bienvenida-media { position: relative; }
.bienvenida-media img { border-radius: var(--radius-lg); width: 100%; height: auto; display: block; }
.bienvenida-media .tag { position: absolute; top: -14px; left: -14px; }

@media (max-width: 860px) {
  .bienvenida .container { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Reuniones ---------- */
.reuniones-panel {
  background: var(--sand-2);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: start;
  color: var(--charcoal);
  border: 1px solid var(--border-soft);
}
.reuniones-left h2 { color: var(--navy-dark); font-size: 34px; margin-bottom: 12px; }
.reuniones-left p { color: #56534b; font-size: 15.5px; margin-bottom: 10px; }
.reuniones-right { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.reuniones-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: stretch;
}
.reuniones-images img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: calc(var(--radius) * 2);
}
.price-card { background: var(--white); border-radius: var(--radius-lg); padding: 16px; display: flex; gap: 14px; align-items: center; box-shadow: 0 8px 20px rgba(34,52,73,0.06); border: 1px solid rgba(34,52,73,0.04); }
.price-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--sand); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--navy-dark); }
.price-title { font-family: var(--font-mono); font-size: 16px; color: var(--navy-dark); font-weight: 600; }
.price-sub { font-size: 13px; color: #857f70; margin-top: 2px; }
.btn--green { background: #145a3b; color: var(--sand); box-shadow: 0 10px 24px rgba(20,90,59,0.12); border-color: transparent; }
.btn--green:hover { background: #0f4c33; }

@media (max-width: 860px) {
  .reuniones-panel { grid-template-columns: 1fr; padding: 32px; }
  .reuniones-images img { height: 160px; }
  .price-card { width: 100%; }
}

/* ---------- Placeholder blocks ---------- */
.placeholder-img {
  background: repeating-linear-gradient(135deg, var(--sand-2), var(--sand-2) 10px, #E1D9C4 10px, #E1D9C4 20px);
  border: 1px dashed rgba(51,49,44,0.35);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #7a7669;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .5px;
  padding: 16px;
  min-height: 180px;
}

/* ---------- Section heading pattern ---------- */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: 30px; }
.section-head p { color: #56534b; margin-top: 10px; font-size: 15.5px; }

/* ---------- Habitaciones ---------- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .rooms-grid { grid-template-columns: 1fr; }
}
.room-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.room-card .placeholder-img { border-radius: 0; border: none; min-height: 190px; }
.room-card img { 
  width: 100%; 
  height: 220px; 
  object-fit: cover; 
  display: block;
  border-radius: 0;
}
.room-card-body { padding: 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.room-card-body h3 { font-size: 20px; }
.room-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: #56534b;
}
.room-card ul li { padding-left: 16px; position: relative; }
.room-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1px;
  background: var(--rust);
}
.room-price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.room-price .amount {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--navy);
}
.room-price .note { font-size: 12px; color: #857f70; margin-top: 2px; }
.room-card .btn { margin-top: 16px; }

/* ---------- Reuniones ---------- */
.reuniones .container {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  color: var(--sand);
}
.reuniones h2 { color: var(--sand); font-size: 28px; margin-bottom: 14px; }
.reuniones p { color: rgba(243,238,228,0.8); font-size: 15px; margin-bottom: 10px; }
.reuniones-stat {
  background: rgba(243,238,228,0.06);
  border: 1px solid rgba(243,238,228,0.2);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.reuniones-stat .big { font-family: var(--font-mono); font-size: 30px; }
.reuniones-stat .label { font-size: 12.5px; margin-top: 4px; }
.reuniones-stat .price { margin-top: 16px; font-family: var(--font-mono); font-size: 15px; }
@media (max-width: 860px) {
  .reuniones .container { grid-template-columns: 1fr; padding: 32px; }
}

/* ---------- Servicios ---------- */
.servicios { background: var(--sand-2); }
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 860px) { .servicios-grid { grid-template-columns: repeat(2, 1fr); } }
.servicio-item { display: flex; flex-direction: column; gap: 8px; }
.servicio-item .icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--rust);
  color: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px;
}
.servicio-item span.label { font-size: 14px; font-weight: 500; }

/* ---------- Qué visitar ---------- */
.visitar-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}
.visitar-item:last-child { margin-bottom: 0; }
.visitar-item:nth-child(even) .visitar-media { order: 2; }
.visitar-item img { border-radius: var(--radius-lg); width: 100%; height: 280px; object-fit: cover; display: block; }
.visitar-item .placeholder-img { border-radius: var(--radius-lg); min-height: 280px; }
.visitar-item h3 { font-size: 22px; margin-bottom: 10px; }
.visitar-item p { color: #56534b; font-size: 15px; }
@media (max-width: 780px) {
  .visitar-item { grid-template-columns: 1fr; gap: 18px; }
  .visitar-item:nth-child(even) .visitar-media { order: 0; }
}

/* ---------- Galería ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid .placeholder-img { min-height: 220px; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-lg); display: block; }
@media (max-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ ---------- */
#faq .section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: left;
}
#faq .faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
}
.faq-question .plus {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--rust);
  transition: transform .2s ease;
}
.faq-item.open .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  color: #56534b;
  font-size: 14.5px;
}
.faq-answer p { padding: 0 4px 20px; }

/* ---------- Contacto ---------- */
.contacto { background: var(--sand-2); }
.contacto .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  min-width: 0;
}
@media (max-width: 900px) { .contacto .container { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .contacto .container { gap: 28px; }
  .contacto-info h2 { font-size: 26px; }
  .quote-form { padding: 22px; }
  .ubicacion-map { aspect-ratio: 4 / 3; min-height: 240px; }
}
.contacto-info, .quote-form { min-width: 0; max-width: 100%; }
.contacto-info h2 { font-size: 30px; margin-bottom: 14px; }
.contacto-info p { color: #56534b; margin-bottom: 24px; }
.contacto-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 14.5px;
  max-width: 100%;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contacto-detail .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--teal);
  text-transform: uppercase;
  min-width: 100px;
  flex-shrink: 0;
}

.ubicacion-map{
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(34,52,73,0.06);
  aspect-ratio: 4/3;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.ubicacion-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  border: 0;
}

.quote-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 32px;
  overflow: hidden;
}
.quote-form h3 { font-size: 19px; margin-bottom: 20px; }
.form-row { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 12.5px; font-weight: 500; color: #56534b; }
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 11px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--sand);
  color: var(--charcoal);
  width: 100%;
  max-width: 100%;
}
.form-row textarea { resize: vertical; min-height: 80px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--rust);
}
.form-note { font-size: 12px; color: #857f70; margin-top: 12px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(243,238,228,0.82);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-brand img {     width: 75px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;}
.footer-brand .name { font-family: var(--font-display); font-size: 17px; color: var(--sand); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 14px;
}
.footer-col p, .footer-col a { display: block; font-size: 14px; margin-bottom: 8px; color: rgba(243,238,228,0.75); }
.footer-col a:hover { color: var(--sand); }
.footer-bottom {
  border-top: 1px solid rgba(243,238,228,0.15);
  padding-top: 20px;
  font-size: 12.5px;
  color: rgba(243,238,228,0.5);
  text-align: center;
}

/* ---------- WhatsApp float button ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  background: var(--rust);
  color: var(--sand);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(24,38,54,0.28);
  font-size: 26px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.sub-footer{ background: rgba(46, 18, 7, 0.95); color: rgba(245,239,227,0.75); padding: 16px 0; }
.sub-footer-inner{ display: flex; align-items: center; justify-content: center; }
.sub-footer a{ color: rgba(245,239,227,0.9); text-decoration: none; font-weight: 600; }
.sub-footer a:hover{ color: var(--gold); }
