/* Sirena Insolente — landing estática */

:root {
  --black: #0c0c0c;
  --pure-black: #000;
  --ink: #222;
  --text: #858585;
  --text-dark: #4a4a4a;
  --accent: #b33352;
  --gray-dark: #323232;
  --gray-light: #afafaf;
  --header-h: 96px;
  --head: "Josefin Sans", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  padding-top: var(--header-h);
  font: 400 17px/1.6 var(--body);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--head); color: var(--ink); text-transform: uppercase; }
button { font: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: #fff; color: #000; padding: 8px 14px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 14px 34px 11px;
  font: 700 12px/24px var(--head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  isolation: isolate;
  transition: color 0.35s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #000;
  transform: translateY(101%);
  transition: transform 0.35s ease;
}
.btn:hover, .btn:focus-visible { color: #fff; }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn-sm { padding: 13px 28px 9px; }
.btn-light { background: transparent; color: #fff; border-color: #fff; }
.btn-light::before { background: #fff; }
.btn-light:hover, .btn-light:focus-visible { color: #000; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: 40px;
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-stuck { box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08); }
.hdr-side { display: flex; align-items: center; gap: 24px; min-width: 0; }
.hdr-left .main-nav { margin-left: auto; }
.hdr-right .side-toggle { margin-left: auto; }
.logo { display: block; width: 152px; height: 90px; margin-inline: 24px; }
.logo img { width: 152px; height: 90px; object-fit: contain; }

.main-nav { display: flex; align-items: center; }
.main-nav a {
  padding: 0 9px;
  font: 700 12px/17px var(--head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--accent); }
.nav-wave { color: #3cb4a4; margin-right: 4px; font-weight: 700; }

.gtranslate_wrapper { font: 700 12px/1 var(--head); letter-spacing: 0.1em; }
.gtranslate_wrapper select {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px 8px;
  font: 700 12px/1 var(--head);
  letter-spacing: 0.1em;
  color: var(--black);
  text-transform: uppercase;
  cursor: pointer;
}
.hdr-book-mobile { display: none; }

.side-toggle {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transition: transform 0.25s, background 0.25s;
}
.side-toggle:hover { transform: scale(1.06); background: #962a45; }

/* ---------- Panel lateral ---------- */
.side-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.3s; }
.side-overlay.is-open { opacity: 1; }
.side-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 120;
  width: min(400px, 100%);
  padding: 80px 44px 40px;
  background: var(--black);
  color: #c4c4c4;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0s 0.35s;
}
.side-panel.is-open { transform: none; visibility: visible; transition: transform 0.35s ease; }
.side-panel h4 { color: #fff; font-size: 20px; letter-spacing: 0.12em; margin-bottom: 8px; }
.side-panel .side-sub { margin-top: 44px; font-size: 16px; line-height: 1.4; }
.side-note { font-size: 14px; margin-bottom: 14px; }
.side-close { position: absolute; top: 16px; right: 22px; border: 0; background: none; color: #fff; font-size: 40px; line-height: 1; }
.side-nav { display: none; flex-direction: column; gap: 4px; margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid #333; }
.side-nav a { padding: 8px 0; font: 700 14px/1.2 var(--head); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.side-nav a:hover { color: var(--accent); }
.newsletter { display: grid; gap: 12px; }
.newsletter input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #444;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
}
.newsletter input::placeholder { color: #8a8a8a; }
.newsletter input:focus { border-color: #fff; outline: none; }
.form-msg { min-height: 1.4em; margin: 0; font-size: 14px; color: #8fd19e; }
.form-msg.is-error { color: #ff8a8a; }
.side-social { display: flex; gap: 18px; margin-top: 36px; color: #fff; }
.side-social a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(380px, 56.25vw, 800px); background: #000; overflow: hidden; }
.hero video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Títulos de sección ---------- */
.section-title { text-align: center; font-weight: 600; font-size: 40px; line-height: 1.2; letter-spacing: 0.08em; }
.section-title--sm { font-size: 35px; letter-spacing: 0.08em; }

/* ---------- Habitaciones ---------- */
.rooms { padding-top: 56px; }
.rooms .section-title { margin-bottom: 40px; padding-inline: 20px; }
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 30px;
  row-gap: 4px;
  padding-inline: 0;
}
.room { position: relative; overflow: hidden; aspect-ratio: 261 / 343; background: #111; }
.room-link, .room-link img { display: block; width: 100%; height: 100%; }
.room-link { padding: 0; border: 0; background: none; cursor: pointer; }
.room-link img { object-fit: cover; transition: transform 0.6s ease; }
.room:hover .room-link img { transform: scale(1.03); }

.room-panel {
  position: absolute;
  top: 50%;
  right: 0;
  width: 80%;
  height: 78%;
  background: var(--black);
  color: #fff;
  transform: translate(calc(100% - 33px), -50%);
  transition: transform 0.45s ease;
  pointer-events: none;
}
.room:hover .room-panel, .room:focus-within .room-panel { transform: translate(0, -50%); }
.room-name-v {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 33px;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 18px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 600 12px/33px var(--head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: left;
}
.room-info {
  position: absolute;
  inset: 0 0 0 33px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 24px 22px 24px 8px;
  text-align: right;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}
.room:hover .room-info, .room:focus-within .room-info { opacity: 1; pointer-events: auto; }
.room-type { font: 700 11px/1.4 var(--head); letter-spacing: 0.2em; text-transform: uppercase; }
.room-name { font: 700 11px/1.4 var(--head); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; }
.room-info p { font-size: 15px; line-height: 1.45; margin: 0 0 12px; color: #fff; }
.room-info a { color: #fff; }

/* ---------- Texturado: sobre nosotros + Volcom ---------- */
.textured { background: #fff url("/assets/img/bg-texture.jpg") center top / cover repeat-y; }
.about { padding-top: 90px; }
.volcom { padding-top: 70px; padding-bottom: 80px; }
.about .section-title, .volcom .section-title { margin-bottom: 44px; }
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 90px;
  align-items: center;
}
.two-col img { width: 100%; height: auto; }
.two-col p { font-size: 15px; line-height: 1.7; color: var(--text-dark); text-align: justify; }
.volcom-media { display: grid; justify-items: center; gap: 22px; }
.volcom-logo img { width: 139px; height: auto; }
.volcom .two-col { align-items: start; }
.volcom-text { padding-top: 0; }
.volcom .center { margin-top: 48px; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); }
.service { position: relative; display: block; aspect-ratio: 356 / 318; overflow: hidden; color: #fff; }
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px 17px 35px 20px;
  transition: background-color 0.4s ease;
}
.service--dark .service-text { background: var(--gray-dark); }
.service--light .service-text { background: var(--gray-light); }
.service:hover .service-text, .service:focus-visible .service-text { background-color: rgba(0, 0, 0, 0.45); }
.service h2 { color: #fff; font-size: 35px; line-height: 1.1; font-weight: 600; letter-spacing: 0.08em; }
.service h5 { color: #fff; font-size: 14px; line-height: 1.45; font-weight: 600; letter-spacing: 0.1em; margin-top: 6px; }
.service-more { margin-top: 18px; font: 600 10px/1 var(--head); letter-spacing: 0.1em; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Testimonios ---------- */
.testimonials { background: #000; color: #fff; padding: 110px 62px; }
.testi-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 60px; align-items: center; max-width: 1300px; margin-inline: auto; }
.testi-title { color: #fff; font-size: 40px; font-weight: 600; letter-spacing: 0.1em; }
.testi-slider { position: relative; padding: 24px 80px 24px 50px; min-height: 270px; }
.testi-quote-mark { position: absolute; left: 30px; top: -40px; color: #1a1a1a; }
.testi-viewport { position: relative; display: grid; }
.testi-slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s 0.5s; }
.testi-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }
.testi-slide p { font: 700 22px/33px var(--head); color: #fff; margin: 0 0 20px; text-transform: none; }
.testi-slide footer { font: 600 14px/1.4 var(--head); letter-spacing: 0.12em; text-transform: uppercase; color: #9a9a9a; }
.testi-nav { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; gap: 14px; }
.testi-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #444; border-radius: 50%; background: transparent; color: #fff; transition: background 0.25s, color 0.25s; }
.testi-btn:hover { background: #fff; color: #000; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); }
.gallery a { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #111; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, opacity 0.4s; }
.gallery a:hover img { transform: scale(1.05); opacity: 0.85; }

/* ---------- Banner parallax + texto ---------- */
.parallax { height: 434px; background: #222 url("/assets/img/banner-surf.jpg") center / cover no-repeat; }
@media (min-width: 1025px) and (hover: hover) { .parallax { background-attachment: fixed; } }
.closing { padding-top: 56px; padding-bottom: 80px; text-align: center; }
.closing h2 { font-size: 20px; line-height: 33px; font-weight: 700; text-transform: none; text-align: center; }
.tripadvisor { width: 130px; height: auto; margin: 36px auto 0; }

/* ---------- Footer ---------- */
.site-footer { color: var(--text); font-size: 15px; }
.footer-top { background: var(--black); padding: 100px 40px 70px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; max-width: 1425px; margin-inline: auto; }
.footer-top h3 { color: #fff; font-size: 22px; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 18px; }
.footer-top p { margin-bottom: 14px; line-height: 1.7; }
.f-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-list li { display: flex; align-items: center; gap: 10px; }
.f-list svg { flex: none; color: #fff; }
.f-list a:hover, .f-social a:hover { color: #fff; }
.f-social { display: flex; gap: 20px; margin-top: 18px; color: #fff; }
.f-logos { display: grid; align-content: start; justify-items: end; gap: 22px; }
.f-logos img { width: 176px; height: auto; }
.footer-bottom { display: flex; align-items: center; gap: 24px; padding: 3px 40px; background: var(--pure-black); font-size: 14px; }
.footer-bottom img { width: 120px; height: auto; }

/* ---------- Modal de reservas ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.7); }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(1100px, 100%); height: min(860px, 100%); background: #fff; box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5); }
.modal-box iframe { width: 100%; height: 100%; border: 0; }
.modal-close { position: absolute; top: -18px; right: -18px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #000; color: #fff; font-size: 26px; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }

/* ---------- WhatsApp ---------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-toggle { width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); transition: transform 0.25s; }
.wa-toggle:hover { transform: scale(1.08); }
.wa-box { width: min(340px, calc(100vw - 40px)); overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 8px 36px rgba(0, 0, 0, 0.25); }
.wa-box[hidden] { display: none; }
.wa-head { position: relative; padding: 20px 22px 16px; background: #25d366; color: #fff; }
.wa-head h3 { color: #fff; font: 700 26px/1.2 var(--body); text-transform: none; margin-bottom: 4px; }
.wa-head p { margin: 0 0 4px; font-size: 14px; }
.wa-head a { text-decoration: underline; }
.wa-close { position: absolute; top: 6px; right: 12px; border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; }
.wa-open { display: flex; align-items: center; gap: 12px; padding: 16px 22px; color: #303030; }
.wa-open svg { color: #25d366; flex: none; }
.wa-open span { display: grid; line-height: 1.3; }
.wa-open small { color: #777; font-size: 13px; }
.wa-open:hover { background: #f5f5f5; }

/* ---------- Reveal ---------- */
.js-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js-reveal.is-in { opacity: 1; transform: none; }


/* ---------- Honeypot (anti-spam) ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pichilemu ---------- */
.pichilemu { padding-top: 90px; padding-bottom: 80px; }
.pichilemu .section-title { margin-bottom: 28px; }
.pichilemu-lead { max-width: 820px; margin: 0 auto 56px; font-size: 17px; line-height: 1.75; text-align: center; color: var(--text-dark); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 20px; }
.card h3 { font-size: 18px; letter-spacing: 0.12em; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.7; color: var(--text-dark); margin: 0; }
.pichilemu-cta { margin-top: 72px; text-align: center; }
.pichilemu-cta h3 { font-size: 26px; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 10px; }
.pichilemu-cta p { color: var(--text-dark); margin-bottom: 24px; }

/* ---------- Contacto ---------- */
.contact { background: #f6f4f0; padding: 90px 24px; }
.contact-inner { max-width: 1180px; margin-inline: auto; }
.contact .section-title { margin-bottom: 12px; }
.contact-sub { text-align: center; margin-bottom: 52px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.lead-form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font: 700 12px/1.4 var(--head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.field label span { font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--text); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfcac2;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.consent { margin: 0; font-size: 13px; }
.lead-form .btn { justify-self: start; }
.lead-form .form-msg { color: #1f7a3a; }
.lead-form .form-msg.is-error { color: #b3261e; }
.contact-info .f-list { gap: 14px; margin-bottom: 28px; color: var(--text-dark); }
.contact-info .f-list svg { color: var(--accent); }
.contact-info .f-list a:hover { color: var(--accent); }
.contact-info .map { width: 100%; height: 320px; border: 0; filter: grayscale(0.2); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .main-nav a { padding: 0 6px; }
  .hdr-side { gap: 14px; }
  .site-header { padding-inline: 24px; }
}

@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .site-header { grid-template-columns: auto 1fr; padding-inline: 18px; }
  .hdr-left { display: none; }
  .logo { width: 84px; height: 50px; margin: 0; order: -1; }
  .logo img { width: 84px; height: 50px; }
  .hdr-right { justify-content: flex-end; }
  .hdr-right .main-nav, .hdr-right .gtranslate_wrapper { display: none; }
  .hdr-book-mobile { display: inline-block; padding: 10px 18px 7px; }
  .hdr-right .side-toggle { margin-left: 0; width: 48px; height: 48px; }
  .side-nav { display: flex; }
  .two-col { gap: 48px; }
  .rooms-grid { grid-template-columns: repeat(3, 1fr); column-gap: 14px; row-gap: 14px; padding-inline: 14px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .testimonials { padding: 80px 32px; }
  .testi-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .f-logos { justify-items: start; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section-title, .testi-title { font-size: 28px; }
  .section-title--sm { font-size: 24px; }
  .rooms { padding-top: 40px; }
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .about { padding-top: 56px; }
  .volcom { padding-top: 50px; padding-bottom: 56px; }
  .services { grid-template-columns: 1fr; }
  .service { aspect-ratio: auto; min-height: 220px; }
  .cards { grid-template-columns: 1fr; }
  .pichilemu { padding-top: 56px; padding-bottom: 56px; }
  .pichilemu-lead { font-size: 16px; margin-bottom: 36px; }
  .pichilemu-cta { margin-top: 48px; }
  .pichilemu-cta h3 { font-size: 20px; }
  .contact { padding: 56px 20px; }
  .contact-sub { margin-bottom: 32px; }
  .contact-info .map { height: 260px; }
  .service h2 { font-size: 30px; }
  .testimonials { padding: 56px 20px; }
  .testi-slider { padding: 20px 0 64px; }
  .testi-quote-mark { left: 0; top: -30px; width: 90px; height: auto; }
  .testi-slide p { font-size: 18px; line-height: 28px; }
  .testi-nav { right: 0; top: auto; bottom: 0; transform: none; display: flex; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .parallax { height: 240px; }
  .closing h2 { font-size: 17px; line-height: 28px; }
  .footer-top { padding: 64px 24px 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { padding-inline: 24px; }
  .modal { padding: 0; }
  .modal-box { width: 100%; height: 100%; }
  .modal-close { top: 8px; right: 8px; }
}

/* En pantallas táctiles el panel de la habitación queda como franja (el toque va al link) */
@media (hover: none) {
  .room-info { display: none; }
  .room-panel { height: 84%; width: 33px; transform: translate(0, -50%); }
  .room-name-v { font-size: 11px; letter-spacing: 0.14em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js-reveal { opacity: 1; transform: none; }
}
