:root {
  --black: #0e0d0c;
  --black-soft: #19170f;
  --cream: #faf5ea;
  --cream-dim: #f1e9d8;
  --yellow: #f0a828;
  --yellow-deep: #c97e1b;
  --text-light: #f5efe1;
  --text-dark: #1a1917;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 800;
  margin: 0 0 0.5em;
  line-height: 1.1;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Logo mark */
.logo { display: block; }
.logo--yellow { color: var(--yellow); }
.logo--dark { color: var(--black); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 13, 12, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(240, 168, 40, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  color: var(--text-light);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.site-nav a:hover { opacity: 1; }

.nav-cta {
  background: var(--yellow);
  color: var(--black) !important;
  padding: 9px 18px;
  border-radius: 999px;
  opacity: 1 !important;
}

.nav-cta:hover { background: var(--yellow-deep); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.btn-primary:hover { background: var(--yellow-deep); }

.btn-dark {
  background: var(--black);
  color: var(--text-light);
}

.btn-dark:hover { background: var(--black-soft); }

/* Hero */
.hero {
  position: relative;
  background: var(--black);
  color: var(--text-light);
  overflow: hidden;
  padding: 120px 0 100px;
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(240,168,40,0.28) 0%, rgba(240,168,40,0) 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-mark { margin-bottom: 20px; }

.hero-title {
  font-size: clamp(2.6rem, 8vw, 5rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.3em;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 0.8em;
}

.hero-copy {
  max-width: 560px;
  font-weight: 300;
  color: rgba(245, 239, 225, 0.85);
  margin-bottom: 2em;
}

/* Sections */
.section { padding: 96px 0; }
.section-light { background: var(--cream); }
.section-dark { background: var(--black); color: var(--text-light); }
.section-accent { background: var(--yellow); color: var(--black); text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--yellow-deep);
  margin-bottom: 0.6em;
}

.eyebrow--light { color: var(--yellow); }

.section-title { max-width: 640px; }
.section-title--light { color: var(--text-light); }

.lead { font-size: 1.1rem; font-weight: 400; }

/* Quién soy */
.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.split-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--black);
  border-radius: 24px;
  overflow: hidden;
}

.split-mark {
  width: 45%;
  max-width: 220px;
  height: auto;
}

.pull-quote {
  margin: 1.6em 0 0;
  padding-left: 20px;
  border-left: 4px solid var(--yellow);
  font-style: italic;
  font-weight: 600;
  color: var(--black);
}

/* Cards */
.card-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.card {
  display: block;
  background: var(--black-soft);
  color: var(--text-light);
  border: 1px solid rgba(240, 168, 40, 0.2);
  border-radius: 18px;
  padding: 32px 24px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

a.card:hover,
a.card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(240, 168, 40, 0.55);
  background: #201d13;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow);
}

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--yellow);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}

.card p {
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(245, 239, 225, 0.8);
  margin: 0;
}

.card p + p { margin-top: 0.7em; }

/* Subscribe */
.subscribe-inner {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 12px 0 16px;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid var(--black);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
}

.subscribe-form input[type="email"]:focus {
  outline: 3px solid var(--black-soft);
  outline-offset: 2px;
}

.fine-print {
  font-size: 0.82rem;
  opacity: 0.75;
  margin: 0;
}

/* Sub-page hero */
.page-hero {
  background: var(--black);
  color: var(--text-light);
  padding: 64px 0 56px;
  text-align: center;
}

.page-hero .lead {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(245, 239, 225, 0.85);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yellow);
  opacity: 0.9;
}

.back-link:hover { opacity: 1; }

/* Item media box (photo or placeholder) */
.item-media {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--black);
}

.item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder media block (swap for a real photo) */
.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
}

.media-placeholder .logo { width: 30%; height: auto; opacity: 0.7; }

.media-placeholder--text {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(245, 239, 225, 0.55);
  text-align: center;
  padding: 0 24px;
}

/* Item list (retos, etc.), alternating image/text rows */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 72px;
  margin-top: 24px;
}

.item-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.item-row:nth-child(even) .item-media { order: 2; }
.item-row:nth-child(even) .item-text { order: 1; }

.item-number {
  font-weight: 800;
  color: var(--yellow-deep);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.4em;
}

/* Simple text block list (hábitos, adversidad) */
.text-block { max-width: 760px; }
.text-block h3 { margin-top: 1.6em; }

/* Day log entries */
.log-entry {
  padding: 28px 0;
  border-bottom: 1px solid rgba(240, 168, 40, 0.15);
}

.log-entry:last-child { border-bottom: none; }

.log-date {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  margin-bottom: 0.5em;
}

.log-entry h3 { margin-bottom: 0.4em; }

/* Footer */
.site-footer {
  background: var(--black);
  color: rgba(245, 239, 225, 0.7);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-graphic { max-width: 260px; margin: 0 auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .item-row { grid-template-columns: 1fr; }
  .item-row:nth-child(even) .item-media,
  .item-row:nth-child(even) .item-text { order: initial; }
  .item-list { gap: 40px; }
}

@media (max-width: 620px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .giant-zero { font-size: 8rem; }
}
