/* =========================================================
   Hamacas Nerja Playa — flat, white, beach-themed
   Palette: sea #0E7FB8 / deep sea #0B6394 / sun #F5B82E
            sand #F4E9D8 / ink #1F2A33 / ok #1F9D55
   ========================================================= */

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

:root {
  --sea: #0E7FB8;
  --sea-dark: #0B6394;
  --sun: #F5B82E;
  --sand: #F4E9D8;
  --sand-line: #E4C892;
  --ink: #1F2A33;
  --ink-soft: #55636E;
  --ok: #1F9D55;
  --wa: #25D366;
  --line: #E3E8EC;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

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

/* ---------- Header ---------- */
.site-header {
  background: #FFFFFF;
  border-bottom: 3px solid var(--sun);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-icon { width: 38px; height: 38px; }
.brand-name { font-size: 1.15rem; letter-spacing: .2px; }
.brand-name strong { color: var(--sea); }

.lang-switch { display: flex; gap: 6px; }
.lang-btn {
  border: 1px solid var(--line);
  background: #FFFFFF;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: .85rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.lang-btn:hover { border-color: var(--sea); color: var(--sea); }
.lang-btn.active { background: var(--sea); border-color: var(--sea); color: #FFFFFF; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 40px; background: #FFFFFF; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 14px;
}
.hero-text p { color: var(--ink-soft); margin-bottom: 20px; font-size: 1.05rem; }

.hero-points { list-style: none; margin-bottom: 26px; display: grid; gap: 10px; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: .98rem; }
.pt-icon { width: 22px; height: 22px; flex: none; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--sea);
  color: #FFFFFF;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover { background: var(--sea-dark); }

.btn-secondary {
  background: #FFFFFF;
  color: var(--sea);
  border: 2px solid var(--sea);
  border-radius: var(--radius);
  padding: 10px 22px;
  font-size: .98rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--sea); color: #FFFFFF; }

.hero-media, .info-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  margin: 0;
}
.hero-media img, .info-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.img-fallback { display: none; }
.img-missing img { display: none; }
.img-missing .img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  color: var(--ink-soft);
  font-size: 1.2rem;
}

/* ---------- Services band ---------- */
.services-band {
  background: var(--sea-dark);
  color: #FFFFFF;
  padding: 40px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 40px;
  align-items: center;
}
.services-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  max-width: 320px;
}
.services-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  text-align: center;
}
.services-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.srv-icon { width: 48px; height: 48px; margin-bottom: 8px; }
.srv-label { color: var(--sun); font-weight: 700; font-size: 1.05rem; }
.srv-sub { font-size: .92rem; color: #E4ECF2; }

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; gap: 26px; }
  .services-title { max-width: none; text-align: center; margin: 0 auto; }
  .services-list { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
}

/* ---------- Booking ---------- */
.booking { padding: 48px 0; background: var(--sand); }
.booking-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }

.booking-intro h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 10px; }
.booking-intro > p { color: var(--ink-soft); margin-bottom: 24px; }

.steps { display: grid; gap: 14px; }
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .95rem;
}
.courtesy-note {
  margin-top: 18px;
  background: var(--sand);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .87rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.courtesy-note strong { color: var(--ink); }

.step-n {
  width: 28px; height: 28px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  border-radius: 50%;
  font-size: .9rem;
}

.booking-form {
  background: #FFFFFF;
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: 26px;
}

.form-row { margin-bottom: 16px; }
.form-row.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input, .field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--ink);
  background: #FFFFFF;
  font-family: inherit;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(14, 127, 184, 0.15);
}
.field input.invalid, .field select.invalid { border-color: #C0392B; }

.stepper { display: flex; align-items: stretch; gap: 8px; max-width: 220px; }
.stepper input { text-align: center; font-weight: 600; }
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.step-btn {
  width: 46px;
  flex: none;
  border: 1px solid var(--line);
  background: var(--sand);
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.step-btn:hover { background: var(--sun); }

.phone-group { display: flex; gap: 8px; }
.phone-group select { width: 132px; flex: none; }

.total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--sand);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 20px 0 16px;
}
.total-label { display: block; font-weight: 700; font-size: .95rem; }
.total-detail { display: block; font-size: .85rem; color: var(--ink-soft); }
.total-amount { font-size: 1.7rem; font-weight: 800; color: var(--sea); }

.form-error {
  color: #C0392B;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.btn-submit { width: 100%; background: var(--wa); }
.btn-submit:hover { background: #1DA851; }
.btn-submit:disabled { opacity: .6; cursor: wait; }
.wa-icon { width: 22px; height: 22px; }

.privacy-note { font-size: .82rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }

/* ---------- Confirmation ---------- */
.confirmation {
  grid-column: 1 / -1;
  background: #FFFFFF;
  border: 2px solid var(--ok);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
}
.ok-icon { width: 54px; height: 54px; margin: 0 auto 14px; }
.confirmation h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--ok); }
.ok-ref {
  display: inline-block;
  background: var(--sand);
  border: 1px solid var(--sand-line);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink) !important;
  margin-bottom: 14px !important;
}
.confirmation p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 8px; }
.ok-summary { font-weight: 600; color: var(--ink) !important; margin-bottom: 18px !important; }

/* ---------- Payment methods ---------- */
.payments { padding: 56px 0; background: #FFFFFF; }
.payments-title {
  text-align: center;
  color: var(--sea);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 8px;
}
.payments-sub {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 44px;
  font-size: 1.02rem;
}
.payments-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 0;
  margin: 0;
  text-align: center;
}
.payments-grid li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pay-icon {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.pay-icon svg { height: 46px; width: auto; }
.payments-grid h3 { font-size: 1.05rem; color: var(--ink); }
.payments-grid p { font-size: .92rem; color: var(--ink-soft); max-width: 260px; }

@media (max-width: 860px) {
  .payments { padding: 40px 0; }
  .payments-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
}

/* ---------- Beach services ---------- */
.beach-services { padding: 56px 0; background: #f4ead8; }
.beach-services-title {
  text-align: center;
  color: var(--sea);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 44px;
}
.beach-services-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px 18px;
  padding: 0;
  margin: 0;
  text-align: center;
}
.beach-services-grid li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bsrv-icon { width: 54px; height: 54px; margin-bottom: 8px; }
.beach-services-grid h3 { font-size: 1rem; color: var(--sea); font-weight: 700; }
.beach-services-grid p { font-size: .88rem; color: var(--ink-soft); max-width: 200px; }

@media (max-width: 1000px) {
  .beach-services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .beach-services { padding: 40px 0; }
  .beach-services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Info / SEO ---------- */
.info { padding: 48px 0; background: #FFFFFF; }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
}
.info-text h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 14px; }
.info-text p { color: var(--ink-soft); margin-bottom: 12px; }
.info-list { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.info-list li { padding-left: 28px; position: relative; font-size: .97rem; }
.info-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 14px; height: 14px;
  background: var(--sun);
  border-radius: 50%;
}

/* ---------- Footer ---------- */
.footer-wave { display: block; width: 100%; height: 46px; margin-bottom: -1px; }

.site-footer {
  background: var(--ink);
  color: #C9D4DC;
  font-size: .92rem;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding: 42px 0 30px;
}
.footer-col h3 {
  color: #FFFFFF;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  position: relative;
}
.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  background: var(--sun);
  border-radius: 2px;
}
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-row .brand-icon { width: 36px; height: 36px; }
.footer-brand-row .brand-logo { height: 36px; }
.footer-brand { font-size: 1.15rem; font-weight: 700; color: #FFFFFF; }
.footer-tagline { color: #9FB0BC; margin-bottom: 20px; max-width: 300px; line-height: 1.55; }

.footer-list { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; }
.footer-list li { display: flex; align-items: flex-start; gap: 10px; }
.footer-ic { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.site-footer a { color: #C9D4DC; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 16px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: #8CA0AE;
}
.footer-gdpr-badge { flex: none; display: inline-block; line-height: 0; opacity: .92; }
.footer-gdpr-badge:hover { opacity: 1; }
.footer-gdpr-badge svg { width: 120px; height: auto; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .booking-grid, .info-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding: 32px 0; }
  .hero-media { order: -1; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-row.two-cols { grid-template-columns: 1fr; }
}

/* ---------- Uploaded logo ---------- */
.brand-logo { height: 40px; width: auto; max-width: 180px; object-fit: contain; }

/* ---------- Booking closed banner ---------- */
.closed-box {
  grid-column: 1 / -1;
  background: #FFFFFF;
  border: 2px solid var(--sun);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
}
.closed-box .closed-icon { width: 54px; height: 54px; margin: 0 auto 14px; display: block; }
.closed-box h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--ink); }
.closed-box p { color: var(--ink-soft); max-width: 560px; margin: 0 auto; }

/* ---------- Policy page ---------- */
.policy-main { padding: 48px 0; min-height: 55vh; }
.policy-main h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 18px; }
.policy-content { color: var(--ink-soft); max-width: 760px; white-space: pre-line; }
.policy-back { display: inline-block; margin-top: 28px; color: var(--sea); text-decoration: none; font-weight: 600; }
.policy-back:hover { text-decoration: underline; }


/* ---------- GDPR cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cookie-inner {
  pointer-events: auto;
  background: #FFFFFF;
  border: 2px solid var(--sea);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(31, 42, 51, 0.18);
  padding: 18px 22px;
  max-width: 640px;
  width: 100%;
}
.cookie-title { font-weight: 800; margin-bottom: 6px; font-size: 1rem; }
.cookie-text { font-size: .9rem; color: var(--ink-soft); margin-bottom: 14px; }
.cookie-link { color: var(--sea); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.cookie-accept { background: var(--sea); color: #FFFFFF; }
.cookie-accept:hover { background: var(--sea-dark); }
.cookie-essential { background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); }
.cookie-essential:hover { background: var(--sand); }

/* ---------- GDPR consent checkbox ---------- */
.gdpr-row { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; }
.gdpr-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--sea);
}
.gdpr-row label { font-size: .86rem; color: var(--ink-soft); line-height: 1.45; }
.gdpr-row label a { color: var(--sea); font-weight: 600; }
.gdpr-row.invalid label { color: #C0392B; }
