/* =====================================================
   GOLDEN HOME — DESIGN SYSTEM
   Málaga · Costa del Sol
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* === CSS VARIABLES === */
:root {
  --c-black:      #080808;
  --c-dark:       #111111;
  --c-dark-2:     #181818;
  --c-dark-3:     #1E1E1E;
  --c-gold:       #C9A96E;
  --c-gold-light: #D4B87A;
  --c-gold-dark:  #A8854A;
  --c-gold-pale:  rgba(201,169,110,0.12);
  --c-off-white:  #F5F0E8;
  --c-beige:      #EAE3D8;
  --c-stone:      #9B948C;
  --c-stone-light:#C5BFB8;
  --c-white:      #FFFFFF;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --ease-luxury: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  --border-gold:  1px solid rgba(201,169,110,0.25);
  --border-light: 1px solid rgba(255,255,255,0.08);
  --border-stone: 1px solid rgba(155,148,140,0.2);

  --header-height: 80px;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-xxl: 10rem;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--c-black);
  color: var(--c-off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img    { max-width: 100%; height: auto; display: block; }
a      { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem,  4vw, 3.8rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.5rem); }

.label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
}

p { line-height: 1.75; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.container--narrow {
  max-width: 860px;
}

.section { padding: var(--space-xxl) 0; }
.section--dark  { background-color: var(--c-dark); }
.section--dark2 { background-color: var(--c-dark-2); }
.section--black { background-color: var(--c-black); }

.section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.section__header .label { display: block; margin-bottom: 1.5rem; }
.section__title {
  color: var(--c-off-white);
  font-style: italic;
  font-weight: 300;
}
.section__subtitle {
  margin-top: 1.25rem;
  color: var(--c-stone);
  font-size: 1rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   INTRO ANIMATION
   ===================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-panel {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background-color: var(--c-black);
  z-index: 10000;
  will-change: transform;
}

.intro-panel--left  { left: 0; }
.intro-panel--right { right: 0; }

.intro-panel--left.is-opening  { transition: transform 1.2s var(--ease-luxury); transform: translateX(-100%); }
.intro-panel--right.is-opening { transition: transform 1.2s var(--ease-luxury); transform: translateX(100%); }

.intro-logo {
  position: relative;
  z-index: 10001;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  animation: introLogoIn 0.9s var(--ease-out) 0.3s forwards;
  pointer-events: none;
}

.intro-logo__svg { width: 260px; height: auto; }

@keyframes introLogoIn {
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.6s ease, transform 0.6s ease,
              background-color 0.4s ease, border-color 0.4s ease,
              backdrop-filter 0.4s ease;
}

.header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.header.is-scrolled {
  background-color: rgba(8,8,8,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-gold);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__logo svg { width: 150px; height: auto; }

/* Desktop Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__item { position: relative; }

.nav__link {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--c-gold) !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-stone-light);
  transition: color 0.25s ease;
  position: relative;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background-color: var(--c-gold);
  transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link.is-active { color: var(--c-gold-light) !important; }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

/* CTA nav links — gold-tinted */
.nav__link--cta {
  color: var(--c-gold);
  font-weight: 500;
}
.nav__link--cta:hover,
.nav__link--cta.is-active { color: var(--c-gold-light); }
.nav__link--cta::after { background-color: var(--c-gold); }

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 1.2rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background-color: var(--c-dark);
  border: var(--border-gold);
  min-width: 220px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 0.7rem 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-stone-light);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav__dropdown-link:hover {
  color: var(--c-gold);
  background-color: var(--c-gold-pale);
}

/* Header right */
.header__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language selector */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.lang-btn {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-stone);
  padding: 0.2rem 0.35rem;
  transition: color 0.2s ease;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
}

.lang-btn.is-active {
  color: var(--c-gold);
  border-bottom-color: var(--c-gold);
}

.lang-btn:hover:not(.is-active) { color: var(--c-off-white); }

.lang-sep {
  color: var(--c-stone);
  font-size: 0.55rem;
  opacity: 0.5;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background-color: var(--c-off-white);
  transition: all 0.35s var(--ease-smooth);
}

.nav__toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; transform: translateX(-6px); }
.nav__toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile nav overlay */
.nav--mobile {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--c-black);
  z-index: 998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav--mobile.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav--mobile .nav__link {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--c-off-white);
}

.nav--mobile .nav__link::after { display: none; }

.nav--mobile .lang-selector { margin-top: 1rem; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn--gold {
  background-color: var(--c-gold);
  color: var(--c-black);
  border: 1px solid var(--c-gold);
}

.btn--gold:hover {
  background-color: var(--c-gold-light);
  border-color: var(--c-gold-light);
  transform: translateY(-1px);
}

.btn--outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--c-off-white);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.btn--outline-gold {
  border: 1px solid var(--c-gold);
  color: var(--c-gold);
  background: transparent;
}

.btn--outline-gold:hover {
  background-color: var(--c-gold);
  color: var(--c-black);
}

.btn--dark {
  background-color: var(--c-dark);
  color: var(--c-off-white);
  border: 1px solid var(--c-dark);
}

.btn--dark:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 2s var(--ease-smooth);
  will-change: transform;
}

.hero__bg.is-zoomed { transform: scale(1); }

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8,8,8,0.15) 0%,
    rgba(8,8,8,0.05) 35%,
    rgba(8,8,8,0.5) 70%,
    rgba(8,8,8,0.92) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero__content--centered {
  text-align: center;
  margin: 0 auto;
}

.hero__label {
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(18px);
}

.hero__title {
  color: var(--c-white);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(18px);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--c-stone-light);
  max-width: 560px;
  line-height: 1.8;
  margin: 0 auto 2.5rem;
  opacity: 0;
  transform: translateY(18px);
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(18px);
}

/* Animate in when hero-ready class added */
.hero-ready .hero__label    { animation: fadeUp 0.75s var(--ease-out) 0.1s forwards; }
.hero-ready .hero__title    { animation: fadeUp 0.75s var(--ease-out) 0.25s forwards; }
.hero-ready .hero__subtitle { animation: fadeUp 0.75s var(--ease-out) 0.4s forwards; }
.hero-ready .hero__cta      { animation: fadeUp 0.75s var(--ease-out) 0.55s forwards; }

/* Sub-page hero (smaller) */
.hero--sub {
  height: 60vh;
  min-height: 400px;
  align-items: center;
}

.hero--sub .hero__content {
  padding-bottom: 0;
  text-align: center;
  margin: 0 auto;
  max-width: 700px;
}

.hero--sub .hero__title,
.hero--sub .hero__label,
.hero--sub .hero__subtitle {
  opacity: 1;
  transform: none;
  animation: none;
}

/* =====================================================
   STATS
   ===================================================== */
.stats {
  padding: var(--space-lg) 0;
  border-top: var(--border-gold);
  border-bottom: var(--border-gold);
  background-color: var(--c-dark);
}

.stats__label-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats__item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
}

.stats__item + .stats__item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(201,169,110,0.18);
}

.stats__number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--c-gold);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stats__desc {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-stone-light);
}

/* =====================================================
   INTERNATIONAL
   ===================================================== */
.international {
  padding: var(--space-xxl) 0;
  background-color: var(--c-black);
}

.international__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}

.international__label { margin-bottom: 2rem; }

.international__title {
  color: var(--c-off-white);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 2rem;
}

.international__text {
  color: var(--c-stone);
  line-height: 1.85;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* CSS Decorative globe */
.globe-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
}

.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.15);
}

.globe-ring:nth-child(1) { width: 360px; height: 360px; border-color: rgba(201,169,110,0.08); }
.globe-ring:nth-child(2) { width: 260px; height: 260px; border-color: rgba(201,169,110,0.14); }
.globe-ring:nth-child(3) { width: 160px; height: 160px; border-color: rgba(201,169,110,0.20); background: rgba(201,169,110,0.04); }

.globe-number {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 300;
  color: var(--c-gold);
  opacity: 0.35;
  line-height: 1;
}

/* =====================================================
   WHY US
   ===================================================== */
.why-us {
  padding: var(--space-xxl) 0;
  background-color: var(--c-dark);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--border-gold);
  margin-top: 4rem;
}

.why-us__item {
  padding: 2.75rem;
  border-right: var(--border-gold);
  border-bottom: var(--border-gold);
  transition: background-color 0.3s ease;
}

.why-us__item:nth-child(3n)  { border-right: none; }
.why-us__item:nth-last-child(-n+3):nth-child(3n+1),
.why-us__item:nth-last-child(-n+3):nth-child(3n+2),
.why-us__item:nth-last-child(-n+3):nth-child(3n)  { border-bottom: none; }
.why-us__item:nth-last-child(1),
.why-us__item:nth-last-child(2),
.why-us__item:nth-last-child(3) { border-bottom: none; }

.why-us__item:hover { background-color: var(--c-gold-pale); }

.why-us__icon {
  width: 32px;
  height: 32px;
  color: var(--c-gold);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.why-us__item-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--c-off-white);
  margin-bottom: 0.75rem;
}

.why-us__item-text {
  font-size: 0.9rem;
  color: var(--c-stone);
  line-height: 1.75;
}

/* =====================================================
   PARTNERS MARQUEE
   ===================================================== */
.partners {
  padding: var(--space-lg) 0;
  background-color: var(--c-black);
  border-top: var(--border-gold);
  border-bottom: var(--border-gold);
  overflow: hidden;
}

.partners__label-wrap {
  text-align: center;
  margin-bottom: 2.5rem;
}

.marquee-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  height: 64px;
  border-right: var(--border-stone);
  filter: grayscale(1) brightness(0.4);
  transition: filter 0.35s ease;
  cursor: default;
  flex-shrink: 0;
}

.marquee-item:hover { filter: grayscale(0) brightness(1); }

.marquee-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-off-white);
  white-space: nowrap;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   FORM SECTION
   ===================================================== */
.form-section {
  padding: var(--space-xxl) 0;
  background-color: var(--c-dark-2);
}

.form-section__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 7rem;
  align-items: start;
}

.form-section__info .label { display: block; margin-bottom: 1.75rem; }

.form-section__title {
  color: var(--c-off-white);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.form-section__text {
  color: var(--c-stone);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.form-section__promise {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-promise-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-promise-item__dot {
  width: 4px;
  height: 4px;
  background-color: var(--c-gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.form-promise-item__text {
  font-size: 0.88rem;
  color: var(--c-stone-light);
  line-height: 1.6;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form__label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-stone);
}

.form__input,
.form__select,
.form__textarea {
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--c-off-white);
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--c-gold);
  background-color: rgba(201,169,110,0.04);
}

.form__input::placeholder,
.form__textarea::placeholder { color: var(--c-stone); opacity: 0.7; }

.form__select option {
  background-color: var(--c-dark);
  color: var(--c-off-white);
}

.form__select-wrap {
  position: relative;
}

.form__select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--c-stone);
  pointer-events: none;
}

.form__textarea { resize: vertical; min-height: 100px; }

.form__success {
  display: none;
  padding: 3.5rem 2.5rem;
  border: var(--border-gold);
  background: linear-gradient(135deg, var(--c-dark) 0%, rgba(201,169,110,0.06) 100%);
  text-align: center;
}

.form__success.is-visible {
  display: block;
  animation: formSuccessIn 0.7s var(--ease-out) forwards;
}

@keyframes formSuccessIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form__success-check {
  width: 64px;
  height: 64px;
  border: 1px solid var(--c-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--c-gold);
  animation: checkIn 0.5s var(--ease-out) 0.3s both;
}

@keyframes checkIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.form__success-check svg {
  width: 26px;
  height: 26px;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck 0.5s var(--ease-out) 0.6s forwards;
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.form__success-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  color: var(--c-gold);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.form__success-body {
  font-size: 0.95rem;
  color: var(--c-stone-light);
  line-height: 1.85;
  max-width: 400px;
  margin: 0 auto;
}

/* =====================================================
   TESTIMONIALS — Infinite Carousel
   ===================================================== */
.testimonials {
  padding: var(--space-xxl) 0 0;
  background-color: var(--c-black);
  overflow: hidden;
}

.testimonials .section__header {
  margin-bottom: 4rem;
}

/* Carousel wrapper with fade edges */
.testimonials-carousel {
  overflow: hidden;
  padding: 0.5rem 0 var(--space-xxl);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Scrolling track — duplicated cards for seamless loop */
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  width: fit-content;
  animation: testimonialScroll 55s linear infinite;
  will-change: transform;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes testimonialScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Individual card */
.testimonial-card {
  flex-shrink: 0;
  width: 380px;
  padding: 2.5rem;
  border: var(--border-gold);
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
  transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
  cursor: default;
}

.testimonial-card:hover {
  background: linear-gradient(135deg, var(--c-dark-2) 0%, rgba(201,169,110,0.06) 100%);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,169,110,0.2);
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1.25rem;
}

.star-icon {
  width: 13px;
  height: 13px;
  fill: var(--c-gold);
  color: var(--c-gold);
}

.testimonial-card__text {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 300;
  color: var(--c-off-white);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.testimonial-card__divider {
  width: 28px;
  height: 1px;
  background-color: var(--c-gold);
  margin-bottom: 1.25rem;
}

.testimonial-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-off-white);
  letter-spacing: 0.04em;
}

.testimonial-card__role {
  font-size: 0.72rem;
  color: var(--c-stone);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* =====================================================
   CTA BAND
   ===================================================== */
.cta-band {
  padding: var(--space-xl) 0;
  background-color: var(--c-dark-2);
  border-top: var(--border-gold);
  text-align: center;
}

.cta-band__title {
  color: var(--c-off-white);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.cta-band__subtitle {
  color: var(--c-stone);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* =====================================================
   PAGE CONTENT (inner pages)
   ===================================================== */
.page-section {
  padding: var(--space-xxl) 0;
}

.page-section + .page-section {
  border-top: var(--border-light);
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h2 {
  margin-bottom: 1.5rem;
  color: var(--c-off-white);
  font-style: italic;
  font-weight: 300;
}

.content-block h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--c-gold);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.content-block p {
  color: var(--c-stone-light);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.content-block ul {
  margin-bottom: 1.25rem;
}

.content-block ul li {
  color: var(--c-stone-light);
  font-size: 0.95rem;
  line-height: 1.75;
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.85rem;
  width: 5px; height: 1px;
  background-color: var(--c-gold);
}

/* About page feature blocks */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: var(--space-lg);
}

.about-block {
  padding: 2.5rem;
  border: var(--border-gold);
  transition: background-color 0.3s ease;
}

.about-block:hover { background-color: var(--c-gold-pale); }

.about-block__label {
  display: block;
  margin-bottom: 1.25rem;
}

.about-block__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 300;
  color: var(--c-off-white);
  margin-bottom: 1rem;
}

.about-block__text {
  color: var(--c-stone);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* Zones grid (Vivir en Málaga) */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: var(--border-gold);
  margin-top: var(--space-lg);
}

.zone-card {
  padding: 2rem 1.5rem;
  border-right: var(--border-gold);
  border-bottom: var(--border-gold);
  transition: background-color 0.3s ease;
  cursor: default;
}

.zone-card:nth-child(4n) { border-right: none; }
.zone-card:nth-last-child(-n+4) { border-bottom: none; }

.zone-card:hover { background-color: var(--c-gold-pale); }

.zone-card__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--c-off-white);
  margin-bottom: 0.5rem;
}

.zone-card__desc {
  font-size: 0.82rem;
  color: var(--c-stone);
  line-height: 1.6;
}

/* Why Málaga list */
.malaga-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: var(--space-lg);
}

.malaga-reason {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.malaga-reason__icon {
  width: 28px;
  height: 28px;
  color: var(--c-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.malaga-reason__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--c-off-white);
  margin-bottom: 0.4rem;
}

.malaga-reason__text {
  font-size: 0.85rem;
  color: var(--c-stone);
  line-height: 1.6;
}

/* Guide steps */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-lg);
  border: var(--border-gold);
}

.guide-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2.5rem;
  padding: 2.5rem;
  border-bottom: var(--border-gold);
  transition: background-color 0.3s ease;
  align-items: start;
}

.guide-step:last-child { border-bottom: none; }
.guide-step:hover { background-color: var(--c-gold-pale); }

.guide-step__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--c-gold);
  opacity: 0.35;
  line-height: 1;
}

.guide-step__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--c-off-white);
  margin-bottom: 0.75rem;
}

.guide-step__text {
  color: var(--c-stone);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.contact-info__title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 300;
  color: var(--c-off-white);
  margin-bottom: 1.5rem;
}

.contact-info__text {
  color: var(--c-stone);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail__icon {
  width: 20px;
  height: 20px;
  color: var(--c-gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-detail__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-stone);
  margin-bottom: 0.2rem;
}

.contact-detail__value {
  font-size: 0.95rem;
  color: var(--c-off-white);
}

.contact-detail__value a:hover { color: var(--c-gold); }

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border: var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.social-link:hover {
  border-color: var(--c-gold);
  background-color: var(--c-gold-pale);
}

.social-link svg {
  width: 15px;
  height: 15px;
  color: var(--c-stone-light);
  transition: color 0.3s ease;
}

.social-link:hover svg { color: var(--c-gold); }

/* Map placeholder */
.map-placeholder {
  height: 220px;
  border: var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
  margin-top: 2rem;
  color: var(--c-stone);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Legal pages */
.legal-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
  padding: var(--space-xxl) 0;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.legal-nav__title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1.25rem;
}

.legal-nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-nav__link {
  font-size: 0.82rem;
  color: var(--c-stone);
  padding: 0.35rem 0;
  transition: color 0.2s ease;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
}

.legal-nav__link:hover,
.legal-nav__link.is-active {
  color: var(--c-off-white);
  border-left-color: var(--c-gold);
}

.legal-content h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.legal-content .last-updated {
  font-size: 0.78rem;
  color: var(--c-stone);
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
  text-transform: uppercase;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  padding: var(--space-xl) 0 var(--space-md);
  background-color: var(--c-dark);
  border-top: var(--border-gold);
}

.footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: var(--space-lg);
}

.footer__logo { margin-bottom: 1.5rem; }
.footer__logo svg { width: 130px; }

.footer__tagline {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--c-stone);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.footer__social {
  display: flex;
  gap: 0.65rem;
}

.footer__social-link {
  width: 36px; height: 36px;
  border: var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.footer__social-link:hover {
  border-color: var(--c-gold);
  background-color: var(--c-gold-pale);
}

.footer__social-link svg {
  width: 14px; height: 14px;
  color: var(--c-stone-light);
  transition: color 0.3s ease;
}

.footer__social-link:hover svg { color: var(--c-gold); }

.footer__col-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1.5rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--c-stone);
  transition: color 0.2s ease;
  line-height: 1.5;
}

.footer__link:hover { color: var(--c-off-white); }

.footer__bottom {
  padding-top: var(--space-md);
  border-top: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copyright {
  font-size: 0.78rem;
  color: var(--c-stone);
}

.footer__legal {
  display: flex;
  gap: 1.75rem;
}

.footer__legal-link {
  font-size: 0.78rem;
  color: var(--c-stone);
  transition: color 0.2s ease;
}

.footer__legal-link:hover { color: var(--c-off-white); }

/* =====================================================
   WHATSAPP FAB
   ===================================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 54px;
  height: 54px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.45);
}

.whatsapp-fab svg { width: 26px; height: 26px; color: #fff; }

/* =====================================================
   COOKIE BANNER
   ===================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background-color: var(--c-dark);
  border-top: var(--border-gold);
  padding: 1.25rem 2rem;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-out);
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__text {
  font-size: 0.84rem;
  color: var(--c-stone-light);
  line-height: 1.6;
}

.cookie-banner__text a { color: var(--c-gold); text-decoration: underline; }

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate][data-delay="1"] { transition-delay: 0.08s; }
[data-animate][data-delay="2"] { transition-delay: 0.16s; }
[data-animate][data-delay="3"] { transition-delay: 0.24s; }
[data-animate][data-delay="4"] { transition-delay: 0.32s; }
[data-animate][data-delay="5"] { transition-delay: 0.40s; }
[data-animate][data-delay="6"] { transition-delay: 0.48s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
  .footer__main { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .international__grid { gap: 4rem; }
}

@media (max-width: 1024px) {
  :root { --space-xxl: 7rem; }
  .nav { display: none; }
  .lang-selector { display: none; }
  .nav__toggle { display: flex; }
  .nav--mobile { display: flex; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item + .stats__item::before { display: none; }
  .international__grid { grid-template-columns: 1fr; }
  .globe-visual { height: 260px; }
  .why-us__grid { grid-template-columns: 1fr 1fr; }
  .why-us__item:nth-child(3n) { border-right: var(--border-gold); }
  .why-us__item:nth-child(2n) { border-right: none; }
  .form-section__grid { grid-template-columns: 1fr; gap: 3rem; }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .testimonial-card:last-child { grid-column: span 2; border-right: none; }
  .about-grid { grid-template-columns: 1fr; }
  .zones-grid { grid-template-columns: repeat(3, 1fr); }
  .zone-card:nth-child(4n) { border-right: var(--border-gold); }
  .zone-card:nth-child(3n) { border-right: none; }
  .malaga-reasons { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-xxl: 5.5rem;
    --header-height: 65px;
  }

  .container { padding: 0 1.5rem; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .why-us__grid { grid-template-columns: 1fr; }
  .why-us__item { border-right: none !important; }
  .form__row { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .testimonial-card { border-right: none; grid-column: auto !important; }
  .footer__main { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__legal { flex-wrap: wrap; justify-content: center; }
  .zones-grid { grid-template-columns: 1fr 1fr; }
  .zone-card:nth-child(3n) { border-right: var(--border-gold); }
  .zone-card:nth-child(2n) { border-right: none; }
  .malaga-reasons { grid-template-columns: 1fr; }
  .guide-step { grid-template-columns: 50px 1fr; gap: 1.5rem; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__cta .btn { width: 100%; max-width: 320px; }
  .zones-grid { grid-template-columns: 1fr; }
  .zone-card { border-right: none !important; }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-animate] { opacity: 1; transform: none; }
  .hero__label, .hero__title, .hero__subtitle, .hero__cta {
    opacity: 1; transform: none; animation: none;
  }
  .hero__bg { transform: scale(1); }
  .marquee-track { animation: none; }
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-gold    { color: var(--c-gold); }
.text-center  { text-align: center; }
.italic       { font-style: italic; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.divider-gold {
  width: 48px;
  height: 1px;
  background-color: var(--c-gold);
  margin: 2rem auto;
}

.divider-gold--left { margin-left: 0; }
