/*
Theme Name: Rosmarinus Living
Theme URI:
Author:
Author URI:
Description: Theme a medida de WordPress para Rosmarinus Living — asesoría inmobiliaria premium en Costa Blanca Norte.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rosmarinus-living
*/

/* =====================================================================
   1. RESET & BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Color */
  --rl-cream-1: #F8F7F3;
  --rl-cream-2: #F1EDE4;
  --rl-cream-3: #EFE9DF;
  --rl-ink: #26261F;
  --rl-ink-soft: #4E4D45;
  --rl-ink-faint: #5C5B52;
  --rl-ink-faint-2: #6B6A60;
  --rl-border: #E4DFD3;
  --rl-placeholder-bg: #DCD6CA;

  --rl-green: #334835;
  --rl-green-light: #9FAA96;
  --rl-green-lighter: #8F9C86;
  --rl-cta-bg: #7A8E69;
  --rl-cream-text: #F4F2EA;
  --rl-cream-text-soft: #C9CFC2;

  /* Type */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 350ms;
  --dur-reveal: 950ms;
  --dur-settle: 1300ms;

  /* Layout */
  --container-max: 1050px;
  --container-pad: clamp(20px, 9.2vw, 176px);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--rl-cream-1);
  color: var(--rl-ink);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link.screen-reader-text:focus {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  clip: auto;
  background: var(--rl-ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 2px;
}

:focus-visible {
  outline: 2px solid var(--rl-green);
  outline-offset: 3px;
}

/* =====================================================================
   2. TYPOGRAPHY UTILITIES
   ===================================================================== */
.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--rl-ink-faint);
  margin: 0 0 26px;
  text-transform: uppercase;
}
.eyebrow--light { color: #EDE7DC; }
.eyebrow--dark { color: var(--rl-green-light); letter-spacing: 0.24em; }

.h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(31px, 4.5vw, 48px);
  line-height: 1.14;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.h2--dark { color: var(--rl-cream-text); }

.h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 27px);
  line-height: 1.28;
  margin: 0 0 14px;
}
.h3--dark { color: var(--rl-cream-text); }

.lead {
  font-size: clamp(15.5px, 1.6vw, 17px);
  line-height: 1.85;
  font-weight: 300;
  color: var(--rl-ink-soft);
  margin: 0 0 22px;
}
.lead:last-child { margin-bottom: 0; }
.lead p { margin: 0 0 1.2em; }
.lead p:last-child { margin-bottom: 0; }
.lead--narrow { max-width: 480px; }
.lead--wide { max-width: 620px; }

/* =====================================================================
   3. LAYOUT
   ===================================================================== */
.rl-container {
  width: min(var(--container-max), calc(100% - clamp(40px, 10vw, 120px)));
  margin: 0 auto;
}

.section { padding: clamp(64px, 8vw, 118px) 0; background: var(--rl-cream-1); }
.section--alt-1 { background: var(--rl-cream-2); }
.section--alt-2 { background: var(--rl-cream-3); }
.section--dark { background: var(--rl-green); color: var(--rl-cream-text); padding: clamp(70px, 8.4vw, 126px) 0 clamp(76px, 9vw, 140px); }

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: clamp(36px, 4vw, 58px);
}
.section-heading--areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(34px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(42px, 4.6vw, 64px);
}
.section-heading--areas > div:last-child { padding-top: clamp(0px, 3vw, 44px); }

/* Encabezado de páginas dedicadas (properties, areas, how-we-work, services, about) —
   .site-main ya deja espacio para el header fijo, así que esta primera
   sección no necesita repetir el padding-top grande de .section. */
.page-intro { padding-top: clamp(8px, 1.5vw, 20px); padding-bottom: clamp(20px, 3vw, 36px); }
.page-intro__content {
  font-size: clamp(15.5px, 1.6vw, 16.5px);
  line-height: 1.85;
  font-weight: 300;
  color: var(--rl-ink-soft);
  max-width: 640px;
  margin-top: 18px;
}
.page-intro__content p { margin: 0 0 1.2em; }
.page-intro__content p:last-child { margin-bottom: 0; }

/* =====================================================================
   4. BUTTONS & LINKS
   ===================================================================== */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  font-weight: 500;
  padding: 19px 34px;
  text-transform: uppercase;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), letter-spacing var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn:hover { letter-spacing: 0.2em; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--solid {
  background: var(--rl-green);
  color: var(--rl-cream-text);
}
.btn--solid:hover { background: #2A3B2C; box-shadow: 0 10px 24px -8px rgba(51, 72, 53, 0.55); }

.btn--outline {
  border: 1px solid rgba(38, 38, 31, 0.35);
  color: var(--rl-ink);
}
.btn--outline:hover { background: var(--rl-ink); color: var(--rl-cream-text); border-color: var(--rl-ink); }

.btn--outline-light {
  border: 1px solid rgba(244, 242, 234, 0.5);
  color: var(--rl-cream-text);
}
.btn--outline-light:hover { background: rgba(244, 242, 234, 0.14); border-color: rgba(244, 242, 234, 0.85); }

.link-underline {
  position: relative;
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
  padding-bottom: 7px;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.link-underline:hover { color: var(--rl-green); transform: translateY(-1px); }
.link-underline:hover::after { transform: scaleX(1.02); }
.link-underline--light { color: var(--rl-cream-text); }
.link-underline--light:hover { color: #fff; }

/* =====================================================================
   5. HEADER & NAV
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--rl-green);
  color: var(--rl-cream-text);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, 0.14); }
body:not(.has-hero) { padding-top: clamp(64px, 9vw, 96px); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: clamp(18px, 2.4vw, 26px) var(--container-pad);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: inherit;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: inherit;
}
.site-logo__wordmark { display: flex; align-items: center; }
.site-logo__svg {
  width: clamp(140px, 18vw, 200px);
  height: auto;
  color: inherit;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 30px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px clamp(16px, 1.9vw, 34px);
  font-size: clamp(10.5px, 1.05vw, 12.5px);
}
.site-nav li { list-style: none; }
.site-nav a { position: relative; transition: opacity var(--dur-fast) var(--ease); }
.site-nav a:hover { opacity: 0.7; }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a,
.site-nav a.is-current {
  font-weight: 500;
}
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after,
.site-nav .current-menu-ancestor > a::after,
.site-nav a.is-current::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
}
.site-nav__lang { opacity: 0.8; display: flex; align-items: center; gap: 5px; }
.site-nav__lang-caret { font-size: 9px; }
.site-nav__cta { letter-spacing: 0.16em; font-weight: 500; padding: 13px clamp(16px, 1.5vw, 24px); }

/* =====================================================================
   6. HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: clamp(600px, 92vh, 890px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  top: -6%; left: 0; right: 0;
  height: 112%;
  will-change: transform;
}
.hero__bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 70% center;
  transform: scale(1.08);
  animation: rl-hero-settle 2.4s var(--ease) 0.1s both;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 28, 24, 0.58) 0%, rgba(30, 28, 24, 0.28) 55%, rgba(30, 28, 24, 0.1) 100%);
}
.hero__body {
  position: relative;
  min-height: clamp(600px, 92vh, 890px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(130px, 16vh, 200px) var(--container-pad) clamp(60px, 8vh, 90px) clamp(24px, 11.2vw, 216px);
  max-width: 900px;
  color: #F7F4EE;
}

.mask-line { display: block; overflow: hidden; }
.mask-line__inner { display: block; transform: translateY(112%); }

.hero__eyebrow { margin-bottom: clamp(18px, 2vw, 26px); }
.hero__eyebrow .mask-line__inner { animation: rl-mask-up 1.1s var(--ease) 0.25s both; }

.hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 60px;
  line-height: 1.12;
  margin: 0 0 clamp(22px, 2.6vw, 34px);
  text-wrap: pretty;
}
.hero__title .mask-line__inner { animation: rl-mask-up 1.2s var(--ease) 0.42s both; }

.hero__text {
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  line-height: 1.85;
  font-weight: 300;
  margin: 0 0 clamp(30px, 3.4vw, 44px);
  max-width: 520px;
  color: #EFEBE3;
}
.hero__text .mask-line__inner { animation: rl-mask-up 1.1s var(--ease) 0.62s both; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(14px);
  animation: rl-fade-up 1s var(--ease) 0.85s forwards;
}

@keyframes rl-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rl-mask-up {
  from { transform: translateY(112%); }
  to   { transform: translateY(0); }
}
@keyframes rl-hero-settle {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__actions { animation: none; opacity: 1; transform: none; }
  .mask-line__inner { animation: none; transform: none; }
  .hero__bg-img { animation: none; transform: none; }
}

/* =====================================================================
   7. ABOUT
   ===================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 5vw, 80px);
}
.about-features { padding-top: 8px; }
.about-feature {
  border-top: 1px solid var(--rl-border);
  padding: 26px 0 30px;
}
.about-feature--last { border-bottom: 1px solid var(--rl-border); }
.about-feature p { font-size: 16px; line-height: 1.8; color: var(--rl-ink-soft); margin: 0; }

/* =====================================================================
   8. PROPERTIES
   ===================================================================== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(34px, 2.4vw, 24px) 24px;
}
.property-card { display: flex; flex-direction: column; }
.property-card__img-wrap {
  display: block;
  aspect-ratio: 666 / 499;
  overflow: hidden;
  background: var(--rl-placeholder-bg);
}
.property-card__title a:hover { opacity: 0.75; }
.property-grid__empty { color: var(--rl-ink-faint); grid-column: 1 / -1; }
.property-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.property-card:hover .property-card__img { transform: scale(1.045); }
.property-card__town { font-size: 11px; letter-spacing: 0.2em; font-weight: 500; color: var(--rl-ink-faint-2); margin: 22px 0 12px; }
.property-card__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 2.5vw, 27px); line-height: 1.25; margin: 0 0 12px; }
.property-card__price { font-size: 15px; font-weight: 300; color: var(--rl-ink-soft); margin-bottom: 20px; }
.property-card__specs { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 11.5px; letter-spacing: 0.13em; color: var(--rl-ink-faint); margin-bottom: 22px; }
.property-card__cta {
  margin-top: auto;
  border-top: 1px solid #DBD5C8;
  padding-top: 20px;
  font-size: 11.5px; letter-spacing: 0.18em; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
  text-transform: uppercase;
}
.property-card__cta span { transition: transform var(--dur-fast) var(--ease); }
.property-card__cta:hover span { transform: translateX(4px); }

/* =====================================================================
   9. PRINCIPLES ("a simpler way")
   ===================================================================== */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rl-border);
  border-left: 1px solid var(--rl-border);
  margin-top: clamp(40px, 4.4vw, 62px);
}
.principle-card {
  padding: clamp(34px, 4vw, 56px) clamp(26px, 3.4vw, 48px);
  border-right: 1px solid var(--rl-border);
  border-bottom: 1px solid var(--rl-border);
}
.principle-card p { font-size: 15.5px; line-height: 1.85; color: var(--rl-ink-soft); margin: 0; }

/* =====================================================================
   10. HOW WE WORK (steps)
   ===================================================================== */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 34px 0;
  margin-top: clamp(46px, 5.2vw, 74px);
}
.step { border-left: 1px solid rgba(239, 237, 228, 0.22); padding: 0 26px 8px 22px; }
.step__n {
  font-family: var(--font-serif);
  font-size: 31px;
  color: var(--rl-green-lighter);
  margin-bottom: clamp(22px, 2.4vw, 34px);
  font-feature-settings: 'onum';
}
.step__label { font-size: 11px; letter-spacing: 0.2em; font-weight: 500; color: var(--rl-cream-text); margin-bottom: 18px; }
.step h3 { font-size: 23px; margin-bottom: 18px; }
.step p { font-size: 14px; line-height: 1.85; color: var(--rl-cream-text-soft); margin: 0; }
.step-grid__cta { margin-top: clamp(48px, 5.4vw, 76px); }

/* =====================================================================
   11. AREAS
   ===================================================================== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.area-card { display: block; position: relative; aspect-ratio: 666 / 841; overflow: hidden; background: #CFD6D9; }
.area-card__img-wrap { position: absolute; inset: 0; }
.area-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.area-card:hover .area-card__img { transform: scale(1.045); }
.area-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 26, 22, 0) 42%, rgba(20, 26, 22, 0.65) 100%);
}
.area-card__body { position: absolute; left: 30px; right: 30px; bottom: 30px; color: #F5F3EC; }
.area-card__body h3 { font-size: 29px; margin-bottom: 12px; }
.area-card__body p { font-size: 14px; line-height: 1.7; font-weight: 300; margin: 0; color: #E9E6DD; }
.area-grid__cta { display: inline-block; margin-top: clamp(38px, 4vw, 56px); }

/* =====================================================================
   12. SERVICES
   ===================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 5vw, 80px);
}
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0 34px;
  padding-top: 8px;
  align-content: start;
}
.services-list__item {
  border-bottom: 1px solid #DFD7C8;
  padding: 0 0 24px;
  margin-bottom: 26px;
  font-size: 16px;
  font-weight: 300;
  color: #3B3A33;
}
.services-note { font-size: 14px; line-height: 1.8; color: var(--rl-ink-faint); margin: clamp(36px, 3.6vw, 52px) 0 0; max-width: 620px; }

/* =====================================================================
   13. PARTNERS
   ===================================================================== */
/* =====================================================================
   14. INSIGHTS
   ===================================================================== */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(38px, 2.6vw, 34px) 34px;
}
.insight-card__img-wrap { display: block; aspect-ratio: 473 / 326; overflow: hidden; background: var(--rl-placeholder-bg); }
.insight-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.insight-card:hover .insight-card__img { transform: scale(1.045); }
.insight-card__cat { font-size: 10.5px; letter-spacing: 0.2em; font-weight: 500; color: var(--rl-ink-faint-2); margin: 22px 0 14px; }
.insight-card h3 { font-size: 25px; }
.insight-card h3 a:hover { opacity: 0.7; }
.insight-card p { font-size: 14.5px; line-height: 1.75; color: var(--rl-ink-soft); margin: 0 0 22px; }
.insight-card__meta { font-size: 11px; letter-spacing: 0.14em; color: var(--rl-ink-faint-2); }
.insight-empty { color: var(--rl-ink-faint); }
.services-list__empty { color: var(--rl-ink-faint); grid-column: 1 / -1; }
.area-grid__empty { color: var(--rl-ink-faint); grid-column: 1 / -1; }

/* =====================================================================
   15. FOOTER / CONTACT
   ===================================================================== */
.site-footer { background: var(--rl-green); color: var(--rl-cream-text); }

.footer-cta-band {
  background: var(--rl-cta-bg);
  padding: clamp(70px, 8vw, 120px) 0 clamp(56px, 7vw, 90px);
}

.footer-cta__title { font-family: var(--font-serif); font-weight: 300; font-size: clamp(33px, 4.9vw, 52px); line-height: 1.14; margin: 0 0 28px; color: var(--rl-cream-text); }
.footer-cta__text { font-size: clamp(15.5px, 1.6vw, 16.5px); line-height: 1.85; font-weight: 300; color: var(--rl-cream-text-soft); margin: 0 0 clamp(34px, 3.4vw, 46px); max-width: 560px; }
.footer-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(44px, 4vw, 60px);
  padding: clamp(56px, 7vw, 90px) 0 60px;
}
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; color: var(--rl-cream-text); }
.footer-logo__wordmark { display: flex; flex-direction: column; gap: 6px; }
.footer-logo__wordmark .site-logo__svg { width: 200px; }
.footer-logo__tagline { font-size: 9.5px; letter-spacing: 0.42em; opacity: 0.85; line-height: 1; }
.footer-tagline { font-size: 15.5px; line-height: 1.8; font-weight: 300; color: var(--rl-cream-text-soft); margin: 0 0 34px; max-width: 330px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 16px 28px; font-size: 11px; letter-spacing: 0.18em; color: #DDE1D6; text-transform: uppercase; }
.footer-social a:hover { opacity: 0.75; }

.footer-col__label { font-size: 11px; letter-spacing: 0.22em; color: var(--rl-green-light); margin-bottom: 26px; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 20px; font-size: 15.5px; font-weight: 300; color: #E4E7DD; }
.footer-links li { list-style: none; }
.footer-links a:hover { opacity: 0.75; }
.footer-links .current-menu-item > a,
.footer-links .current_page_item > a,
.footer-links a.is-current {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-note { font-size: 13px; font-weight: 300; color: var(--rl-green-light); margin: 26px 0 0; }

.footer-bottom {
  border-top: 1px solid rgba(239, 237, 228, 0.2);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 34px;
  padding: 34px 0 46px;
  font-size: 11px; letter-spacing: 0.16em; color: #C2C8B9;
}
.footer-bottom__legal { display: flex; flex-wrap: wrap; gap: 16px 34px; text-transform: uppercase; }
.footer-bottom__legal a:hover { opacity: 0.75; }
.footer-bottom__meta { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }
.footer-bottom__langs { display: flex; gap: 14px; }
.footer-bottom__langs a:hover { opacity: 0.75; }
.footer-bottom__copy { letter-spacing: 0.04em; font-size: 13px; font-weight: 300; }

/* =====================================================================
   16. SCROLL TOP
   ===================================================================== */
.scroll-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--rl-ink);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
  z-index: 90;
}
.scroll-top.is-visible { opacity: 0.9; visibility: visible; transform: translateY(0); }
.scroll-top:hover { opacity: 1; }

/* =====================================================================
   17. REVEAL-ON-SCROLL ANIMATION SYSTEM
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.99);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.reveal-group .reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.99);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
}
.reveal-group.is-visible .reveal { opacity: 1; transform: translateY(0) scale(1); }
.reveal-group.is-visible .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-group.is-visible .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-group.is-visible .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-group.is-visible .reveal:nth-child(4) { transition-delay: 300ms; }
.reveal-group.is-visible .reveal:nth-child(5) { transition-delay: 400ms; }
.reveal-group.is-visible .reveal:nth-child(6) { transition-delay: 500ms; }
.reveal-group.is-visible .reveal:nth-child(n+7) { transition-delay: 560ms; }

/* Imágenes de tarjetas: se "asientan" desde un ligero zoom al revelarse */
.property-card__img-wrap,
.area-card__img-wrap,
.insight-card__img-wrap {
  overflow: hidden;
  transform: scale(1.16);
  transition: transform var(--dur-settle) var(--ease);
}
.reveal.is-visible .property-card__img-wrap,
.reveal.is-visible .area-card__img-wrap,
.reveal.is-visible .insight-card__img-wrap,
.reveal-group.is-visible .reveal .property-card__img-wrap,
.reveal-group.is-visible .reveal .area-card__img-wrap,
.reveal-group.is-visible .reveal .insight-card__img-wrap {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group .reveal { opacity: 1; transform: none; transition: none; }
  .property-card__img-wrap, .area-card__img-wrap, .insight-card__img-wrap { transform: none; transition: none; }
}

/* =====================================================================
   18. RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .principle-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 200;
    width: min(320px, 84vw);
    height: 100vh;
    background: var(--rl-green);
    color: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px clamp(28px, 8vw, 48px);
    transform: translateX(100%);
    transition: transform var(--dur-fast) var(--ease);
    box-shadow: -8px 0 30px rgba(0,0,0,0.25);
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a, .site-nav__lang { font-size: 15px; color: #fff; opacity: 1; }
  .site-nav__cta { margin-top: 10px; }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 22px; right: clamp(24px, 6vw, 40px);
    width: 34px; height: 34px;
    padding: 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  }
  .nav-close:hover { opacity: 0.7; transform: rotate(90deg); }

  body.nav-open { overflow: hidden; }
}
@media (min-width: 881px) {
  .nav-close { display: none; }
}

@media (max-width: 640px) {
  .hero__body { padding-left: var(--container-pad); }
  .footer-cta__actions .btn,
  .footer-cta__actions .link-underline { width: 100%; text-align: center; }
}

/* =====================================================================
   19. PÁGINAS INTERNAS (single, page, archive, search, 404, comments)
   ===================================================================== */
body:not(.has-hero) .site-main { padding: 90px 0 0; }
.site-main > article,
.site-main > .page-header,
.error-404 { width: min(var(--container-max), calc(100% - clamp(40px, 10vw, 120px))); margin: 0 auto; }

/* Evita el doble espacio antes del footer: .site-main ya aporta el padding
   inferior de la página, así que la última sección (que trae el suyo
   propio vía .section) no debe repetirlo. */
.site-main > section.section:last-child,
.site-main > .section:last-child { padding-bottom: 60px; }

.entry-header { margin-bottom: 32px; }
.entry-title, .archive-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(31px, 4.5vw, 48px);
  line-height: 1.14;
  margin: 0 0 14px;
}
.entry-meta { font-size: 13px; letter-spacing: 0.08em; color: var(--rl-ink-faint); text-transform: uppercase; }
.archive-description { color: var(--rl-ink-soft); max-width: 600px; }

.post-thumbnail { margin: 0 0 40px; aspect-ratio: 16/9; overflow: hidden; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.entry-content, .entry-summary {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--rl-ink-soft);
}
.entry-content p, .entry-summary p { margin: 0 0 1.4em; }
.entry-content h2, .entry-content h3 { font-family: var(--font-serif); font-weight: 400; color: var(--rl-ink); }
.entry-content a { color: var(--rl-green); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { max-width: 100%; height: auto; }

.entry-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0; }
.entry-tags a { border: 1px solid var(--rl-border); padding: 6px 14px; font-size: 12.5px; letter-spacing: 0.04em; }
.entry-tags a:hover { border-color: var(--rl-ink); }

.post-navigation { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--rl-border); padding-top: 24px; margin-top: 40px; font-size: 14px; }
.edit-link a { color: var(--rl-ink-faint); font-size: 13px; }

.site-main > article + article,
.site-main .entry-header + .entry-header { margin-top: 56px; }

.comments-area { width: min(var(--container-max), calc(100% - clamp(40px, 10vw, 120px))); margin: 56px auto 0; }
.comments-title { font-family: var(--font-serif); font-weight: 400; font-size: 26px; margin: 0 0 24px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-navigation { display: flex; justify-content: space-between; font-size: 13px; }

.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-field { flex: 1; padding: 12px 16px; border: 1px solid var(--rl-border); font-family: inherit; font-size: 15px; background: #fff; }
.search-submit { padding: 12px 22px; background: var(--rl-green); color: var(--rl-cream-text); border: none; font-size: 12.5px; letter-spacing: 0.1em; cursor: pointer; text-transform: uppercase; }

.error-404 { text-align: center; padding: 60px 0; }
.error-404 h1 { font-family: var(--font-serif); font-weight: 300; font-size: 40px; margin: 0 0 16px; }
.error-404 a { display: inline-block; margin-top: 20px; border-bottom: 1px solid var(--rl-ink); padding-bottom: 4px; }

/* =====================================================================
   20. BOTÓN + MODAL DE CONTACTO POR WHATSAPP
   ===================================================================== */
.wa-trigger { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.wa-trigger__icon { flex-shrink: 0; }

.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast);
}
.wa-modal.is-open { visibility: visible; opacity: 1; }

.wa-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 18, 0.6);
  backdrop-filter: blur(2px);
}

.wa-modal__dialog {
  position: relative;
  width: min(460px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--rl-cream-1);
  color: var(--rl-ink);
  padding: clamp(32px, 5vw, 48px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.wa-modal.is-open .wa-modal__dialog { transform: translateY(0) scale(1); opacity: 1; }

.wa-modal__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: none;
  color: var(--rl-ink-faint);
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease);
}
.wa-modal__close:hover { opacity: 0.6; }

.wa-modal__icon { display: block; margin-bottom: 18px; }
.wa-modal__title { font-family: var(--font-serif); font-weight: 400; font-size: 26px; margin: 0 0 10px; }
.wa-modal__subtitle { font-size: 14.5px; line-height: 1.7; color: var(--rl-ink-soft); margin: 0 0 28px; }
.wa-form__context {
  font-size: 13px;
  line-height: 1.6;
  color: var(--rl-green);
  background: var(--rl-cream-2);
  border-left: 3px solid var(--rl-green);
  padding: 10px 14px;
  margin: -12px 0 24px;
}

.wa-form { display: flex; flex-direction: column; gap: 18px; }
.wa-form__field { display: flex; flex-direction: column; gap: 8px; }
.wa-form__field > span {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--rl-ink-faint);
  text-transform: uppercase;
}
.wa-form__field input,
.wa-form__field select,
.wa-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rl-border);
  background: #fff;
  color: var(--rl-ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--dur-fast) var(--ease);
}
.wa-form__field input:focus,
.wa-form__field select:focus,
.wa-form__field textarea:focus {
  outline: none;
  border-color: var(--rl-green);
}
.wa-form__field textarea { resize: vertical; min-height: 90px; }

.wa-form__phone-row { display: flex; gap: 10px; }
.wa-form__phone-row select.wa-form__country { flex: 0 0 auto; width: 40%; }
.wa-form__phone-row input.wa-form__phone { flex: 1; width: auto; min-width: 0; }

.wa-form__submit { margin-top: 6px; width: 100%; text-align: center; border: none; cursor: pointer; }

body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .wa-modal, .wa-modal__dialog { transition: none; }
}

@media (max-width: 480px) {
  .wa-form__phone-row { flex-direction: column; }
  .wa-form__phone-row select.wa-form__country { width: 100%; }
}

/* =====================================================================
   21. FICHA DE DETALLE DE PROPIEDAD (single-property.php)
   ===================================================================== */
.property-detail { padding: clamp(48px, 6vw, 90px) 0 clamp(70px, 8vw, 110px); }

.property-detail__breadcrumb { margin-bottom: 28px; font-size: 13px; }
.property-detail__breadcrumb a:hover { opacity: 0.7; }

.property-detail__header { margin-bottom: clamp(28px, 3vw, 40px); }
.property-detail__header h1 { margin-bottom: 14px; }
.property-detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 14px; color: var(--rl-ink-faint); }
.property-detail__price { font-family: var(--font-serif); font-size: 20px; font-weight: 400; color: var(--rl-ink); }

.property-detail__gallery { margin-bottom: clamp(40px, 5vw, 64px); }
.property-detail__gallery-main { aspect-ratio: 16 / 9; overflow: hidden; background: var(--rl-placeholder-bg); margin-bottom: 10px; }
.property-detail__gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.property-detail__gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.property-detail__gallery-thumbs img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block; }

.property-detail__body { display: grid; grid-template-columns: 1fr 320px; gap: clamp(40px, 5vw, 70px); align-items: start; }

.property-detail__specs { display: flex; flex-wrap: wrap; gap: 20px 34px; border-top: 1px solid var(--rl-border); border-bottom: 1px solid var(--rl-border); padding: 22px 0; margin-bottom: 30px; }
.property-detail__spec { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; letter-spacing: 0.08em; color: var(--rl-ink-faint); text-transform: uppercase; }
.property-detail__spec span { font-family: var(--font-serif); font-size: 24px; color: var(--rl-ink); letter-spacing: 0; text-transform: none; }

.property-detail__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.property-detail__badge { padding: 8px 16px; border: 1px solid var(--rl-green); color: var(--rl-green); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; }

.property-detail__desc { font-size: 16px; line-height: 1.85; color: var(--rl-ink-soft); margin-bottom: clamp(32px, 4vw, 48px); }
.property-detail__desc p { margin: 0 0 1.2em; }
.property-detail__desc p:last-child { margin-bottom: 0; }

.property-detail__features { margin-bottom: clamp(32px, 4vw, 48px); }
.property-detail__features-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 20px; }
.property-detail__features-list li { position: relative; padding-left: 20px; font-size: 15px; color: var(--rl-ink-soft); }
.property-detail__features-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--rl-green); }

.property-detail__location { margin-bottom: clamp(24px, 3vw, 36px); }
.property-detail__location p { color: var(--rl-ink-soft); margin: 12px 0 0; }

.property-detail__energy { font-size: 13px; color: var(--rl-ink-faint); }

.property-detail__sidebar { position: sticky; top: 110px; }
.property-detail__contact-card { background: var(--rl-cream-2); padding: clamp(28px, 3vw, 36px); }
.property-detail__contact-card h2 { margin-bottom: 12px; }
.property-detail__contact-card p { font-size: 14.5px; line-height: 1.7; color: var(--rl-ink-soft); margin: 0 0 24px; }
.property-detail__contact-card .wa-trigger { width: 100%; justify-content: center; }

@media (max-width: 880px) {
  .property-detail__body { grid-template-columns: 1fr; }
  .property-detail__sidebar { position: static; }
}
