/* Reset simple */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f4f5fb;
  color: #020617;
}

/* Layout general */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #e5f7f2;
}

.section h2 {
  margin-top: 0;
  font-size: 2rem;
}

.section-intro {
  max-width: 620px;
  margin-bottom: 2rem;
  color: #4b5563;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-symbol {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1.1rem;
  padding: 0.25rem 0.4rem;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #a7f3d0;
}

.logo-text {
  font-weight: 600;
  font-size: 0.95rem;
}

.logo-text span {
  color: #059669;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #374151;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.main-nav a:hover {
  background: #ecfdf5;
  color: #065f46;
  transform: translateY(-1px);
}

.main-nav .nav-cta {
  background: #059669;
  color: #ecfdf5;
  font-weight: 500;
}

.main-nav .nav-cta:hover {
  background: #047857;
  color: #ecfdf5;
}

/* HERO */

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 840px) {
  .hero-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  }
}

.hero-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #16a34a;
  font-weight: 600;
}

.hero-text h1 {
  font-size: 2.3rem;
  margin: 0.4rem 0 0.75rem;
}

.hero-text h1 span {
  color: #10b981;
}

.hero-subtitle {
  color: #4b5563;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.9rem;
  color: #6b7280;
  max-width: 540px;
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease,
    color 0.15s ease;
}

.btn.primary {
  background: #16a34a;
  color: #ecfdf5;
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.18);
}

.btn.primary:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.22);
}

.btn.ghost {
  background: transparent;
  color: #16a34a;
  border-color: #bbf7d0;
}

.btn.ghost:hover {
  background: #ecfdf5;
  color: #15803d;
}

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

/* Hero card “modo hacker productivo” */

.hero-card {
  background: radial-gradient(circle at top left, #bbf7d0 0, #ecfeff 40%, #f1f5f9 100%);
  border-radius: 1.25rem;
  padding: 1.8rem 1.4rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card-title {
  margin-top: 1rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  color: #111827;
}

.hero-list .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  margin-top: 0.25rem;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.hero-card-footer {
  font-size: 0.85rem;
  color: #4b5563;
}

/* Sobre mí */

.section-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 840px) {
  .section-grid {
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 2fr);
  }
}

.about-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.7rem 1.4rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.about-card h3 {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.about-card ul {
  padding-left: 1.1rem;
  margin: 0;
  color: #4b5563;
}

/* Cards genéricas (episodios, artículos) */

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.3rem 1.1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.section-alt .card {
  background: #f9fafb;
}

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 0;
}

.card h3 {
  margin: 0.1rem 0;
  font-size: 1rem;
}

.card p {
  margin: 0;
  color: #4b5563;
}

.card-meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.4rem;
}

/* Newsletter */

.newsletter-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 840px) {
  .newsletter-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  }
}

.newsletter-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.newsletter-list li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.newsletter-form {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid #d1fae5;
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.12);
}

.newsletter-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: #374151;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.newsletter-form input[type="email"]:focus {
  outline: 2px solid #a7f3d0;
  border-color: #34d399;
}

.form-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Footer */

.site-footer {
  padding: 1.8rem 0 2rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.footer-content {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-sub {
  margin-top: 0.2rem;
}

/* DÓNDE ESCUCHAR */

.listen-section .section-intro {
  margin-bottom: 1rem;
}

.listen-note {
  color: #6b7280;
  font-size: 0.9rem;
  max-width: 600px;
}

.listen-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 840px) {
  .listen-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

.platform-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid #d1fae5;
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.1);
}

.platform-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.platform-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.platform-pill {
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.9rem;
  border-radius: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.platform-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.platform-sub {
  font-size: 0.8rem;
  color: #4b5563;
}

.platform-pill.spotify {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.platform-pill.spotify .platform-label {
  color: #166534;
}

.platform-pill.youtube {
  background: #fef2f2;
  border-color: #fecaca;
}

.platform-pill.youtube .platform-label {
  color: #b91c1c;
}

.platform-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.platform-help {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Episodios: botones dentro de las cards */

.episode-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.episode-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.episode-btn {
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
}
