/*
Theme Name: MK Landing
Theme URI: https://maestrokeicy.com
Author: Maestro Keicy
Description: Custom landing theme (EN/ES) built from scratch without page builders.
Version: 1.0
Text Domain: mk-landing
*/

:root{
  --bg:#0b0c0f;
  --bg2:#10121a;
  --text:#e9e9ee;
  --muted:#b6b8c4;
  --line:rgba(255,255,255,.10);
  --card:rgba(255,255,255,.04);
  --radius:18px;
  --shadow:0 20px 60px rgba(0,0,0,.35);
}

*{box-sizing:border-box}

/* Keep layout stable between pages with/without scrollbar */
html{
  scroll-behavior:smooth;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(900px 600px at 20% -10%, rgba(255,255,255,.10), transparent 60%),
              radial-gradient(800px 600px at 90% 0%, rgba(255,255,255,.06), transparent 55%),
              var(--bg);
  color:var(--text);
}

/* Links: evita el azul/púrpura del navegador (incluye visited) */
a,
a:visited{
  color:inherit;
  text-decoration:none;
}

.container{max-width:1080px;margin:0 auto;padding:0 20px}

.nav{
  position:sticky; top:0; z-index:50;
  background: rgba(11,12,15,.72);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line);
}

.nav__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:70px;
  gap:16px;
  position:relative; /* necesario para dropdown móvil */
}

/* Logo */
.brand,
.brand:visited{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
}

.brand__mark{
  width:38px;height:38px;display:grid;place-items:center;
  border:1px solid var(--line);border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  color:var(--text);
}

.brand__text{
  font-weight:650;
  letter-spacing:.2px;
  color:var(--text);
}

/* Desktop links */
.nav__links{display:flex;gap:18px}

.nav__links a,
.nav__links a:visited{
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
}

.nav__links a:hover{
  color:var(--text);
}

/* Language button */
.lang{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}

/* Mobile menu button (hidden on desktop) */
.menu-btn{
  display:none;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}

/* HERO */
.hero{padding:86px 0 48px}
.hero__inner{max-width:820px}

.eyebrow{
  color:var(--muted);
  letter-spacing:.16em;
  text-transform:uppercase;
  font-size:12px;
  margin:0 0 16px;
}

.hero__title{font-size:52px;line-height:1.05;margin:0 0 16px}

.hero__subtitle{
  color:var(--muted);
  font-size:18px;
  line-height:1.7;
  margin:0 0 24px;
  max-width:62ch;
}

.hero__cta{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 18px}

.hero__meta{
  color:var(--muted);
  font-size:14px;
  display:flex;
  gap:10px;
  align-items:center;
}

/* SECTIONS */
.section{padding:72px 0;border-top:1px solid var(--line)}

.section--alt{
  background:linear-gradient(180deg, transparent, rgba(255,255,255,.03) 20%, transparent);
}

.section__title{font-size:28px;margin:0 0 10px}

.section__subtitle{
  color:var(--muted);
  margin:0 0 26px;
  line-height:1.7;
}

.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}

.card{
  padding:18px 18px 20px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--card);
  box-shadow: var(--shadow);
}

.card h3{margin:0 0 8px}
.card p{margin:0;color:var(--muted);line-height:1.65}

.list{display:grid;gap:10px}

.list__item{
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.02);
  color:var(--text);
  text-decoration:none;
}

.list__item:hover{background:rgba(255,255,255,.05)}

.steps{display:grid;gap:16px;padding-left:18px}
.steps h3{margin:0 0 6px}
.steps p{margin:0;color:var(--muted);line-height:1.65}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  text-decoration:none;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
  transition: transform .12s ease;
}

.btn--primary{background:rgba(255,255,255,.92);color:#0b0c0f}
.btn--ghost{background:rgba(255,255,255,.03);color:var(--text)}
.btn:hover{transform:translateY(-1px)}

/* FOOTER */
.footer{padding:24px 0;border-top:1px solid var(--line)}
.footer__inner{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  color:var(--muted);
  font-size:13px;
}

.muted{color:var(--muted)}

/* MOBILE */
@media (max-width:860px){
  .hero__title{font-size:40px}
  .grid{grid-template-columns:1fr}

  /* show menu button */
  .menu-btn{display:inline-flex; align-items:center; gap:8px;}

  /* dropdown menu hidden by default */
  .nav__links{
    display:none;
    position:absolute;
    left:16px;
    right:16px;
    top:74px;
    flex-direction:column;
    gap:10px;
    padding:12px;
    border:1px solid var(--line);
    border-radius:16px;
    background: rgba(11,12,15,.92);
    backdrop-filter: blur(14px);
  }

  .nav__links.is-open{display:flex !important;}
}

/* CTA button in nav */
.nav__cta{
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.btn.btn--primary{
  background: #111;
  color: #fff;
}

.btn.btn--primary:hover{
  opacity: 0.92;
}

/* Ajuste fino: subir CTA en desktop */
/*@media (min-width: 900px){
 /* .nav .nav__cta{
 /*   transform: translateY(-9px);
 /* }
/*}

/* About section */
.about{
  padding: 72px 0;
  padding-top: 88px;
}

.about .container{
  max-width: 820px;
}

.about h2{
  margin-bottom: 14px;
}

.about p{
  opacity: 0.9;
  line-height: 1.7;
  margin: 0 0 14px 0;
}

/* Contact micro-copy */
.contact-note{
  margin: 10px 0 24px;
  font-size: 0.95rem;
  opacity: 0.7;
  font-style: italic;
}

/* Single / archive typography */
.blog-single,
.blog-archive {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.post-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  opacity: 0.6;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.post-content p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Blog index layout */
.blog-index {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.blog-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.blog-hero p {
  opacity: 0.7;
  max-width: 60ch;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Post cards (NOW: the entire card is the <a>) */
.post-card {
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.18);
}

.post-card:visited{
  color: inherit;
}

.post-card:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.post-card-inner {
  padding: 1.2rem 1.2rem 1.3rem;
}

.post-card-meta {
  font-size: 0.85rem;
  opacity: 0.65;
  margin-bottom: 0.8rem;
}

.post-card-title {
  font-size: 1.15rem;
  margin: 0 0 0.7rem;
  line-height: 1.3;
}

.post-card-excerpt {
  opacity: 0.8;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.post-card-link {
  display: inline-block;
  opacity: 0.9;
  text-decoration: none;
}

.blog-pagination {
  margin-top: 2.5rem;
}

.blog-pagination-inner {
  display: flex;
  justify-content: space-between;
  opacity: 0.75;
}

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* WP menu styling (Blog / Posts / Pages) */
.nav__links .nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav__links .nav-links li {
  margin: 0;
  padding: 0;
}

.nav__links .nav-links a {
  text-decoration: none;
  color: inherit;
  opacity: 0.9;
}

.nav__links .nav-links a:hover {
  opacity: 1;
}

/* Pillar pages (e.g. Mixing) — match Blog typography */
.page-hero .page-title {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.page-content p,
.page-content li {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
}

.page-content ul {
  margin-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.page-content h2,
.page-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* Hide language button outside home without shifting nav */
body:not(.home) .lang{
  visibility: hidden;
  pointer-events: none;
}
/* --- Nav alignment fix (landing vs blog) --- */
.nav__inner{
  align-items: center;
}

.nav__links{
  align-items: center; /* clave: centra el bloque completo */
}

/* WP menu inside nav */
.nav__links .nav-links{
  align-items: center;
}

/* Normalize link vertical metrics */
.nav__links a,
.nav__links .nav-links a{
  display: inline-flex;
  align-items: center;
  line-height: 1;        /* evita que “bajen” por line-height */
  padding: 0;            /* evita padding default raro */
  margin: 0;
}

/* Optional: make the UL not affect height */
.nav__links .nav-links li{
  display: flex;
  align-items: center;
}
/* --- Normalize CTA alignment in nav --- */
.nav__cta{
  display: inline-flex;
  align-items: center;
  line-height: 1;
  margin: 0;
  padding: 10px 14px; /* conserva tu diseño */
}
/* Editorial hub link at end of posts */
.post-hub-link {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-hub-link p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.post-hub-link a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.post-hub-link a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}
/* Post breadcrumb (section → post) */
.post-breadcrumb {
  margin: 0 0 0.75rem 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
}

.post-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.post-breadcrumb a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.post-breadcrumb__current {
  color: rgba(255, 255, 255, 0.65);
}
/* Related reading section */
.related-reading {
  margin-top: 3rem;
}

.related-reading h3 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
}

.related-reading ul {
  margin: 0;
  padding-left: 1rem;
}

.related-reading li {
  margin-bottom: 0.4rem;
}

.related-reading a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.related-reading a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}
