html{scroll-behavior:smooth;scroll-padding-top:76px}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}}
.eb [tabindex="-1"]:focus{outline:none}
html,body{margin:0;background:#2A2A28}
a{color:#586849}a:hover{color:#2A2A28}
.eb{font-family:Manrope,"Helvetica Neue",Arial,sans-serif;color:#2A2A28;background:#F5F3EE;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.eb *{box-sizing:border-box}
.eb h1,.eb h2,.eb h3,.eb p,.eb dl,.eb dd,.eb figure{margin:0}
.eb img,.eb video{display:block;max-width:100%}
.eb :focus-visible{outline:3px solid #C9A96E;outline-offset:3px}
.d{font-family:"Bricolage Grotesque",Manrope,system-ui,sans-serif}

/* Rótulos de sección (El origen, El nombre, Lo que nos mueve…) */
.eyebrow{font-size:20px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;line-height:1.3;color:#586849}
.eyebrow-gold{color:#C9A96E}

/* Enlaces y botones */
.eb .navlink{color:rgba(253,249,240,.8);text-decoration:none;font-weight:600;font-size:15px;padding:10px 2px}
.eb .navlink:hover{color:#FDF9F0}
.eb .lk-d{color:rgba(253,249,240,.8);text-decoration:none}
.eb .lk-d:hover{color:#C9A96E}
.eb .lk{color:#2A2A28;text-decoration:underline;text-decoration-color:#C9A96E;text-decoration-thickness:2px;text-underline-offset:5px}
.eb .lk:hover{color:#586849}
.eb .src{color:#6B6459;text-decoration:underline;text-decoration-color:#C9A96E;text-underline-offset:3px}
.eb .src:hover{color:#2A2A28}

/* Preguntas frecuentes */
.faq-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:clamp(32px,5vw,72px);align-items:start}
@media (max-width:900px){.faq-wrap{grid-template-columns:minmax(0,1fr)}}
.faq{display:flex;flex-direction:column;border-top:1px solid #DDD6C8}
.faq details{border-bottom:1px solid #DDD6C8}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 0;cursor:pointer;list-style:none;font-size:clamp(18px,1.5vw,21px);font-weight:700;line-height:1.35;color:#2A2A28}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover{color:#586849}
.faq-ico{flex:none;width:36px;height:36px;display:grid;place-items:center;border-radius:999px;border:1.5px solid #2A2A28;color:#2A2A28;transition:transform .3s ease}
.faq details[open] .faq-ico{transform:rotate(45deg)}
.faq-a{max-width:760px;padding:0 0 24px;font-size:17px;line-height:1.65;color:#4F4A42}
@media (prefers-reduced-motion: reduce){.faq-ico{transition:none}}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 24px;border-radius:999px;font-family:Manrope,sans-serif;font-weight:700;font-size:15px;line-height:1.1;text-decoration:none;border:1.5px solid transparent;cursor:pointer;transition:background-color .25s ease,color .25s ease,border-color .25s ease}
.btn svg{width:18px;height:18px;flex:none;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.motion .btn:hover svg{transform:translateX(4px)}
.eb .btn-gold{background:#96602C;color:#FDF9F0}
.eb .btn-gold:hover{background:#7A4C21;color:#FDF9F0}
.eb .btn-ghost{border-color:rgba(253,249,240,.6);color:#FDF9F0}
.eb .btn-ghost:hover{background:#FDF9F0;color:#2A2A28;border-color:#FDF9F0}

/* Header: transparente sobre el hero, negro editorial al hacer scroll */
.hdr{position:fixed;top:0;left:0;right:0;z-index:50;transition:background-color .3s ease,box-shadow .3s ease}
.hdr.scrolled{background-color:rgba(42,42,40,.96);box-shadow:0 1px 0 rgba(253,249,240,.1)}
@supports (animation-timeline: scroll()){
  .hdr{animation:eb-hdr linear both;animation-timeline:scroll(root);animation-range:0px 220px}
}
@keyframes eb-hdr{from{background-color:rgba(42,42,40,0);box-shadow:0 1px 0 rgba(253,249,240,0)}to{background-color:rgba(42,42,40,.96);box-shadow:0 1px 0 rgba(253,249,240,.1)}}
.hdr.open{background-color:rgba(42,42,40,.98)!important}
.mnav{display:flex;flex-direction:column;width:min(100% - 32px, 1240px);margin:0 auto;padding:4px 0 20px}
.mnav[hidden]{display:none}
.eb .mnav a{color:#FDF9F0;text-decoration:none;font-weight:700;font-size:18px;padding:14px 0;border-top:1px solid rgba(253,249,240,.12)}
.eb .mnav a:hover{color:#C9A96E}
.flag{display:block;flex:none;width:21px;height:14px;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.2)}
.eb .lang a{display:grid;place-items:center;padding:5px 7px;border-radius:999px;text-decoration:none;opacity:.6;transition:opacity .2s ease,background-color .2s ease}
.eb .lang a:hover{opacity:1}
.eb .lang a[aria-current="page"]{background:#C9A96E;opacity:1}
.mnav-lang{display:flex;flex-wrap:wrap;gap:6px;padding-top:16px;border-top:1px solid rgba(253,249,240,.12)}
.eb .mnav .mnav-lang a{display:inline-flex;align-items:center;gap:7px;padding:8px 13px 8px 10px;border:1px solid rgba(253,249,240,.3);border-radius:999px;font-size:14px;font-weight:800}
.eb .mnav .mnav-lang a[aria-current="page"]{background:#C9A96E;border-color:#C9A96E;color:#2A2A28}
@media (max-width:900px){.nav-links{display:none!important}}
@media (min-width:901px){.nav-menu,.mnav{display:none!important}}
@media (max-width:420px){
  .hdr-in{gap:12px!important}
  .eb .hdr-cta{padding:10px 14px!important;font-size:13px!important}
}
@media (max-width:360px){.eb .hdr-cta svg{display:none}}

/* Hero en celulares: crece con el contenido y deja espacio abajo para el sello y el botón del video */
@media (max-width:600px){
  .hero{height:auto!important;min-height:max(580px, 85svh)!important;display:flex;flex-direction:column}
  .hero-inner{height:auto!important;flex:1 0 auto;padding-bottom:88px!important;padding-top:108px!important}
}

/* Pantalla de carga */
.veil{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:#2A2A28;pointer-events:none;opacity:0;visibility:hidden}
.spin{position:absolute;right:28px;bottom:28px;width:22px;height:22px;border-radius:50%;border:2px solid rgba(201,169,110,.28);border-top-color:#C9A96E}

/* Acordeón numerado: El camino del café */
.steps{display:flex;gap:12px;height:460px}
.step{position:relative;flex:.5 1 0;min-width:0;border-radius:20px;overflow:hidden;background:#1F1B16;color:#FDF9F0}
.step.on{flex:2 1 0}
.step-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.step.on .step-img{transform:scale(1.05)}
.step-btn{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:flex-start;padding:22px 28px;border:0;background:transparent;color:#FDF9F0;text-align:left;cursor:pointer;font:inherit}
.step-num{font-family:"Bricolage Grotesque",sans-serif;font-weight:700;font-size:88px;line-height:1;letter-spacing:-.04em}
.step-title{margin-top:46px;font-family:"Bricolage Grotesque",sans-serif;font-weight:700;font-size:30px;line-height:1.1;letter-spacing:-.02em;white-space:nowrap}
.step-line{position:absolute;z-index:1;left:28px;right:28px;top:134px;height:1px;background:rgba(253,249,240,.55);pointer-events:none}
.step-body{position:absolute;z-index:1;left:28px;top:206px;width:min(420px, calc(100% - 56px));font-size:16px;line-height:1.6;color:rgba(253,249,240,.92);pointer-events:none}
.step .step-title,.step .step-body{opacity:0;transform:translateY(20px)}
.step.on .step-title,.step.on .step-body{opacity:1;transform:none}
.motion .step{transition:flex .6s cubic-bezier(.4,0,.2,1)}
.motion .step-img{transition:transform .6s cubic-bezier(.4,0,.2,1)}
.motion .step-title,.motion .step-body{transition:transform .6s cubic-bezier(.4,0,.2,1),opacity .6s ease}
.motion .step.on .step-title,.motion .step.on .step-body{transition-delay:.3s}
@media (max-width:760px){
  .steps{flex-direction:column;height:auto}
  .step,.step.on{flex:none;height:340px}
  .step .step-title,.step .step-body{opacity:1;transform:none}
  .step.on .step-img{transform:none}
  .step-num{font-size:64px}
  .step-line{top:102px}
  .step-title{margin-top:36px;white-space:normal;font-size:26px}
  .step-body{top:168px}
}

/* Tarjetas con enlace */
.tile{display:flex;flex-direction:column;text-decoration:none;color:#2A2A28;border-radius:20px;overflow:hidden;background:#FFFFFF;border:1px solid #E2DED2}
.tile-media{position:relative;aspect-ratio:16/10;overflow:hidden;background:#1F1B16}
.tile-media img{width:100%;height:100%;object-fit:cover}
.motion .tile-media img{transition:transform 1.2s cubic-bezier(.16,1,.3,1)}
.motion .tile:hover .tile-media img{transform:scale(1.04)}
.tile-arrow{transition:background-color .25s ease,color .25s ease}
.tile:hover .tile-arrow{background:#2A2A28;color:#FDF9F0}

/* Marquee */
.mq{overflow:hidden}
.mq-track{display:flex;width:max-content}
.mq:hover .mq-track{animation-play-state:paused}

/* Formulario */
.fld{width:100%;min-height:52px;padding:14px 16px;border-radius:14px;border:1px solid #DDD6C8;background:#EFEADF;color:#2A2A28;font:inherit;font-size:16px}
.fld:focus{border-color:#586849;background:#FFFFFF}
.hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.form-status{font-size:15px;line-height:1.5;font-weight:600}
.form-status:empty{display:none}
.form-status.ok{color:#586849}
.form-status.err{color:#9A3B26}
.eb .btn[disabled]{opacity:.65;cursor:progress}

/* Timelines de scroll */
.stmt{view-timeline-name:--stmt;view-timeline-axis:block}
.reveal{view-timeline-name:--rv;view-timeline-axis:block}
.pil{view-timeline-name:--pil;view-timeline-axis:block}
.val{view-timeline-name:--val;view-timeline-axis:block}
.doors{view-timeline-name:--doors;view-timeline-axis:block}
.team{view-timeline-name:--team;view-timeline-axis:block}

/* Entrada (tiempo): carga → header → video → palabras → bajada → tarjetas */
@media (prefers-reduced-motion: no-preference){
  .motion .veil{animation:eb-veil 1s ease .9s both}
  .motion .veil img{animation:eb-fade .5s ease both}
  .motion .spin{animation:eb-spin .8s linear infinite}
  .motion .hdr-in{animation:eb-down .9s cubic-bezier(.16,1,.3,1) 1s both}
  .motion .hero-media{animation:eb-media 2.4s cubic-bezier(.16,1,.3,1) 1.1s both}
  .motion .hw{animation:eb-rise 1s cubic-bezier(.16,1,.3,1) both}
  .motion .hw:nth-child(1){animation-delay:1.30s}
  .motion .hw:nth-child(2){animation-delay:1.33s}
  .motion .hw:nth-child(3){animation-delay:1.36s}
  .motion .hw:nth-child(4){animation-delay:1.39s}
  .motion .hw:nth-child(5){animation-delay:1.42s}
  .motion .hw:nth-child(6){animation-delay:1.45s}
  .motion .hw:nth-child(7){animation-delay:1.48s}
  .motion .hw:nth-child(8){animation-delay:1.51s}
  .motion .up{animation:eb-up 1.5s cubic-bezier(.16,1,.3,1) both}
  .motion .t12{animation-delay:1.2s}
  .motion .t16{animation-delay:1.6s}
  .motion .t17{animation-delay:1.75s}
  .motion .t20{animation-delay:2s}
  .motion .steps-in{animation:eb-up 1.5s cubic-bezier(.16,1,.3,1) 1.9s both}
  .motion .mq-track{animation:eb-mq 40s linear infinite}
}
@keyframes eb-veil{from{opacity:1;visibility:visible}to{opacity:0;visibility:hidden}}
@keyframes eb-fade{from{opacity:0}to{opacity:1}}
@keyframes eb-spin{to{transform:rotate(360deg)}}
@keyframes eb-down{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:none}}
@keyframes eb-media{from{opacity:0;transform:scale(1.08)}to{opacity:1;transform:none}}
@keyframes eb-rise{from{opacity:0;transform:translateY(90%)}to{opacity:1;transform:none}}
@keyframes eb-up{from{opacity:0;transform:translateY(2rem)}to{opacity:1;transform:none}}
@keyframes eb-list{from{opacity:0;transform:translateY(50px)}to{opacity:1;transform:none}}
@keyframes eb-ink{from{opacity:.16}to{opacity:1}}
@keyframes eb-clip{from{clip-path:inset(20% 35% 0% 35% round 20px)}to{clip-path:inset(0% 0% 0% 0% round 0px)}}
@keyframes eb-copy{from{opacity:0;transform:translateY(10%)}to{opacity:1;transform:none}}
@keyframes eb-mq{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* Scroll (ligado al recorrido) */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion: no-preference){
    .motion .stmt .sw{animation:eb-ink linear both;animation-timeline:--stmt}
    .motion .stmt .sw:nth-child(1){animation-range:entry 35% entry 49%}
    .motion .stmt .sw:nth-child(2){animation-range:entry 37.4% entry 51.4%}
    .motion .stmt .sw:nth-child(3){animation-range:entry 39.8% entry 53.8%}
    .motion .stmt .sw:nth-child(4){animation-range:entry 42.2% entry 56.2%}
    .motion .stmt .sw:nth-child(5){animation-range:entry 44.6% entry 58.6%}
    .motion .stmt .sw:nth-child(6){animation-range:entry 47% entry 61%}
    .motion .stmt .sw:nth-child(7){animation-range:entry 49.4% entry 63.4%}
    .motion .stmt .sw:nth-child(8){animation-range:entry 51.8% entry 65.8%}
    .motion .stmt .sw:nth-child(9){animation-range:entry 54.2% entry 68.2%}
    .motion .stmt .sw:nth-child(10){animation-range:entry 56.6% entry 70.6%}
    .motion .stmt .sw:nth-child(11){animation-range:entry 59% entry 73%}
    .motion .stmt .sw:nth-child(12){animation-range:entry 61.4% entry 75.4%}
    .motion .stmt .sw:nth-child(13){animation-range:entry 63.8% entry 77.8%}
    .motion .stmt .sw:nth-child(14){animation-range:entry 66.2% entry 80.2%}
    .motion .stmt .sw:nth-child(15){animation-range:entry 68.6% entry 82.6%}
    .motion .stmt .sw:nth-child(16){animation-range:entry 71% entry 85%}
    .motion .stmt .sw:nth-child(17){animation-range:entry 73.4% entry 87.4%}
    .motion .stmt .sw:nth-child(18){animation-range:entry 75.8% entry 89.8%}
    .motion .stmt .sw:nth-child(19){animation-range:entry 78.2% entry 92.2%}
    .motion .stmt .sw:nth-child(20){animation-range:entry 80.6% entry 94.6%}
    .motion .stmt .sw:nth-child(21){animation-range:entry 83% entry 97%}
    .motion .stmt .sw:nth-child(22){animation-range:entry 85.4% entry 99.4%}

    .motion .rv-media{animation:eb-clip linear both;animation-timeline:--rv;animation-range:entry 0% entry 100%}
    .motion .rv-shade{animation:eb-fade linear both;animation-timeline:--rv;animation-range:entry 55% entry 100%}
    .motion .rv-copy{animation:eb-copy linear both;animation-timeline:--rv;animation-range:entry 60% entry 100%}
    .motion .rw{animation:eb-rise both;animation-timing-function:cubic-bezier(.16,1,.3,1);animation-timeline:--rv}
    .motion .rw:nth-child(1){animation-range:entry 60% entry 75%}
    .motion .rw:nth-child(2){animation-range:entry 63% entry 78%}
    .motion .rw:nth-child(3){animation-range:entry 66% entry 81%}
    .motion .rw:nth-child(4){animation-range:entry 69% entry 84%}
    .motion .rw:nth-child(5){animation-range:entry 72% entry 87%}
    .motion .rw:nth-child(6){animation-range:entry 75% entry 90%}
    .motion .rw:nth-child(7){animation-range:entry 78% entry 93%}
    .motion .rw:nth-child(8){animation-range:entry 81% entry 96%}
    .motion .rw:nth-child(9){animation-range:entry 84% entry 99%}
    .motion .rw:nth-child(10){animation-range:entry 86% entry 100%}

    .motion .li{animation:eb-list both;animation-timing-function:cubic-bezier(.16,1,.3,1)}
    .motion .pil > .li{animation-timeline:--pil}
    .motion .val > .li{animation-timeline:--val}
    .motion .doors > .li{animation-timeline:--doors}
    .motion .team > .li{animation-timeline:--team}
    .motion .li:nth-child(1){animation-range:entry 0% entry 55%}
    .motion .li:nth-child(2){animation-range:entry 12% entry 67%}
    .motion .li:nth-child(3){animation-range:entry 24% entry 79%}
    .motion .li:nth-child(4){animation-range:entry 36% entry 91%}

    /* Pantallas angostas: las tarjetas se apilan, cada una se anima al entrar */
    @media (max-width:1000px){
      .eb.motion .li{animation-timeline:view();animation-range:entry 0% entry 70%}
      .eb.motion .li:nth-child(2){animation-range:entry 8% entry 78%}
      .eb.motion .li:nth-child(3){animation-range:entry 16% entry 86%}
      .eb.motion .li:nth-child(4){animation-range:entry 24% entry 94%}
    }
  }
}

/* Respaldo para navegadores sin animation-timeline (Firefox, Safari antiguo):
   main.js añade .io a la raíz y .in a cada bloque cuando entra en pantalla */
@media (prefers-reduced-motion: no-preference){
  .motion.io .li{opacity:0;transform:translateY(50px);transition:opacity 1s cubic-bezier(.16,1,.3,1),transform 1s cubic-bezier(.16,1,.3,1)}
  .motion.io .li.in{opacity:1;transform:none}
  .motion.io .stmt .sw{opacity:.16;transition:opacity .5s ease}
  .motion.io .stmt.in .sw{opacity:1}
  .motion.io .rv-media{clip-path:inset(20% 35% 0% 35% round 20px);transition:clip-path 1.6s cubic-bezier(.16,1,.3,1)}
  .motion.io .reveal.in .rv-media{clip-path:inset(0% 0% 0% 0% round 0px)}
  .motion.io .rv-shade{opacity:0;transition:opacity 1s ease .5s}
  .motion.io .reveal.in .rv-shade{opacity:1}
  .motion.io .rv-copy{opacity:0;transform:translateY(10%);transition:opacity 1s ease .6s,transform 1s cubic-bezier(.16,1,.3,1) .6s}
  .motion.io .reveal.in .rv-copy{opacity:1;transform:none}
  .motion.io .rw{opacity:0;transform:translateY(90%);transition:opacity 1s cubic-bezier(.16,1,.3,1),transform 1s cubic-bezier(.16,1,.3,1)}
  .motion.io .reveal.in .rw{opacity:1;transform:none}
}
