:root {
  --sand: #f4eadb;
  --sand-light: #fbf7ef;
  --white: #ffffff;
  --ink: #17313a;
  --muted: #5f7378;
  --blue: #0f6b7a;
  --blue-deep: #0a4858;
  --aqua: #d8f0ed;
  --green: #6d8f7b;
  --line: rgba(23, 49, 58, 0.14);
  --shadow: 0 24px 70px rgba(12, 61, 74, 0.13);
  --radius: 8px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--sand-light);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

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

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.05;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 5.4vw, 4.2rem);
}

h3 {
  font-size: 1.08rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 34px rgba(8, 51, 65, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 72vw;
  font-weight: 800;
  line-height: 1.15;
}

.brand-mark {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-family: var(--serif);
  font-weight: 700;
}

.site-nav {
  display: none;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-deep);
}

.site-nav a:hover {
  color: var(--blue);
}

.nav-whatsapp,
.button,
.footer-whatsapp,
.floating-whatsapp,
.booking-button {
  min-height: 44px;
}

.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  color: var(--white) !important;
  background: #1f9d61;
  border-radius: 999px;
}

.menu-toggle {
  display: inline-grid;
  width: 2.8rem;
  height: 2.8rem;
  place-content: center;
  gap: 0.28rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.menu-toggle span:not(.sr-only) {
  width: 1.1rem;
  height: 2px;
  background: var(--blue-deep);
}

.section {
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1rem, 4vw, 4rem);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
  background: var(--blue-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 43, 53, 0.78), rgba(7, 43, 53, 0.42) 48%, rgba(7, 43, 53, 0.08)),
    linear-gradient(0deg, rgba(7, 43, 53, 0.64), transparent 52%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding: clamp(1rem, 4vw, 2.5rem) 0;
}

.location-label,
.section-kicker {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .location-label,
.hero h1,
.hero .hero-copy {
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.hero-copy {
  max-width: 780px;
  margin-top: 1rem;
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.hero-actions,
.final-actions {
  margin-top: 1.2rem;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1.15;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

booking-button {
  display: inline-flex;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: #1f9d61;
  box-shadow: 0 14px 28px rgba(20, 126, 79, 0.26);
}

.button-secondary {
  color: var(--blue-deep);
  background: var(--white);
  border-color: rgba(15, 107, 122, 0.22);
}

.button-booking {
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 107, 122, 0.28);
  box-shadow: 0 10px 24px rgba(8, 51, 65, 0.12);
}

.button-booking::after {
  content: "↗";
  font-size: 0.92em;
  font-weight: 900;
}

.button-large {
  padding: 1rem 1.4rem;
  font-size: 1.05rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 1.1rem 0 0;
  list-style: none;
}

.hero-badges li {
  padding: 0.48rem 0.78rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 0.88rem;
  font-weight: 800;
}

.section-grid,
.benefit-layout,
.beach-card {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 1180px;
  margin: 0 auto;
}

.section-grid {
  align-items: center;
}

.section-grid > div > p,
.section-heading p,
.beach-card p,
.final-cta p {
  max-width: 760px;
  font-size: 1.03rem;
}

.section-heading {
  max-width: 940px;
  margin: 0 auto clamp(1.5rem, 4vw, 3rem);
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  align-items: end;
  gap: 0.8rem;
}

.image-stack img,
.benefit-layout > img,
.beach-card img,
.location-image,
.gallery-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-stack img:first-child {
  aspect-ratio: 4 / 5;
}

.image-stack img:last-child {
  aspect-ratio: 3 / 4;
  margin-bottom: 2rem;
}

.soft-band {
  background:
    linear-gradient(180deg, rgba(216, 240, 237, 0.6), rgba(244, 234, 219, 0.64)),
    var(--sand);
}

.benefit-layout > img {
  aspect-ratio: 4 / 5;
}

.benefit-cards,
.services-grid,
.things-grid {
  display: grid;
  gap: 0.9rem;
}

.benefit-card,
.services-grid article,
.things-grid article,
.faq-list details {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 107, 122, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(12, 61, 74, 0.08);
}

.benefit-card {
  padding: 1.25rem;
}

.benefit-card .icon {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  margin-bottom: 0.8rem;
  color: var(--blue-deep);
  background: var(--aqua);
  border-radius: 50%;
  font-weight: 900;
}

.beach-section {
  background: var(--white);
}

.beach-card {
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(135deg, var(--sand-light), #e7f5f3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.beach-card img {
  aspect-ratio: 4 / 4.5;
}

.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  max-width: 1180px;
  margin: 0 auto;
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
}

.gallery-grid img:nth-child(4) {
  object-position: center 38%;
}

.services-grid {
  max-width: 1180px;
  margin: 0 auto;
}

.services-grid article {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 84px;
  padding: 1rem;
  color: var(--blue-deep);
  font-weight: 850;
}

.services-grid span {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
}

.service-note {
  max-width: 1180px;
  margin: 1.3rem auto 0;
  font-size: 0.95rem;
}

.location-section {
  background: var(--sand-light);
}

.location-image {
  aspect-ratio: 4 / 3.4;
}

.nearby-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  padding: 0;
  margin: 1.2rem 0 1.4rem;
  list-style: none;
}

.nearby-list li {
  padding: 0.75rem 0.9rem;
  color: var(--blue-deep);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.things-grid,
.faq-list {
  max-width: 1180px;
  margin: 0 auto;
}

.things-grid article {
  min-height: 190px;
  padding: 1.35rem;
}

.things-grid h3 {
  margin-bottom: 0.65rem;
  color: var(--blue-deep);
  font-family: var(--serif);
  font-size: 1.45rem;
}

.faq-section {
  background: var(--white);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  padding: 1rem 1.1rem;
}

.faq-list summary {
  cursor: pointer;
  color: var(--blue-deep);
  font-weight: 850;
}

.faq-list p {
  margin: 0.85rem 0 0;
}

.final-cta {
  padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 4vw, 4rem);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(10, 72, 88, 0.94), rgba(15, 107, 122, 0.78)),
    url("public/images/playa-alcossebre-cerca-los-jazmines.jpg") center / cover;
}

.final-cta > div {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.final-cta h2,
.final-cta p,
.final-cta .section-kicker {
  color: var(--white);
}

.final-cta p {
  margin-right: auto;
  margin-left: auto;
}

.final-actions {
  justify-content: center;
}

.final-actions .button-booking {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: none;
}

.booking-availability {
  background: var(--white);
}

.booking-availability-card {
  display: grid;
  gap: 1.2rem;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: linear-gradient(135deg, var(--sand-light), #e7f5f3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.booking-availability-card h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.booking-availability-card p {
  max-width: 720px;
}

.booking-widget-placeholder {
  display: none;
}

.site-footer {
  display: grid;
  gap: 1.3rem;
  padding: 2.5rem clamp(1rem, 4vw, 4rem) 6rem;
  color: rgba(255, 255, 255, 0.86);
  background: #082f3a;
}

.site-footer h2 {
  margin-bottom: 0.5rem;
  color: var(--white);
  font-size: 1.5rem;
}

.site-footer p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--white);
  font-weight: 850;
}

.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1.08rem;
  color: var(--white);
  background: #1f9d61;
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(6, 72, 45, 0.28);
  font-weight: 900;
}

@media (max-width: 899px) {
  .site-nav {
    position: fixed;
    inset: 4.55rem 1rem auto;
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.7rem 0.45rem;
  }

  .nav-whatsapp {
    margin-top: 0.35rem;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  booking-button {
    width: 100%;
  }

  .floating-whatsapp {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.78rem 0.9rem;
    font-size: 0.9rem;
  }

  .hero-badges {
    padding-right: 6.25rem;
  }

  .hero-badges li {
    font-size: 0.82rem;
  }
}

@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .things-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nearby-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 1.6vw, 1.4rem);
  }

  .section-grid,
  .benefit-layout,
  .beach-card {
    grid-template-columns: 1fr 1fr;
  }

  .reverse > img {
    order: -1;
  }

  .benefit-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-grid img {
    height: 100%;
  }

  .gallery-grid img:first-child {
    grid-row: span 2;
  }

  .gallery-grid img:nth-child(4) {
    grid-row: span 2;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .booking-availability-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .site-footer {
    grid-template-columns: 1.4fr auto auto;
    align-items: start;
  }
}

@media (min-width: 1180px) {
  .hero {
    padding-right: 6rem;
    padding-left: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
