:root {
  --c-navy:       #0A1628;
  --c-navy-2:     #0F2038;
  --c-gold:       #C4963A;
  --c-gold-light: #E8C06A;
  --c-gold-dark:  #A67C2B;
  --c-cream:      #F3E4D8;
  --c-ink:        #1A1A1A;
  --c-bg:         #FAF7F2;
  --c-line:       #E6DDD1;
  --c-text-soft:  #6B6459;

  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
li {
  margin-bottom: .6rem; padding-left: 1.2rem; position: relative;
}
li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-gold);
}

/* ══════════════════════ Preloader (marca compartida) ═══════════ */
.tb-preloader {
  position: fixed; inset: 0; z-index: 999999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.75rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(196,150,58,.14), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(196,150,58,.10), transparent 50%),
    linear-gradient(135deg, #0A1628 0%, #0F2038 55%, #0A1628 100%);
  opacity: 1; visibility: visible;
  transition: opacity .4s ease, visibility .4s ease;
}
.tb-preloader.tb-preloader-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.tb-stage { width: clamp(150px, 34vmin, 220px); aspect-ratio: 1; animation: tb-stage-in .7s cubic-bezier(.2,.8,.3,1) both; }
.tb-mark-svg { width: 100%; height: 100%; overflow: visible; display: block; }
.tb-halo, .tb-orbit, .tb-ray { transform-box: view-box; transform-origin: 700px 420px; }
.tb-halo { opacity: 0; animation: tb-halo-in .9s .1s ease forwards, tb-halo-breathe 3.2s 1s ease-in-out infinite; }
.tb-orbit { fill: none; stroke-linecap: round; opacity: 0; }
.tb-orbit-a { stroke: var(--c-gold); stroke-width: 2; stroke-dasharray: 2 15; animation: tb-orbit-in .8s .28s ease forwards, tb-spin 30s linear infinite; }
.tb-orbit-b { stroke: var(--c-gold-light); stroke-width: 4; stroke-dasharray: 90 630; animation: tb-orbit-in .7s .45s ease forwards, tb-spin 2.4s linear infinite; }
.tb-arc-stroke { fill: none; stroke: url(#tbGrad); stroke-width: 7; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: tb-draw .9s cubic-bezier(.65,0,.35,1) forwards, tb-vanish .35s .78s ease forwards; }
.tb-arc-fill { fill: url(#tbGrad); opacity: 0; animation: tb-emerge .45s .72s ease forwards; }
.tb-ray { fill: url(#tbGrad); opacity: 0; animation: tb-ray-in .5s cubic-bezier(.2,.9,.3,1.5) forwards, tb-ray-sweep 1.9s ease-in-out infinite; animation-delay: calc(.62s + var(--i) * .06s), calc(1.6s + var(--i) * .08s); }
.tb-preloader-text { display: flex; flex-direction: column; align-items: center; gap: .625rem; }
.tb-preloader-brand { color: #fff; font-family: var(--font-body); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
.tb-preloader-message { color: var(--c-gold-light); font-family: var(--font-body); font-size: 1rem; font-weight: 600; min-height: 1.5em; text-align: center; padding: 0 1.5rem; transition: opacity .22s ease, transform .22s ease; }
.tb-preloader-message.tb-msg-fade { opacity: 0; transform: translateY(4px); }
.tb-bar { width: clamp(130px, 26vw, 190px); height: 3px; border-radius: 999px; background: color-mix(in srgb, var(--c-gold) 22%, transparent); overflow: hidden; opacity: 0; animation: tb-emerge .5s 1s ease forwards; }
.tb-bar span { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent, var(--c-gold-light), transparent); animation: tb-bar-slide 1.3s 1.1s cubic-bezier(.55,0,.45,1) infinite; }

@keyframes tb-stage-in { from { opacity: 0; transform: translateY(12px) scale(.93); } to { opacity: 1; transform: none; } }
@keyframes tb-spin { to { transform: rotate(360deg); } }
@keyframes tb-orbit-in { to { opacity: .6; } }
@keyframes tb-halo-in { to { opacity: 1; } }
@keyframes tb-halo-breathe { 0%, 100% { transform: scale(.9); opacity: .8; } 50% { transform: scale(1.07); opacity: 1; } }
@keyframes tb-draw { to { stroke-dashoffset: 0; } }
@keyframes tb-vanish { to { opacity: 0; } }
@keyframes tb-emerge { to { opacity: 1; } }
@keyframes tb-ray-in { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes tb-ray-sweep { 0%, 100% { opacity: 1; } 45% { opacity: .25; } }
@keyframes tb-bar-slide { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

@media (prefers-reduced-motion: reduce) {
  .tb-stage, .tb-halo, .tb-orbit, .tb-arc-fill, .tb-ray, .tb-bar { animation: none; }
  .tb-arc-stroke { display: none; }
  .tb-halo, .tb-arc-fill, .tb-ray, .tb-bar { opacity: 1; }
  .tb-orbit { opacity: .4; }
}

/* ══════════════════════ Header ══════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
  border-bottom: 1px solid rgba(196,150,58,.25);
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 3vw;
}
.logo-link img {
  height: 42px; width: auto;
  /* El logo es tinta negra sobre transparente (pensado para fondo claro) —
     se invierte a blanco para leerse sobre el header navy en vez de
     meterlo en una caja blanca, que era justo lo que no se quería. */
  filter: invert(1);
  transition: opacity .2s ease;
}
.logo-link:hover img { opacity: .8; }
.header-nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.header-nav a {
  color: rgba(255,255,255,.82); font-family: var(--font-body);
  font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  text-decoration: none; padding: .5rem .85rem; border-radius: 3px;
  transition: color .15s ease, background-color .15s ease;
}
.header-nav a:hover { color: var(--c-gold-light); background: rgba(255,255,255,.05); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--c-navy);
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .header-nav.is-open { max-height: 400px; }
  .header-nav a { padding: .85rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
}

/* ══════════════════════ Slider ══════════════════════════════════ */
.slider { position: relative; width: 100%; overflow: hidden; height: 68vh; background: var(--c-navy); }
.slider-track { position: relative; width: 100%; height: 100%; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-fade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,22,40,.15) 0%, transparent 30%, transparent 70%, rgba(10,22,40,.55) 100%);
}
@media (max-width: 991px) { .slider { height: 52vh; } }
@media (max-width: 767px) { .slider { height: 40vh; } }
@media (max-width: 479px) { .slider { height: 30vh; } }

/* ══════════════════════ Hero ═════════════════════════════════════ */
.hero { padding: 5rem 0; background: var(--c-bg); }
.hero-inner { display: flex; align-items: center; max-width: 1400px; margin: 0 auto; gap: 4vw; padding: 0 3vw; }
.hero-photo { width: 38%; }
.hero-photo img { border-radius: 2px; box-shadow: 0 30px 60px -20px rgba(10,22,40,.35); }
.hero-content { width: 62%; display: flex; flex-direction: column; align-items: flex-start; }
.hero-logo-text {
  width: 220px; margin-bottom: 1.75rem;
  /* JPG con fondo blanco de fábrica — multiply lo funde con el fondo del
     hero en vez de mostrar un rectángulo blanco. */
  mix-blend-mode: multiply;
}
/* Separador propio (no la imagen Line.jpg original, con su fondo blanco
   visible) — un trazo dorado con un punto al centro, mismo lenguaje visual
   que el halo/rayos del preloader. */
.divider { display: flex; align-items: center; gap: .5rem; width: 140px; margin-bottom: 1.75rem; }
.divider i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--c-gold)); }
.divider i:last-child { background: linear-gradient(90deg, var(--c-gold), transparent); }
.divider b { width: 6px; height: 6px; border-radius: 50%; background: var(--c-gold); flex-shrink: 0; }
.hero-copy {
  margin: 0; font-size: 1.15rem; line-height: 1.75; color: var(--c-ink);
  max-width: 34rem;
}

@media (max-width: 991px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-photo, .hero-content { width: 100%; }
  .hero-content { align-items: center; }
  .hero-copy { max-width: none; }
}

/* ══════════════════════ Sections shared ═════════════════════════ */
.section-inner { max-width: 1400px; margin: 0 auto; padding: 0 3vw; }
.eyebrow {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--c-gold-dark);
  text-align: center; margin: 0 0 .75rem;
}
.eyebrow-light { color: var(--c-gold-light); }
.section-headline {
  text-align: center; color: var(--c-ink);
  margin-bottom: 3rem; font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  font-style: italic; font-weight: 400;
}
.section-headline-light { color: #fff; }

/* ══════════════════════ ¿Por qué Trobbu? ════════════════════════ */
.why-trobbu { background: var(--c-bg); padding: 6rem 0; }
.why-row { display: flex; align-items: center; gap: 5vw; margin-bottom: 4rem; }
.why-row:last-child { margin-bottom: 0; }
.why-img, .why-text { width: 42%; }
.why-row .why-text { width: 58%; }
.why-row-reverse .why-text { width: 58%; }
.why-row-reverse .why-img { width: 42%; }
.why-img img { border-radius: 2px; }
.why-text h4 { font-size: 1.6rem; color: var(--c-navy); margin-bottom: 1rem; }
.why-text li { color: var(--c-text-soft); font-size: .98rem; }

@media (max-width: 991px) {
  .why-row, .why-row-reverse { flex-direction: column; text-align: center; }
  .why-row-reverse { flex-direction: column-reverse; }
  .why-img, .why-text, .why-row .why-text, .why-row-reverse .why-text { width: 100%; }
  .why-text li { text-align: left; }
}

/* ══════════════════════ Destinos ════════════════════════════════ */
/* Los renders ya llevan "TROBBU [DESTINO]" impreso arriba de la imagen
   (parte del arte, no algo que yo agregue) — por eso NO se recortan a un
   aspect-ratio fijo (cortaría ese texto); se muestran completas y el hover
   solo agrega el llamado a la acción abajo. */
.destinos { padding: 6rem 0; background: var(--c-navy); }
.destinos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.destino-card { position: relative; display: block; overflow: hidden; }
.destino-card img {
  width: 100%; display: block;
  filter: grayscale(65%) brightness(.92);
  transform: scale(1.01);
  transition: filter .5s ease, transform .6s ease;
}
.destino-card:hover img { filter: grayscale(0%) brightness(1); transform: scale(1.04); }
.destino-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 78%, rgba(10,22,40,.88) 100%);
}
.destino-cta {
  color: var(--c-gold-light); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.destino-card:hover .destino-cta { opacity: 1; transform: none; }

.destinos-grid > .destino-card:last-child { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }
@media (max-width: 991px) {
  .destinos-grid { grid-template-columns: 1fr; }
  .destinos-grid > .destino-card:last-child { max-width: 100%; }
  .destino-cta { opacity: 1; transform: none; }
}

/* ══════════════════════ Full-bleed image bands ══════════════════ */
.band { width: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; }
.band-goce { height: 550px; }
.platforma { background: #EEE8DD; }
.band-join { height: 950px; background-attachment: scroll; }

@media (max-width: 1120px) { .band-join { height: 571px; } }
@media (max-width: 991px)  { .band-goce { background-attachment: scroll; height: 382px; } .band-join { height: 358px; } }
@media (max-width: 767px)  { .band-goce { background-size: contain; background-attachment: scroll; height: 260px; } .band-join { height: 280px; } }
@media (max-width: 479px)  { .band-goce { background-size: cover; height: 188px; } .band-join { height: 213px; } }

/* ══════════════════════ Footer ═══════════════════════════════════ */
.site-footer { background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 100%); }
.footer-inner {
  max-width: 1400px; margin: 0 auto; padding: 2.25rem 3vw;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-brand {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  color: #fff; font-size: 1.3rem; letter-spacing: .02em;
}
.footer-year { color: rgba(255,255,255,.55); font-size: .85rem; }
