:root {
  --navy: #0b3141;
  --ocean: #0b627e;
  --sea: #1b829b;
  --sky: #b8e0e6;
  --sand: #d4a45f;
  --cream: #f5f1e9;
  --white: #ffffff;
  --ink: #16303a;
  --muted: #62737a;
  --line: rgba(15, 49, 65, 0.14);
  --shadow: 0 18px 50px rgba(9, 47, 61, 0.12);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(3rem, 7vw, 6.6rem);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
}

h3 {
  font-size: 1.75rem;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 112px 0;
}

.section-soft {
  background: var(--cream);
}

.section-dark {
  color: var(--white);
  background: var(--navy);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 26px rgba(9, 47, 61, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: var(--white);
  font-family: Georgia, serif;
  font-weight: 700;
}

.brand-text {
  display: grid;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: 0.12em;
}

.brand-text strong {
  font-size: 0.88rem;
}

.brand-text small {
  margin-top: 5px;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
}

.site-header.scrolled .brand-mark {
  border-color: var(--navy);
  color: var(--navy);
}

.site-header.scrolled .brand-text {
  color: var(--navy);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--white);
}

.main-nav > a:not(.button) {
  position: relative;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  background: currentColor;
  transition: transform 180ms ease;
}

.main-nav > a:not(.button):hover::after {
  transform: scaleX(1);
}

.site-header.scrolled .main-nav {
  color: var(--navy);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  width: 100%;
  height: 2px;
  display: block;
  margin: 5px 0;
  background: var(--white);
}

.site-header.scrolled .menu-toggle span:not(.sr-only) {
  background: var(--navy);
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  color: #102d37;
  background: var(--sand);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: #e0b36f;
  background: #e0b36f;
}

.button-small {
  min-height: 42px;
  padding: 10px 18px;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.button-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.button-outline:hover {
  color: var(--white);
  background: var(--navy);
}

.full-width {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: flex-end;
  padding: 180px 0 96px;
  overflow: hidden;
  background: url("../img/hero-costa-brava.webp") center 42% / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 31, 43, 0.92) 0%, rgba(4, 31, 43, 0.63) 48%, rgba(4, 31, 43, 0.12) 85%),
    linear-gradient(0deg, rgba(4, 31, 43, 0.56) 0%, transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--sky);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--ocean);
}

.hero-description {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin: 42px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  list-style: none;
}

.hero-trust li::before {
  margin-right: 9px;
  color: var(--sand);
  content: "✓";
  font-weight: 900;
}

.split-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 90px;
}

.intro h2 {
  margin-bottom: 0;
}

.intro-copy {
  padding-top: 10px;
  font-size: 1.12rem;
}

.intro-copy p {
  margin-bottom: 20px;
}

.service-area-note {
  padding: 18px 20px;
  border-left: 3px solid var(--sand);
  background: var(--cream);
  font-weight: 700;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 58px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 16px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.1rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  min-height: 310px;
  padding: 30px;
  border: 1px solid rgba(11, 49, 65, 0.08);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 38px rgba(9, 47, 61, 0.05);
}

.step-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 62px;
  border-radius: 50%;
  color: var(--white);
  background: var(--ocean);
  font-size: 0.76rem;
  font-weight: 800;
}

.step-card h3 {
  margin-bottom: 14px;
  font-size: 1.55rem;
}

.step-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.plans-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.plan-card.featured {
  transform: translateY(-16px);
  border-color: var(--ocean);
  box-shadow: var(--shadow);
}

.plan-badge {
  position: absolute;
  top: 0;
  right: 24px;
  padding: 8px 14px;
  transform: translateY(-50%);
  border-radius: 999px;
  color: var(--white);
  background: var(--ocean);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-header {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.plan-header p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plan-header h3 {
  margin-bottom: 15px;
  font-size: 2.15rem;
}

.plan-header strong {
  color: var(--ocean);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.plan-card ul {
  flex: 1;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
}

.plan-card li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 25px;
  color: #40545c;
  font-size: 0.94rem;
}

.plan-card li::before {
  position: absolute;
  left: 0;
  color: var(--ocean);
  content: "✓";
  font-weight: 900;
}

.legal-note {
  max-width: 760px;
  margin: 34px auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.experience-section {
  min-height: 710px;
  display: grid;
  color: var(--white);
  background: var(--ocean);
  grid-template-columns: 1fr 1fr;
}

.experience-image {
  min-height: 560px;
  background:
    linear-gradient(rgba(4, 31, 43, 0.1), rgba(4, 31, 43, 0.1)),
    url("../img/vida-local.webp") center / cover no-repeat;
}

.experience-content {
  max-width: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 9vw 90px 7vw;
}

.experience-content h2 {
  margin-bottom: 24px;
}

.experience-content > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.06rem;
}

.extras-list {
  display: grid;
  margin: 28px 0 34px;
  padding: 0;
  gap: 13px;
  list-style: none;
}

.extras-list li {
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.extras-list li::before {
  margin-right: 10px;
  color: var(--sand);
  content: "•";
}

.text-link {
  width: fit-content;
  color: var(--white);
  font-weight: 800;
  text-decoration-color: var(--sand);
  text-underline-offset: 6px;
}

.city-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 76px;
}

.city-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.city-image img {
  width: 100%;
  min-height: 500px;
  object-fit: cover;
}

.city-grid p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
}

.safety-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 90px;
}

.safety-grid p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
}

.checks-grid {
  display: grid;
  margin-top: 34px;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checks-grid span {
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  font-weight: 700;
}

.checks-grid span::before {
  margin-right: 8px;
  color: var(--sand);
  content: "✓";
}

.contact-section {
  background: linear-gradient(135deg, #eef7f8 0%, #ffffff 58%);
}

.contact-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.contact-grid > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
}

.contact-direct {
  display: grid;
  margin-top: 36px;
  gap: 7px;
}

.contact-direct a {
  width: fit-content;
  color: var(--ocean);
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-direct span {
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-form {
  padding: 34px;
  border: 1px solid rgba(11, 98, 126, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 0.83rem;
  font-weight: 800;
  gap: 8px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cad9dd;
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fbfdfd;
}

input,
select {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  min-height: 130px;
  padding: 13px 14px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(11, 98, 126, 0.11);
}

.consent {
  display: grid !important;
  align-items: start;
  grid-template-columns: 20px 1fr;
  gap: 10px !important;
  color: var(--muted) !important;
  font-size: 0.77rem !important;
  font-weight: 400 !important;
}

.consent input {
  min-height: 0;
  margin: 3px 0 0;
}

.consent a {
  color: var(--ocean);
}

.site-footer {
  padding: 58px 0 24px;
  color: rgba(255, 255, 255, 0.78);
  background: #071f29;
}

.footer-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
}

.footer-brand .brand-mark {
  color: var(--white);
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
}

.footer-links a {
  text-decoration: none;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
}

.whatsapp-float {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--white);
  background: #168b55;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1020px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 390px);
    height: 100vh;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    padding: 110px 28px 40px;
    transform: translateX(105%);
    color: var(--navy);
    background: var(--white);
    box-shadow: -16px 0 40px rgba(7, 31, 41, 0.12);
    transition: transform 220ms ease;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav > a:not(.button) {
    padding: 10px 0;
    font-size: 1.05rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 110;
    display: block;
  }

  .menu-toggle.active span:not(.sr-only) {
    background: var(--navy);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.featured {
    transform: none;
  }

  .experience-section {
    grid-template-columns: 1fr;
  }

  .experience-image {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 80px 0;
  }

  .header-inner {
    min-height: 72px;
  }

  .hero {
    min-height: 760px;
    padding: 150px 0 64px;
    background-position: 58% center;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-trust {
    align-items: flex-start;
    flex-direction: column;
  }

  .split-grid,
  .city-grid,
  .safety-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: auto;
  }

  .step-card > span {
    margin-bottom: 40px;
  }

  .experience-content {
    padding: 72px 24px;
  }

  .city-image img {
    min-height: 380px;
  }

  .checks-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .footer-grid {
    justify-items: start;
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }
}
