/*
Theme Name: Bergil Investment Group 1.6
Theme URI: https://bergilinvestmentgroup.com
Author: Bergil Investment Group
Description: Tema inmobiliario boutique para Bergil Investment Group. Azul marino profundo, dorado champagne y marfil, tipografía editorial, tipo de contenido Proyectos con zonas, portadas fotográficas y contacto por WhatsApp.
Version: 1.7.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: bergil
Tags: real-estate, elegant, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ============ Tokens ============ */
:root {
  --navy-deep: #031526;
  --navy: #04182a;
  --gold: #c99a52;
  --gold-deep: #a97c37;
  --ivory: #f5f0e8;
  --paper: #ffffff;
  --ink: #14202b;
  --muted: #6a7580;
  --border: #e4ddd1;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1.1rem;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.rule-gold::after {
  content: "";
  display: block;
  width: 54px;
  height: 1px;
  background: var(--gold);
  margin-top: 1.4rem;
}

.section {
  padding: 5rem 0;
}

.section--muted {
  background: var(--ivory);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--navy {
  background: var(--navy-deep);
  color: var(--ivory);
}

.muted {
  color: var(--muted);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
  cursor: pointer;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn--gold:hover {
  background: var(--gold-deep);
  color: var(--ivory);
}

.btn--light {
  border-color: rgba(245, 240, 232, 0.55);
  color: var(--ivory);
}
.btn--light:hover {
  background: rgba(245, 240, 232, 0.12);
}

.btn--dark {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--dark:hover {
  background: var(--ink);
  color: var(--ivory);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============ Header ============ */
.site-header {
  background: #000;
  color: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 60;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 20px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.site-logo img {
  max-height: 62px;
  width: auto;
}

.site-logo__text {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ivory);
}

.nav-main ul {
  display: flex;
  gap: 1.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.82);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.nav-main a:hover,
.nav-main .current-menu-item > a {
  color: var(--ivory);
  border-bottom-color: var(--gold);
}

.header-phone {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(245, 240, 232, 0.4);
  color: var(--ivory);
  padding: 0.55rem 0.8rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
  }
  .nav-main {
    display: none;
    width: 100%;
    background: #000;
    border-top: 1px solid rgba(245, 240, 232, 0.14);
  }
  .nav-main.is-open {
    display: block;
  }
  .nav-main ul {
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 20px 1.4rem;
  }
  .nav-main li {
    border-bottom: 1px solid rgba(245, 240, 232, 0.09);
  }
  .nav-main a {
    display: block;
    padding: 0.95rem 0;
  }
  .site-header__inner {
    flex-wrap: wrap;
  }
}

/* ============ Hero (portadas fotográficas) ============ */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-deep);
}

.page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: bergil-zoom 22s ease-out forwards;
}

.post-type-archive-proyecto .page-hero__img {
  object-position: center 52%;
  animation: bergil-cover-settle 14s cubic-bezier(.16,1,.3,1) both;
}

@keyframes bergil-cover-settle {
  from { transform: scale(1.018); }
  to { transform: scale(1); }
}

.page-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.08) 55%,
    transparent
  );
}

.page-hero__body {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8rem 20px;
}

.page-hero__body > * {
  max-width: 44rem;
}

.page-hero .eyebrow {
  color: var(--gold);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.page-hero h1 {
  color: var(--ivory);
  margin-top: 1rem;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 10px 38px rgba(0, 0, 0, 0.65);
}

.page-hero__text {
  color: var(--ivory);
  margin-top: 2rem;
  max-width: 34rem;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.6),
    0 6px 24px rgba(0, 0, 0, 0.6);
}

.page-hero .btn-row {
  margin-top: 2.4rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: bergil-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes bergil-fade-up {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bergil-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__img,
  .fade-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Ajustes 1.6: móvil, logotipos oficiales y movimiento premium
   ============================================================ */

html {
  overflow-x: hidden;
}

body {
  animation: bergil-page-enter .7s cubic-bezier(.16,1,.3,1) both;
}

@keyframes bergil-page-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.site-header {
  background: #03060d;
  animation: bergil-header-enter .8s cubic-bezier(.16,1,.3,1) both;
}

@keyframes bergil-header-enter {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: none; }
}

/* Compensa solamente el área transparente del PNG oficial. */
.site-logo,
.site-logo__default {
  position: relative;
  width: 210px;
  height: 70px;
  overflow: hidden;
}

.site-logo img,
.site-logo__default img {
  position: absolute;
  top: -39px;
  left: -16px;
  width: 272px !important;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: initial;
}

.footer-logo-frame {
  position: relative;
  display: block;
  width: 210px;
  height: 76px;
  margin-bottom: .8rem;
  overflow: hidden;
}

.site-footer .footer-logo-frame img {
  position: absolute;
  top: -39px;
  left: -16px;
  width: 272px;
  max-width: none;
  max-height: none;
  margin: 0;
}

.reveal {
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

.btn,
.project-card__link,
.text-link,
.nav-main a {
  transition-timing-function: cubic-bezier(.16,1,.3,1);
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: currentColor;
  opacity: .08;
  transform: translateX(-105%);
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}

.btn:hover::before {
  transform: none;
}

.btn:active,
.nav-toggle:active,
.wa-float:active {
  transform: scale(.98);
}

.project-card__media img,
.destination-row__media img,
.gallery img {
  transition: transform 1.1s cubic-bezier(.16,1,.3,1), filter .8s ease;
}

.project-card:hover .project-card__media img,
.gallery a:hover img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.rule-gold::after {
  transform-origin: left center;
  animation: bergil-rule-draw 1.1s .35s cubic-bezier(.16,1,.3,1) both;
}

@keyframes bergil-rule-draw {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* Núcleo circular sin la cápsula ovalada que interfería con el logo. */
.universe-section--premium .universe__sun {
  width: 174px;
  height: 174px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.universe-section--premium .universe__sun img {
  width: 360px;
  max-width: none;
  height: auto;
}

.universe-section--premium .universe__sun::before {
  inset: -8px;
  border-style: solid dashed;
  border-color: rgba(201,154,82,.5);
}

.universe-section--premium .universe__glow {
  inset: -12%;
  background: radial-gradient(circle, rgba(201,154,82,.25), rgba(201,154,82,0) 68%);
}

/* La experiencia orbital permanece activa en teléfonos. */
@media (max-width: 780px) {
  .universe-section--premium .universe,
  .post-type-archive-proyecto .universe-section--premium .universe {
    display: block;
    width: 100%;
    min-height: 540px;
    margin-top: 2.3rem;
    aspect-ratio: auto;
  }

  .universe-section--premium .universe__list {
    display: none;
  }

  .universe-section--premium .universe__planet {
    width: 86px;
  }

  .universe-section--premium .universe__planet-body {
    width: 72px;
    height: 72px;
  }

  .universe-section--premium .universe__planet-label {
    margin-top: .45rem;
    font-size: .64rem;
  }

  .universe-section--premium .universe__sun {
    width: 132px;
    height: 132px;
  }

  .universe-section--premium .universe__sun img {
    width: 275px;
  }

  .universe-section--premium .universe__ring--1 { width: 170px; height: 170px; }
  .universe-section--premium .universe__ring--2 { width: 245px; height: 245px; }
  .universe-section--premium .universe__ring--3 { width: 330px; height: 330px; }
}

@media (max-width: 900px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 1rem;
    min-height: 78px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .site-logo,
  .site-logo__default {
    width: 150px;
    height: 55px;
  }

  .site-logo img,
  .site-logo__default img {
    top: -28px;
    left: -12px;
    width: 195px !important;
  }

  .header-phone {
    display: none;
  }

  .nav-main {
    grid-column: 1 / -1;
    margin: 0 -20px;
    width: auto;
  }

  .nav-main.is-open {
    animation: bergil-menu-open .45s cubic-bezier(.16,1,.3,1) both;
  }

  @keyframes bergil-menu-open {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 640px) {
  .page-hero {
    min-height: calc(100svh - 78px);
    display: flex;
    align-items: flex-end;
  }

  .page-hero__veil {
    background: linear-gradient(to top, rgba(3,21,38,.86), rgba(3,21,38,.24) 74%);
  }

  .page-hero__body {
    width: 100%;
    padding: 4rem 20px 4.8rem;
  }

  .page-hero h1,
  .destinations-hero h1 {
    max-width: 10ch;
    font-size: clamp(2.65rem, 13vw, 3.5rem);
    line-height: .98;
  }

  .page-hero__text,
  .destinations-hero__text {
    max-width: 30ch;
    margin-top: 1.5rem;
    font-size: .94rem;
    line-height: 1.65;
  }

  .page-hero .btn-row {
    margin-top: 1.7rem;
  }

  .page-hero .btn,
  .destination-cta .btn,
  .advisor__body .btn {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
  }

  .grid,
  .advisors,
  .compare__pickers {
    grid-template-columns: minmax(0, 1fr);
  }

  .advisor__media {
    aspect-ratio: 4 / 5.15;
  }

  .advisor__media img {
    object-position: center 12%;
  }

  .destination-row__body {
    min-height: 0;
    padding: 3.2rem 20px 3.6rem;
  }

  .destination-row__body h2 {
    font-size: clamp(2.55rem, 12vw, 3.6rem);
  }

  .team-editorial img {
    min-height: 0;
    max-height: none;
    object-fit: contain;
  }

  .wa-float {
    right: 10px;
    bottom: 10px;
    padding: .65rem .78rem;
    font-size: .56rem;
  }
}

@media (max-width: 390px) {
  .universe-section--premium .universe {
    min-height: 500px;
  }

  .universe__detail-card {
    min-height: 132px;
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .site-header,
  .rule-gold::after,
  .nav-main.is-open {
    animation: none;
  }
}

/* ============ Tarjetas de proyecto ============ */
.grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.project-card {
  border: 1px solid var(--border);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.4s,
    transform 0.4s;
}

.project-card:hover {
  box-shadow: 0 26px 60px -32px rgba(3, 21, 38, 0.4);
  transform: translateY(-4px);
}

.project-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ivory);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.project-card:hover .project-card__media img {
  transform: scale(1.06);
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(3, 21, 38, 0.85);
  color: var(--gold);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
}

.project-card__body {
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.project-card__zone {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.project-card__meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.project-card__link {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.64rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  align-self: flex-start;
}

/* ============ Detalle de proyecto ============ */
.facts {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.2rem 0;
  margin: 3rem 0;
}

.fact__label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.fact__value {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0;
}

.entry-content {
  max-width: 46rem;
}

.entry-content ul {
  padding-left: 1.2rem;
}

.gallery-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 2.4rem;
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.notice {
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  margin-top: 3rem;
}

/* ============ Filtros de zona ============ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 2.4rem 0 3rem;
}

.filters a {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border);
}

.filters a:hover,
.filters a.is-active {
  border-color: var(--gold);
  color: var(--gold-deep);
}

/* ============ Formulario de contacto ============ */
.lead-form {
  border: 1px solid var(--border);
  padding: 2rem;
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1fr 1fr;
}

.lead-form .full {
  grid-column: 1 / -1;
}

.lead-form label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--paper);
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

@media (max-width: 640px) {
  .lead-form {
    grid-template-columns: 1fr;
  }
  .page-hero__body {
    padding: 5rem 20px;
  }
  .section {
    padding: 3.4rem 0;
  }
}

/* Portadas editoriales específicas. Mantienen los rostros dentro del recorte. */
.page-template-template-asesor .page-hero__img {
  object-position: center 24%;
}

.page-template-template-nosotros .page-hero__img {
  object-position: center 27%;
}

.page-template-template-contacto .page-hero__img {
  object-position: center 24%;
}

.page-template-template-guias .page-hero__img,
.page-template-template-comparador .page-hero__img {
  object-position: center center;
}

.post-type-archive-proyecto .universe-section {
  background: var(--ivory);
  border-top: 1px solid var(--border);
}

.post-type-archive-proyecto .universe {
  min-height: 520px;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(245, 240, 232, 0.78);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

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

.footer-grid {
  display: grid;
  gap: 2.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-footer h4 {
  color: var(--ivory);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-legal {
  border-top: 1px solid rgba(245, 240, 232, 0.14);
  margin-top: 3rem;
  padding-top: 1.6rem;
  font-size: 0.76rem;
  color: rgba(245, 240, 232, 0.55);
}

/* ============ WhatsApp flotante ============ */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.85rem 1.2rem;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 18px 40px -18px rgba(3, 21, 38, 0.6);
}

.wa-float:hover {
  background: var(--gold-deep);
  color: var(--ivory);
}

/* ============ Paginación / comentarios básicos ============ */
.pagination {
  margin-top: 3rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  border: 1px solid var(--border);
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
}

.pagination .current {
  border-color: var(--gold);
  color: var(--gold-deep);
}

/* ============================================================
   Universo orbital, asesores, asesor de inversión y comparador
   ============================================================ */

.universe-section { overflow: hidden; }

.universe {
  position: relative;
  margin-top: 3.5rem;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 52%, rgba(201,154,82,0.16), rgba(201,154,82,0) 58%),
    linear-gradient(180deg, rgba(245,240,232,0.55), rgba(245,240,232,0));
}

.universe__orbits { position: absolute; inset: 0; }
.universe__orbits svg { display: block; }
.universe__orbits ellipse {
  fill: none;
  stroke: rgba(201,154,82,0.45);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}

.universe__rings { position: absolute; inset: 0; pointer-events: none; }
.universe__ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid rgba(201,154,82,0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: bergil-spin 90s linear infinite;
}
.universe__ring--1 { width: 190px; height: 190px; }
.universe__ring--2 { width: 260px; height: 260px; animation-duration: 130s; animation-direction: reverse; }
.universe__ring--3 { width: 340px; height: 340px; animation-duration: 170s; }

@keyframes bergil-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.universe__sun {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 148px; height: 148px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy-deep, #031526);
  box-shadow: 0 0 0 1px rgba(201,154,82,0.5), 0 0 60px rgba(201,154,82,0.35);
  z-index: 5;
}
.universe__sun img { width: 72%; height: auto; }
.universe__sun-text {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.4rem;
  color: #f5f0e8;
  letter-spacing: 0.08em;
}
.universe__glow {
  position: absolute; inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,154,82,0.35), rgba(201,154,82,0) 70%);
  animation: bergil-pulse 5s ease-in-out infinite alternate;
}
@keyframes bergil-pulse { from { opacity: 0.5; transform: scale(1); } to { opacity: 0.95; transform: scale(1.1); } }

.universe__planets { position: absolute; inset: 0; }
.universe__planet {
  position: absolute;
  width: 76px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: filter 0.3s ease;
}
.universe__planet-body {
  display: block;
  width: 68px; height: 68px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy-soft, #12283c);
  box-shadow: 0 0 0 1px rgba(201,154,82,0.6), 0 10px 24px rgba(3,21,38,0.28);
}
.universe__planet-body img { width: 100%; height: 100%; object-fit: cover; }
.universe__planet-label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.66rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
}
.universe__planet-label strong { display: block; font-weight: 600; }
.universe__planet-label em {
  display: block;
  font-style: normal;
  opacity: 0.6;
  font-size: 0.6rem;
}
.universe__planet:hover { filter: brightness(1.08); z-index: 900 !important; }
.universe__planet.is-demo .universe__planet-body { box-shadow: 0 0 0 1px rgba(201,154,82,0.35); }
.universe__demo {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.1rem 0.35rem;
  border: 1px solid rgba(201,154,82,0.6);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.universe__list { display: none; margin: 2rem 0 0; padding: 0; list-style: none; }
.universe__list a {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(3,21,38,0.1);
  text-decoration: none; color: inherit;
}
.universe__list span { opacity: 0.6; font-size: 0.8rem; }

@media (max-width: 780px) {
  .universe { display: none; }
  .universe__list { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .universe__ring, .universe__glow { animation: none; }
}

/* Asesores */
.advisors {
  display: grid;
  gap: 2.4rem;
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.advisor { border: 1px solid rgba(3,21,38,0.1); background: #fff; }
.advisor__media { aspect-ratio: 4 / 5; overflow: hidden; }
.advisor__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.advisor__body { padding: 1.8rem; }
.advisor__body h3 { margin: 0 0 0.4rem; font-size: 1.5rem; }
.advisor__body .btn { margin-top: 1.4rem; }

.value-card { border-top: 1px solid rgba(201,154,82,0.5); padding-top: 1.4rem; }
.value-card h3 { margin: 0 0 0.8rem; font-size: 1.35rem; }

/* Asesor de inversión */
.matcher { margin-top: 3rem; border: 1px solid rgba(3,21,38,0.12); padding: 2.4rem; background: #fff; }
.matcher__step { display: none; border: 0; margin: 0; padding: 0; }
.matcher__step.is-active { display: block; }
.matcher__step h3 { margin: 0.6rem 0 1.6rem; font-size: 1.8rem; }
.matcher__options { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.matcher__option {
  border: 1px solid rgba(3,21,38,0.18);
  background: transparent;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.matcher__option:hover { border-color: var(--gold, #c99a52); color: var(--gold-deep, #a97f3c); }
.matcher__option.is-selected { background: var(--gold, #c99a52); border-color: var(--gold, #c99a52); color: #031526; }
.matcher__bar { margin-top: 2.4rem; height: 2px; background: rgba(3,21,38,0.1); }
.matcher__bar span { display: block; height: 100%; width: 0; background: var(--gold, #c99a52); transition: width 0.4s ease; }
.matcher__result h3 { margin: 0.6rem 0 1rem; font-size: 1.8rem; }

/* Comparador */
.compare { margin-top: 3rem; }
.compare__pickers { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.compare__pickers label { display: block; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.5rem; }
.compare__pickers select { width: 100%; padding: 0.75rem; border: 1px solid rgba(3,21,38,0.2); background: #fff; font: inherit; }
.compare__panels { display: grid; gap: 2rem; margin-top: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.compare__panel { border: 1px solid rgba(3,21,38,0.12); padding: 1.6rem; background: #fff; }
.compare__panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.compare__panel h3 { margin: 1.2rem 0 1rem; font-size: 1.5rem; }
.compare__facts { display: grid; gap: 1rem; }
.compare__facts .fact__label { margin: 0; font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; }
.compare__facts .fact__value { margin: 0.2rem 0 0; }

/* Lightbox de galería */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  display: none; place-items: center;
  background: rgba(3,21,38,0.92);
  padding: 2rem;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: 88vh; }
.lightbox button {
  position: absolute; top: 1.2rem; right: 1.6rem;
  background: transparent; border: 0; color: #f5f0e8;
  font-size: 2rem; cursor: pointer; line-height: 1;
}

/* ============ Versión 1.2 — paridad visual con Lovable ============ */
.site-header__inner {
  min-height: 94px;
}

.site-logo,
.site-logo__default,
.custom-logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo img,
.site-logo__default img,
.custom-logo {
  width: 168px;
  max-height: 58px;
  object-fit: contain;
}

.destinations-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-deep);
}

.destinations-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: bergil-zoom 22s ease-out forwards;
}

.destinations-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgba(0,0,0,.48) 0%, rgba(0,0,0,.14) 56%, rgba(0,0,0,.03) 100%);
}

.destinations-hero__content {
  width: 100%;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.destinations-hero .eyebrow {
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}

.destinations-hero h1 {
  max-width: 650px;
  margin-top: 1.35rem;
  color: var(--ivory);
  font-size: clamp(3.25rem, 5.4vw, 5.4rem);
  line-height: .98;
  text-shadow: 0 4px 30px rgba(0,0,0,.55);
}

.destinations-hero__text {
  max-width: 610px;
  margin-top: 3.5rem;
  color: var(--ivory);
  font-size: 1rem;
  line-height: 1.75;
  text-shadow: 0 2px 16px rgba(0,0,0,.7);
}

.destination-list {
  background: var(--paper);
}

.destination-row {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}

.destination-row--reverse {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}

.destination-row--reverse .destination-row__media {
  order: 2;
}

.destination-row__media {
  min-height: 540px;
  overflow: hidden;
}

.destination-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.16,1,.3,1);
}

.destination-row__media:hover img {
  transform: scale(1.035);
}

.destination-row__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(3.5rem, 7vw, 8rem);
  background: var(--ivory);
}

.destination-row--reverse .destination-row__body {
  background: #fff;
}

.destination-row__body .eyebrow {
  color: var(--gold-deep);
}

.destination-row__body h2 {
  margin: 1rem 0 1.5rem;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  color: var(--navy-deep);
}

.destination-row__body > p:not(.eyebrow):not(.destination-row__count) {
  max-width: 510px;
  color: var(--muted);
}

.destination-row__count {
  margin-top: .9rem;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.text-link {
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  margin-top: 1.3rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--gold);
  font-size: .68rem;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.destination-cta {
  padding: 5.5rem 0;
}

.destination-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3rem;
}

.destination-cta h2 {
  margin-bottom: 1rem;
  color: var(--ivory);
}

.destination-cta p {
  max-width: 610px;
  margin: 0;
  color: rgba(245,240,232,.72);
}

.footer-grid {
  grid-template-columns: 1.35fr .8fr .9fr;
}

.footer-brand img {
  width: 185px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  max-width: 390px;
  color: rgba(245,240,232,.68);
}

.site-footer strong {
  color: var(--ivory);
  font-weight: 500;
}

@media (max-width: 900px) {
  .site-header__inner {
    min-height: 78px;
  }
  .site-logo img,
  .site-logo__default img,
  .custom-logo {
    width: 145px;
  }
  .destinations-hero {
    min-height: 520px;
  }
  .destination-row,
  .destination-row--reverse {
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .destination-row--reverse .destination-row__media {
    order: 0;
  }
  .destination-row__media {
    min-height: 420px;
  }
  .destination-row__body {
    min-height: 410px;
    padding: 4rem 2rem;
  }
  .destination-cta__inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .destinations-hero {
    min-height: 560px;
  }
  .destinations-hero__content {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .destinations-hero h1 {
    font-size: 3rem;
  }
  .destinations-hero__text {
    margin-top: 2.25rem;
  }
  .destination-row__media {
    min-height: 310px;
  }
  .destination-cta .btn-row {
    align-items: stretch;
    flex-direction: column;
  }
  .destination-cta .btn {
    justify-content: center;
  }
}

/* ============================================================
   Refinamiento editorial 1.4 — equipo y Universo Bergil
   ============================================================ */

/* Las portadas interiores siempre muestran arquitectura/proyectos. */
.page-template-template-asesor .page-hero__img,
.page-template-template-nosotros .page-hero__img,
.page-template-template-contacto .page-hero__img,
.page-template-template-guias .page-hero__img,
.page-template-template-comparador .page-hero__img {
  object-position: center center;
}

.team-editorial {
  width: min(1180px, calc(100% - 40px));
  margin: clamp(3rem, 7vw, 6rem) auto 0;
  overflow: hidden;
  background: var(--navy-deep);
}

.team-editorial img {
  display: block;
  width: 100%;
  max-height: 780px;
  object-fit: cover;
  object-position: center 32%;
}

.advisors {
  gap: clamp(1.5rem, 4vw, 4rem);
}

.advisor {
  position: relative;
  border: 0;
  background: transparent;
}

.advisor__media {
  aspect-ratio: 4 / 5;
  background: #e8e3db;
}

.advisor__media img {
  object-position: center 16%;
  transition: transform .9s cubic-bezier(.16,1,.3,1);
}

.advisor:hover .advisor__media img {
  transform: scale(1.025);
}

.advisor__body {
  position: relative;
  width: calc(100% - 2rem);
  margin: -2.8rem auto 0;
  padding: 1.8rem 2rem 2rem;
  background: var(--ivory);
  box-shadow: 0 24px 55px -40px rgba(3,21,38,.55);
}

.advisor__body h3 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

/* Universo: una experiencia oscura, legible y conectada con los proyectos. */
.universe-section--premium,
.post-type-archive-proyecto .universe-section--premium {
  position: relative;
  overflow: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 18% 18%, rgba(201,154,82,.11), transparent 28%),
    radial-gradient(circle at 82% 70%, rgba(42,104,135,.16), transparent 30%),
    var(--navy-deep);
  border-top: 1px solid rgba(201,154,82,.24);
}

.universe-section--premium::before,
.universe-section--premium::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background-image:
    radial-gradient(circle, rgba(245,240,232,.7) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(201,154,82,.7) 0 1px, transparent 1.5px);
  background-position: 0 0, 43px 61px;
  background-size: 97px 97px, 151px 151px;
}

.universe-section--premium::after {
  opacity: .18;
  transform: scale(1.2) rotate(7deg);
}

.universe-section--premium .wrap {
  position: relative;
  z-index: 1;
}

.universe-section--premium .eyebrow {
  color: var(--gold);
}

.universe-section--premium h2 {
  max-width: 780px;
  color: var(--ivory);
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.universe-section--premium > .wrap > .muted {
  color: rgba(245,240,232,.68);
}

.universe-section--premium .universe,
.post-type-archive-proyecto .universe-section--premium .universe {
  min-height: 610px;
  border: 1px solid rgba(201,154,82,.19);
  background:
    radial-gradient(ellipse at center, rgba(201,154,82,.13), transparent 39%),
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
  box-shadow: inset 0 0 90px rgba(0,0,0,.22);
}

.universe-section--premium .universe__orbits ellipse {
  stroke: rgba(201,154,82,.44);
  stroke-dasharray: 2 7;
}

.universe-section--premium .universe__ring {
  border-color: rgba(201,154,82,.2);
}

.universe-section--premium .universe__ring--1 { width: 240px; height: 240px; }
.universe-section--premium .universe__ring--2 { width: 360px; height: 360px; }
.universe-section--premium .universe__ring--3 { width: 500px; height: 500px; }

.universe-section--premium .universe__sun {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(3,21,38,.96);
  box-shadow: 0 0 0 1px rgba(201,154,82,.62), 0 0 90px rgba(201,154,82,.25);
}

.universe-section--premium .universe__sun img {
  width: 76%;
}

.universe-section--premium .universe__planet {
  width: 112px;
  color: var(--ivory);
}

.universe-section--premium .universe__planet-body {
  width: 94px;
  height: 94px;
  border: 2px solid rgba(201,154,82,.76);
  box-shadow: 0 18px 42px rgba(0,0,0,.48), 0 0 24px rgba(201,154,82,.13);
}

.universe-section--premium .universe__planet-label {
  font-size: .72rem;
  text-shadow: 0 2px 12px #031526;
}

.universe-section--premium .universe__planet-label em {
  color: rgba(245,240,232,.64);
  opacity: 1;
}

.universe__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: rgba(201,154,82,.22);
  border: 1px solid rgba(201,154,82,.22);
}

.universe__detail-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  min-height: 154px;
  padding: 1.6rem;
  color: var(--ivory);
  background: rgba(3,21,38,.94);
  text-decoration: none;
  transition: background .3s ease;
}

.universe__detail-card:hover {
  color: var(--ivory);
  background: #0a2439;
}

.universe__detail-number {
  align-self: start;
  color: var(--gold);
  font-size: .64rem;
  letter-spacing: .18em;
}

.universe__detail-card small,
.universe__detail-card strong,
.universe__detail-card em {
  display: block;
}

.universe__detail-card small {
  margin-bottom: .4rem;
  color: var(--gold);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.universe__detail-card strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
}

.universe__detail-card em {
  margin-top: .55rem;
  color: rgba(245,240,232,.58);
  font-size: .76rem;
  font-style: normal;
  line-height: 1.55;
}

.universe__detail-arrow {
  color: var(--gold);
  font-size: 1.2rem;
}

@media (max-width: 780px) {
  .team-editorial {
    width: 100%;
    margin-top: 0;
  }
  .team-editorial img {
    min-height: 500px;
    object-position: center center;
  }
  .universe-section--premium .universe__list a {
    color: var(--ivory);
    border-color: rgba(245,240,232,.16);
  }
  .universe__details {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }
}

@media (max-width: 520px) {
  .advisor__body {
    width: calc(100% - 1rem);
    padding: 1.5rem;
  }
  .universe__detail-card {
    grid-template-columns: 1fr auto;
  }
  .universe__detail-number {
    display: none;
  }
}

/* ============================================================
   Ajustes 1.5 — movimiento, jerarquía y proporciones
   ============================================================ */

/* Footer más compacto y refinado. */
.site-footer {
  padding: 2.6rem 0 1.25rem;
  font-size: .82rem;
}

.site-footer .wrap {
  max-width: 1120px;
}

.site-footer .footer-grid {
  grid-template-columns: 1.35fr .8fr .7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.site-footer .footer-brand img {
  width: 142px;
  margin-bottom: 1rem;
}

.site-footer .footer-brand p {
  max-width: 340px;
  font-size: .8rem;
  line-height: 1.7;
}

.site-footer h4 {
  margin-bottom: .7rem;
  font-size: 1rem;
}

.site-footer ul {
  gap: .42rem;
  line-height: 1.55;
}

.site-footer .footer-legal {
  margin-top: 1.9rem;
  padding-top: 1rem;
  font-size: .66rem;
  line-height: 1.6;
}

.wa-float {
  right: 14px;
  bottom: 14px;
  padding: .72rem 1rem;
}

/* Separación visual clara entre destinos. */
.destination-list {
  display: grid;
  gap: 1.4rem;
  padding: 1.4rem 0;
  background: #e8e3db;
}

.destination-row {
  background: var(--ivory);
  box-shadow: 0 18px 48px -42px rgba(3,21,38,.5);
}

.destination-row--reverse .destination-row__body {
  background: var(--paper);
}

/* La fotografía del equipo conserva las cabezas dentro del encuadre. */
.team-editorial img {
  object-position: center top;
}

/* Las guías siempre tienen una imagen editorial y proporciones uniformes. */
.guide-card .project-card__media {
  aspect-ratio: 4 / 3;
  background: var(--ivory);
}

.guide-card .project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card .project-card__body {
  min-height: 285px;
}

/* Las líneas orbitales se desplazan y el núcleo central gira y respira. */
.universe-section--premium .universe__orbits ellipse {
  animation: bergil-orbit-dash 9s linear infinite;
}

.universe-section--premium .universe__orbits ellipse:nth-child(2) {
  animation-duration: 13s;
  animation-direction: reverse;
}

.universe-section--premium .universe__orbits ellipse:nth-child(3) {
  animation-duration: 17s;
}

.universe-section--premium .universe__orbits ellipse:nth-child(4) {
  animation-duration: 21s;
  animation-direction: reverse;
}

@keyframes bergil-orbit-dash {
  to { stroke-dashoffset: -90; }
}

.universe-section--premium .universe__ring {
  border-style: dashed;
  border-width: 1px;
}

.universe-section--premium .universe__sun::before {
  content: "";
  position: absolute;
  inset: -17px;
  border: 1px dashed rgba(201,154,82,.62);
  border-radius: 50%;
  animation: bergil-core-spin 18s linear infinite;
}

.universe-section--premium .universe__sun::after {
  content: "";
  position: absolute;
  top: -21px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(201,154,82,.9);
  animation: bergil-core-breathe 3.2s ease-in-out infinite alternate;
}

.universe-section--premium .universe__sun img {
  position: relative;
  z-index: 2;
  animation: bergil-logo-breathe 4.5s ease-in-out infinite alternate;
}

@keyframes bergil-core-spin {
  to { transform: rotate(360deg); }
}

@keyframes bergil-core-breathe {
  to { transform: translateX(-50%) scale(1.5); opacity: .55; }
}

@keyframes bergil-logo-breathe {
  from { transform: scale(.97); filter: brightness(.92); }
  to { transform: scale(1.035); filter: brightness(1.12); }
}

@media (max-width: 900px) {
  .site-footer .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .site-footer {
    padding-top: 2.2rem;
  }
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .destination-list {
    gap: .8rem;
    padding: .8rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .universe-section--premium .universe__orbits ellipse,
  .universe-section--premium .universe__sun::before,
  .universe-section--premium .universe__sun::after,
  .universe-section--premium .universe__sun img {
    animation: none;
  }
}
