/* Shared design system for the pages beyond the main landing page:
   /recursos/ articles and hub, and para-marcas.html. Mirrors the tokens
   and components already established in index.html's own inline styles
   so everything reads as one site — kept as a separate file (rather than
   editing index.html's styles) so the tested main page stays untouched. */
:root{
  --paper:#ffffff;
  --paper-2:#f1efea;
  --ink:#15120f;
  --ink-2:#514a41;
  --ink-3:#6b645c;
  --rule:#dbd6ce;
  --accent:#e5195f;
  --accent-text:#c2124e;
  --accent-dark:#b8134c;
  --accent-light:#ed93b1;
  --green:#1f6b46;
  --sans:'Archivo',system-ui,sans-serif;
  --serif:'Newsreader',Georgia,serif;

  /* stamp palette, mirrors index.html: text stays ink-black, only the
     hand-drawn underline carries the status color */
  --stamp-success:#0a7a49;
  --stamp-warning:#a8560a;
  --stamp-accent:#c2124e;
  --stroke-a:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3,12 C50,5 90,17 140,9 C190,2 230,16 270,8 L296,10' stroke='black' stroke-width='11' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --stroke-b:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M2,8 C40,15 85,3 130,11 C178,18 222,4 262,10 L297,7' stroke='black' stroke-width='11' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
*{margin:0;padding:0;box-sizing:border-box}
body{
  background:var(--paper);color:var(--ink);
  font-family:var(--sans);font-size:16px;line-height:1.5;
  overflow-x:hidden;-webkit-font-smoothing:antialiased;
}
::selection{background:#f7d3e0}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:var(--sans);font-weight:800;letter-spacing:-.025em;line-height:1.08}
.wrap{max-width:1160px;margin:0 auto;padding:0 28px}
.prose{font-family:var(--serif);font-size:1.06rem;line-height:1.62;color:var(--ink-2)}
.accent{color:var(--accent-text)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.mark{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3,11 C50,6 90,15 140,9 C190,4 230,14 270,8 L296,10' stroke='%23e0201e' stroke-width='9' fill='none' stroke-linecap='round' stroke-linejoin='round' opacity='0.92'/%3E%3Cpath d='M4,9 C60,13 110,6 160,11 C210,15 250,7 294,10' stroke='%23e0201e' stroke-width='4' fill='none' stroke-linecap='round' stroke-linejoin='round' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:0 100%;background-size:100% .4em;padding-bottom:.1em;
}

.shimmer-reveal .sr-word{display:inline-block}
.shimmer-reveal .sr-word span{
  display:inline-block;
  background-image:linear-gradient(90deg, var(--ink) 25%, var(--accent-light) 37%, var(--accent) 50%, var(--accent-dark) 63%, var(--ink) 75%);
  background-size:400% 100%;background-clip:text;-webkit-background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;opacity:0;
  animation:shimmerSweep 1.1s cubic-bezier(.25,.7,.35,1) both;
  animation-delay:calc(var(--i) * var(--sr-stagger, 40ms));
}
@keyframes shimmerSweep{
  0%{opacity:0;filter:blur(7px);background-position:100% 0}
  30%{opacity:1}
  100%{opacity:1;filter:blur(0);background-position:0% 0}
}
@media (prefers-reduced-motion:reduce){
  .shimmer-reveal .sr-word span{animation:none;opacity:1;filter:none;background-position:0% 0}
}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  font-family:var(--sans);font-weight:600;font-size:.95rem;
  padding:14px 24px;border-radius:2px;border:1px solid transparent;
  cursor:pointer;white-space:nowrap;
  transition:background-color .12s linear,color .12s linear,border-color .12s linear;
}
.btn-primary{background:var(--ink);color:#fff}
.btn-primary:hover{background:var(--accent)}
.btn-accent{background:var(--accent);color:#fff}
.btn-accent:hover{background:var(--accent-dark)}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--ink)}
.btn-ghost:hover{background:var(--ink);color:#fff}
.btn-ghost-w{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}
.btn-ghost-w:hover{background:#fff;color:var(--ink)}
.btn-sm{padding:9px 16px;font-size:.86rem}

nav{position:sticky;top:0;z-index:50;background:var(--paper);border-bottom:1px solid var(--rule)}
.nav-inner{display:flex;align-items:center;gap:34px;height:66px}
.wordmark{display:inline-flex;align-items:center;gap:.4em;font-weight:800;font-size:1.24rem;letter-spacing:-.035em}
.wordmark svg{height:1.15em;width:auto;flex:none}
.nav-links{display:flex;gap:24px;font-size:.9rem;font-weight:500;color:var(--ink-2);margin-left:12px}
.nav-links a{padding:2px 0;border-bottom:1px solid transparent}
.nav-links a:hover,.nav-links a.on{color:var(--ink);border-bottom-color:var(--ink)}
.nav-right{display:flex;align-items:center;gap:20px;margin-left:auto}
.lang{display:flex;align-items:center;gap:6px;font-size:.82rem;font-weight:600;color:var(--ink-3)}
.lang button{border:none;background:none;cursor:pointer;font:inherit;color:var(--ink-3);padding:0}
.lang button.on{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.lang span{color:var(--rule)}

footer{border-top:1px solid var(--rule);padding:44px 0}
.foot{display:flex;justify-content:space-between;align-items:baseline;gap:28px;flex-wrap:wrap;font-size:.84rem;color:var(--ink-3)}
.foot .wordmark{font-size:1.05rem;color:var(--ink)}
.foot .sig{font-weight:600;color:var(--ink-2)}
.foot-legal{margin-top:24px;padding-top:24px;border-top:1px solid var(--rule);display:flex;justify-content:space-between;align-items:baseline;gap:20px;flex-wrap:wrap;font-size:.82rem;color:var(--ink-3)}
.foot-links{display:flex;gap:18px;flex-wrap:wrap}
.foot-links a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}

.st{position:relative;display:inline-flex;align-items:center;font-size:.73rem;line-height:1;font-weight:700;color:var(--ink);white-space:nowrap}
.st::after{
  content:"";position:absolute;left:0;right:0;bottom:-7px;height:6px;
  background-color:currentColor;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:0 100%;mask-position:0 100%;
  -webkit-mask-size:100% 100%;mask-size:100% 100%;
  -webkit-mask-image:var(--stroke-a);mask-image:var(--stroke-a);
}
.st.stroke-b::after{-webkit-mask-image:var(--stroke-b);mask-image:var(--stroke-b)}
.st.ok::after{color:var(--stamp-success)}
.st.wait::after{color:var(--stamp-warning)}
.st.paid::after{color:var(--stamp-accent)}
/* .pending/.draw-in are JS-toggled: default stays fully visible so the
   underline never disappears if JS fails to run, and only gets
   hidden-then-drawn-in when an observer can guarantee it'll reveal it. */
.st.pending::after{clip-path:inset(0 100% 0 0)}
.st.draw-in::after{animation:stUnderline .6s cubic-bezier(.16,1,.3,1) both}
@keyframes stUnderline{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@media (prefers-reduced-motion:reduce){
  .st.pending::after{clip-path:inset(0 0 0 0)}
  .st.draw-in::after{animation:none}
}

.scroll-line{position:absolute;pointer-events:none;overflow:visible}
.scroll-line path{fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
@media (prefers-reduced-motion:reduce){
  .scroll-line path{stroke-dasharray:none !important;stroke-dashoffset:0 !important}
}

/* ---------- hand-drawn icon chip: used on hub cards, article headers,
   brand-page feature list. Simple ink-outline circle holding a small
   sketchy SVG, matching the site's line-art (not photo) illustration rule */
.hicon{width:56px;height:56px;border-radius:50%;border:1.5px solid var(--ink);display:flex;align-items:center;justify-content:center;flex:none;background:var(--paper)}
.hicon svg{width:30px;height:30px}
.hicon.lg{width:88px;height:88px}
.hicon.lg svg{width:46px;height:46px}

/* ---------- generic section rhythm, reused from index.html ---------- */
section{padding:92px 0}
.band{background:var(--paper-2)}
.slabel{font-size:.8rem;font-weight:600;color:var(--accent-text);margin-bottom:18px}
.slabel i{font-style:normal;color:var(--ink-3);margin:0 8px}
.sec-title{font-size:clamp(1.85rem,3.3vw,2.7rem);max-width:26ch}

/* ---------- article page ---------- */
.article-head{padding:64px 0 48px;border-bottom:1px solid var(--rule)}
.article-eyebrow{display:flex;align-items:center;gap:10px;font-size:.8rem;font-weight:600;color:var(--accent-text);margin-bottom:20px}
.article-eyebrow a{color:var(--ink-3);border-bottom:1px solid transparent}
.article-eyebrow a:hover{color:var(--ink);border-bottom-color:var(--ink)}
.article-title{font-size:clamp(2rem,4.2vw,3.1rem);max-width:22ch;margin-bottom:22px}
.article-dek{font-family:var(--serif);font-size:1.18rem;color:var(--ink-2);max-width:42rem;margin-bottom:32px}
.byline{display:flex;align-items:center;gap:14px}
.byline .av{width:44px;height:44px;border-radius:50%;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.95rem;flex:none}
.byline .who{font-size:.92rem;font-weight:600}
.byline .role{font-family:var(--serif);font-size:.86rem;color:var(--ink-3)}

.article-body{max-width:42rem;margin:56px auto 0;padding:0 28px}
.article-body h2{font-size:1.5rem;margin:48px 0 18px;max-width:20ch}
.article-body h3{font-size:1.2rem;margin:32px 0 12px}
.article-body p{font-family:var(--serif);font-size:1.08rem;line-height:1.7;color:var(--ink-2);margin-bottom:20px}
.article-body ul,.article-body ol{margin:0 0 24px 1.3rem;font-family:var(--serif);font-size:1.05rem;line-height:1.65;color:var(--ink-2)}
.article-body li{margin-bottom:10px}
.article-body blockquote{
  margin:36px 0;padding-left:24px;border-left:3px solid var(--accent);
  font-family:var(--serif);font-style:italic;font-size:1.22rem;line-height:1.5;color:var(--ink);
}
.article-body strong{font-family:var(--sans);font-weight:700;color:var(--ink)}

.pull-stat{display:flex;gap:24px;margin:40px 0;padding:24px 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.pull-stat b{font-size:2.4rem;font-weight:800;letter-spacing:-.03em;line-height:1;color:var(--accent-text);flex:none}
.pull-stat span{font-family:var(--serif);font-size:.98rem;color:var(--ink-2);align-self:center}

/* mid-article and end-of-article conversion block */
.cta-banner{background:var(--ink);color:#fff;border-radius:12px;padding:40px 36px;margin:48px 0;text-align:left}
.cta-banner h3{font-size:1.5rem;margin-bottom:12px;max-width:28ch}
.cta-banner p{font-family:var(--serif);color:rgba(255,255,255,.7);margin-bottom:22px;max-width:34ch}
.cta-banner .btn{margin-right:10px}

.related{max-width:42rem;margin:0 auto;padding:56px 28px 80px;border-top:1px solid var(--rule)}
.related h4{font-size:.8rem;font-weight:600;color:var(--ink-3);letter-spacing:.02em;margin:36px 0 18px}
.related-list{display:flex;flex-direction:column}
.related-list a{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 16px;padding:16px 0;border-bottom:1px solid var(--rule);font-weight:600;font-size:1rem}
.related-list a:hover{color:var(--accent-text)}
/* :last-child only — the title span before it needs min-width:0 so it can
   actually shrink/wrap instead of forcing the row past the viewport */
.related-list a>span:first-child{min-width:0}
.related-list a>span:last-child{font-family:var(--serif);font-weight:400;color:var(--ink-3);font-size:.85rem;flex:none}

/* ---------- resources hub ---------- */
.res-hero{padding:80px 0 56px;border-bottom:1px solid var(--rule)}
.res-hero h1{font-size:clamp(2.1rem,4vw,3.2rem);max-width:18ch;margin-bottom:20px}
.res-grid{margin-top:56px;display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--rule);border:1px solid var(--rule)}
.res-card{background:var(--paper);padding:32px;display:flex;flex-direction:column;gap:16px}
.res-card .tag{font-size:.76rem;font-weight:600;color:var(--accent-text)}
.res-card h3{font-size:1.28rem;max-width:22ch}
.res-card p{font-family:var(--serif);color:var(--ink-2);font-size:.98rem;line-height:1.55}
.res-card .go{margin-top:auto;font-size:.86rem;font-weight:600;display:inline-flex;align-items:center;gap:6px}
@media (max-width:820px){
  .res-grid{grid-template-columns:1fr}
}

/* ---------- brand page ---------- */
.brand-hero{padding:88px 0 76px;border-bottom:1px solid var(--rule)}
.brand-hero .grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:56px;align-items:start}
.brand-hero h1{font-size:clamp(2.1rem,4vw,3.2rem);max-width:18ch;margin-bottom:24px}
.brand-stats{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--rule);border:1px solid var(--rule);margin-top:8px}
.brand-stats div{background:var(--paper);padding:22px}
.brand-stats b{display:block;font-size:1.9rem;font-weight:800;letter-spacing:-.02em}
.brand-stats span{font-family:var(--serif);font-size:.86rem;color:var(--ink-3)}
.brand-feat{display:flex;gap:20px;padding:30px 0;border-bottom:1px solid var(--rule)}
.brand-feat h3{font-size:1.15rem;margin-bottom:8px}
.brand-feat p{font-family:var(--serif);color:var(--ink-2);font-size:.98rem;line-height:1.6}
.brand-contact{display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:start}

@media (max-width:900px){
  .brand-hero .grid{grid-template-columns:1fr}
  .brand-contact{grid-template-columns:1fr;gap:30px}
  section{padding:68px 0}
  .article-body{padding:0 20px}
  .cta-banner{padding:30px 24px}
  .nav-links{display:none}
}
@media (max-width:560px){
  .wrap{padding:0 20px}
  .foot{flex-direction:column;gap:14px}
  .foot-legal{flex-direction:column;gap:12px}
  .nav-inner .btn{display:none}
  /* long button labels ("Reservar mi plaza por 10 USD") plus a fixed
     white-space:nowrap were wider than the phone itself, forcing the
     whole page into horizontal scroll. Stack and let them wrap here. */
  .cta-banner .btn{display:flex;width:100%;white-space:normal;text-align:center;margin-right:0}
  .cta-banner .btn + .btn{margin-top:10px}
}
