/* ===========================================================
   Cuéntame Cosicas — sistema de diseño
   Paleta tomada del logo (barquito de papel):
   navy profundo · dorado/bronce · turquesa · naranja · magenta · crema
   =========================================================== */
:root{
  --navy:#0d1a29;
  --navy-2:#112336;
  --navy-3:#16324b;
  --navy-line:#22405c;
  --ink:#081321;
  --cream:#f4efe4;
  --cream-2:#e7ded0;
  --cream-dim:#b9b1a1;
  --gold:#c39a5b;
  --gold-soft:#d8b783;
  --teal:#1cb5c2;
  --orange:#e8641e;
  --magenta:#cc2069;
  --wm-grad:linear-gradient(92deg,#1cb5c2 0%,#c39a5b 42%,#e8641e 70%,#cc2069 100%);
  --shadow:0 18px 48px -22px rgba(0,0,0,.7);
  --radius:18px;
  --maxw:1180px;
  --serif:'Fraunces',Georgia,'Times New Roman',serif;
  --sans:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--sans);
  background:var(--navy);
  color:var(--cream);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 22px}
section{position:relative}
h1,h2,h3{font-family:var(--serif);font-weight:600;line-height:1.12;letter-spacing:-.01em}
.eyebrow{
  font-family:var(--sans);font-size:.74rem;font-weight:700;letter-spacing:.22em;
  text-transform:uppercase;color:var(--gold-soft);display:inline-flex;align-items:center;gap:.6rem;
}
.eyebrow::before{content:"";width:26px;height:1px;background:var(--gold)}
.grad-text{background:var(--wm-grad);-webkit-background-clip:text;background-clip:text;color:transparent}

/* ---------- barra de contacto superior ---------- */
.topbar{background:var(--ink);border-bottom:1px solid var(--navy-line);font-size:.82rem}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;height:38px;gap:1rem}
.topbar a{color:var(--cream-dim);display:inline-flex;align-items:center;gap:.4rem;transition:color .2s}
.topbar a:hover{color:var(--teal)}
.topbar .tb-left{display:flex;gap:1.6rem}
.topbar .tb-right{display:flex;gap:1rem}
.topbar .dot{color:var(--gold)}
.ticker{display:none}

/* ---------- navegación ---------- */
header.site{position:sticky;top:0;z-index:60;background:rgba(13,26,41,.86);backdrop-filter:blur(12px);border-bottom:1px solid var(--navy-line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:74px}
.brand{display:flex;align-items:center;gap:.7rem}
.brand img{width:46px;height:46px;border-radius:50%;border:1.5px solid var(--gold);box-shadow:0 0 0 3px rgba(195,154,91,.12)}
.brand .bt{display:flex;flex-direction:column;line-height:1}
.brand .bt b{font-family:var(--serif);font-size:1.16rem;font-weight:600}
.brand .bt span{font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold-soft);margin-top:3px}
.nav-links{display:flex;align-items:center;gap:.4rem}
.nav-links a{
  font-weight:600;font-size:.95rem;padding:.55rem .95rem;border-radius:999px;
  color:var(--cream-2);transition:.2s;position:relative;
}
.nav-links a:hover{color:var(--cream);background:rgba(255,255,255,.05)}
.nav-links a.active{color:var(--navy);background:var(--gold-soft)}
.burger{display:none;background:none;border:0;color:var(--cream);cursor:pointer;padding:.4rem}
.burger svg{width:28px;height:28px}
.mobile-menu{display:none}

/* ---------- botones ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.55rem;font-weight:700;font-size:.95rem;
  padding:.85rem 1.5rem;border-radius:999px;cursor:pointer;transition:.22s;border:1px solid transparent;
}
.btn-primary{background:var(--wm-grad);color:#fff;box-shadow:0 12px 30px -12px rgba(232,100,30,.6)}
.btn-primary:hover{transform:translateY(-2px);filter:brightness(1.06)}
.btn-ghost{border-color:var(--navy-line);color:var(--cream);background:rgba(255,255,255,.02)}
.btn-ghost:hover{border-color:var(--gold);color:var(--gold-soft)}

/* ---------- hero ---------- */
.hero{padding:clamp(3.5rem,8vw,6.5rem) 0 clamp(3rem,6vw,5rem);position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;
  background:
    radial-gradient(60% 55% at 82% 12%,rgba(28,181,194,.16),transparent 60%),
    radial-gradient(50% 50% at 10% 90%,rgba(204,32,105,.14),transparent 60%),
    radial-gradient(40% 40% at 60% 80%,rgba(232,100,30,.10),transparent 60%);
  pointer-events:none}
.hero .wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(2rem,5vw,4rem);align-items:center;position:relative}
.hero h1{font-size:clamp(2.5rem,6vw,4.2rem);margin:.9rem 0 1rem}
.hero .lead{font-size:1.14rem;color:var(--cream-2);max-width:34ch;margin-bottom:.4rem}
.hero .obsv{font-family:var(--serif);font-style:italic;color:var(--gold-soft);font-size:1.05rem;margin:1.1rem 0 1.7rem;letter-spacing:.02em}
.hero-cta{display:flex;gap:.8rem;flex-wrap:wrap}
.hero-badge{position:relative;display:flex;justify-content:center;align-items:center}
.hero-badge img{width:min(100%,430px);border-radius:50%;box-shadow:0 30px 80px -30px rgba(0,0,0,.9),0 0 0 1px rgba(195,154,91,.25);animation:floaty 7s ease-in-out infinite}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
.hero-badge .ring{position:absolute;inset:-18px;border:1px dashed rgba(195,154,91,.32);border-radius:50%;animation:spin 60s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- franja de valores (observa/siente/descubre) ---------- */
.triad{padding:clamp(3rem,6vw,4.5rem) 0;background:var(--navy-2);border-top:1px solid var(--navy-line);border-bottom:1px solid var(--navy-line)}
.triad .head{text-align:center;max-width:60ch;margin:0 auto clamp(2rem,4vw,3rem)}
.triad h2{font-size:clamp(1.9rem,4vw,2.7rem);margin:.6rem 0 .8rem}
.triad .head p{color:var(--cream-dim)}
.tri-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}
.tri-card{background:linear-gradient(180deg,var(--navy-3),var(--navy-2));border:1px solid var(--navy-line);border-radius:var(--radius);padding:2rem 1.7rem;transition:.25s}
.tri-card:hover{transform:translateY(-6px);border-color:var(--gold)}
.tri-card .ic{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;font-size:1.5rem;margin-bottom:1.1rem}
.tri-card:nth-child(1) .ic{background:rgba(28,181,194,.14);color:var(--teal)}
.tri-card:nth-child(2) .ic{background:rgba(232,100,30,.14);color:var(--orange)}
.tri-card:nth-child(3) .ic{background:rgba(204,32,105,.14);color:var(--magenta)}
.tri-card h3{font-size:1.3rem;margin-bottom:.5rem}
.tri-card p{color:var(--cream-dim);font-size:.97rem}

/* ---------- bloque manifiesto / sobre ---------- */
.about{padding:clamp(3.5rem,7vw,5.5rem) 0}
.about .wrap{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(2rem,5vw,3.5rem);align-items:center}
.about .quote{background:var(--navy-2);border:1px solid var(--navy-line);border-left:4px solid var(--gold);border-radius:var(--radius);padding:2.2rem 2rem;font-family:var(--serif);font-size:1.35rem;font-style:italic;line-height:1.5;color:var(--cream)}
.about .quote .sig{display:block;margin-top:1.2rem;font-family:var(--sans);font-style:normal;font-size:.9rem;color:var(--gold-soft);letter-spacing:.04em}
.about h2{font-size:clamp(1.9rem,4vw,2.7rem);margin:.7rem 0 1.1rem}
.about p{color:var(--cream-2);margin-bottom:1rem}
.about ul{list-style:none;display:grid;gap:.6rem;margin-top:1.2rem}
.about li{display:flex;gap:.7rem;align-items:flex-start;color:var(--cream-2)}
.about li::before{content:"";flex:0 0 auto;width:18px;height:18px;margin-top:4px;border-radius:50%;background:var(--wm-grad)}

/* ---------- últimas reflexiones ---------- */
.latest{padding:clamp(3rem,6vw,5rem) 0;background:var(--navy-2);border-top:1px solid var(--navy-line)}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:2rem;flex-wrap:wrap}
.sec-head h2{font-size:clamp(1.8rem,4vw,2.6rem)}
.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.3rem}
.pcard{
  display:flex;flex-direction:column;background:var(--navy);border:1px solid var(--navy-line);
  border-radius:var(--radius);overflow:hidden;transition:.25s;height:100%;
}
.pcard:hover{transform:translateY(-6px);border-color:var(--gold);box-shadow:var(--shadow)}
.pcard .thumb{height:120px;background:var(--wm-grad);position:relative;display:grid;place-items:center;overflow:hidden}
.pcard .thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.pcard .thumb span{font-family:var(--serif);font-size:2.4rem;color:rgba(255,255,255,.9);text-shadow:0 2px 12px rgba(0,0,0,.35)}
.pcard .thumb::after{content:"";position:absolute;inset:0;z-index:2;background:linear-gradient(180deg,transparent,rgba(13,26,41,.35))}
.pcard .body{padding:1.3rem 1.35rem 1.5rem;display:flex;flex-direction:column;flex:1}
.pcard .date{font-size:.74rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-soft);margin-bottom:.6rem}
.pcard h3{font-size:1.16rem;line-height:1.25;margin-bottom:.6rem}
.pcard p{font-size:.92rem;color:var(--cream-dim);flex:1}
.pcard .more{margin-top:1rem;font-weight:700;font-size:.9rem;color:var(--teal);display:inline-flex;gap:.4rem;transition:gap .2s}
.pcard:hover .more{gap:.75rem;color:var(--gold-soft)}

/* ---------- CTA band ---------- */
.cta-band{padding:clamp(3rem,6vw,4.5rem) 0}
.cta-inner{background:linear-gradient(120deg,var(--navy-3),var(--navy-2));border:1px solid var(--navy-line);border-radius:26px;padding:clamp(2.2rem,5vw,3.5rem);text-align:center;position:relative;overflow:hidden}
.cta-inner::before{content:"";position:absolute;inset:0;background:radial-gradient(50% 120% at 50% 0,rgba(195,154,91,.16),transparent 60%);pointer-events:none}
.cta-inner h2{font-size:clamp(1.8rem,4vw,2.7rem);margin-bottom:.8rem;position:relative}
.cta-inner p{color:var(--cream-2);max-width:52ch;margin:0 auto 1.6rem;position:relative}

/* ---------- página blog ---------- */
.page-hero{padding:clamp(3rem,6vw,4.5rem) 0 clamp(1.5rem,3vw,2.2rem);text-align:center}
.page-hero h1{font-size:clamp(2.4rem,6vw,3.8rem);margin:.7rem 0 .8rem}
.page-hero p{color:var(--cream-dim);max-width:56ch;margin:0 auto}
.blog-tools{display:flex;justify-content:center;margin:1.8rem 0 2.4rem}
.search{position:relative;width:min(100%,480px)}
.search input{width:100%;background:var(--navy-2);border:1px solid var(--navy-line);border-radius:999px;color:var(--cream);padding:.9rem 1.2rem .9rem 2.9rem;font-size:1rem;font-family:var(--sans);outline:none;transition:.2s}
.search input:focus{border-color:var(--gold)}
.search svg{position:absolute;left:1rem;top:50%;transform:translateY(-50%);width:20px;height:20px;color:var(--gold-soft)}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.3rem;padding-bottom:1.5rem}
.load-more{display:flex;justify-content:center;padding:1.5rem 0 4rem}
.count-note{text-align:center;color:var(--cream-dim);font-size:.9rem;margin-bottom:1.4rem}
.empty{text-align:center;color:var(--cream-dim);padding:3rem 0}

/* ---------- página post (lector) ---------- */
.article{padding:clamp(2rem,5vw,3.5rem) 0 clamp(3rem,6vw,5rem)}
.article .col{max-width:760px;margin:0 auto}
.back-link{display:inline-flex;gap:.5rem;align-items:center;color:var(--gold-soft);font-weight:600;font-size:.9rem;margin-bottom:1.6rem}
.back-link:hover{color:var(--teal)}
.article .meta{font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-soft);margin-bottom:.7rem}
.article h1{font-size:clamp(2rem,5vw,3rem);line-height:1.15;margin-bottom:1.6rem}
.article .rule{height:3px;width:80px;background:var(--wm-grad);border-radius:3px;margin-bottom:2rem}
.article .content{font-size:1.12rem;color:var(--cream-2);line-height:1.85}
.article .content p{margin-bottom:1.3rem}
.article .content h2,.article .content h3{color:var(--cream);margin:2rem 0 1rem}
.article .content a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}
.article .content img{border-radius:14px;margin:1.6rem 0}
.article .content blockquote{border-left:4px solid var(--gold);background:var(--navy-2);padding:1.2rem 1.4rem;border-radius:0 12px 12px 0;margin:1.6rem 0;font-style:italic;color:var(--cream)}
.article .content ul,.article .content ol{margin:0 0 1.3rem 1.3rem}
.article .content li{margin-bottom:.5rem}
.article .content strong{color:var(--cream)}
.post-foot{max-width:760px;margin:3rem auto 0;padding-top:2rem;border-top:1px solid var(--navy-line);text-align:center}

/* ---------- footer ---------- */
footer.site{background:var(--ink);border-top:1px solid var(--navy-line);padding:clamp(2.6rem,5vw,3.6rem) 0 1.6rem;margin-top:2rem}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2rem;margin-bottom:2.2rem}
.foot-brand img{width:58px;height:58px;border-radius:50%;border:1.5px solid var(--gold);margin-bottom:.9rem}
.foot-brand p{color:var(--cream-dim);font-size:.92rem;max-width:38ch}
footer.site h4{font-family:var(--sans);font-size:.78rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-soft);margin-bottom:1rem}
footer.site ul{list-style:none;display:grid;gap:.6rem}
footer.site a{color:var(--cream-dim);font-size:.93rem;transition:color .2s}
footer.site a:hover{color:var(--teal)}
.foot-bottom{border-top:1px solid var(--navy-line);padding-top:1.4rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;color:var(--cream-dim);font-size:.82rem}
.foot-bottom a{color:var(--gold-soft)}

/* ---------- responsive ---------- */
@media(max-width:900px){
  .hero .wrap{grid-template-columns:1fr;text-align:center}
  .hero .lead{margin-left:auto;margin-right:auto}
  .hero-cta{justify-content:center}
  .hero-badge{order:-1}
  .hero-badge img{width:min(72%,300px)}
  .about .wrap{grid-template-columns:1fr}
  .tri-grid{grid-template-columns:1fr}
  .posts-grid,.blog-grid{grid-template-columns:1fr 1fr}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .topbar .tb-left,.topbar .tb-right{display:none}
  .ticker{display:block;width:100%;overflow:hidden;white-space:nowrap}
  .ticker .track{display:inline-block;padding-left:100%;animation:tick 28s linear infinite}
  .ticker .track span{margin:0 1.4rem;color:var(--cream-dim)}
  .ticker .track .dot{color:var(--gold)}
  @keyframes tick{to{transform:translateX(-100%)}}
  .nav-links{display:none}
  .burger{display:inline-flex}
  .mobile-menu.open{display:block;border-top:1px solid var(--navy-line);background:var(--navy-2)}
  .mobile-menu a{display:block;padding:1rem 22px;font-weight:600;border-bottom:1px solid var(--navy-line)}
  .mobile-menu a.active{color:var(--gold-soft)}
  .posts-grid,.blog-grid{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr}
  .sec-head{flex-direction:column;align-items:flex-start}
}
