/* ============================================================
   therightaichoice.com — page styles
   Implemented from Site.dc.html (Claude Design project
   "The Right AI Choice Website"), on the Peñarrieta brand
   system tokens. Values mirror the design 1:1.
   ============================================================ */

html { scroll-behavior: smooth; }

.page { background: var(--surface-page); min-height: 100vh; }

[hidden] { display: none !important; }

/* ---------------- Shared nav ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-light-strong);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 48px;
}
.brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  cursor: pointer;
  text-decoration: none;
}
.brand:hover { color: var(--text-strong); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 160ms ease;
  text-decoration: none;
}
.nav-link:hover { color: var(--text-strong); text-decoration: none; }
.nav-link.active { color: var(--text-strong); font-weight: 600; }
.nav-sep { width: 1px; height: 18px; background: var(--border-default); }
.lang { display: inline-flex; align-items: center; gap: 2px; }
.lang-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 4px 5px;
  cursor: pointer;
  transition: color 160ms ease;
}
.lang-btn.active { color: var(--clay-600); font-weight: 700; }
.lang-slash { font-family: var(--font-mono); font-size: 12px; color: var(--border-strong); }

/* ---------------- Home: hero ---------------- */

.hero { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(58% 58% at 50% 6%, rgba(170, 199, 216, 0.30) 0%, rgba(170, 199, 216, 0.0) 62%);
}
.hero-inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 72px 48px 44px;
  text-align: center;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(46px, 5.6vw, 82px);
  line-height: 1.015;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin: 0;
  text-wrap: balance;
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--clay-600); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.kicker-dash { width: 18px; height: 2px; background: var(--clay-500); }
.hero-sub {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--text-body);
  max-width: 620px;
  margin: 22px auto 0;
  text-wrap: pretty;
}

/* ---------------- Home: the three doors ---------------- */

.doors-section {
  background: var(--surface-sunken);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 48px 84px;
}
.doors-wrap { max-width: 1160px; margin: 0 auto; }
.doors-head { text-align: center; }
.doors-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 42px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 14px 0 0;
}
.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 52px;
  align-items: start;
}
.door {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 34px 30px 32px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 200ms var(--ease-standard),
    box-shadow 200ms var(--ease-standard),
    border-color 200ms;
  cursor: pointer;
}
.door:hover,
.door.open {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.door-plus {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--steel-400);
  transform: rotate(0deg);
  transition: transform 220ms var(--ease-standard), color 200ms;
}
.door:hover .door-plus,
.door.open .door-plus { transform: rotate(45deg); color: var(--clay-600); }
.door-idx { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; color: var(--clay-500); }
.door-verb {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin-top: 14px;
  line-height: 1;
}
.door-en {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 9px;
}
.door-when {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-body);
  margin: 20px 0 0;
}
.door-reveal {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  transition:
    max-height 360ms var(--ease-standard),
    opacity 220ms ease,
    margin-top 360ms var(--ease-standard);
}
.door:hover .door-reveal,
.door.open .door-reveal {
  max-height: 260px;
  opacity: 1;
  margin-top: 18px;
  transition:
    max-height 360ms var(--ease-standard),
    opacity 280ms ease,
    margin-top 360ms var(--ease-standard);
}
.door-trap { border-top: 1px solid var(--border-subtle); padding-top: 16px; }
.door-trap-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-600);
}
.door-trap-text {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 8px 0 0;
}

/* ---------------- Home: latest article ---------------- */

.latest-section { background: var(--surface-page); padding: 84px 48px; }
.latest-wrap { max-width: 900px; margin: 0 auto; }
.article-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 44px 44px 40px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 200ms var(--ease-standard), box-shadow 200ms;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.article-card-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 0;
  max-width: 640px;
}
.article-card-summary {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
  max-width: 620px;
}
.article-card-read {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--clay-600);
  margin-top: 6px;
}

/* ---------------- Recursos (coming soon) ---------------- */

.soon-main { position: relative; overflow: hidden; }
.soon-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(56% 52% at 50% 4%, rgba(170, 199, 216, 0.28) 0%, rgba(170, 199, 216, 0.0) 62%);
}
.soon-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 48px 104px;
  text-align: center;
}
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-700);
  background: var(--clay-50);
  border: 1px solid var(--clay-200);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
}
.soon-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay-500); }
.soon-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin: 26px 0 0;
  text-wrap: balance;
}
.soon-intro {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--text-body);
  max-width: 600px;
  margin: 24px auto 0;
  text-wrap: pretty;
}

/* ---------------- Artículos index ---------------- */

.articles-main { max-width: 880px; margin: 0 auto; padding: 72px 48px 96px; }
.articles-head { max-width: 640px; }
.articles-list { margin-top: 52px; border-top: 1px solid var(--border-default); }
.article-row {
  display: flex;
  gap: 32px;
  align-items: baseline;
  border-bottom: 1px solid var(--border-default);
  padding: 32px 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms;
}
.article-row:hover { background: var(--surface-sunken); text-decoration: none; }
.article-row-date {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  width: 110px;
  flex: none;
}
.article-row-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 0 0 8px;
}
.article-row-summary {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0;
}

/* ---------------- Article ---------------- */

.post-main { max-width: 680px; margin: 0 auto; padding: 56px 32px 96px; }
.post-back {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
}
.post-back:hover { color: var(--text-strong); text-decoration: none; }
.post-head { margin-top: 26px; }
.post-date { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--clay-500); }
.post-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin: 16px 0 0;
  text-wrap: balance;
}
.post-body {
  margin-top: 36px;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.78;
  color: var(--text-body);
}
.post-body p { margin: 0 0 1.4em; }
.post-body h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 1.8em 0 0.6em;
}
.post-body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 1.6em 0 0.5em;
}
.post-body ol {
  margin: 0 0 1.4em;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.post-close {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.4;
  color: var(--text-strong);
  margin: 1.6em 0 0;
}
.post-close .accent-em { color: var(--clay-600); font-style: italic; }
.post-refs {
  border-top: 1px solid var(--border-subtle);
  margin-top: 3em;
  padding-top: 1.6em;
}
.post-refs ul {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------------- Sobre mí ---------------- */

.about-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border-subtle); }
.about-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(58% 58% at 50% 0%, rgba(170, 199, 216, 0.28) 0%, rgba(170, 199, 216, 0.0) 60%);
}
.about-grid {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 48px 56px;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin: 0;
  text-wrap: balance;
}
.about-role-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--clay-600);
  margin: 16px 0 0;
  text-transform: uppercase;
}
.about-roleline {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
  margin: 26px 0 0;
  max-width: 540px;
}
.about-cue {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 18px 0 0;
  max-width: 520px;
}
.about-cred {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 26px;
}
.about-photo { position: relative; }
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-default);
}
.about-body { max-width: 680px; margin: 0 auto; padding: 64px 32px 96px; }
.about-prose {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.78;
  color: var(--text-body);
}
.about-prose p { margin: 0 0 1.3em; }
.about-acts { border-top: 1px solid var(--border-subtle); margin-top: 28px; padding-top: 8px; }
.act { margin-bottom: 14px; }
.act-chapter {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 23px;
  letter-spacing: -0.01em;
  color: var(--clay-600);
  margin: 36px 0 20px;
}
.about-closing { border-top: 1px solid var(--border-subtle); margin-top: 20px; padding-top: 8px; }

/* ---------------- Shared footer ---------------- */

.site-footer { background: var(--surface-ink); color: var(--text-on-dark); padding: 52px 48px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { font-family: var(--font-serif); font-weight: 600; font-size: 20px; color: var(--text-on-dark); }
.footer-link { font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: var(--text-on-dark); }
.footer-link:hover { color: var(--white); }

/* ---------------- Responsive (mirrors the design's helmet rules) ---------------- */

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 300px; }
}

@media (max-width: 720px) {
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .doors { grid-template-columns: 1fr; gap: 18px; }
  .hero-inner,
  .doors-section,
  .latest-section,
  .soon-inner,
  .articles-main,
  .site-footer { padding-left: 22px; padding-right: 22px; }
  .article-row { flex-direction: column; gap: 6px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
