/* ============================================================
   inner.css — Páginas interiores genéricas
   (blog, sobre-mi, contacto, SEO pages)
   ============================================================ */

/* ── PAGE HEADER ─────────────────────────────────────────────── */
.page-header {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--border);
}

.page-header__badge { margin-bottom: 1.25rem; }

.page-header__h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  max-width: 20ch;
  line-height: 1.08;
}

.page-header__desc {
  font-size: var(--text-md);
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.65;
}

/* ── BREADCRUMB ──────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  color: var(--ink-3);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--ink-3); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { user-select: none; }

/* ── PROSE LAYOUT (content + aside) ─────────────────────────── */
.prose-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  padding-block: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.prose-aside {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.aside-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: var(--white);
  margin-bottom: 1rem;
}

.aside-card h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.aside-card p,
.aside-card li {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

@media (max-width: 900px) {
  .prose-layout { grid-template-columns: 1fr; }
  .prose-aside  { position: static; }
}

/* ── PROSE CONTENT ───────────────────────────────────────────── */
.prose h2 {
  font-size: clamp(var(--text-md), 2.5vw, var(--text-lg));
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose h3 {
  font-size: var(--text-md);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.prose p {
  font-size: var(--text-md);
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 68ch;
}

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  font-size: var(--text-md);
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.prose strong { font-weight: 600; color: var(--ink); }

/* ── CONTACT PAGE ────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-block: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: var(--text-sm);
  transition: border-color 0.15s;
  appearance: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--ink);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-status {
  font-size: var(--text-sm);
  color: var(--ink-2);
  display: none;
}
.form-status.visible { display: block; }
.form-status--error { color: #b91c1c; }

/* ── BLOG LIST ───────────────────────────────────────────────── */
.blog-list {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.blog-list__grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blog-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}
.blog-row:hover { background: var(--surface); }

.blog-row__meta {
  flex-shrink: 0;
  width: 90px;
  font-size: var(--text-xs);
  color: var(--ink-3);
  padding-top: 0.15rem;
}

.blog-row__title {
  font-size: var(--text-md);
  font-weight: 500;
  flex: 1;
  line-height: 1.4;
}

.blog-row__cat {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .blog-row { flex-direction: column; gap: 0.5rem; }
  .blog-row__meta { width: auto; }
}

/* ── SOBRE MÍ ────────────────────────────────────────────────── */
.about-page {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.about-page__intro {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

.about-page__photo {
  width: 200px; height: 200px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border);
}

@media (max-width: 600px) {
  .about-page__intro { grid-template-columns: 1fr; }
  .about-page__photo { width: 120px; height: 120px; }
}

/* ── GRACIAS ─────────────────────────────────────────────────── */
.thanks-page {
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.thanks-page__icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.thanks-page h1 {
  font-size: clamp(var(--text-xl), 4vw, var(--text-2xl));
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.thanks-page p {
  font-size: var(--text-md);
  color: var(--ink-2);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.65;
}
