/* Rrghydrazyl — Piscinas y Espacios de Relax — aqua / sand luxury hospitality */

:root {
  --bg: #fcf9f3;
  --bg-soft: #ede4d2;
  --bg-deep: #07303a;
  --ink: #07303a;
  --ink-dim: #4f6a72;
  --ink-mute: #8e9ca1;
  --paper: #ffffff;
  --line: #d5cab2;
  --line-soft: #e6dfca;
  --aqua: #6cb4bc;
  --aqua-deep: #2f7a85;
  --sand: #d4b88a;
  --gold: #a47b3a;
  --coral: #d28166;
  --font-display: 'DM Serif Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--aqua-deep);
  display: inline-block;
  position: relative;
  padding-left: 36px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 1px;
  background: var(--aqua-deep);
}
.serif-it { font-family: var(--font-display); font-style: italic; color: var(--aqua-deep); }

.container { width: min(1320px, 92%); margin: 0 auto; }
.container-narrow { width: min(860px, 90%); margin: 0 auto; }
section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50; padding: 18px 0;
  background: rgba(252, 249, 243, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: 0;
  display: inline-flex; align-items: center; gap: 10px;
}
.logo small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--aqua-deep);
  display: block;
  margin-top: -2px;
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--aqua);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  border-radius: 50%;
}
.nav-links { display: flex; gap: 28px; font-size: 0.92rem; color: var(--ink-dim); }
.nav-links a { transition: color 0.2s; padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--aqua-deep); }
.nav-cta {
  padding: 11px 22px;
  background: var(--aqua-deep);
  color: var(--bg);
  font-size: 0.85rem;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--ink); }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); }

/* Btn */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-size: 0.92rem; font-weight: 500;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.btn-aqua { background: var(--aqua-deep); color: var(--bg); }
.btn-aqua:hover { background: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: var(--sand); }
.btn .arrow { width: 22px; height: 1px; background: currentColor; display: inline-block; position: relative; }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }

/* HERO immersive */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,48,58,0.2) 0%, rgba(7,48,58,0.45) 80%);
}
.hero-inner {
  position: relative;
  color: #fff;
  height: 100%;
  display: flex; flex-direction: column; justify-content: end;
  padding-bottom: 80px;
}
.hero h1 { color: #fff; font-size: clamp(3rem, 7vw, 6.4rem); }
.hero h1 em { font-style: italic; color: var(--sand); }
.hero p { color: rgba(255,255,255,0.86); max-width: 560px; font-size: 1.06rem; margin-top: 22px; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; }
.hero-mark {
  position: absolute; top: 130px; right: 60px;
  font-family: var(--font-display); font-style: italic;
  font-size: 4rem; color: rgba(255,255,255,0.18);
}

/* Statement */
.statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.9vw, 2.6rem);
  line-height: 1.32;
  color: var(--ink);
  max-width: 900px;
}
.statement em { font-style: italic; color: var(--aqua-deep); }

/* Pool projects grid */
.pools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 60px;
}
.pool {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4/3;
}
.pool img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.pool:hover img { transform: scale(1.06); }
.pool .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,48,58,0.85), transparent 55%);
  display: flex; flex-direction: column; justify-content: end;
  padding: 30px;
  color: #fff;
}
.pool .meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--sand);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pool h3 { color: #fff; font-style: italic; }
.pool.wide { grid-column: 1 / -1; aspect-ratio: 21/9; }

/* Type tiles */
.types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.type {
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
}
.type:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(7,48,58,0.25); }
.type .pic { aspect-ratio: 4/3; overflow: hidden; }
.type .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; }
.type:hover .pic img { transform: scale(1.06); }
.type .body { padding: 28px; }
.type h3 { font-style: italic; }
.type p { color: var(--ink-dim); font-size: 0.94rem; margin: 12px 0 0; }
.type .from { font-family: var(--font-display); font-style: italic; color: var(--aqua-deep); display: block; margin-top: 16px; }

/* Service cards */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.service {
  background: var(--paper);
  padding: 36px 30px;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
}
.service .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--aqua-deep);
  font-size: 2rem;
  display: block; margin-bottom: 14px;
}
.service h3 { margin-bottom: 10px; }
.service p { color: var(--ink-dim); font-size: 0.94rem; margin: 0; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 50px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats .num {
  font-family: var(--font-display);
  font-size: 3.6rem;
  color: var(--aqua-deep);
  line-height: 1;
  display: block;
}
.stats .lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 16px;
  display: block;
}

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.member img {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 6px;
}
.member h4 { font-family: var(--font-display); font-size: 1.2rem; margin: 14px 0 4px; }
.member .role { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.22em; color: var(--aqua-deep); text-transform: uppercase; }

/* Quote */
.quote-block {
  background: var(--aqua-deep);
  color: var(--bg);
  padding: 100px 60px;
  text-align: center;
  border-radius: 6px;
}
.quote-block::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--sand);
  line-height: 0.7;
  margin-bottom: 20px;
}
.quote-block p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1.42;
  color: #fff;
  max-width: 780px;
  margin: 0 auto;
}
.quote-block .signature {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  color: var(--sand);
  margin-top: 28px;
  text-transform: uppercase;
}

/* Featured split */
.feat {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.feat img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.feat.reverse { grid-template-columns: 1fr 1.2fr; }
.feat.reverse > :first-child { order: 2; }

/* Page hero */
.page-hero {
  padding: 180px 0 80px;
  text-align: center;
  background: var(--bg-soft);
}
.page-hero h1 { max-width: 18ch; margin: 22px auto 18px; }
.page-hero p { color: var(--ink-dim); max-width: 600px; margin: 0 auto; font-size: 1.04rem; }

/* Project detail spec */
.spec-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec-row dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.22em; color: var(--aqua-deep); text-transform: uppercase; margin-bottom: 6px; }
.spec-row dd { margin: 0; font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }

/* CTA */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  padding: 100px 0;
  text-align: center;
  background-image: linear-gradient(135deg, var(--ink) 0%, var(--aqua-deep) 100%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(252, 249, 243, 0.74); max-width: 580px; margin: 22px auto 32px; }
.cta-band .btn-light { background: var(--sand); color: var(--ink); }
.cta-band .btn-light:hover { background: #fff; }

/* Form */
.form-card {
  background: var(--paper);
  border-radius: 6px;
  padding: 40px;
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: 0 30px 60px -30px rgba(7,48,58,0.2);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--aqua-deep); }
.field input, .field textarea, .field select {
  background: var(--bg-soft);
  border: 1px solid transparent;
  color: var(--ink);
  padding: 12px 14px;
  font-family: inherit; font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--aqua-deep); }
.checkbox-row { display: flex; align-items: start; gap: 12px; font-size: 0.88rem; color: var(--ink-dim); line-height: 1.5; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--aqua-deep); }
.checkbox-row a { color: var(--aqua-deep); text-decoration: underline; }

/* Map */
.map-wide { width: 100%; height: 460px; border-radius: 6px; overflow: hidden; }
.map-wide iframe { width: 100%; height: 100%; border: 0; }

/* Cookie */
.cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  max-width: 760px; margin: 0 auto;
  background: var(--ink); color: var(--bg);
  padding: 18px 22px; border-radius: 6px;
  display: flex; gap: 18px; align-items: center;
  z-index: 60;
  transform: translateY(150%);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.cookie-banner.in { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 0.88rem; flex: 1; }
.cookie-banner a { color: var(--sand); text-decoration: underline; }
.cookie-banner .btns { display: flex; gap: 8px; }
.cookie-banner button { padding: 9px 16px; font-family: inherit; font-size: 0.85rem; border-radius: 4px; border: 0; }
.cookie-banner .accept { background: var(--aqua); color: #fff; }
.cookie-banner .deny { background: transparent; color: var(--bg); border: 1px solid rgba(255,255,255,0.3); }

/* Legal */
.legal {
  background: var(--paper);
  padding: 60px 56px;
  border-radius: 6px;
  max-width: 880px;
  margin: 0 auto;
}
.legal h2 { margin: 40px 0 14px; font-size: 1.5rem; font-style: italic; color: var(--aqua-deep); }
.legal h3 { margin: 24px 0 10px; font-size: 1.1rem; }
.legal p { color: var(--ink-dim); margin: 0 0 14px; }
.legal ul, .legal ol { color: var(--ink-dim); padding-left: 22px; }
.legal ul li, .legal ol li { margin-bottom: 8px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.92rem; }
.legal th { text-align: left; padding: 10px 12px; background: var(--bg-soft); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.legal td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink-dim); }
.legal-meta { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); margin-bottom: 30px; }
.legal a { color: var(--aqua-deep); text-decoration: underline; }

/* Footer */
footer { background: var(--bg-deep); color: var(--bg); padding: 90px 0 36px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(252,249,243,0.12); }
.foot-top h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--sand); margin-bottom: 20px; }
.foot-top ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; color: rgba(252,249,243,0.72); font-size: 0.92rem; }
.foot-top a:hover { color: var(--sand); }
.foot-logo { font-family: var(--font-display); font-size: 1.85rem; color: #fff; display: inline-flex; align-items: center; gap: 10px; }
.foot-intro { color: rgba(252,249,243,0.6); font-family: var(--font-display); font-style: italic; font-size: 1.1rem; max-width: 360px; margin-top: 18px; }
.socials { display: flex; gap: 12px; margin-top: 24px; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(252,249,243,0.18); border-radius: 50%; display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.socials a:hover { background: var(--aqua); border-color: var(--aqua); }
.socials svg { width: 16px; height: 16px; }
.foot-bottom { margin-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; color: rgba(252,249,243,0.5); text-transform: uppercase; }

/* Animation */
.fade { opacity: 1; transform: none; transition: opacity 1s, transform 1s; }
.js .fade { opacity: 0; transform: translateY(36px); }
.js .fade.in, .fade.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.28s; }

/* Curtain */
.curtain { position: fixed; inset: 0; background: var(--bg); z-index: 200; display: grid; place-items: center; pointer-events: none; }
.curtain-logo { width: 50px; height: 50px; background: var(--aqua); color: #fff; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.4rem; }

/* Mobile */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .hero-mark { display: none; }
  .pools, .types, .services, .team { grid-template-columns: 1fr; }
  .types, .team { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px; }
  .pool.wide { aspect-ratio: 4/3; }
  .feat, .feat.reverse { grid-template-columns: 1fr; }
  .feat.reverse > :first-child { order: 0; }
  .spec-row { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .legal { padding: 30px 22px; }
}
