/* ============================================================
   LURELIS REAL ESTATE — Stylesheet
   ============================================================ */

/* ---- Variables ---- */
:root {
  --gold:        #C4A358;
  --gold-light:  #E8D5A0;
  --gold-pale:   #F7F0E0;
  --primary:     #1A1916;
  --secondary:   #4A4845;
  --muted:       #9A9794;
  --bg:          #FAFAF7;
  --bg-alt:      #F4F1EA;
  --white:       #FFFFFF;
  --border:      #E8E3D8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  --nav-h:    88px;
  --sec-pad:  100px;
  --cmax:     1200px;
  --cpad:     24px;

  --r-sm: 4px;
  --r-md: 10px;

  --sh-sm: 0 2px 14px rgba(26,25,22,.06);
  --sh-md: 0 8px 36px rgba(26,25,22,.11);
  --sh-lg: 0 20px 64px rgba(26,25,22,.15);

  --ease: .3s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body { font-family: var(--font-body); color: var(--primary); background: var(--bg); line-height: 1.68; overflow-x: hidden; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Utilities ---- */
.container { max-width: var(--cmax); margin: 0 auto; padding: 0 var(--cpad); }
.section   { padding: var(--sec-pad) 0; }
.bg-alt    { background: var(--bg-alt); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-label  {
  display: inline-block; font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 600; line-height: 1.2; margin-bottom: 16px;
}
.section-title.left { text-align: left; }
.section-subtitle { font-size: 1.03rem; color: var(--secondary); line-height: 1.72; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; font-size: .875rem; font-weight: 500;
  letter-spacing: .04em; border-radius: var(--r-sm);
  transition: all var(--ease); cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--white); border: 2px solid var(--gold); }
.btn-primary:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn-dark    { background: var(--primary); color: var(--white); border: 2px solid var(--primary); }
.btn-dark:hover { background: transparent; color: var(--primary); }
.btn-full    { width: 100%; justify-content: center; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  height: var(--nav-h);
  background: linear-gradient(to bottom, rgba(10,10,8,.55) 0%, transparent 100%);
  transition: background var(--ease), box-shadow var(--ease);
}
.navbar.scrolled { background: var(--white); box-shadow: var(--sh-sm); }

.nav-container {
  max-width: var(--cmax); margin: 0 auto; padding: 0 var(--cpad);
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Logo */
.nav-logo { display: flex; flex-direction: column; align-items: center; line-height: 1; flex-shrink: 0; gap: 2px; }
.logo-img {
  height: 56px; width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--ease);
}
.navbar.scrolled .logo-img { filter: none; }
.logo-re {
  font-size: .48rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(255,255,255,.85); transition: color var(--ease); padding-left: .32em;
}
.navbar.scrolled .logo-re { color: var(--gold); }
.logo-img--footer { height: 56px; width: auto; filter: brightness(0) invert(1); display: block; }
.logo-re--footer  { font-size: .48rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-light); padding-left: .32em; }

/* Links */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: .86rem; font-weight: 500; padding: 6px 14px;
  color: rgba(255,255,255,.88); border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.12); }
.navbar.scrolled .nav-links a { color: var(--secondary); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); background: var(--bg-alt); }

/* Actions */
.nav-actions { display: flex; align-items: center; gap: 18px; }

.lang-switcher { display: flex; align-items: center; gap: 8px; }
.lang-sep { font-size: .75rem; color: rgba(255,255,255,.35); }
.navbar.scrolled .lang-sep { color: var(--border); }

.lang-btn {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: rgba(255,255,255,.5); padding: 2px 4px; border-radius: 2px;
  transition: color var(--ease);
}
.lang-btn:hover, .lang-btn.active { color: var(--white); }
.navbar.scrolled .lang-btn { color: var(--muted); }
.navbar.scrolled .lang-btn:hover, .navbar.scrolled .lang-btn.active { color: var(--gold); }

.nav-cta {
  padding: 10px 22px; background: var(--gold); color: var(--white) !important;
  font-size: .8rem; font-weight: 600; letter-spacing: .05em;
  border-radius: var(--r-sm); transition: background var(--ease);
}
.nav-cta:hover { background: #b8943f !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 1px; transition: all var(--ease); }
.navbar.scrolled .hamburger span { background: var(--primary); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 860px) {
  .nav-cta   { display: none; }
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 20px 16px 28px;
    box-shadow: var(--sh-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--secondary); padding: 12px 16px; width: 100%; border-radius: var(--r-sm); }
  .nav-links a:hover { color: var(--primary); background: var(--bg-alt); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: 100vh; min-height: 620px; }
.heroSwiper, .hero-slide { height: 100%; }
.hero-slide { background-size: cover; background-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,10,8,.68) 0%, rgba(10,10,8,.38) 100%);
}
.hero-content {
  position: relative; z-index: 1; height: 100%; display: flex;
  flex-direction: column; justify-content: center; align-items: flex-start;
  max-width: var(--cmax); margin: 0 auto; padding: 0 var(--cpad);
  padding-top: var(--nav-h);
}
.hero-label {
  font-size: .73rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 20px;
  animation: fadeUp .8s ease both;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600; line-height: 1.15; color: var(--white); white-space: pre-line;
  max-width: 680px; margin-bottom: 20px;
  animation: fadeUp .8s .15s ease both;
}
.hero-subtitle {
  font-size: clamp(.9rem, 1.5vw, 1.05rem); color: rgba(255,255,255,.82);
  max-width: 500px; line-height: 1.72; font-weight: 300; margin-bottom: 40px;
  animation: fadeUp .8s .3s ease both;
}
.hero-content .btn { animation: fadeUp .8s .45s ease both; }

/* Swiper hero overrides */
.heroSwiper .swiper-button-prev,
.heroSwiper .swiper-button-next { color: rgba(255,255,255,.75); transition: color var(--ease); }
.heroSwiper .swiper-button-prev:hover,
.heroSwiper .swiper-button-next:hover { color: #fff; }
.heroSwiper .swiper-button-prev::after,
.heroSwiper .swiper-button-next::after { font-size: 1.1rem; }
.heroSwiper .swiper-pagination-bullet { background: rgba(255,255,255,.55); opacity: 1; width: 8px; height: 8px; }
.heroSwiper .swiper-pagination-bullet-active { background: var(--gold); width: 28px; border-radius: 4px; }

/* Scroll mouse indicator */
.scroll-indicator { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-indicator span {
  display: block; width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,.45); border-radius: 12px; position: relative;
}
.scroll-indicator span::before {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: rgba(255,255,255,.65); border-radius: 2px;
  animation: scrollDot 2.2s ease infinite;
}
@keyframes scrollDot { 0%{top:6px;opacity:1} 80%{top:18px;opacity:0} 100%{top:6px;opacity:0} }
@keyframes fadeUp   { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:none} }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--white); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 52px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 16px 20px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 700;
  color: var(--gold); line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: .83rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-right: none; }
}

/* ============================================================
   WHY DUBAI
   ============================================================ */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-md); padding: 36px 28px; min-height: 230px;
  background-size: cover; background-position: center;
  transition: transform var(--ease), box-shadow var(--ease);
}
.benefit-card::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(10,10,8,.62);
  transition: background var(--ease);
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.benefit-card:hover::before { background: rgba(10,10,8,.50); }
.benefit-card > * { position: relative; z-index: 1; }
.benefit-icon {
  width: 52px; height: 52px;
  background: rgba(196,163,88,.22); border: 1px solid rgba(196,163,88,.5);
  border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--gold); margin-bottom: 20px; transition: all var(--ease);
}
.benefit-card:hover .benefit-icon { background: var(--gold); color: var(--white); border-color: var(--gold); }
.benefit-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; color: var(--white); }
.benefit-card p  { font-size: .94rem; color: rgba(255,255,255,.80); line-height: 1.68; }

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

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--sh-sm); transition: box-shadow var(--ease), transform var(--ease);
}
.service-card:hover { box-shadow: var(--sh-md); transform: translateY(-5px); }
.service-img-wrap { overflow: hidden; height: 230px; }
.service-img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.service-card:hover .service-img { transform: scale(1.05); }

.service-body { padding: 28px 26px; }
.service-number { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--gold-pale); line-height: 1; margin-bottom: 6px; }
.service-body h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; }
.service-body p  { font-size: .94rem; color: var(--secondary); line-height: 1.68; margin-bottom: 20px; }
.service-cta {
  font-size: .82rem; font-weight: 700; color: var(--gold);
  letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px; transition: gap var(--ease);
}
.service-cta:hover { gap: 10px; }

@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
@media (min-width: 600px) and (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); max-width: none; } }

/* ============================================================
   PROPERTIES SLIDER
   ============================================================ */
.propertiesSwiper { padding: 12px 24px 56px !important; overflow: visible !important; }
.property-card {
  background: var(--white); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--sh-sm); transition: box-shadow var(--ease), transform var(--ease);
}
.property-card:hover { box-shadow: var(--sh-md); transform: translateY(-5px); }
.property-img-wrap { position: relative; overflow: hidden; height: 240px; }
.property-img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.property-card:hover .property-img { transform: scale(1.07); }
.property-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 12px; background: var(--gold); color: var(--white);
  font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; border-radius: 2px;
}
.property-body { padding: 20px 22px; }
.property-location { font-size: .77rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.property-title  { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.property-price  { font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.property-features { display: flex; gap: 14px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.property-feature { display: flex; align-items: center; gap: 5px; font-size: .83rem; color: var(--secondary); }
.property-feature i { color: var(--gold); font-size: .85rem; }

/* Properties swiper nav */
.propertiesSwiper .swiper-button-prev,
.propertiesSwiper .swiper-button-next {
  color: var(--primary); background: var(--white); width: 44px; height: 44px;
  border-radius: 50%; box-shadow: var(--sh-sm); border: 1px solid var(--border); transition: all var(--ease);
}
.propertiesSwiper .swiper-button-prev:hover,
.propertiesSwiper .swiper-button-next:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.propertiesSwiper .swiper-button-prev::after,
.propertiesSwiper .swiper-button-next::after { font-size: .9rem; }
.propertiesSwiper .swiper-pagination-bullet        { background: var(--border); opacity: 1; }
.propertiesSwiper .swiper-pagination-bullet-active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ============================================================
   INVESTMENT SECTION
   ============================================================ */
.investment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.investment-image { position: relative; }
.investment-image img { width: 100%; border-radius: var(--r-md); box-shadow: var(--sh-lg); aspect-ratio: 4/3; object-fit: cover; }
.investment-badge {
  position: absolute; bottom: -22px; right: -22px;
  background: var(--gold); color: var(--white); width: 104px; height: 104px;
  border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; box-shadow: var(--sh-md);
}
.badge-num  { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; line-height: 1; }
.badge-txt  { font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; margin-top: 3px; }
.investment-content { padding-left: 12px; }
.investment-content p { color: var(--secondary); line-height: 1.78; margin-bottom: 28px; font-size: .97rem; }
.investment-points { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.investment-points li { display: flex; align-items: flex-start; gap: 12px; font-size: .94rem; color: var(--secondary); }
.investment-points li::before {
  content: ''; flex-shrink: 0; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold); margin-top: 8px;
}

@media (max-width: 900px) {
  .investment-grid { grid-template-columns: 1fr; gap: 52px; }
  .investment-badge { right: 0; }
  .investment-content { padding-left: 0; }
}

/* ============================================================
   TEAM
   ============================================================ */
.team-list { display: flex; flex-direction: column; gap: 32px; }

.team-card {
  display: grid;
  grid-template-columns: 48fr 52fr;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-md);
  background: var(--white);
  min-height: 460px;
  max-width: 900px;
  margin: 0 auto;
}

.team-photo-wrap { position: relative; overflow: hidden; }
.team-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s ease; }
.team-card:hover .team-photo { transform: scale(1.03); }

.team-photo-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,10,8,.88) 0%, rgba(10,10,8,.3) 60%, transparent 100%);
  padding: 32px 28px 26px;
}
.team-name-overlay {
  display: block; font-family: var(--font-display); font-size: 2rem;
  font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 6px;
}
.team-instagram {
  font-size: .85rem; color: var(--gold-light); font-weight: 500;
  transition: color var(--ease);
}
.team-instagram:hover { color: var(--gold); }

.team-content {
  padding: 48px 44px;
  display: flex; flex-direction: column; justify-content: center;
}
.team-about-label {
  display: inline-block; font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.team-member-name {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--primary); margin-bottom: 6px;
}
.team-role {
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.team-bio { font-size: .95rem; color: var(--secondary); line-height: 1.78; margin-bottom: 14px; }
.team-bio:last-child { margin-bottom: 0; }

/* Alternating layout: odd cards → text left / photo right */
.team-card:nth-child(odd) .team-photo-wrap { order: 2; }
.team-card:nth-child(odd) .team-content    { order: 1; }

@media (max-width: 860px) {
  .team-card { grid-template-columns: 1fr; min-height: auto; }
  .team-card:nth-child(odd) .team-photo-wrap { order: 0; }
  .team-card:nth-child(odd) .team-content    { order: 0; }
  .team-photo-wrap { height: 340px; }
  .team-content { padding: 36px 28px; }
  .team-member-name { font-size: 1.6rem; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonialsSwiper { padding-bottom: 56px !important; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 36px 30px;
}
.testimonial-header {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px;
}
.testimonial-quote {
  font-family: var(--font-display); font-size: 3.8rem; line-height: .75;
  color: var(--gold); flex-shrink: 0;
}
.testimonial-title {
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 600;
  color: var(--primary); line-height: 1.25; padding-top: 6px;
}
.testimonial-stars { display: flex; gap: 3px; color: var(--gold); font-size: .82rem; margin-bottom: 16px; }
.testimonial-text  { font-size: 1rem; color: var(--secondary); line-height: 1.75; font-style: italic; margin-bottom: 26px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gold-pale); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--gold);
}
.testimonial-name   { font-size: .88rem; font-weight: 600; }
.testimonial-origin { font-size: .78rem; color: var(--muted); }
.testimonialsSwiper .swiper-pagination-bullet        { background: var(--border); opacity: 1; }
.testimonialsSwiper .swiper-pagination-bullet-active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.45fr; gap: 72px; align-items: start; }
.contact-info p { color: var(--secondary); line-height: 1.72; margin-bottom: 36px; font-size: .97rem; }

.contact-details  { display: flex; flex-direction: column; gap: 22px; margin-bottom: 36px; }
.contact-item     { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 44px; height: 44px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: .95rem; flex-shrink: 0;
}
.contact-label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-value { font-size: .94rem; color: var(--primary); font-weight: 500; transition: color var(--ease); }
a.contact-value:hover { color: var(--gold); }

.contact-social { display: flex; gap: 10px; }
.social-link {
  width: 40px; height: 40px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  color: var(--secondary); font-size: .98rem; transition: all var(--ease);
}
.social-link:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* Form */
.contact-form-wrap {
  background: var(--white); border-radius: var(--r-md); padding: 44px 40px;
  box-shadow: var(--sh-sm); border: 1px solid var(--border);
}
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { position: relative; }
.form-group.full { margin-bottom: 16px; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 22px 16px 8px; font-family: var(--font-body);
  font-size: .95rem; color: var(--primary); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-sm); outline: none;
  transition: border-color var(--ease); appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }

.form-group label {
  position: absolute; left: 16px; top: 14px; font-size: .85rem;
  color: var(--muted); pointer-events: none; transition: all .2s ease;
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group.has-value label {
  top: 5px; font-size: .66rem; letter-spacing: .05em; color: var(--gold);
}
/* Select label is always floated — selects always show visible content */
.form-select-wrap label {
  top: 5px; font-size: .66rem; letter-spacing: .05em; color: var(--muted);
}
.form-select-wrap select:focus ~ label { color: var(--gold); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: transparent; }
.form-group textarea { resize: vertical; min-height: 112px; }

.form-select-wrap::after {
  content: ''; width: .875em; height: 1em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z'/></svg>") center/contain no-repeat;
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}

.form-privacy { font-size: .78rem; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }

.turnstile-wrap { margin-bottom: 20px; }

.form-success {
  display: none; align-items: center; gap: 10px; margin-top: 16px;
  padding: 14px 18px; background: #F0FAF4; border: 1px solid #A3D9B5;
  border-radius: var(--r-sm); font-size: .88rem; color: #2D7A4F;
}
.form-success.visible { display: flex; }
.form-success i { font-size: 1.1rem; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 52px; } }
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 22px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--primary); color: rgba(255,255,255,.72); padding: 72px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; line-height: 1; margin-bottom: 18px; }
.footer .logo-main { color: var(--white); }
.footer .logo-sub  { color: var(--gold-light); }
.footer-desc { font-size: .875rem; line-height: 1.72; color: rgba(255,255,255,.58); margin-bottom: 24px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55); font-size: .88rem; transition: all var(--ease);
}
.footer-social a:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.footer-col h4 { font-size: .73rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 22px; }
.footer-col ul  { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a,
.footer-col ul li span { font-size: .875rem; color: rgba(255,255,255,.58); transition: color var(--ease); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact li i { color: var(--gold); font-size: .8rem; margin-top: 4px; flex-shrink: 0; }
.footer-bottom { padding: 24px 0; display: flex; justify-content: center; }
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.35); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
}

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px; background: #25D366; color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; box-shadow: 0 4px 20px rgba(37,211,102,.42);
  transition: transform var(--ease), box-shadow var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root { --sec-pad: 68px; }
  .section-header { margin-bottom: 44px; }
  .hero-content .btn { padding: 12px 26px; }
  .stats-bar { padding: 36px 0; }
  .propertiesSwiper { padding: 12px 16px 52px !important; }
  .investment-badge { width: 88px; height: 88px; }
  .badge-num { font-size: 1.35rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: .88rem; }
  .scroll-indicator { display: none; }
}

/* ============================================================
   V2 — rendimiento: fuentes autoalojadas, iconos SVG, slider sin Swiper
   ============================================================ */
@font-face{font-family:'Inter';font-style:normal;font-weight:300 700;font-display:swap;src:url(/fonts/inter-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:300 700;font-display:swap;src:url(/fonts/inter-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/playfair-display-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/playfair-display-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* Iconos: SVG de Font Awesome Free 6.5.0 (CC BY 4.0, https://fontawesome.com/license/free) */
.ico { display: inline-block; line-height: 1; font-style: normal; vertical-align: -.125em; }
.ico svg { display: block; height: 1em; fill: currentColor; overflow: visible; }

/* Hero slider (sustituye a Swiper; reglas de navegación/paginación copiadas de Swiper 11.2.10, MIT License, (c) Vladimir Kharlampidi) */
@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}
:root { --swiper-theme-color: #007aff; --swiper-navigation-size: 44px; }
.swiper { margin-left: auto; margin-right: auto; position: relative; overflow: hidden; list-style: none; padding: 0; z-index: 1; display: block; }
.swiper-wrapper { position: relative; width: 100%; height: 100%; z-index: 1; }
.hs .swiper-slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity .9s ease; }
.hs .swiper-slide.swiper-slide-active { opacity: 1; pointer-events: auto; z-index: 1; }
.swiper-button-next, .swiper-button-prev { position: absolute; top: var(--swiper-navigation-top-offset,50%); width: calc(var(--swiper-navigation-size)/ 44 * 27); height: var(--swiper-navigation-size); margin-top: calc(0px - (var(--swiper-navigation-size)/ 2)); z-index: 10; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--swiper-navigation-color,var(--swiper-theme-color)); }
.swiper-button-prev { left: var(--swiper-navigation-sides-offset,10px); right: auto; }
.swiper-button-next { right: var(--swiper-navigation-sides-offset,10px); left: auto; }
.swiper-button-next:after, .swiper-button-prev:after { font-family: swiper-icons; font-size: var(--swiper-navigation-size); text-transform: none !important; letter-spacing: 0; font-variant: initial; line-height: 1; }
.swiper-button-prev:after { content: 'prev'; }
.swiper-button-next:after { content: 'next'; }
.swiper-pagination { position: absolute; text-align: center; transition: .3s opacity; transform: translate3d(0,0,0); z-index: 10; bottom: var(--swiper-pagination-bottom,8px); top: var(--swiper-pagination-top,auto); left: 0; width: 100%; }
.swiper-pagination-bullet { width: var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px)); height: var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px)); display: inline-block; border-radius: var(--swiper-pagination-bullet-border-radius,50%); background: var(--swiper-pagination-bullet-inactive-color,#000); opacity: var(--swiper-pagination-bullet-inactive-opacity, .2); margin: 0 var(--swiper-pagination-bullet-horizontal-gap,4px); cursor: pointer; border: none; padding: 0; box-shadow: none; -webkit-appearance: none; appearance: none; }
.swiper-pagination-bullet-active { opacity: var(--swiper-pagination-bullet-opacity, 1); background: var(--swiper-pagination-color,var(--swiper-theme-color)); }
/* fondos del hero (WebP escritorio/móvil, slides 2-3 diferidas) */
.hero-slide[data-bg]:not(.bg-defer) { background-image: var(--bg-d); }
@media (max-width: 768px) { .hero-slide[data-bg]:not(.bg-defer) { background-image: var(--bg-m); } }

/* ============================================================
   V2 — páginas ES/EN, herramientas y guías
   ============================================================ */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }
a.lang-btn { display: inline-block; }
body.subpage { padding-top: var(--nav-h); }
.footer-h { font-size: .73rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 22px; font-family: var(--font-body); }
.footer-contact li .ico { color: var(--gold); font-size: .8rem; margin-top: 4px; flex-shrink: 0; }
.footer-bottom p a { color: rgba(255,255,255,.55); text-decoration: underline; }
.footer-bottom p a:hover { color: var(--gold-light); }
.form-privacy a { color: var(--secondary); text-decoration: underline; }
.src-note { margin-top: 28px; font-size: .74rem; color: #6B6864; text-align: center; line-height: 1.5; }
.center-cta { text-align: center; margin-top: 44px; }

/* Herramientas / propietarios / guías (tarjetas) */
.tools-grid, .ll-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 980px; margin: 0 auto; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-card, .ll-card, .guide-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 34px 30px; box-shadow: var(--sh-sm); transition: box-shadow var(--ease), transform var(--ease);
}
.tool-card:hover, .guide-card:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }
.tool-card h3, .ll-card h3, .guide-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.tool-card p, .ll-card p, .guide-card p { font-size: .94rem; color: var(--secondary); line-height: 1.68; flex-grow: 1; }
.ll-card .btn { margin-top: 6px; }
.tool-icon {
  width: 52px; height: 52px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  background: var(--gold-pale); color: var(--gold); font-size: 1.25rem; border: 1px solid var(--gold-light);
}
.ll-est { text-align: center; margin-top: 28px; font-size: .95rem; }
.ll-est a { color: var(--gold); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.ll-est a:hover { text-decoration: underline; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .tools-grid, .ll-grid, .guide-grid { grid-template-columns: 1fr; } }

/* Banda CTA (test / calculadora) */
.cta-band { background: var(--primary); color: #fff; padding: 56px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band-title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.75); font-size: .98rem; }
.cta-band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-band-link { color: var(--gold-light); font-size: .88rem; text-decoration: underline; }
.cta-band .btn-primary:hover { border-color: #fff; }

/* Cabecera de subpáginas */
.page-hero { background: var(--bg-alt); padding: 44px 0 40px; border-bottom: 1px solid var(--border); }
.page-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 600; line-height: 1.2; max-width: 860px; margin-bottom: 12px; }
.page-intro { color: var(--secondary); font-size: 1.03rem; max-width: 760px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .78rem; color: #6B6864; margin-bottom: 18px; list-style: none; }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: #6B6864; }
.crumbs a { color: var(--secondary); text-decoration: underline; }
.page-meta { font-size: .8rem; color: #6B6864; margin-top: 10px; }
.page-meta a { color: var(--secondary); text-decoration: underline; }

/* Artículo / guía */
.article-wrap { padding: 52px 0 80px; }
.prose { max-width: 760px; margin: 0 auto; font-size: 1rem; color: var(--primary); }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 600; line-height: 1.3; margin: 44px 0 14px; }
.prose h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; color: var(--secondary); }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 6px; }
.prose a { color: #8a6d2c; text-decoration: underline; }
.prose a:hover { color: var(--primary); }
.prose strong { color: var(--primary); }
.quick-answer { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--r-sm); padding: 22px 24px; margin: 0 0 28px; }
.quick-answer .qa-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.quick-answer p { margin: 0; color: var(--primary); }
.table-wrap { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--white); }
.prose table, .tool-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose caption, .tool-table caption { text-align: left; font-size: .8rem; color: #6B6864; padding: 10px 14px 0; caption-side: bottom; padding-bottom: 10px; }
.prose th, .prose td, .tool-table th, .tool-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th, .tool-table th { background: var(--bg-alt); font-weight: 600; color: var(--primary); }
.prose tr:last-child td { border-bottom: none; }
.faq { margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--primary); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; }
.sources { font-size: .86rem; }
.sources li { margin-bottom: 4px; }
.disclaimer { font-size: .8rem; color: #6B6864; margin-top: 28px; }
.author-box { display: flex; gap: 18px; align-items: center; background: var(--bg-alt); border-radius: var(--r-md); padding: 20px 22px; margin-top: 40px; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; }
.author-box p { margin: 0; font-size: .9rem; }
.author-box .author-name { font-weight: 700; color: var(--primary); }
.inline-cta { margin: 40px 0 0; padding: 28px; border-radius: var(--r-md); background: var(--primary); color: #fff; }
.inline-cta p { color: rgba(255,255,255,.8); margin-bottom: 16px; }
.inline-cta .inline-cta-title { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: 6px; }
.inline-cta a.btn { color: #fff; text-decoration: none; }
.inline-cta .cta-band-link { margin-left: 16px; }
.related { margin-top: 36px; }
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: 8px; }
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 52px 0 80px; }
@media (max-width: 760px) { .guide-list { grid-template-columns: 1fr; } }

/* Herramientas (formularios) */
.tool-wrap { padding: 44px 0 80px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px 26px; box-shadow: var(--sh-sm); }
.panel h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label, .field .lbl { display: block; font-size: .8rem; font-weight: 600; color: var(--secondary); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 11px 12px; font: inherit; font-size: .95rem; color: var(--primary);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm);
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }
.field .hint { font-size: .75rem; color: #6B6864; margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 520px) { .field-row4 { grid-template-columns: 1fr 1fr; } }
.warn { font-size: .82rem; color: #9b3d2e; margin-top: 4px; min-height: 1em; }
.result-big { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1.15; }
.result-sub { font-size: .9rem; color: var(--secondary); margin-bottom: 18px; }
.tool-table td.num, .tool-table th.num { text-align: right; white-space: nowrap; }
.tool-table tr.total td { font-weight: 700; color: var(--primary); background: var(--gold-pale); }
.tool-notes { font-size: .8rem; color: #6B6864; margin-top: 16px; line-height: 1.55; }
.tool-notes a { color: var(--secondary); text-decoration: underline; }
.tool-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
details.adv summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--secondary); margin-bottom: 12px; }
.tool-card h2.h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.guide-list.tools3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .guide-list.tools3 { grid-template-columns: 1fr; } }
/* a11y: contraste y tamaño de objetivo (QA final) */
.footer-bottom p { color: rgba(255,255,255,.62); }
.ll-est a { color: #8A6D2C; }
.inline-cta a.cta-band-link, .prose .inline-cta a.cta-band-link { color: var(--gold-light); }
.author-box .author-name a { color: var(--primary); }
.heroSwiper .swiper-pagination-bullet { box-sizing: content-box; padding: 8px; margin: 0 !important; background-clip: content-box; }
/* herramientas: moneda y rentabilidad */
.fx-line { margin-top: 6px; font-size: .78rem; }
.result-yield { font-size: .95rem; color: var(--secondary); margin: -6px 0 18px; }
.result-yield.on { font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.tool-table tr.sub td { color: var(--secondary); }
/* bloque del test (el resto del estilo llega con /css/quiz.css al cargar el test) */
.lq { background: var(--gold-pale); border: 1px solid var(--gold-light); border-radius: 14px; padding: 28px 22px; margin: 36px 0; text-align: center; scroll-margin-top: 100px; }
.lq-kicker { font-size: .75rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #8A6D2C; margin: 0 0 6px; }
.lq-title { font-family: var(--font-display); font-size: clamp(1.35rem, 4.8vw, 1.75rem); font-weight: 700; color: var(--primary); margin: 0 0 6px; line-height: 1.25; }
.lq-sub { color: var(--secondary); margin: 0 auto; max-width: 520px; }
.lq .lq-start { margin-top: 18px; }
.prose .lq a.lq-start { color: var(--white); text-decoration: none; }
/* barra fija del test en móvil */
.quiz-bar { position: fixed; left: 12px; right: 96px; bottom: 32px; z-index: 900; transform: translateY(140%); transition: transform .3s ease; }
.quiz-bar.show { transform: none; }
.quiz-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px; border-radius: 12px; background: var(--primary); color: var(--white); font-weight: 700; font-size: .95rem; text-decoration: none; box-shadow: 0 6px 20px rgba(26,25,22,.25); }
@media (min-width: 769px) { .quiz-bar { display: none; } }
body.has-quiz-bar { padding-bottom: 76px; }
/* CTA del test en las herramientas */
.tool-quiz-cta { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--gold-pale); text-align: center; }
.tool-quiz-cta p { margin: 0 0 10px; font-weight: 600; color: var(--primary); }
.tool-quiz-cta a { color: var(--white); text-decoration: none; }
/* v4: columnas de las herramientas a la misma altura */
.tool-grid { align-items: stretch; }
.tool-grid > .panel { display: flex; flex-direction: column; min-width: 0; }
.tool-grid > .panel > .tool-notes { margin-top: auto; padding-top: 16px; }
.field select { max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } }
/* v4: portada, tarjetas de herramientas con vista previa */
.tools-home { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.tool-card--vis { padding: 0; overflow: hidden; gap: 0; align-items: stretch; }
.tool-card-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px 28px; flex-grow: 1; }
.tool-card--vis h3 { display: flex; align-items: center; gap: 12px; }
.tool-icon--sm { width: 38px; height: 38px; font-size: 1rem; flex: none; }
.tool-prev { position: relative; margin: 0; padding: 22px 26px 20px; background: radial-gradient(120% 90% at 100% 0%, #FBF5E6 0%, var(--gold-pale) 45%, #EFE4C8 100%); border-bottom: 1px solid var(--gold-light); min-height: 270px; display: flex; flex-direction: column; }
.tp-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: .78rem; color: #6B5A2E; }
.tp-head b { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--primary); }
.tp-head em { font-style: normal; margin-left: auto; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.75); border: 1px solid var(--gold-light); font-weight: 600; color: #8A6D2C; }
.tp-bar { display: flex; gap: 3px; height: 34px; margin: 16px 0 14px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(196,163,88,.25); }
.tp-seg { display: flex; align-items: center; justify-content: center; color: #fff; font-size: .74rem; min-width: 34px; transform-origin: left; }
.tp-seg0 { background: #8A6D2C; } .tp-seg1 { background: var(--gold); } .tp-seg2 { background: var(--primary); }
.tp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .84rem; color: var(--secondary); }
.tp-list li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(255,255,255,.7); border-radius: 6px; }
.tp-list b { margin-left: auto; color: var(--primary); font-variant-numeric: tabular-nums; }
.tp-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tp-dot0 { background: #8A6D2C; } .tp-dot1 { background: var(--gold); } .tp-dot2 { background: var(--primary); }
.tp-chart { list-style: none; margin: 14px 0 0; padding: 0; display: flex; align-items: flex-end; gap: 12px; flex-grow: 1; min-height: 150px; border-bottom: 1px solid rgba(138,109,44,.35); }
.tp-chart li { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 150px; position: relative; padding-bottom: 22px; }
.tp-col { width: 100%; max-width: 54px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--gold) 0%, #8A6D2C 100%); transform-origin: bottom; }
.tp-chart li:last-child .tp-col { background: linear-gradient(180deg, #3a3730 0%, var(--primary) 100%); }
.tp-val { font-size: .7rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tp-lab { position: absolute; bottom: 2px; font-size: .72rem; color: #6B5A2E; white-space: nowrap; }
.reveal .tp-seg { transform: scaleX(0); } .reveal .tp-col { transform: scaleY(0); }
.reveal .tp-seg, .reveal .tp-col { transition: transform .7s cubic-bezier(.2,.8,.2,1) .2s; }
.reveal.visible .tp-seg { transform: scaleX(1); }
.reveal.visible .tp-col { transform: scaleY(1); }
.reveal.visible .tp-seg1, .reveal.visible li:nth-child(2) .tp-col { transition-delay: .32s; }
.reveal.visible .tp-seg2, .reveal.visible li:nth-child(3) .tp-col { transition-delay: .44s; }
.reveal.visible li:nth-child(4) .tp-col { transition-delay: .56s; }
@media (prefers-reduced-motion: reduce) { .reveal .tp-seg, .reveal .tp-col { transform: none; transition: none; } }
@media (max-width: 420px) { .tool-prev { padding: 18px 16px 16px; } .tool-card-body { padding: 20px 18px 22px; } .tp-chart { gap: 8px; } .tp-val { font-size: .64rem; } }
/* v4: barra del reparto (calculadora) y medidor de rentabilidad (estimador) */
.split-bar { display: flex; gap: 3px; height: 26px; margin-top: 10px; border-radius: 6px; overflow: hidden; }
.split-bar span { display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 600; color: #fff; transition: flex .35s ease; min-width: 0; overflow: hidden; }
.split-bar .sb0 { background: #8A6D2C; } .split-bar .sb1 { background: var(--gold); } .split-bar .sb2 { background: var(--primary); } .split-bar .sb3 { background: #6B6864; }
.rent-gauge { margin-top: auto; padding: 22px 16px 16px; border-radius: var(--r-md); background: radial-gradient(120% 90% at 100% 0%, #FBF5E6 0%, var(--gold-pale) 55%, #EFE4C8 100%); border: 1px solid var(--gold-light); text-align: center; }
.rent-gauge svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.rent-gauge path { fill: none; stroke-width: 11; stroke-linecap: round; }
.rent-gauge .g-bg { stroke: rgba(255,255,255,.85); }
.rent-gauge .g-fg { stroke: var(--gold); opacity: 0; transition: stroke-dasharray .5s ease; }
.rent-gauge .g-val { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--primary); line-height: 1; margin-top: -40px; }
.rent-gauge .g-lab { font-size: .8rem; font-weight: 600; color: #6B5A2E; margin-top: 8px; }
.rent-gauge .g-scale { display: flex; justify-content: space-between; max-width: 220px; margin: 6px auto 0; font-size: .7rem; color: #6B6864; }
/* v4: menú (Herramientas + Contacto en móvil) y tablas de resultados en móvil */
.nav-contact-m { display: none; }
@media (max-width: 860px) { .nav-contact-m { display: block; } }
@media (max-width: 520px) {
  .tool-grid > .panel { padding: 22px 16px; }
  .tool-table { font-size: .84rem; }
  .tool-table th, .tool-table td { padding: 10px 8px; }
  .tool-table small { display: inline-block; font-size: .72rem; line-height: 1.35; margin-top: 2px; }
}
/* v5: utilidades, caja "plan por email", "Cómo trabajamos", licencia, quiz en portada EN */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.plan-mail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px 36px; align-items: center; margin-top: 28px; background: linear-gradient(135deg, var(--white) 0%, var(--gold-pale) 140%); }
.plan-mail h2 { margin-bottom: 6px; }
.pm-text p { color: var(--secondary); font-size: .92rem; line-height: 1.6; }
.pm-row { display: flex; gap: 10px; }
.pm-row input { flex: 1; min-width: 0; padding: 12px 14px; font: inherit; font-size: .95rem; color: var(--primary); background: var(--white); border: 1px solid var(--border); border-radius: var(--r-sm); }
.pm-row input:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }
.pm-row input.err { border-color: #c0504d; }
.pm-row .btn { flex: none; }
.pm-form .cf-turnstile { margin-top: 8px; }
.pm-note { font-size: .75rem; color: #6B6864; margin-top: 8px; }
.pm-note a { color: var(--secondary); text-decoration: underline; }
.pm-msg { font-size: .85rem; margin-top: 6px; min-height: 1.2em; }
.pm-msg.ok { color: #2f6b3a; font-weight: 600; } .pm-msg.bad { color: #9b3d2e; }
@media (max-width: 900px) { .plan-mail { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .pm-row { flex-direction: column; } .pm-row .btn { width: 100%; justify-content: center; } }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; counter-reset: none; }
.how-steps::before { content: ''; position: absolute; top: 26px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light)); }
.how-step { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 18px 22px; box-shadow: var(--sh-sm); margin-top: 26px; text-align: center; }
.how-num { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: -26px auto 12px; line-height: 1; padding: 0; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: 'lnum' 1, 'tnum' 1; border-radius: 50%; background: var(--primary); color: var(--gold-light); font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--gold); }
.how-step h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.3; margin-bottom: 8px; color: var(--primary); }
.how-step p { font-size: .86rem; color: var(--secondary); line-height: 1.6; }
.how-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--gold); }
.how-cta svg { width: 12px; height: 12px; }
.how-cta:hover { color: var(--primary); }
@media (max-width: 1100px) { .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .how-steps::before { display: none; } }
@media (max-width: 700px) {
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .how-steps::before { display: block; top: 0; bottom: 0; left: 41px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-light)); }
  .how-step { margin-top: 0; margin-left: 0; padding: 18px 16px 18px 82px; text-align: left; }
  .how-num { position: absolute; left: 16px; top: 16px; margin: 0; width: 50px; height: 50px; font-size: 1.2rem; }
}
.footer-bottom { flex-direction: column; align-items: center; text-align: center; }
.footer-bottom p.footer-licence { margin-top: 8px; font-size: .74rem; letter-spacing: .3px; color: rgba(255,255,255,.55); }
.quiz-home { padding-top: 64px; padding-bottom: 64px; background: var(--primary); }
.quiz-home .lq { max-width: 760px; margin: 0 auto; }

/* ---- Glosario (/glosario/, /en/glossary/) y figuras de artículos. Añadir al final de css_phase2.css y subir VER ---- */
.fig { margin: 28px auto 32px; max-width: 420px; text-align: center; }
.fig-svg { display: block; width: 100%; height: auto; margin: 0 auto; }
.fig figcaption { font-size: .82rem; color: var(--secondary); margin-top: 10px; line-height: 1.5; }
.glos-tools { position: sticky; top: 72px; z-index: 5; background: var(--bg); padding: 12px 0 10px; margin: 0 0 18px; border-bottom: 1px solid var(--border); }
.glos-search { width: 100%; font: inherit; font-size: .95rem; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--white); color: var(--primary); }
.glos-search:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.glos-az { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.prose ul.glos-az { list-style: none; padding-left: 0; margin-bottom: 0; }
.prose ul.glos-az li { margin: 0; }
.glos-az li { margin: 0; }
.glos-az a, .glos-az span { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; font-size: .8rem; font-weight: 700; border-radius: var(--r-sm); text-decoration: none; }
.prose ul.glos-az a { color: var(--primary); background: var(--gold-pale); text-decoration: none; }
.prose .glos-az a:hover { background: var(--gold); color: var(--white); }
.glos-az span { color: #b9b4aa; }
.prose h2.glos-letter { font-size: 1.9rem; color: var(--gold); margin: 34px 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border); scroll-margin-top: 150px; }
.glos-list { margin: 0; }
.glos-item { padding: 16px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 150px; }
.glos-item:target { background: var(--gold-pale); box-shadow: -12px 0 0 var(--gold-pale), 12px 0 0 var(--gold-pale); }
.glos-item dt { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.glos-item dt dfn { font-style: normal; }
.glos-item dt a.glos-anchor { margin-left: 6px; font-family: var(--font-body); font-size: .8rem; color: #b9b4aa; text-decoration: none; opacity: 0; transition: opacity .15s; }
.glos-item:hover dt a.glos-anchor, .glos-item dt a.glos-anchor:focus { opacity: 1; }
.glos-alias { display: block; font-family: var(--font-body); font-size: .78rem; font-weight: 500; color: var(--secondary); letter-spacing: .02em; margin-top: 2px; }
.glos-item dd { margin: 0; }
.glos-item dd p { margin-bottom: 8px; }
.prose .glos-rel { font-size: .88rem; margin: 0; }
.glos-empty { padding: 20px 0; color: var(--secondary); }
@media (max-width: 640px) { .glos-tools { position: static; } .glos-az a, .glos-az span { min-width: 26px; height: 28px; font-size: .75rem; } }

.guide-glos{margin:28px 0 0;text-align:center;color:var(--ink-soft,#555)}
.guide-glos{padding-bottom:8px}
.guide-glos a{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--gold)}
.guide-glos svg{width:14px;height:14px}

/* Tarjeta compacta con enlace al quiz (guías y glosario) */
.gcta { display: flex; align-items: center; gap: 18px; background: var(--gold-pale); border: 1px solid var(--gold-light); border-left: 4px solid var(--gold, #C4A358); border-radius: 12px; padding: 18px 22px; margin: 32px 0; }
.gcta-text { margin: 0; flex: 1; color: var(--primary); line-height: 1.5; }
.gcta-text strong { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 2px; }
.prose .gcta a.gcta-btn { color: var(--white); text-decoration: none; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 560px) { .gcta { flex-direction: column; align-items: stretch; text-align: left; padding: 18px; } .prose .gcta a.gcta-btn { justify-content: center; } }
.fig-img { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: 10px; }
.fig--wide { max-width: 680px; }
.prose h3 { margin-top: 1.4em; }
.prose .gcta a.gcta-btn:hover, .prose .gcta a.gcta-btn:focus-visible { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ===== v7: titulares, cabeceras con foto, propietarios, pasos, herramientas, CTA y páginas legales ===== */
.section-title, .page-title, .hero-title, .how-step h3, .ll-item h3, .ti-h, .gcta-title { text-wrap: balance; }
/* Titulares de artículo: todo el ancho de la columna. Ni balance ni pretty: Chrome con pretty también reparte las dos líneas
   de un titular corto y lo deja a media columna. El &nbsp; de build.py ya evita una palabra sola en la última línea. */
.prose h2, .prose h3 { text-wrap: wrap; max-width: none; width: 100%; }
.section-subtitle, .page-intro, .ll-sub, .prose p { text-wrap: pretty; }
.section-header { margin-left: auto; margin-right: auto; }
.section-header .section-title { margin-bottom: 14px; }
.section-header .section-subtitle { max-width: 560px; margin-left: auto; margin-right: auto; }

/* Cabecera de páginas internas con foto real */
.page-hero--photo { position: relative; isolation: isolate; padding: 120px 0 64px; border-bottom: 0; color: #fff;
  background: #1A1916 var(--ph-lg) center 55% / cover no-repeat; }
.page-hero--photo::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26,25,22,.72) 0%, rgba(26,25,22,.55) 45%, rgba(26,25,22,.86) 100%); }
.page-hero--photo .section-label { color: var(--gold-light); }
.page-hero--photo .page-title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 820px; margin-bottom: 14px; }
.page-hero--photo .page-intro { color: rgba(255,255,255,.86); font-size: 1.06rem; max-width: 640px; }
.page-hero--photo .crumbs ol, .page-hero--photo .crumbs li + li::before { color: rgba(255,255,255,.7); }
.page-hero--photo .crumbs a { color: rgba(255,255,255,.88); text-decoration-color: rgba(232,213,160,.6); }
.page-hero--photo .gmeta, .page-hero--photo .guide-meta, .page-hero--photo time { color: rgba(255,255,255,.75); }
.page-hero--photo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
@media (max-width: 760px) { .page-hero--photo { background-image: var(--ph-sm); padding: 104px 0 44px; } .page-hero--photo .page-title { font-size: 1.85rem; } .page-hero--photo .page-intro { font-size: .98rem; } }

/* Páginas legales, privacidad y fuentes: documento en tarjeta */
.article-wrap:has(.doc) { background: var(--bg-alt); padding: 56px 0 96px; }
.prose.doc { max-width: 820px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--sh-sm); padding: 52px 60px; }
.prose.doc h2 { position: relative; padding-top: 22px; margin-top: 34px; border-top: 1px solid var(--border); }
.prose.doc h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prose.doc h2::before { content: ''; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--gold); }
.prose.doc h2:first-child::before { display: none; }
@media (max-width: 760px) { .article-wrap:has(.doc) { padding: 28px 0 64px; } .prose.doc { padding: 28px 20px; border-radius: 12px; } }

/* Propietarios */
.ll-sec { background: var(--bg); }
.ll-wrap { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.ll-photo { position: relative; margin: 0; border-radius: 14px; overflow: visible; }
.ll-photo img { display: block; width: 100%; height: 560px; object-fit: cover; border-radius: 14px; box-shadow: var(--sh-lg, 0 20px 60px rgba(26,25,22,.16)); }
.ll-photo::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold-light); border-radius: 14px; z-index: -1; }
.ll-photo { isolation: isolate; }
.ll-chip { position: absolute; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; background: rgba(255,255,255,.95); border-radius: 99px; box-shadow: var(--sh-md); font-size: .82rem; font-weight: 600; color: var(--primary); }
.ll-chip svg { width: 15px; height: 15px; color: var(--gold); fill: currentColor; }
.ll-content .section-title { margin-bottom: 14px; }
.ll-sub { color: var(--secondary); font-size: 1.05rem; margin-bottom: 30px; max-width: 520px; }
.ll-items { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 32px; }
.ll-item { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px 22px 20px; box-shadow: var(--sh-sm); transition: box-shadow .3s, transform .3s; }
.ll-item:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.ll-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-pale); border: 1px solid var(--gold-light); margin-bottom: 14px; }
.ll-ico svg { width: 18px; height: 18px; color: #8A6D2C; fill: currentColor; }
.ll-item h3 { font-family: var(--font-display); font-size: 1.14rem; font-weight: 600; line-height: 1.3; margin-bottom: 12px; color: var(--primary); }
.ll-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ll-list li { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; color: var(--secondary); line-height: 1.45; }
.ll-list svg { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--gold); fill: currentColor; }
.ll-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.ll-actions .btn svg { width: 13px; height: 13px; fill: currentColor; margin-left: 4px; }
.ll-est { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--primary); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.ll-est svg { width: 15px; height: 15px; color: var(--gold); fill: currentColor; }
.ll-est:hover { color: #8A6D2C; }
@media (max-width: 980px) { .ll-wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; } .ll-photo img { height: 380px; } }
@media (max-width: 560px) {
  .ll-photo img { height: 260px; }
  .ll-photo::before { inset: 12px -10px -12px 10px; }
  .ll-chip { left: 14px; bottom: 14px; font-size: .76rem; padding: 9px 13px; }
  .ll-items { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ll-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .ll-actions .btn { justify-content: center; width: 100%; }
  .ll-est { justify-content: center; }
}

/* Cómo trabajamos: tarjetas con icono */
.how-steps::before { top: 34px; }
.how-step { padding: 0 22px 26px; margin-top: 34px; text-align: left; transition: box-shadow .3s, transform .3s; }
.how-step:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }
.how-ico { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin: -34px 0 18px; border-radius: 50%; background: var(--primary); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--gold); }
.how-ico svg { width: 24px; height: 24px; color: var(--gold-light); fill: currentColor; }
.how-num { display: block; width: auto; height: auto; margin: 0 0 8px; border: 0; box-shadow: none; background: none; border-radius: 0; color: var(--gold); font-family: var(--font-body, Inter, sans-serif); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.how-step h3 { font-size: 1.16rem; margin-bottom: 10px; }
.how-step p { font-size: .9rem; line-height: 1.65; }
@media (max-width: 700px) {
  .how-steps::before { left: 45px; }
  .how-step { padding: 22px 18px 22px 92px; margin-top: 0; }
  .how-ico { position: absolute; left: 14px; top: 20px; margin: 0; width: 62px; height: 62px; }
  .how-ico svg { width: 22px; height: 22px; }
  .how-num { position: static; }
}

/* Vista previa de herramientas en portada */
.tool-card--vis { border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--sh-sm); position: relative; }
.tool-card--vis::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.tool-card--vis:hover::after { transform: scaleX(1); }
.tool-card--vis h3 { font-size: 1.32rem; }

/* Tarjeta de CTA al quiz (guías, glosario, herramientas) */
.gcta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; background: #fff; border: 1px solid var(--border); border-left: 0; border-radius: 14px; box-shadow: var(--sh-md); padding: 28px 30px; margin: 40px 0; position: relative; overflow: hidden; }
.gcta::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--gold-light), var(--gold)); }
.gcta-ico { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--gold-pale); }
.gcta-ico svg { width: 22px; height: 22px; color: var(--gold-light); fill: currentColor; }
.gcta-kicker { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.prose .gcta-title, .gcta-title { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; line-height: 1.3; color: var(--primary); margin: 0 0 4px; }
.prose .gcta-line, .gcta-line { font-size: .92rem; color: var(--secondary); line-height: 1.55; margin: 0; }
.gcta-btn { white-space: nowrap; text-decoration: none !important; color: #fff !important; }
.gcta-btn svg { width: 13px; height: 13px; fill: currentColor; margin-left: 4px; }
@media (max-width: 760px) {
  .gcta { grid-template-columns: auto minmax(0, 1fr); padding: 22px 20px; gap: 14px 16px; }
  .gcta-ico { width: 48px; height: 48px; }
  .gcta-btn { grid-column: 1 / -1; justify-content: center; width: 100%; }
}

/* Herramientas: moneda, ayudas, bloques informativos */
.cur-bar { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 12px; margin-bottom: 22px; }
.cur-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cur-lbl { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.cur-seg { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: 99px; padding: 3px; gap: 2px; }
.cur-seg button { appearance: none; border: 0; background: transparent; padding: 8px 16px; min-width: 58px; border-radius: 99px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--secondary); cursor: pointer; transition: background .2s, color .2s; }
.cur-seg button:hover { color: var(--primary); background: var(--gold-pale); }
.cur-seg button[aria-pressed="true"] { background: var(--primary); color: var(--gold-light); }
.cur-seg button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cur-native { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0 0 0 0); }
.cur-bar .hint { margin: 10px 0 0; font-size: .78rem; color: #6B6864; line-height: 1.5; }
.fx-line { white-space: nowrap; color: #8A6D2C; font-weight: 600; }
.field .hint, .panel > .hint, .adv .hint { font-size: .78rem; color: #6B6864; margin: 6px 0 0; line-height: 1.5; }
.panel > .hint { margin: -6px 0 16px; }
.field label .opt { font-weight: 500; font-size: .72rem; color: #8A6D2C; background: var(--gold-pale); border-radius: 99px; padding: 1px 8px; margin-left: 4px; letter-spacing: .02em; }

.tool-wrap { background: linear-gradient(180deg, var(--bg-alt) 0, var(--bg) 340px); padding-top: 0; }
.tool-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: -36px 0 40px; position: relative; z-index: 2; }
.ti-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--sh-md); padding: 22px 22px 20px; }
.ti-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-pale); border: 1px solid var(--gold-light); margin-bottom: 12px; }
.ti-ico svg { width: 16px; height: 16px; color: #8A6D2C; fill: currentColor; }
.ti-h { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; margin-bottom: 6px; color: var(--primary); }
.ti-card p { font-size: .88rem; color: var(--secondary); line-height: 1.6; margin: 0; }
.page-hero--photo + .tool-wrap .page-hero--photo, .tool-wrap .tool-grid { position: relative; }
.page-hero--photo:has(+ .tool-wrap) { padding-bottom: 88px; }

.tool-more { max-width: 900px; margin: 72px auto 0; }
.tool-sec { margin-bottom: 64px; }
.tool-sec .section-label { display: block; margin-bottom: 10px; }
.tool-sec .section-title { margin-bottom: 26px; }
.hc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hc-list li { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 20px 18px; box-shadow: var(--sh-sm); }
.hc-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hc-n { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--gold-light); font-family: var(--font-display); font-weight: 700; font-size: 1rem; font-variant-numeric: lining-nums; }
.hc-list h3 { font-family: var(--font-display); font-size: 1.04rem; font-weight: 600; margin: 4px 0 6px; color: var(--primary); }
.hc-list p { font-size: .9rem; color: var(--secondary); line-height: 1.62; margin: 0; }
.faq--card { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--sh-sm); padding: 4px 26px; margin: 0; }
.faq--card details:last-child { border-bottom: 0; }
.faq--card summary { padding: 6px 0; font-size: .98rem; }
.faq--card details p { color: var(--secondary); font-size: .93rem; line-height: 1.65; padding-bottom: 6px; }
.tool-more .prose { max-width: none; }
.tool-more .gcta { margin: 0 0 36px; }
.tool-next { text-align: center; font-size: .95rem; color: var(--secondary); }
.tool-next a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; margin-left: 6px; }
.tool-next svg { width: 13px; height: 13px; fill: var(--gold); }
.tool-quiz-cta { background: var(--gold-pale); border: 1px solid var(--gold-light); }
.tool-quiz-cta .btn svg { width: 12px; height: 12px; fill: currentColor; margin-left: 4px; }
@media (max-width: 900px) { .tool-info { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: -28px; } .hc-list { grid-template-columns: minmax(0, 1fr); } .tool-more { margin-top: 56px; } }
@media (max-width: 560px) { .ti-card { padding: 18px 18px 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; } .ti-ico { grid-row: span 2; margin: 0; } .faq--card { padding: 2px 18px; } .tool-sec { margin-bottom: 48px; } .cur-seg button { min-width: 0; padding: 8px 13px; } }

/* Guías: cuerpo algo más aireado bajo la cabecera con foto */
.page-hero--photo + .article-wrap, .page-hero--photo ~ .article-wrap { padding-top: 56px; }
/* tamaños de iconos (icon() pinta <i class="ico"><svg height=1em>) */
.how-ico .ico { font-size: 24px; color: var(--gold-light); }
.ll-ico .ico { font-size: 18px; color: #8A6D2C; }
.ll-chip .ico { font-size: 14px; color: var(--gold); }
.ll-list .ico { font-size: 14px; color: var(--gold); margin-top: 3px; flex: none; }
.ll-est .ico, .tool-next .ico { font-size: 14px; color: var(--gold); }
.gcta-ico .ico { font-size: 22px; color: var(--gold-light); }
.ti-ico .ico { font-size: 16px; color: #8A6D2C; }
.ll-actions .btn .ico, .gcta-btn .ico, .tool-quiz-cta .btn .ico { font-size: 13px; margin-left: 4px; }
.ico svg { width: auto; }
@media (max-width: 700px) { .how-ico .ico { font-size: 22px; } }
.page-hero--photo .page-meta { color: rgba(255,255,255,.78); font-size: .86rem; }
.page-hero--photo .page-meta a { color: #fff; text-decoration-color: var(--gold); }
@media (max-width: 760px) { .gcta { align-items: start; } .gcta-ico { margin-top: 4px; } }
@media (max-width: 560px) {
  .tool-info { gap: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--sh-md); margin-bottom: 28px; }
  .ti-card { box-shadow: none; border: 0; border-radius: 0; padding: 16px 16px 14px; }
  .ti-card + .ti-card { border-top: 1px solid var(--border); }
  .ti-ico { width: 34px; height: 34px; }
  .ti-h { font-size: .98rem; margin-bottom: 2px; }
  .ti-card p { font-size: .84rem; line-height: 1.5; }
}

/* Botón verde de WhatsApp (propietarios y contacto) */
.ll-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; width: 100%; }
.ll-btns .btn { justify-content: center; text-align: left; padding-left: 18px; padding-right: 18px; }
.btn.btn-whats { display: inline-flex; align-items: center; gap: 10px; background: #25D366; border: 2px solid #25D366; color: #0B2E17; text-decoration: none; line-height: 1.15; text-align: left; }
.btn.btn-whats:hover { background: #1EBE5A; border-color: #1EBE5A; color: #0B2E17; }
.btn.btn-whats .ico, .ll-actions .btn.btn-whats .ico { font-size: 22px; margin: 0; flex: none; vertical-align: middle; }
.btn.btn-whats .ico svg, .ll-actions .btn.btn-whats .ico svg { width: 1em !important; height: 1em; margin: 0; fill: currentColor; }
.btn-whats .bw-txt { display: flex; flex-direction: column; }
.btn-whats .bw-main { font-weight: 700; }
.btn-whats .bw-sub { font-size: .74rem; font-weight: 500; opacity: .85; }
.btn-whats.btn-full { width: 100%; justify-content: center; }
.contact-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; font-size: .8rem; color: #6B6864; }
.contact-or::before, .contact-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
@media (max-width: 560px) { .ll-btns { grid-template-columns: minmax(0, 1fr); } .ll-btns .btn { width: 100%; } }
.prose .author-box + p { margin-top: 18px; }
.ll-btns .btn { white-space: nowrap; min-height: 58px; }
@media (max-width: 560px) { .ll-btns .btn { white-space: normal; } }
.btn-whats .bw-main { white-space: nowrap; }
@media (max-width: 420px) { .btn.btn-whats { padding-left: 14px; padding-right: 14px; gap: 10px; } .btn-whats .bw-main { font-size: .95rem; } }

/* ===== v8: iconos de línea finos en dorado (Lucide), sin fondos ni círculos ===== */
.lic { display: block; width: 30px; height: 30px; color: var(--gold); fill: none !important; stroke: currentColor; flex: none; }
.lic * { vector-effect: non-scaling-stroke; fill: none !important; }
.benefit-icon, .benefit-card:hover .benefit-icon { width: auto; height: auto; background: none; border: 0; border-radius: 0; margin: 0 0 18px; display: block; color: var(--gold-light); }
.benefit-icon .lic { width: 32px; height: 32px; color: var(--gold-light); }
.benefit-card h3 { padding-top: 14px; border-top: 1px solid rgba(232,213,160,.35); }
.tool-icon, .tool-icon--sm { width: auto; height: auto; background: none; border: 0; border-radius: 0; display: block; margin: 0 0 14px; }
.tool-icon .lic, .tool-icon--sm .lic { width: 30px; height: 30px; }
.ll-ico { width: auto; height: auto; background: none; border: 0; border-radius: 0; display: block; margin: 0 0 12px; }
.ll-ico .lic { width: 30px; height: 30px; }
.ll-list .lic { width: 15px; height: 15px; margin-top: 3px; }
.ll-chip .lic { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; margin-right: 6px; }
.how-steps::before { display: none; }
.how-step { margin-top: 0; padding: 28px 24px 26px; }
.how-ico { position: static !important; width: auto; height: auto; margin: 0 0 16px !important; background: none; border: 0; border-radius: 0; box-shadow: none; display: block; }
.how-ico .lic { width: 30px; height: 30px; }
.gcta-ico { width: auto; height: auto; background: none; border-radius: 0; box-shadow: none; padding-right: 22px; border-right: 1px solid var(--gold-light); align-self: stretch; }
.gcta-ico .lic { width: 30px; height: 30px; }
.ti-ico { width: auto; height: auto; background: none; border: 0; border-radius: 0; display: block; margin: 0 0 12px; }
.ti-ico .lic { width: 28px; height: 28px; }
.contact-icon { width: auto; height: auto; background: none; border: 0; border-radius: 0; padding-top: 2px; }
.contact-icon .lic { width: 24px; height: 24px; }
.footer-contact li .lic { width: 16px; height: 16px; margin-top: 3px; }
.form-success .lic { width: 22px; height: 22px; display: inline-block; }
@media (max-width: 760px) { .gcta-ico { padding-right: 0; border-right: 0; align-self: start; } }
@media (max-width: 700px) { .how-step { padding: 22px 18px; } }
@media (max-width: 560px) { .ti-card { display: block; } .ti-ico { margin-bottom: 10px; } }
.footer-bottom p.footer-disc { margin-top: 8px; font-size: .74rem; color: rgba(255,255,255,.55); }

/* Cómo se calcula: lista numerada vertical, una columna */
.hc-list { display: block; max-width: 760px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--sh-sm); padding: 6px 32px; counter-reset: none; }
.hc-list li, .hc-list li:last-child:nth-child(odd) { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 8px; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 24px 0; border-bottom: 1px solid var(--border); grid-column: auto; }
.hc-list li:last-child { border-bottom: 0; }
.hc-n { width: auto; height: auto; border-radius: 0; background: none; display: block; color: var(--gold); font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.1; letter-spacing: .02em; }
.hc-list h3 { margin: 2px 0 6px; font-size: 1.08rem; }
@media (max-width: 560px) { .hc-list { padding: 2px 20px; } .hc-list li, .hc-list li:last-child:nth-child(odd) { grid-template-columns: 44px minmax(0, 1fr); padding: 20px 0; } .hc-n { font-size: 1.3rem; } }
.gcta-ico .lic, .how-ico .lic, .ti-ico .lic, .ll-ico .lic, .tool-icon .lic, .contact-icon .lic { color: var(--gold); }
.gcta-ico .lic { width: 32px; height: 32px; }
.benefit-icon .lic { color: var(--gold-light); }
.hc-list li:last-child, .hc-list li:last-child:nth-child(odd) { border-bottom: 0; }

/* ===== v8: portadas de guías (tarjetas, destacadas, sigue leyendo y cabecera) ===== */
.guide-card--img { padding: 0; overflow: hidden; gap: 0; align-items: stretch; }
.guide-card--img .gc-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s ease; }
.guide-card--img:hover .gc-img { transform: scale(1.03); }
.guide-card--img .gc-body, .guide-card--img > h2, .guide-card--img > p { padding: 0 28px; }
.guide-card--img .gc-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px 28px; flex: 1; }
.guide-card--img .gc-body p { flex-grow: 1; }
.guide-grid--feat { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1040px; margin: 0 auto; gap: 28px; }
.guide-grid--n1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.guide-card--feat .gc-img { aspect-ratio: 16 / 9; }
.guide-card--feat .gc-body { padding: 28px 32px 32px; }
.guide-card--feat h3, .guide-card--feat h2 { font-size: 1.45rem; }
.guide-list--feat { max-width: 1040px; margin: 0 auto; }
@media (max-width: 700px) { .guide-grid--feat { grid-template-columns: minmax(0, 1fr); } .guide-card--img .gc-body, .guide-card--feat .gc-body { padding: 20px 20px 24px; } .guide-card--feat h3, .guide-card--feat h2 { font-size: 1.25rem; } }

.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 14px; }
.rel-grid.rel-n1, .rel-grid.rel-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .rel-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--primary); box-shadow: var(--sh-sm); transition: box-shadow .3s, transform .3s; }
.prose .rel-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.prose .rel-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin: 0; border-radius: 0; }
.rel-t { display: block; padding: 14px 16px 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.rel-all { margin-top: 16px; font-size: .92rem; }
.rel-all a { font-weight: 600; }
.rel-all .ico { font-size: 12px; margin-left: 4px; }
@media (max-width: 560px) { .rel-grid, .rel-grid.rel-n1, .rel-grid.rel-n2 { grid-template-columns: minmax(0, 1fr); } }

.page-hero--cover { padding: 170px 0 70px; min-height: 520px; display: flex; align-items: flex-end; background-position: center; }
.page-hero--cover > .container { width: 100%; }
.page-hero--cover::before { background: linear-gradient(180deg, rgba(26,25,22,.45) 0%, rgba(26,25,22,.35) 40%, rgba(26,25,22,.88) 100%); }
@media (max-width: 760px) { .page-hero--cover { padding: 120px 0 40px; min-height: 420px; } }

/* Caja "plan por email" con regalo: miniatura de la guía */
.plan-mail .pm-text { display: flex; align-items: center; gap: 20px; }
.pm-thumb { flex: none; width: 84px; height: auto; border-radius: 4px; box-shadow: 0 10px 24px rgba(26,25,22,.18), 0 0 0 1px rgba(196,163,88,.35); transform: rotate(-3deg); }
@media (max-width: 420px) { .pm-thumb { width: 66px; } .plan-mail .pm-text { gap: 14px; } }
@media (max-width: 560px) { .plan-mail .pm-text { flex-direction: column; align-items: flex-start; } .pm-thumb { width: 72px; transform: rotate(-2deg); } }
.guide-card--img h2, .guide-card--img h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.3; }
.rel-grid.rel-n1 { grid-template-columns: minmax(0, 1fr); }
.rel-n1 .rel-card { flex-direction: row; align-items: center; }
.prose .rel-n1 .rel-img { width: 42%; flex: none; aspect-ratio: 16 / 10; }
.rel-n1 .rel-t { padding: 18px 24px; font-size: 1.2rem; }
@media (max-width: 560px) { .rel-n1 .rel-card { flex-direction: column; align-items: stretch; } .prose .rel-n1 .rel-img { width: 100%; } .rel-n1 .rel-t { padding: 14px 16px 16px; font-size: 1.05rem; } }

/* v9: número centrado verticalmente respecto al bloque título + texto */
.hc-list li, .hc-list li:last-child:nth-child(odd) { align-items: center; }
.hc-n { align-self: center; line-height: 1; }
.hc-list h3 { margin-top: 0; }

/* ===== v10: tarjetas equilibradas en toda la web ===== */
/* Servicios: misma altura, número dorado legible, CTA abajo */
.services-grid { align-items: stretch; }
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-img-wrap { flex: none; }
.service-body { display: flex; flex-direction: column; flex: 1; padding: 28px 28px 30px; }
.service-number { color: var(--gold); font-weight: 500; font-size: 2.2rem; letter-spacing: .02em; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(196,163,88,.35); width: 100%; }
.service-body h3 { margin-bottom: 10px; text-wrap: balance; }
.service-body p { flex: 1; margin-bottom: 22px; }
.service-cta { margin-top: auto; align-self: flex-start; }
@media (min-width: 600px) and (max-width: 900px) { .services-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; } }

/* Cómo trabajamos: alturas iguales, contenido alineado, CTA abajo */
.how-steps { align-items: stretch; }
.how-step { display: flex; flex-direction: column; height: 100%; }
.how-step h3 { text-wrap: balance; }
.how-step p { flex: 1; }
.how-cta { margin-top: 14px; align-self: flex-start; }

/* Por qué Dubái: texto con la misma caída en todas */
.benefit-card h3 { text-wrap: balance; }
.benefit-card p { text-wrap: pretty; }

/* Herramientas y guías: CTA siempre a la misma altura */
.tool-card, .guide-card { height: 100%; }
.tool-card-body .service-cta, .tool-card > .service-cta, .guide-card .service-cta { margin-top: auto; }
.tool-card h2.h3, .tool-card h3, .guide-card h2, .guide-card h3, .rel-t { text-wrap: balance; }

/* Tarjetas de información de las herramientas: misma altura */
.tool-info { align-items: stretch; }
.ti-card { height: 100%; }

/* Propietarios: listas sin viudas */
.ll-item li { text-wrap: pretty; }

/* Títulos y párrafos de tarjetas sin palabras sueltas */
.card p, .service-body p, .how-step p, .ti-card p, .tool-card p, .guide-card p { text-wrap: pretty; }

/* Calculadora: proyección a 5 años desde la entrega */
.proj { margin-top: 28px; }
.proj h2 { margin-bottom: 6px; }
.proj-intro { font-size: .92rem; color: var(--secondary); margin-bottom: 20px; }
.proj-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .proj-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.proj-tabs { margin-bottom: 18px; }
.proj-seg { display: flex; width: 100%; }
.proj-seg button { flex: 1; min-width: 0; padding: 9px 8px; }
.proj-seg button[aria-selected="true"] { background: var(--primary); color: var(--gold-light); }
.proj-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.proj-kpi { padding: 16px 16px 4px; border-radius: var(--r-md); background: radial-gradient(120% 90% at 100% 0%, #FBF5E6 0%, var(--gold-pale) 55%, #EFE4C8 100%); border: 1px solid #E7D9B4; min-width: 0; }
.proj-kpi .result-sub { margin-bottom: 4px; font-size: .8rem; font-weight: 600; color: #6B5A2E; }
.proj-kpi .result-big { font-size: 1.55rem; overflow-wrap: anywhere; }
.proj-kpi .result-sub + .result-big + .result-sub { font-weight: 400; color: var(--secondary); margin-bottom: 12px; }
.proj-bars { display: flex; align-items: flex-end; gap: 6px; height: 132px; padding: 0 2px 22px; margin-bottom: 14px; position: relative; border-bottom: 1px solid var(--border); }
.proj-bars .pb { flex: 1; position: relative; height: 100%; display: flex; align-items: flex-end; }
.proj-bars .pb i { display: block; width: 100%; border-radius: 6px 6px 0 0; background: var(--gold); transition: height .35s ease; }
.proj-bars .pb.buy i { background: var(--primary); }
.proj-bars .pb.hl i { background: #8A6D2C; }
.proj-bars .pb span { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; font-size: .7rem; color: #6B6864; white-space: nowrap; }
.proj-table td small { color: #6B6864; }
.proj-table tr.total td small { color: #6B5A2E; font-weight: 400; }
.proj-note { font-size: .8rem; color: #6B6864; margin-top: 12px; }
.proj-in > .hint { font-size: .78rem; color: #6B6864; margin: -4px 0 16px; line-height: 1.5; }
.proj-table th.num { white-space: normal; line-height: 1.3; }
@media (max-width: 520px) {
  .proj.panel { padding: 22px 16px; }
  .proj-seg button { font-size: .8rem; padding: 8px 4px; }
  .proj-table { font-size: .8rem; }
  .proj-table td small { font-size: .68rem; }
  .proj-kpi { padding: 12px 12px 2px; }
  .proj-kpi .result-big { font-size: 1.25rem; }
  .proj-table th, .proj-table td { padding: 9px 4px; }
  .proj-table th:first-child, .proj-table td:first-child { padding-left: 8px; }
  .proj-table th:last-child, .proj-table td:last-child { padding-right: 8px; }
  .proj-bars { height: 110px; gap: 4px; }
}
@media (max-width: 400px) { .proj-seg button { font-size: .74rem; padding: 8px 2px; } }

/* Caja del plan por email: enlace a privacidad en dorado (tono oscuro, legible sobre fondo claro) */
.plan-mail .pm-note a { color: #8A6D2C; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.plan-mail .pm-note a:hover { color: var(--primary); }

/* v20261049: "Sigue leyendo" siempre en una sola fila, sin tarjetas sueltas.
   Ordenador: 3 en fila. Tablet: 2 (se oculta la 3.ª). Móvil: lista compacta con miniatura. */
@media (min-width: 561px) and (max-width: 860px) {
  .rel-grid.rel-n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rel-grid.rel-n3 > .rel-card:nth-child(2) { display: none; }   /* se queda la 1.ª guía y el glosario (última) */
}
@media (max-width: 560px) {
  .rel-grid, .rel-grid.rel-n1, .rel-grid.rel-n2, .rel-grid.rel-n3 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .prose .rel-card, .rel-n1 .rel-card { flex-direction: row; align-items: center; border-radius: 10px; }
  .prose .rel-img, .prose .rel-n1 .rel-img { width: 108px; flex: none; align-self: stretch; height: auto; aspect-ratio: 4 / 3; }
  .rel-t, .rel-n1 .rel-t { padding: 10px 14px; font-size: .98rem; line-height: 1.3; }
  .prose .rel-card:hover { transform: none; }
}
/* Portada: con 3 guías y 2 columnas (tablet) se muestran 2 para no dejar una suelta */
@media (min-width: 701px) and (max-width: 900px) {
  .guide-grid:not(.guide-grid--feat) > .guide-card:nth-child(n+3) { display: none; }
}
/* /guias/: con número impar de tarjetas, la última (el glosario) ocupa la fila entera en horizontal */
.guide-list > .guide-card--span { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.guide-list > .guide-card--span img { width: 44%; flex: none; height: auto; aspect-ratio: auto; object-fit: cover; }
.guide-list > .guide-card--span .gc-body { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 760px) { .guide-list > .guide-card--span { flex-direction: column; } .guide-list > .guide-card--span img { width: 100%; aspect-ratio: 16 / 9; } }

/* v20261050: selector de moneda dentro de la proyección a 5 años (mismo <select> que el de arriba; fx.js los sincroniza).
   Ordenador: barra visible encima de escenarios y cifras. Móvil: se queda fija bajo el menú mientras recorres la proyección. */
.cur-mini { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; background: var(--gold-pale); border: 1px solid var(--gold); border-radius: 12px; padding: 10px 12px 10px 18px; margin: 0 0 22px; }
.cur-mini .cur-lbl { font-size: .8rem; }
.cur-mini .cur-seg { border-color: var(--gold); }
@media (max-width: 760px) {
  .cur-mini { position: sticky; top: 76px; z-index: 20; padding: 8px 8px 8px 14px; box-shadow: 0 6px 18px rgba(26,25,22,.12); flex-wrap: nowrap; }
  .cur-mini .cur-lbl { font-size: .7rem; letter-spacing: .1em; }
  .cur-mini .cur-seg button { padding: 7px 12px; min-width: 48px; }
}
/* selector de arriba más visible */
.cur-bar { border-color: var(--gold); }
.cur-bar .cur-lbl { font-size: .82rem; }
.cur-mini--m { display: none; }
@media (max-width: 760px) { .cur-mini--m { display: flex; position: static; box-shadow: none; } }

/* v20261052: /guias/ filtros por tema y tarjetas compactas en móvil */
.gfilter { display: flex; flex-wrap: wrap; gap: 10px; padding: 40px 0 0; }
.gfilter[hidden] { display: none; }
.gchip { font: inherit; font-size: .9rem; font-weight: 600; line-height: 1; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--primary); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.gchip:hover { border-color: var(--gold); }
.gchip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gchip[aria-pressed="true"] { background: #1A1916; border-color: #1A1916; color: var(--gold-light); }
.guide-list--f { padding-top: 28px; }
.guide-list > .guide-card[hidden] { display: none; }
@media (max-width: 560px) {
  .gfilter { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 24px 2px 4px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gfilter::-webkit-scrollbar { display: none; }
  .gchip { flex: none; font-size: .85rem; padding: 10px 14px; }
  .guide-list { gap: 10px; padding: 18px 0 56px; }
  .guide-list > .guide-card--img, .guide-list > .guide-card--span { flex-direction: row; align-items: stretch; border-radius: 10px; }
  .guide-list > .guide-card--img .gc-img, .guide-list > .guide-card--span img { width: 108px; flex: none; align-self: stretch; height: auto; aspect-ratio: 4 / 3; }
  .guide-list > .guide-card--img .gc-body { padding: 10px 14px; gap: 4px; justify-content: center; }
  .guide-list > .guide-card--img .gc-body h2 { font-size: 1rem; line-height: 1.3; margin: 0; }
  .guide-list > .guide-card--img .gc-body p { font-size: .82rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 0; }
  .guide-list > .guide-card--img .service-cta { display: none; }
  .guide-list > .guide-card:hover { transform: none; }
  .guide-list > .guide-card--img:hover .gc-img { transform: none; }
}

/* Flotantes en móvil: el aviso de cookies es una hoja a todo el ancho pegada al pie (su alto llega en --ck-h);
   la barra fija del quiz ocupa todo el ancho justo encima, y WhatsApp sube por encima de lo que haya debajo. Respeta safe-area. */
:root { --ck-h: 0px; }
@media (max-width: 768px) {
  .whatsapp-fab { right: 14px; bottom: calc(14px + max(var(--ck-h), env(safe-area-inset-bottom, 0px))); width: 52px; height: 52px; font-size: 1.45rem; transition: bottom .3s ease, transform var(--ease), box-shadow var(--ease); }
  .quiz-bar { left: 12px; right: 12px; bottom: calc(14px + max(var(--ck-h), env(safe-area-inset-bottom, 0px))); transform: translateY(calc(100% + 40px + var(--ck-h) + env(safe-area-inset-bottom, 0px))); transition: transform .3s ease, bottom .3s ease; }
  .quiz-bar.show { transform: none; }
  .quiz-bar a { min-height: 52px; padding: 10px 14px; border-radius: 10px; }
  body.has-quiz-bar { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  body.has-quiz-bar .whatsapp-fab { bottom: calc(78px + max(var(--ck-h), env(safe-area-inset-bottom, 0px))); }
}
/* En pantallas táctiles el :hover se queda pegado tras tocar: el botón dorado no debe volverse transparente */
@media (hover: none) {
  .btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
}

