  :root{
    --ink:#0E2340;
    --ink-soft:#163458;
    --paper:#F6F4EE;
    --paper-deep:#EDE8DC;
    --gold:#AD8228;
    --gold-soft:#D8B563;
    --charcoal:#1B2027;
    --grey:#5B6470;
    --line:rgba(14,35,64,0.14);

    --house-2:#1F5C4A; /* KARMA - verde esmeralda, comercio internacional */
    --house-3:#AD8228; /* CACOINCOMUN - oro, gremial */
    --house-4:#7A5A2E; /* MUDEPRO - ocre, productivo */
    --house-5:#52565C; /* Fábrica de Grasa R-D - grafito, industrial */

    --serif: 'Fraunces', Georgia, serif;
    --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }

  *{ box-sizing:border-box; margin:0; padding:0; }
  html{ scroll-behavior:smooth; }
  body{
    background:var(--paper);
    color:var(--charcoal);
    font-family:var(--sans);
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  a{ color:inherit; text-decoration:none; }
  img,svg{ display:block; max-width:100%; }

  .wrap{ max-width:1180px; margin:0 auto; padding:0 40px; }
  @media (max-width:720px){ .wrap{ padding:0 22px; } }

  a:focus-visible, button:focus-visible{
    outline:2px solid var(--gold);
    outline-offset:3px;
  }

  /* ====== PRELOADER (marca animada) ====== */
  #preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1),
                visibility 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
    pointer-events: none;
  }
  #preloader.hidden {
    opacity: 0;
    visibility: hidden;
  }
  #preloader .loader-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  #preloader .loader-ring {
    position: relative;
    width: 100px;
    height: 100px;
  }
  #preloader .loader-ring svg {
    width: 100%;
    height: 100%;
    display: block;
  }
  #preloader .loader-ring .ring-bg {
    fill: none;
    stroke: rgba(216, 181, 99, 0.12);
    stroke-width: 3;
  }
  #preloader .loader-ring .ring-fg {
    fill: none;
    stroke: var(--gold-soft);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 280;
    stroke-dashoffset: 280;
    transform-origin: 50% 50%;
    animation: loaderSpin 1.6s cubic-bezier(0.4, 0.0, 0.2, 1) infinite,
               loaderDash 1.8s ease-in-out infinite;
  }
  @keyframes loaderSpin {
    to { transform: rotate(360deg); }
  }
  @keyframes loaderDash {
    0% { stroke-dashoffset: 280; }
    50% { stroke-dashoffset: 50; }
    100% { stroke-dashoffset: 280; }
  }
  #preloader .loader-emblem {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: emblemFade 0.9s ease 0.3s forwards;
  }
  #preloader .loader-emblem img {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 4px 20px rgba(173, 130, 40, 0.3));
  }
  @keyframes emblemFade {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
  }
  #preloader .loader-text {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: var(--gold-soft);
    opacity: 0;
    animation: textFade 0.7s ease 0.6s forwards;
  }
  @keyframes textFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 0.7; transform: translateY(0); }
  }
  #preloader .loader-dots {
    display: flex;
    gap: 8px;
    opacity: 0;
    animation: textFade 0.7s ease 0.8s forwards;
  }
  #preloader .loader-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-soft);
    opacity: 0.3;
    animation: dotPulse 1.2s ease-in-out infinite;
  }
  #preloader .loader-dots span:nth-child(2) { animation-delay: 0.2s; }
  #preloader .loader-dots span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes dotPulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 0.9; transform: scale(1.2); }
  }
  @media (prefers-reduced-motion: reduce) {
    #preloader .loader-ring .ring-fg {
      animation: none;
      stroke-dashoffset: 50;
    }
    #preloader .loader-emblem {
      animation: none;
      opacity: 1;
      transform: scale(1);
    }
    #preloader .loader-text,
    #preloader .loader-dots {
      animation: none;
      opacity: 0.7;
    }
    #preloader .loader-dots span {
      animation: none;
      opacity: 0.5;
    }
  }

  /* ---------- Reading progress bar ---------- */
  #readingProgress{
    position:fixed; top:0; left:0; height:3px; width:0%;
    background:linear-gradient(90deg, var(--gold), var(--gold-soft));
    z-index:300;
    box-shadow:0 0 8px rgba(173,130,40,0.55);
  }
  @media (prefers-reduced-motion: reduce){
    #readingProgress{ transition:none; }
  }

  /* ---------- Reveal on scroll ---------- */
  [data-reveal]{
    opacity:0; transform:translateY(22px);
    transition:opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
  }
  [data-reveal].in-view{ opacity:1; transform:translateY(0); }
  [data-reveal-group] [data-reveal]:nth-child(1){ transition-delay:.03s; }
  [data-reveal-group] [data-reveal]:nth-child(2){ transition-delay:.10s; }
  [data-reveal-group] [data-reveal]:nth-child(3){ transition-delay:.17s; }
  [data-reveal-group] [data-reveal]:nth-child(4){ transition-delay:.24s; }
  [data-reveal-group] [data-reveal]:nth-child(5){ transition-delay:.31s; }
  [data-reveal-group] [data-reveal]:nth-child(6){ transition-delay:.38s; }

  @media (prefers-reduced-motion: reduce){
    [data-reveal]{ opacity:1; transform:none; transition:none; }
  }

  /* ---------- Header ---------- */
  header{
    position:fixed; top:0; left:0; right:0; z-index:200;
    background:transparent;
    transition:background .4s ease, border-color .4s ease, padding .3s ease;
    border-bottom:1px solid transparent;
  }
  header.solid{
    background:rgba(246,244,238,0.95);
    backdrop-filter:blur(8px);
    border-bottom:1px solid var(--line);
  }
  .header-inner{
    display:flex; align-items:center; justify-content:space-between;
    padding:22px 40px;
    transition:padding .3s ease;
  }
  header.solid .header-inner{ padding:14px 40px; }
  @media (max-width:720px){ .header-inner, header.solid .header-inner{ padding-left:22px; padding-right:22px; } }

  .brand{ display:flex; align-items:center; gap:13px; flex-shrink:0; }
  .brand-mark{ width:56px; height:56px; flex-shrink:0; filter:drop-shadow(0 3px 10px rgba(173,130,40,.35)); }
  .brand-text{ display:flex; flex-direction:column; line-height:1.15; }
  .brand-name{
    font-family:var(--serif); font-weight:500; font-size:1.42rem;
    letter-spacing:0.005em; color:var(--ink); white-space:nowrap;
  }
  .brand-sub{ font-size:0.6rem; letter-spacing:0.17em; color:var(--gold); font-weight:600; white-space:nowrap; margin-top:3px; }
  header:not(.solid) .brand-name{ color:var(--paper); }
  header:not(.solid) .brand-sub{ color:var(--gold-soft); }

  nav{ display:flex; align-items:center; gap:22px; }
  .nav-links{ display:flex; align-items:center; gap:24px; }
  nav a{
    font-size:0.9rem; color:var(--ink); font-weight:500; white-space:nowrap;
    position:relative; padding-bottom:4px;
  }
  header:not(.solid) nav a{ color:var(--paper); }
  nav a::after{
    content:''; position:absolute; left:0; bottom:0; height:1px; width:0;
    background:currentColor; transition:width .25s ease;
  }
  nav a:hover::after{ width:100%; }
  .nav-cta{
    border:1px solid currentColor; padding:9px 20px; border-radius:2px;
    font-size:0.88rem;
  }

  .nav-toggle{
    display:none; background:none; border:none; cursor:pointer;
    width:34px; height:26px; position:relative; z-index:210;
  }
  .nav-toggle span{
    position:absolute; left:0; right:0; height:1.6px; background:var(--ink);
    transition:transform .3s ease, opacity .3s ease, background .3s ease;
  }
  header:not(.solid) .nav-toggle span{ background:var(--paper); }
  .nav-toggle span:nth-child(1){ top:2px; }
  .nav-toggle span:nth-child(2){ top:12px; }
  .nav-toggle span:nth-child(3){ top:22px; }
  .nav-toggle.open span{ background:var(--paper); }
  .nav-toggle.open span:nth-child(1){ top:12px; transform:rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ top:12px; transform:rotate(-45deg); }

  .mobile-panel{
    position:fixed; inset:0; background:var(--ink); z-index:190;
    display:flex; flex-direction:column; justify-content:center; align-items:flex-start;
    padding:84px 40px 30px; overflow-y:auto;
    transform:translateY(-100%); transition:transform .45s cubic-bezier(.2,.6,.2,1);
  }
  .mobile-panel.open{ transform:translateY(0); }
  .mobile-panel a{
    font-family:var(--serif); font-size:1.75rem; color:var(--paper); font-weight:400;
    padding:11px 0; border-bottom:1px solid rgba(247,244,238,0.12); width:100%;
  }
  .mobile-panel .m-cta{ color:var(--gold-soft); font-size:1.1rem; font-family:var(--sans); font-weight:600; border-bottom:none; }

  @media (max-width:1200px){
    nav .nav-links{ display:none; }
    .nav-toggle{ display:block; }
  }

  /* ---------- Hero ---------- */
  .hero{
    position:relative;
    min-height:100vh;
    display:flex; flex-direction:column; justify-content:center;
    background:var(--ink);
    color:var(--paper);
    overflow:hidden;
    padding-top:120px;
    padding-bottom:80px;
  }
  .hero::before{
    content:'';
    position:absolute; inset:0;
    background:
      radial-gradient(ellipse 900px 500px at 84% 14%, rgba(173,130,40,0.18), transparent 60%),
      radial-gradient(ellipse 700px 500px at 8% 92%, rgba(44,74,110,0.32), transparent 65%);
    pointer-events:none;
  }
  .hero-grid{
    position:relative; z-index:2;
    display:grid; grid-template-columns:1.15fr 0.85fr; gap:60px; align-items:center;
  }
  @media (max-width:900px){
    .hero-grid{ grid-template-columns:1fr; gap:52px; }
    .hero-emblem-col{ order:-1; }
  }

  .eyebrow-line{
    display:flex; align-items:center; gap:14px; margin-bottom:26px;
    opacity:0; animation:riseIn .8s ease .15s forwards;
  }
  .eyebrow-line .rule{ width:36px; height:1px; background:var(--gold-soft); }
  .eyebrow-line span{ font-size:0.86rem; color:var(--gold-soft); font-weight:500; letter-spacing:0.02em; }

  h1.hero-title{
    font-family:var(--serif); font-weight:400;
    font-size:clamp(2.4rem, 5vw, 4.1rem);
    line-height:1.08; letter-spacing:-0.01em;
    max-width:13ch;
    opacity:0; animation:riseIn .9s ease .3s forwards;
  }
  .hero-sub{
    margin-top:26px; max-width:46ch;
    font-size:1.06rem; color:rgba(246,244,238,0.78); line-height:1.65;
    opacity:0; animation:riseIn .9s ease .5s forwards;
  }
  .hero-actions{
    margin-top:38px; display:flex; align-items:center; gap:28px; flex-wrap:wrap;
    opacity:0; animation:riseIn .9s ease .68s forwards;
  }
  .btn-primary{
    background:var(--gold); color:var(--ink); font-weight:600;
    padding:14px 28px; border-radius:2px; font-size:0.95rem;
    transition:background .25s ease;
    display:inline-block;
  }
  .btn-primary:hover{ background:var(--gold-soft); }
  .link-ghost{
    font-size:0.95rem; color:var(--paper); border-bottom:1px solid rgba(246,244,238,0.4);
    padding-bottom:3px; transition:border-color .25s ease;
  }
  .link-ghost:hover{ border-color:var(--paper); }

  .hero-stats{
    margin-top:60px; display:flex; gap:0; flex-wrap:wrap;
    opacity:0; animation:riseIn .9s ease .85s forwards;
  }
  .hero-stats .stat{ padding-right:34px; margin-right:34px; border-right:1px solid rgba(246,244,238,0.18); }
  .hero-stats .stat:last-child{ border-right:none; margin-right:0; padding-right:0; }
  .hero-stats .stat b{ font-family:var(--serif); font-weight:400; font-size:1.85rem; display:block; }
  .hero-stats .stat span{ font-size:0.8rem; color:rgba(246,244,238,0.6); }

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

  /* Emblem */
  .hero-emblem-col{ display:flex; justify-content:center; }
  .emblem-stage{
    position:relative; width:min(300px, 62vw); aspect-ratio:1/1;
    display:flex; align-items:center; justify-content:center;
    opacity:0; animation:emblemIn 1.1s cubic-bezier(.2,.6,.2,1) .3s forwards;
  }
  @keyframes emblemIn{ from{ opacity:0; transform:scale(.92); } to{ opacity:1; transform:scale(1); } }
  .emblem-ring{
    position:absolute; inset:-14%;
    border-radius:50%;
    background:conic-gradient(from 0deg, transparent 0%, var(--gold-soft) 8%, transparent 22%, transparent 78%, var(--gold-soft) 92%, transparent 100%);
    -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
            mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    animation:spin 14s linear infinite;
  }
  .emblem-ring.ring-outer{ inset:-26%; opacity:0.55; animation-duration:22s; animation-direction:reverse; }
  @keyframes spin{ to{ transform:rotate(360deg); } }
  .emblem-logo{
    position:relative; z-index:2; width:78%;
    filter:drop-shadow(0 25px 55px rgba(0,0,0,0.45));
  }
  @media (prefers-reduced-motion: reduce){
    .emblem-stage{ opacity:1; animation:none; }
    .emblem-ring{ animation:none; }
  }

  /* ---------- Section shared ---------- */
  section{ padding:120px 0; }
  @media (max-width:720px){ section{ padding:76px 0; } }

  .section-head{
    display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:end;
    margin-bottom:64px; padding-bottom:28px; border-bottom:1px solid var(--line);
  }
  @media (max-width:820px){ .section-head{ grid-template-columns:1fr; gap:20px; } }
  .section-head h2{
    font-family:var(--serif); font-weight:400; font-size:clamp(1.8rem,3.2vw,2.6rem);
    color:var(--ink); line-height:1.15;
  }
  .section-head p{ color:var(--grey); font-size:1.02rem; max-width:42ch; line-height:1.6; }

  /* ---------- Portfolio (bento) ---------- */
  .portfolio-grid{
    display:grid; grid-template-columns:repeat(6, 1fr); gap:2px;
    background:var(--line);
    border:1px solid var(--line);
  }
  .p-card{
    background:var(--paper); padding:42px 34px;
    grid-column:span 3;
    display:flex; flex-direction:column; justify-content:space-between;
    min-height:280px;
    transition:background .3s ease;
    position:relative;
  }
  @media (max-width:900px){
    .p-card{ grid-column:span 6; }
  }
  .p-card:hover{ background:var(--paper-deep); }
  .p-icon{ width:36px; height:36px; margin-bottom:24px; }
  .p-logo{ width:64px; height:64px; object-fit:contain; margin-bottom:22px; display:block; }
  .p-card h3{
    font-family:var(--serif); font-weight:500; font-size:1.34rem; color:var(--ink);
    margin-bottom:10px;
  }
  .p-tag{
    display:inline-block; font-size:0.76rem; font-weight:500;
    padding:4px 10px; border-radius:2px; margin-bottom:14px;
    color:var(--paper);
  }
  .p-card p{ color:var(--grey); font-size:0.95rem; line-height:1.6; max-width:38ch; }
  .p-more{
    margin-top:22px; font-size:0.88rem; font-weight:500;
    display:inline-flex; align-items:center; gap:8px;
    border-bottom:1px solid var(--line); padding-bottom:3px; width:fit-content;
  }

  .p-card[data-house="2"] .p-tag{ background:var(--house-2); }
  .p-card[data-house="2"] .p-more{ color:var(--house-2); border-color:var(--house-2); }
  .p-card[data-house="3"] .p-tag{ background:var(--house-3); }
  .p-card[data-house="3"] .p-more{ color:var(--house-3); border-color:var(--house-3); }
  .p-card[data-house="4"] .p-tag{ background:var(--house-4); }
  .p-card[data-house="4"] .p-more{ color:var(--house-4); border-color:var(--house-4); }
  .p-card[data-house="5"] .p-tag{ background:var(--house-5); }
  .p-card[data-house="5"] .p-more{ color:var(--house-5); border-color:var(--house-5); }

  /* ---------- Services / packages ---------- */
  .services{ background:var(--paper-deep); }
  .service-list{ border-top:1px solid var(--line); }
  .service-row{
    display:grid; grid-template-columns:1.3fr 2.4fr 0.9fr;
    align-items:center; gap:30px;
    padding:28px 0; border-bottom:1px solid var(--line);
  }
  @media (max-width:780px){
    .service-row{ grid-template-columns:1fr; gap:10px; padding:22px 0; }
  }
  .service-row .s-house{ display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:8px; vertical-align:middle; }
  .service-row .s-name{ font-family:var(--serif); font-size:1.2rem; color:var(--ink); font-weight:500; }
  .service-row .s-desc{ color:var(--grey); font-size:0.95rem; line-height:1.6; }
  .service-row .s-cta{
    justify-self:end; font-size:0.88rem; font-weight:500; color:var(--ink-soft);
    border-bottom:1px solid var(--ink-soft); padding-bottom:3px; width:fit-content;
  }
  @media (max-width:780px){ .service-row .s-cta{ justify-self:start; } }

  /* ---------- About / mission ---------- */
  .mission{
    display:grid; grid-template-columns:0.9fr 1.1fr; gap:80px; align-items:start;
  }
  @media (max-width:860px){ .mission{ grid-template-columns:1fr; gap:36px; } }
  .mission h2{
    font-family:var(--serif); font-weight:400; font-size:clamp(1.9rem,3.4vw,2.7rem);
    color:var(--ink); line-height:1.2;
  }
  .mission-body p{ color:var(--charcoal); font-size:1.06rem; line-height:1.75; margin-bottom:20px; max-width:58ch; }
  .mission-body p:last-child{ margin-bottom:0; }

  .mission-marks{ display:flex; gap:26px; margin-top:36px; flex-wrap:wrap; }
  .mission-marks div{ display:flex; align-items:center; gap:10px; font-size:0.86rem; color:var(--grey); }
  .mission-marks span{ width:9px; height:9px; border-radius:50%; display:inline-block; }

  /* ---------- Allies / press ---------- */
  .allies-row{
    display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
    gap:40px 32px;
  }
  .ally-logo{
    flex:0 1 140px;
    display:flex; align-items:center; justify-content:center;
    height:64px;
  }
  .ally-logo img{
    max-width:100%; max-height:100%;
    filter:grayscale(1) opacity(0.55);
    transition:filter .3s ease, opacity .3s ease, transform .3s ease;
  }
  .ally-logo:hover img, .ally-logo:focus-visible img{
    filter:grayscale(0) opacity(1);
    transform:translateY(-2px);
  }
  @media (max-width:720px){
    .allies-row{ justify-content:center; gap:32px 28px; }
    .ally-logo{ flex:0 1 110px; height:52px; }
  }

  /* ---------- FAQ accordion ---------- */
  .faq-list{ border-top:1px solid var(--line); }
  .faq-item{ border-bottom:1px solid var(--line); }
  .faq-q{
    width:100%; display:flex; align-items:center; justify-content:space-between; gap:20px;
    background:none; border:none; cursor:pointer; text-align:left;
    padding:26px 0; font-family:var(--serif); font-size:1.12rem; color:var(--ink); font-weight:500;
  }
  .faq-icon{ position:relative; flex-shrink:0; width:18px; height:18px; }
  .faq-icon::before, .faq-icon::after{
    content:''; position:absolute; background:var(--ink); border-radius:1px;
    transition:transform .3s ease, opacity .3s ease;
  }
  .faq-icon::before{ left:0; top:8px; width:18px; height:1.6px; }
  .faq-icon::after{ left:8px; top:0; width:1.6px; height:18px; }
  .faq-item.open .faq-icon::after{ transform:rotate(90deg); opacity:0; }
  .faq-a{ max-height:0; overflow:hidden; transition:max-height .35s cubic-bezier(.2,.6,.2,1); }
  .faq-a p{ color:var(--grey); font-size:0.98rem; line-height:1.65; padding-bottom:26px; max-width:62ch; }

  /* ---------- Contact / CTA ---------- */
  .contact{ background:var(--ink); color:var(--paper); }
  .contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:70px; }
  @media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; gap:44px; } }
  .contact h2{
    font-family:var(--serif); font-weight:400; font-size:clamp(1.9rem,3.6vw,2.9rem);
    line-height:1.16; max-width:14ch;
  }
  .contact-intro{ margin-top:20px; color:rgba(246,244,238,0.72); max-width:40ch; line-height:1.65; }

  .field{ margin-bottom:20px; }
  .field label{ display:block; font-size:0.85rem; color:rgba(246,244,238,0.65); margin-bottom:8px; }
  .field input, .field select, .field textarea{
    width:100%; background:transparent; border:none; border-bottom:1px solid rgba(246,244,238,0.28);
    color:var(--paper); font-family:var(--sans); font-size:1rem; padding:10px 0;
    transition:border-color .25s ease;
  }
  .field select option{ color:var(--ink); }
  .field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--gold-soft); }
  .field textarea{ resize:vertical; min-height:70px; }
  .submit-btn{
    margin-top:8px; background:var(--gold); color:var(--ink); font-weight:600;
    border:none; padding:14px 30px; border-radius:2px; font-size:0.95rem; cursor:pointer;
    transition:background .25s ease;
  }
  .submit-btn:hover{ background:var(--gold-soft); }

  /* ---------- Footer ---------- */
  footer{ background:var(--ink); border-top:1px solid rgba(246,244,238,0.14); padding:38px 0; }
  .footer-row{
    display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
    color:rgba(246,244,238,0.55); font-size:0.85rem;
  }
  .footer-brand{ display:flex; align-items:center; gap:10px; }
  .footer-brand img{ width:24px; height:24px; }
  .footer-links{ display:flex; gap:24px; flex-wrap:wrap; }
  .footer-links a{ color:rgba(246,244,238,0.55); transition:color .2s ease; }
  .footer-links a:hover{ color:var(--paper); }

  /* ---------- Cursor spotlight (enhanced) ---------- */
  #cursorGlow{
    position:fixed; inset:0; z-index:5; pointer-events:none;
    background:
      radial-gradient(380px circle at var(--gx,50%) var(--gy,50%), rgba(216,181,99,0.38), transparent 42%),
      radial-gradient(720px circle at var(--gx,50%) var(--gy,50%), rgba(216,181,99,0.18), transparent 68%);
    opacity:0; transition:opacity .5s ease;
    mix-blend-mode:overlay;
  }
  #cursorGlow.active{ opacity:1; }
  @media (hover:none), (pointer:coarse){ #cursorGlow{ display:none; } }
  @media (prefers-reduced-motion: reduce){ #cursorGlow{ display:none; } }

  /* ---------- Magnetic buttons ---------- */
  [data-magnetic]{
    transition:transform .2s cubic-bezier(.2,.6,.2,1);
    will-change:transform;
  }
  @media (hover:none), (pointer:coarse){
    [data-magnetic]{ transition:none; }
  }
  @media (prefers-reduced-motion: reduce){
    [data-magnetic]{ transition:none; }
  }

  /* ---------- Back to top ---------- */
  #backToTop{
    position:fixed; right:28px; bottom:28px; z-index:150;
    width:52px; height:52px; border-radius:50%;
    background:rgba(246,244,238,0.95); backdrop-filter:blur(6px);
    border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center;
    cursor:pointer;
    box-shadow:0 10px 28px rgba(14,35,64,0.18);
    opacity:0; transform:translateY(18px) scale(.92);
    pointer-events:none;
  }
  #backToTop.show{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
  #backToTop{ transition:opacity .35s cubic-bezier(.2,.6,.2,1), transform .2s cubic-bezier(.2,.6,.2,1), background .25s ease; }
  #backToTop:hover{ background:var(--ink); }
  #backToTop:hover .bt-arrow path{ stroke:var(--paper); }
  #backToTop:hover .bt-ring-fg{ stroke:var(--gold-soft); }
  #backToTop svg{ position:absolute; inset:0; }
  .bt-ring-bg{ fill:none; stroke:var(--line); stroke-width:2; }
  .bt-ring-fg{
    fill:none; stroke:var(--gold); stroke-width:2; stroke-linecap:round;
    transform:rotate(-90deg); transform-origin:50% 50%;
    transition:stroke-dashoffset .1s linear, stroke .25s ease;
  }
  .bt-arrow{ position:relative; z-index:2; }
  .bt-arrow path{ transition:stroke .25s ease, transform .3s cubic-bezier(.2,.6,.2,1); }
  #backToTop:hover .bt-arrow{ transform:translateY(-2px); }
  @media (max-width:720px){ #backToTop{ right:18px; bottom:18px; width:46px; height:46px; } }
  @media (prefers-reduced-motion: reduce){
    #backToTop{ transition:opacity .2s ease; transform:none !important; }
  }

  /* ====== BOTÓN FLOTANTE MEJORADO – SIN DESBORDES ====== */
  #chatFab {
    position: fixed;
    right: 28px;
    bottom: 90px;          /* separado del back-to-top */
    z-index: 160;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;  /* el contenedor no bloquea, los hijos sí */
  }
  @media (max-width: 720px) {
    #chatFab {
      right: 18px;
      bottom: 76px;
    }
  }

  /* Botón principal — siempre visible y con el mismo estilo redondo */
  .fab-main {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(14,35,64,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
  }
  .fab-main:hover {
    background: var(--gold-soft);
    transform: scale(1.03);
    box-shadow: 0 10px 28px rgba(14,35,64,0.3);
  }
  .fab-main:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
  }

  /* Los iconos dentro del botón principal: centrados y con tamaño fijo */
  .fab-main svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .fab-icon-chat {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  .fab-icon-close {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  #chatFab.open .fab-icon-chat {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  #chatFab.open .fab-icon-close {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  /* Pulsación sutil (opcional) */
  .fab-pulse {
    display: none; /* quitamos el pseudo-elemento que podía causar desborde */
  }

  /* Opciones flotantes (WhatsApp y Telegram) */
  .fab-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(12px) scale(0.92);
    transition: opacity 0.3s cubic-bezier(0.2, 0.6, 0.2, 1),
                transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
  }
  #chatFab.open .fab-options {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  /* Cada opción: botón redondo + etiqueta */
  .fab-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(246, 244, 238, 0.96);
    backdrop-filter: blur(4px);
    padding: 6px 16px 6px 6px;
    border-radius: 40px;
    box-shadow: 0 6px 18px rgba(14,35,64,0.12);
    color: var(--ink);
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    pointer-events: auto;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(14,35,64,0.06);
    white-space: nowrap;
  }
  .fab-option:hover {
    background: var(--paper-deep);
    transform: translateX(-4px);
    box-shadow: 0 8px 22px rgba(14,35,64,0.15);
  }
  .fab-option .fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #25D366; /* base para WhatsApp */
  }
  .fab-option.telegram .fab-icon {
    background: #0088cc;
  }
  .fab-option .fab-icon svg {
    width: 22px;
    height: 22px;
    display: block;
  }
  /* Aseguramos que el texto no se desborde en móviles */
  .fab-option span:last-child {
    display: inline-block;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  @media (max-width: 480px) {
    .fab-option {
      padding: 4px 12px 4px 4px;
      font-size: 0.8rem;
    }
    .fab-option .fab-icon {
      width: 30px;
      height: 30px;
    }
    .fab-option .fab-icon svg {
      width: 18px;
      height: 18px;
    }
    .fab-main {
      width: 50px;
      height: 50px;
    }
    .fab-main svg {
      width: 22px;
      height: 22px;
    }
  }


/* =====================================================================
   AÑADIDOS: idiomas, membresía, compartir, contacto por correo
   ===================================================================== */

/* ---------- Selector de idioma ---------- */
.lang{ display:flex; gap:2px; padding:3px; border-radius:999px; border:1px solid rgba(246,244,238,.3); }
header.solid .lang{ border-color:var(--line); }
.lang button{
  border:0; background:none; cursor:pointer; font:600 .72rem var(--sans); letter-spacing:.06em;
  padding:6px 10px; border-radius:999px; color:var(--paper); transition:background .2s,color .2s;
}
header.solid .lang button{ color:var(--ink); }
.lang button:hover{ background:rgba(173,130,40,.18); }
.lang button.on{ background:var(--gold); color:var(--ink) !important; }
.mobile-panel .lang{ margin-top:22px; align-self:flex-start; border-color:rgba(246,244,238,.3); }
.mobile-panel .lang button{ color:var(--paper); font-size:.85rem; padding:8px 14px; width:auto; border:0; border-bottom:0; font-family:var(--sans); }
.header-lang{ display:flex; }
@media (max-width:560px){ .header-lang{ display:none; } }

/* Botón dorado del menú hacia los formularios */
nav a.nav-join{
  background:var(--gold); color:var(--ink) !important; font-weight:600; padding:10px 20px; border-radius:2px;
  font-size:.88rem; border:0; transition:background .25s ease;
}
nav a.nav-join::after{ display:none; }
nav a.nav-join:hover{ background:var(--gold-soft); }
.mobile-panel a.m-join{
  background:var(--gold); color:var(--ink); font-family:var(--sans); font-weight:600; font-size:1.05rem;
  padding:15px 22px; border:0; width:auto; margin-top:20px; border-radius:2px;
}

/* Marca en celular */
@media (max-width:560px){
  .brand{ gap:10px; }
  .brand-mark{ width:48px; height:48px; }
  .brand-name{ font-size:1.2rem; }
  .brand-sub{ font-size:.5rem; letter-spacing:.12em; }
}
@media (max-width:360px){ .brand-sub{ font-size:.46rem; letter-spacing:.08em; } .brand-name{ font-size:1.1rem; } }

/* Botones secundarios */
.btn-primary.big{ padding:17px 34px; font-size:1.02rem; }
.btn-line{
  display:inline-block; border:1px solid rgba(246,244,238,.45); color:var(--paper); padding:16px 28px;
  border-radius:2px; font-size:.95rem; font-weight:500; transition:border-color .25s, background .25s;
}
.btn-line:hover{ border-color:var(--gold-soft); background:rgba(216,181,99,.1); }

/* =====================================================================
   SECCIÓN «SEA PARTE»  (membresía)
   ===================================================================== */
.join{
  position:relative; overflow:hidden; background:var(--ink); color:var(--paper);
  border-top:3px solid var(--gold);
}
.join::before{
  content:''; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse 800px 520px at 92% 8%, rgba(173,130,40,.26), transparent 62%),
    radial-gradient(ellipse 700px 520px at 0% 100%, rgba(44,74,110,.45), transparent 66%);
}
.join-emblem{
  position:absolute; right:-140px; top:40px; width:560px; opacity:.07; pointer-events:none;
  animation:spinSlow 90s linear infinite;
}
@keyframes spinSlow{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce){ .join-emblem{ animation:none; } }
.join .wrap{ position:relative; z-index:2; }
.join-top{ display:grid; grid-template-columns:1.05fr .95fr; gap:70px; align-items:center; }
@media (max-width:960px){ .join-top{ grid-template-columns:1fr; gap:48px; } }
.join .kicker{ display:flex; align-items:center; gap:14px; margin-bottom:24px; color:var(--gold-soft); font-size:.86rem; font-weight:500; letter-spacing:.02em; }
.join .kicker::before{ content:''; width:36px; height:1px; background:var(--gold-soft); }
.join h2{
  font-family:var(--serif); font-weight:400; font-size:clamp(2.4rem,5.2vw,4.1rem);
  line-height:1.06; letter-spacing:-.01em;
}
.join h2 em{ font-style:italic; color:var(--gold-soft); }
.join-lead{ margin-top:24px; max-width:50ch; font-size:1.08rem; line-height:1.7; color:rgba(246,244,238,.8); }
.join-list{ list-style:none; margin:28px 0 0; display:grid; gap:13px; }
.join-list li{ display:flex; gap:14px; align-items:flex-start; font-size:.98rem; color:rgba(246,244,238,.88); line-height:1.5; }
.join-list li::before{
  content:''; flex:0 0 20px; height:20px; margin-top:1px; border-radius:50%;
  background:var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%230E2340' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.join-actions{ margin-top:38px; display:flex; flex-wrap:wrap; gap:16px 22px; align-items:center; }
.join-note{ margin-top:16px; font-size:.82rem; color:rgba(246,244,238,.55); }

.join-cards{ display:grid; gap:14px; }
.jcard{
  position:relative; display:grid; grid-template-columns:auto 1fr auto; gap:20px; align-items:center;
  padding:24px 26px; border:1px solid rgba(246,244,238,.16); background:rgba(255,255,255,.04);
  backdrop-filter:blur(3px); transition:border-color .3s, transform .3s, background .3s;
}
.jcard:hover{ border-color:var(--gold-soft); background:rgba(216,181,99,.09); transform:translateX(-6px); }
.jcard .jn{ font-family:var(--serif); font-size:2rem; color:var(--gold-soft); line-height:1; min-width:2ch; }
.jcard h3{ font-family:var(--serif); font-weight:500; font-size:1.28rem; margin-bottom:4px; }
.jcard p{ font-size:.9rem; color:rgba(246,244,238,.68); line-height:1.5; }
.jcard .jtag{ display:inline-block; margin-top:10px; font-size:.72rem; font-weight:600; letter-spacing:.04em; color:var(--gold-soft); border:1px solid rgba(216,181,99,.45); padding:3px 10px; border-radius:2px; }
.jcard .jgo{ font-size:1.5rem; color:var(--gold-soft); transition:transform .3s; }
.jcard:hover .jgo{ transform:translateX(5px); }
@media (max-width:560px){ .jcard{ grid-template-columns:auto 1fr; padding:20px; } .jcard .jgo{ display:none; } }

/* Pasos */
.join-steps{ margin-top:84px; padding-top:44px; border-top:1px solid rgba(246,244,238,.16); }
.join-steps h3{ font-family:var(--serif); font-weight:400; font-size:1.7rem; margin-bottom:30px; }
.steps{ list-style:none; display:grid; grid-template-columns:repeat(4,1fr); gap:0; counter-reset:s; }
@media (max-width:900px){ .steps{ grid-template-columns:1fr 1fr; gap:34px 0; } }
@media (max-width:520px){ .steps{ grid-template-columns:1fr; } }
.steps li{ counter-increment:s; padding:0 28px 0 0; position:relative; }
.steps li::before{
  content:'0' counter(s); display:block; font-family:var(--serif); font-size:2.6rem; line-height:1;
  color:transparent; -webkit-text-stroke:1px var(--gold-soft); margin-bottom:14px;
}
.steps b{ display:block; font-family:var(--serif); font-weight:500; font-size:1.12rem; margin-bottom:6px; }
.steps span{ font-size:.9rem; color:rgba(246,244,238,.66); line-height:1.55; display:block; }

/* Compartir */
.share{
  margin-top:70px; display:grid; grid-template-columns:1fr auto; gap:30px 50px; align-items:center;
  padding:38px 42px; border:1px solid rgba(216,181,99,.5);
  background:linear-gradient(120deg, rgba(173,130,40,.2), rgba(173,130,40,.04) 60%);
}
@media (max-width:900px){ .share{ grid-template-columns:1fr; padding:30px 24px; } }
.share h3{ font-family:var(--serif); font-weight:400; font-size:clamp(1.5rem,2.6vw,2.1rem); line-height:1.2; }
.share p{ margin-top:8px; color:rgba(246,244,238,.75); max-width:46ch; font-size:.98rem; line-height:1.6; }
.share-btns{ display:flex; flex-wrap:wrap; gap:10px; }
.sbtn{
  display:inline-flex; align-items:center; gap:9px; cursor:pointer; font:500 .88rem var(--sans);
  color:var(--paper); background:rgba(255,255,255,.07); border:1px solid rgba(246,244,238,.25);
  padding:11px 16px; border-radius:40px; transition:background .2s, border-color .2s, transform .2s;
}
.sbtn:hover{ background:rgba(216,181,99,.2); border-color:var(--gold-soft); transform:translateY(-2px); }
.sbtn svg{ width:18px; height:18px; flex-shrink:0; }
.sbtn.ok{ background:var(--gold); color:var(--ink); border-color:var(--gold); }
.sbtn[hidden]{ display:none; }

/* =====================================================================
   Contacto: datos directos y estado del formulario
   ===================================================================== */
.contact-lines{ margin-top:34px; display:grid; gap:18px; }
.contact-lines div{ border-left:2px solid var(--gold); padding-left:16px; }
.contact-lines small{ display:block; font-size:.74rem; letter-spacing:.08em; text-transform:uppercase; color:rgba(246,244,238,.5); margin-bottom:3px; }
.contact-lines a, .contact-lines span{ font-size:1.02rem; color:var(--paper); }
.contact-lines a:hover{ color:var(--gold-soft); }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-msg{ margin-top:18px; font-size:.95rem; line-height:1.55; padding:14px 16px; border-left:3px solid var(--gold-soft); background:rgba(255,255,255,.06); }
.form-msg.err{ border-color:#e08a7d; }
.form-msg a{ color:var(--gold-soft); border-bottom:1px solid currentColor; }
.submit-btn:disabled{ opacity:.6; cursor:wait; }

/* Opciones del botón flotante */
.fab-option.forms .fab-icon{ background:var(--ink); }
.fab-option.forms .fab-icon svg{ width:20px; height:20px; }

/* Enlaces que ya no son decorativos */
.p-more, .s-cta, .link-ghost{ cursor:pointer; }
.ally-logo{ cursor:default; }
