/* ==========================================================
   Peter Darius - Blog de Ciberseguridad, IA y SEO
   Estilos principales
   ========================================================== */

:root {
  --color-bg: #0b0f19;
  --color-bg-elevated: #111827;
  --color-surface: #1f2937;
  --color-surface-light: #374151;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-primary: #38bdf8;
  --color-primary-dark: #0ea5e9;
  --color-secondary: #a78bfa;
  --color-accent: #34d399;
  --color-security: #f87171;
  --color-ai: #a78bfa;
  --color-seo: #34d399;
  --color-warning: #fbbf24;
  --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #a78bfa 100%);
  --gradient-security: linear-gradient(135deg, #f87171 0%, #fbbf24 100%);
  --gradient-ai: linear-gradient(135deg, #a78bfa 0%, #38bdf8 100%);
  --gradient-seo: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
  --header-height: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

/* Utilidades */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  z-index: 200;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--color-bg);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-bg);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-surface-light);
}

.btn--secondary:hover {
  background: var(--color-surface-light);
  color: var(--color-text);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-surface-light);
}

.btn--ghost:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
  transition: var(--transition);
}

.header.is-scrolled {
  background: rgba(11, 15, 25, 0.95);
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}

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

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: var(--color-bg);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
  border-radius: var(--radius-md);
}

.nav__link:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.nav__link--cta {
  background: var(--gradient-primary);
  color: var(--color-bg);
  margin-left: 0.5rem;
}

.nav__link--cta:hover {
  color: var(--color-bg);
  opacity: 0.9;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 5rem) 0 6rem;
  overflow: hidden;
}

.hero--blog {
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.1) 0%, transparent 40%);
  z-index: -1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero--blog .hero__inner {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--color-surface);
  color: var(--color-primary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero--blog .hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero--blog .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero--blog .hero__actions {
  justify-content: center;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

.hero__card {
  width: 280px;
  height: 200px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero__card-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero__card-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-surface-light);
}

.hero__card-header span:first-child { background: var(--color-security); }
.hero__card-header span:nth-child(2) { background: var(--color-ai); }
.hero__card-header span:nth-child(3) { background: var(--color-seo); }

.hero__card-line {
  height: 12px;
  background: var(--color-surface-light);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  width: 70%;
}

.hero__card-line--long { width: 100%; }
.hero__card-line--short { width: 45%; }

.hero__badge {
  position: absolute;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
}

.hero__badge--security {
  top: 10%;
  left: 0;
  background: rgba(248, 113, 113, 0.15);
  color: var(--color-security);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.hero__badge--ai {
  top: 40%;
  right: 0;
  background: rgba(167, 139, 250, 0.15);
  color: var(--color-ai);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.hero__badge--seo {
  bottom: 15%;
  left: 10%;
  background: rgba(52, 211, 153, 0.15);
  color: var(--color-seo);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Secciones */
.section {
  padding: 5rem 0;
}

.section--light {
  background: var(--color-bg-elevated);
}

.section--cta {
  background: var(--color-bg-elevated);
  padding: 4rem 0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section__header--left {
  text-align: left;
  margin-left: 0;
}

.section__eyebrow {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section__desc {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

.section__footer {
  text-align: center;
  margin-top: 3rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

.grid--featured {
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: repeat(2, 1fr);
}

.grid--featured .post-card--featured {
  grid-row: span 2;
}

/* Post cards */
.post-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.post-card__image {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.post-card--featured .post-card__image {
  height: 280px;
}

.post-card__image--security { background: var(--gradient-security); }
.post-card__image--ai { background: var(--gradient-ai); }
.post-card__image--seo { background: var(--gradient-seo); }

.post-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-text);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.post-card__content {
  padding: 1.5rem;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.post-card__tag {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.post-card__tag--security { background: rgba(248, 113, 113, 0.15); color: var(--color-security); }
.post-card__tag--ai { background: rgba(167, 139, 250, 0.15); color: var(--color-ai); }
.post-card__tag--seo { background: rgba(52, 211, 153, 0.15); color: var(--color-seo); }

.post-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.post-card--featured .post-card__title {
  font-size: 1.75rem;
}

.post-card__excerpt {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.post-card__read {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.post-card:hover .post-card__read {
  color: var(--color-primary-dark);
}

/* Category cards */
.category-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}

.category-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.category-card--security .category-card__icon { background: rgba(248, 113, 113, 0.15); color: var(--color-security); }
.category-card--ai .category-card__icon { background: rgba(167, 139, 250, 0.15); color: var(--color-ai); }
.category-card--seo .category-card__icon { background: rgba(52, 211, 153, 0.15); color: var(--color-seo); }

.category-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.category-card__desc {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.category-card__count {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* CTA */
.cta {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  color: var(--color-bg);
}

.cta--compact {
  padding: 3rem;
}

.cta__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta__text {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta .btn--primary {
  background: var(--color-bg);
  color: var(--color-text);
}

.cta .btn--ghost {
  border-color: var(--color-bg);
  color: var(--color-bg);
}

.cta .btn--ghost:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

/* Newsletter */
.newsletter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1 1 260px;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(11, 15, 25, 0.5);
  color: var(--color-text);
  font-size: 1rem;
}

.newsletter__input::placeholder {
  color: var(--color-text-muted);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--color-bg);
}

/* Footer */
.footer {
  background: var(--color-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer__copy {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__nav a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

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

/* Page header */
.page-header {
  padding: calc(var(--header-height) + 4rem) 0 3rem;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-header__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-top: 1rem;
}

.page-header__desc {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  margin-top: 1rem;
  max-width: 640px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--color-surface-light);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb--light,
.breadcrumb--light a {
  color: rgba(255, 255, 255, 0.7);
}

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

/* Blog layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.blog-layout__main {
  min-width: 0;
}

.blog-layout__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Post list */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-list__item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.post-list__item:hover {
  box-shadow: var(--shadow-md);
}

.post-list__image {
  height: 140px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.post-list__image--security { background: var(--gradient-security); }
.post-list__image--ai { background: var(--gradient-ai); }
.post-list__image--seo { background: var(--gradient-seo); }

.post-list__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-list__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.post-list__tag {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.post-list__tag--security { background: rgba(248, 113, 113, 0.15); color: var(--color-security); }
.post-list__tag--ai { background: rgba(167, 139, 250, 0.15); color: var(--color-ai); }
.post-list__tag--seo { background: rgba(52, 211, 153, 0.15); color: var(--color-seo); }

.post-list__title a {
  color: var(--color-text);
  font-size: 1.35rem;
  font-weight: 700;
}

.post-list__title a:hover {
  color: var(--color-primary);
}

.post-list__excerpt {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Widgets */
.widget {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget--sticky {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.widget__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.widget__list a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  display: block;
}

.widget__list a:hover {
  color: var(--color-primary);
}

/* Author mini */
.author-mini {
  text-align: center;
}

.author-mini__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.author-mini__name {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.author-mini__bio {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.author-mini__link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Article header */
.article-header {
  padding: calc(var(--header-height) + 4rem) 0 3rem;
  margin-bottom: 3rem;
}

.article-header--security { background: var(--gradient-security); }
.article-header--ai { background: var(--gradient-ai); }
.article-header--seo { background: var(--gradient-seo); }

.article-header__inner {
  color: var(--color-bg);
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 1.5rem 0 1rem;
}

.article-header__tag {
  padding: 0.25rem 0.875rem;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.8rem;
}

.article-header__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.article-header__lead {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 760px;
}

/* Article content */
.article-content {
  font-size: 1.05rem;
  color: var(--color-text);
}

.article-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--color-text);
}

.article-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--color-primary);
}

.article-content p {
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5rem 1.5rem;
  list-style: disc;
  color: var(--color-text-muted);
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content strong {
  color: var(--color-text);
  font-weight: 600;
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-elevated);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-text);
}

.article-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Article footer */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.article-share__label {
  color: var(--color-text-muted);
  font-weight: 600;
}

.article-share a {
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.article-share a:hover {
  background: var(--color-surface-light);
  color: var(--color-text);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-nav__prev,
.article-nav__next {
  color: var(--color-text);
  font-weight: 600;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.article-nav__prev:hover,
.article-nav__next:hover {
  background: var(--color-surface-light);
  color: var(--color-text);
}

/* About page */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about--page {
  grid-template-columns: 0.8fr 1fr;
}

.about__content {
  order: 2;
}

.about--page .about__content {
  order: 1;
}

.about__visual {
  order: 1;
  display: flex;
  justify-content: center;
}

.about--page .about__visual {
  order: 2;
}

.about__visual--large .about__card {
  width: 280px;
  height: 320px;
}

.about__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 280px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about__initials {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.about__name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.about__role {
  color: var(--color-text-muted);
}

.about__text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat {
  text-align: center;
  padding: 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__info {
  padding-right: 2rem;
}

.contact__text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

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

.contact__method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-weight: 500;
}

.contact__method:hover {
  background: var(--color-surface-light);
  color: var(--color-text);
}

.contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: var(--color-bg);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
}

.contact__form-wrapper {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-surface-light);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-alert--success {
  background: rgba(52, 211, 153, 0.15);
  color: var(--color-seo);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.form-alert--error {
  background: rgba(248, 113, 113, 0.15);
  color: var(--color-security);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid--3,
  .grid--featured,
  .blog-layout,
  .about,
  .about--page,
  .contact {
    grid-template-columns: 1fr;
  }

  .grid--featured .post-card--featured {
    grid-row: span 1;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
    min-height: 280px;
  }

  .about__content,
  .about--page .about__content {
    order: 2;
  }

  .about__visual,
  .about--page .about__visual {
    order: 1;
  }

  .contact__info {
    padding-right: 0;
  }

  .widget--sticky {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
  }

  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    padding: 0.875rem 1rem;
  }

  .nav__link--cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .hero {
    padding: calc(var(--header-height) + 3rem) 0 4rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .cta,
  .cta--compact {
    padding: 2rem;
  }

  .post-list__item {
    grid-template-columns: 1fr;
  }

  .post-list__image {
    height: 180px;
  }

  .article-header {
    padding: calc(var(--header-height) + 3rem) 0 2rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__actions,
  .cta__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero__card {
    width: 240px;
    height: 180px;
  }

  .hero__badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.875rem;
  }
}

/* ==========================================================
   Perfil tipo LinkedIn
   ========================================================== */

.profile-section {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 2rem;
}

.profile-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.profile-card__banner {
  height: 200px;
  background: var(--gradient-primary);
  position: relative;
}

.profile-card__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.1) 0%, transparent 40%);
}

.profile-card__body {
  position: relative;
  padding: 0 2rem 2rem;
}

.profile-card__avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 800;
  border: 6px solid var(--color-surface);
  margin-top: -80px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.profile-card__avatar--photo {
  background: transparent;
}

.profile-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 1.5rem;
  margin-bottom: 1rem;
}

.profile-card__info {
  margin-top: -2.5rem;
}

.profile-card__name {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.profile-card__headline {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  max-width: 760px;
}

.profile-card__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.section--compact {
  padding: 2rem 0;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.profile-stat {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.profile-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.profile-stat__number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.profile-stat__label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.profile-block {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.profile-block__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-block__content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.profile-block__content strong {
  color: var(--color-text);
}

.profile-block__content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience-item {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.experience-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.experience-item__logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--color-text);
}

.experience-item__logo--creativedom {
  background: var(--gradient-security);
}

.experience-item__logo--creativesaas {
  background: var(--gradient-ai);
}

.experience-item__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.experience-item__company {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.experience-item__company a {
  color: var(--color-primary);
}

.experience-item__meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.experience-item__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.experience-item__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-item__skills li {
  padding: 0.25rem 0.75rem;
  background: var(--color-bg-elevated);
  border-radius: 9999px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  transition: var(--transition);
}

.project-card:hover {
  background: var(--color-surface-light);
  color: var(--color-text);
  transform: translateY(-2px);
}

.project-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--color-text);
}

.project-card__icon--creativedom {
  background: var(--gradient-security);
}

.project-card__icon--creativesaas {
  background: var(--gradient-ai);
}

.project-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-card__link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.project-card:hover .project-card__link {
  color: var(--color-primary-dark);
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  padding: 0.5rem 1rem;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.skill-tag:hover {
  background: var(--color-surface-light);
  color: var(--color-text);
}

@media (max-width: 1024px) {
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .profile-card__body {
    padding: 0 1.25rem 1.5rem;
  }

  .profile-card__avatar {
    width: 120px;
    height: 120px;
    font-size: 3rem;
    margin-top: -60px;
  }

  .profile-card__actions {
    justify-content: flex-start;
    flex-direction: column;
    padding-top: 1rem;
  }

  .profile-card__actions .btn {
    width: 100%;
  }

  .profile-card__info {
    margin-top: 1rem;
  }

  .profile-card__name {
    font-size: 1.6rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .experience-item {
    flex-direction: column;
  }

  .project-card {
    flex-direction: column;
  }
}
