:root {
  --green: #25D366;
  --green-dark: #1DA851;
  --green-deep: #128C7E;
  --green-chat: #DCF8C6;
  --ink: #000000;
  --paper: #ffffff;
  --muted: rgba(0, 0, 0, 0.55);
  --muted-2: rgba(0, 0, 0, 0.7);
  --border: rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 94, 84, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .header-inner {
    padding: 0 1.5rem;
  }
}

.logo {
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.logo em {
  font-style: normal;
  color: var(--green);
}

.logo-img {
  height: 2rem;
  width: auto;
  display: block;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.15s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--green);
}

.nav .icon-link {
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #075E54;
  padding: 1rem 1rem 1.5rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.65rem 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

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

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn:hover::after {
  left: 140%;
}

.btn-green {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 10px 24px -12px rgba(37, 211, 102, 0.6);
}

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

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green-deep);
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 0 3.5rem;
}

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

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--green-deep);
}

.hero p {
  font-size: 1.0625rem;
  color: var(--muted-2);
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-img {
  border-radius: 9999px;
  border: 2px solid var(--green);
  box-shadow: 0 20px 50px -20px rgba(18, 140, 126, 0.35);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  max-width: 260px;
  margin: 0 auto;
  filter: grayscale(100%);
  transition: filter 0.45s ease;
}

.hero-img:hover {
  filter: grayscale(0%);
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-ring {
  position: relative;
  width: min(100%, 25rem);
  aspect-ratio: 1;
  border-radius: 9999px;
  padding: 0.625rem;
  background: conic-gradient(from 180deg, #25D366, #128C7E, #075E54, #25D366);
  box-shadow: 0 30px 90px -30px rgba(18, 140, 126, 0.55);
}

.hero-img-ring .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
  border: none;
  box-shadow: none;
  max-width: none;
  margin: 0;
  filter: grayscale(100%);
  transition: filter 0.45s ease;
}

.hero-img-ring .hero-img:hover {
  filter: grayscale(0%);
}

/* ---------- Libro / product page ---------- */
.product-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .product-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.product-cover img {
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(18, 140, 126, 0.45);
  width: 100%;
}

.off-badge {
  display: inline-block;
  background: var(--green);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8125rem;
  border-radius: 9999px;
  padding: 0.3rem 0.875rem;
  margin-bottom: 1rem;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  margin: 1rem 0 1.25rem;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 1.125rem;
}

.price-new {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--green-deep);
}

.product-body h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.875rem;
}

.product-desc p {
  font-size: 1.0625rem;
  color: #222;
  margin-bottom: 1rem;
}

.product-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.product-section ul {
  margin: 0 0 1rem 1.25rem;
}

.product-section li {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.product-section li::marker {
  color: var(--green-deep);
}

.product-note {
  background: var(--green-chat);
  color: var(--green-deep);
  border-radius: 0.875rem;
  padding: 0.875rem 1.125rem;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 1.5rem;
}

/* ---------- Book card ---------- */
.book-card {
  display: grid;
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  background: #fbfbfb;
}

@media (min-width: 768px) {
  .book-card {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.book-card img {
  border-radius: 0.875rem;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -24px rgba(18, 140, 126, 0.4);
  margin: 0 auto;
  max-height: 400px;
}

.book-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.875rem 0 0.5rem;
}

.book-card p {
  font-size: 1rem;
  color: var(--muted-2);
  margin-bottom: 1.25rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 3rem 0;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--muted-2);
  margin-bottom: 2rem;
}

/* ---------- Post cards ---------- */
.grid {
  display: grid;
  gap: 1.75rem;
}

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

.card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--paper);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 20px 40px -20px rgba(18, 140, 126, 0.25);
  transform: translateY(-4px);
  border-color: rgba(37, 211, 102, 0.45);
}

.card-cover {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  transition: transform 0.5s ease;
}

.card:hover .card-cover {
  transform: scale(1.04);
}

.card-body {
  padding: 1.25rem 1.375rem 1.5rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.625rem;
}

.tag {
  display: inline-block;
  background: #f1f1f1;
  border-radius: 9999px;
  padding: 0.15rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

.tag-green {
  background: var(--green-chat);
  color: var(--green-deep);
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--muted-2);
}

/* ---------- Blog index (categories) ---------- */
.page-head {
  padding: 3.5rem 0 1.5rem;
}

.page-head h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-head p {
  color: var(--muted-2);
  margin-top: 0.5rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumbs a:hover {
  color: var(--green-deep);
}

.cat-section {
  margin-bottom: 2.5rem;
}

.cat-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cat-head h2 {
  font-size: 1.375rem;
  font-weight: 700;
}

.cat-count {
  font-size: 0.875rem;
  color: var(--muted);
}

.list-item {
  display: block;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.125rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.list-item:hover {
  border-color: var(--green);
  box-shadow: 0 12px 30px -18px rgba(18, 140, 126, 0.3);
}

.list-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.list-item-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.list-item p {
  font-size: 0.9rem;
  color: var(--muted-2);
  margin-top: 0.375rem;
}

/* ---------- Article ---------- */
.article {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-2);
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--green-deep);
}

.article h1 {
  font-size: clamp(1.875rem, 4vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.875rem;
}

.article .subtitle {
  font-size: 1.125rem;
  color: var(--muted-2);
  margin-bottom: 1.25rem;
}

.article .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.article .meta a {
  color: var(--ink);
  font-weight: 600;
}

.toc {
  background: #f9f9f9;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.25rem 1.375rem;
  margin-bottom: 2.25rem;
}

.toc h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  font-size: 0.9375rem;
}

.toc li {
  margin-bottom: 0.4rem;
}

.toc li::before {
  counter-increment: toc;
  content: counter(toc) ".";
  color: var(--green-deep);
  font-weight: 700;
  margin-right: 0.5rem;
}

.toc a {
  color: var(--muted-2);
}

.toc a:hover {
  color: var(--green-deep);
}

.article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 2.25rem 0 0.875rem;
  scroll-margin-top: 5rem;
}

.article h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin: 1.75rem 0 0.625rem;
}

.article p {
  font-size: 1.0625rem;
  color: #222;
  margin-bottom: 1.125rem;
}

.article ul,
.article ol {
  margin: 0 0 1.25rem 1.375rem;
  font-size: 1.0625rem;
  color: #222;
}

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

.article li::marker {
  color: var(--green-deep);
}

.article strong {
  color: var(--ink);
}

.article em {
  color: var(--green-deep);
}

.article a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(18, 140, 126, 0.3);
  text-underline-offset: 3px;
}

.article img {
  border-radius: 0.875rem;
  border: 1px solid var(--border);
  margin: 1.5rem auto;
}

.article figure {
  margin: 1.5rem 0;
}

.article figure img {
  margin: 0 0 0.5rem;
}

.article figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.article blockquote {
  border-left: 3px solid var(--green);
  padding: 0.375rem 0 0.375rem 1.125rem;
  margin: 0 0 1.25rem;
  color: var(--muted-2);
  font-size: 1.0625rem;
  font-style: italic;
}

.video-box {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: #f7f7f7;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.125rem 1.25rem;
  margin: 1.5rem 0;
}

.video-box .play {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--green);
  color: #fff;
}

.video-box a {
  text-decoration: none;
}

.video-box .video-title {
  font-weight: 700;
  font-size: 0.9375rem;
  display: block;
  margin-bottom: 0.25rem;
}

.video-box .video-sub {
  font-size: 0.8125rem;
  color: var(--muted);
  display: block;
}

/* ---------- Author box ---------- */
.author-box {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin: 2.5rem 0 2rem;
  background: #fbfbfb;
}

.author-box img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--green);
}

.author-box .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.author-box h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.author-box p {
  font-size: 0.9375rem;
  color: var(--muted-2);
  margin-bottom: 0.625rem;
}

.author-box .more {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green-deep);
}

/* ---------- Notes CTA (classified) ---------- */
.notes-cta {
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #075E54 0%, #128C7E 55%, #25D366 130%);
  margin: 2rem 0 3rem;
  overflow: hidden;
  position: relative;
}

.notes-cta .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-chat);
  margin-bottom: 0.75rem;
}

.notes-cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.notes-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
}

.notes-cta .btn {
  background: #fff;
  color: var(--green-deep);
}

.notes-cta .btn:hover {
  background: var(--green-chat);
}

/* ---------- Tools page ---------- */
.tool-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tool-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 1.125rem;
  padding: 1.25rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tool-card:hover {
  border-color: var(--green);
  box-shadow: 0 14px 30px -20px rgba(18, 140, 126, 0.35);
}

.tool-card img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  flex-shrink: 0;
  background: #f1f1f1;
  padding: 0.25rem;
  object-fit: contain;
}

.tool-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--muted-2);
}

.tool-card .aff {
  font-size: 0.75rem;
  color: var(--green-deep);
  font-weight: 600;
}

/* ---------- Resources ---------- */
.resource-card {
  border: 1px dashed var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: border-color 0.15s ease;
}

a.resource-card {
  display: block;
}

.resource-card:hover {
  border-color: var(--green);
}

.resource-card .link {
  color: var(--green-deep);
  font-weight: 700;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.resource-card .emoji {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.resource-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.resource-card p {
  font-size: 0.9375rem;
  color: var(--muted-2);
  margin-bottom: 0.875rem;
}

.soon {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-deep);
}

/* ---------- Cases ---------- */
.case-card {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.case-card img {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  margin: 1rem 0;
}

.case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.case-head h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.case-head .num {
  color: var(--green-deep);
  font-weight: 700;
  font-size: 0.875rem;
}

.case-metric {
  display: inline-block;
  background: var(--green-chat);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.875rem;
}

.case-card h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0.875rem 0 0.375rem;
}

.case-card p {
  font-size: 0.95rem;
  color: var(--muted-2);
}

.placeholder-note {
  background: #fff8e6;
  border: 1px solid #f0d58a;
  border-radius: 0.75rem;
  padding: 0.875rem 1.125rem;
  font-size: 0.875rem;
  color: #7a5b00;
  margin-bottom: 1.5rem;
}

/* ---------- Notes page (classified terminal) ---------- */
.notes-page {
  background: #000000;
  color: #d4d4d4;
  font-family: "Space Mono", "Courier New", monospace;
  min-height: 100vh;
}

.notes-page .container {
  max-width: 48rem;
}

.terminal-status {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 1px dashed rgba(37, 211, 102, 0.4);
}

.terminal-status .dot {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: var(--green);
  margin-right: 0.5rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.subject {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px dashed rgba(37, 211, 102, 0.4);
}

.subject img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 9999px;
  border: 2px solid var(--green);
  object-fit: cover;
}

.subject .grid-2col {
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.subject .grid-2col div {
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
}

.subject .grid-2col span {
  color: rgba(255, 255, 255, 0.55);
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.subject .grid-2col b {
  color: var(--green);
  font-weight: 700;
}

@media (min-width: 768px) {
  .subject {
    flex-direction: row;
    align-items: center;
  }
  .subject .grid-2col {
    flex: 1;
    grid-template-columns: 1fr 1fr;
  }
}

.notes-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.notes-hero .rec {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.notes-hero .rec::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #ff3b3b;
  animation: pulse 1.5s infinite;
}

.notes-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
}

.notes-hero h1 em {
  font-style: normal;
  color: var(--green);
}

.notes-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  max-width: 34rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.notes-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 30rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .notes-form {
    flex-direction: row;
  }
}

.notes-form input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--green);
  border-radius: 9999px;
  padding: 0.875rem 1.375rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
}

.notes-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.notes-form input:focus {
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.35);
}

.notes-form button {
  background: var(--green);
  color: #000;
  border: none;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.notes-form button:hover {
  background: var(--green-dark);
}

.notes-form .hint {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-top: 0.375rem;
}

.notes-credits {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 2rem 0 3rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    text-align: left;
  }
}

.footer .copy {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer .socials {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-2);
}

.footer .socials a:hover {
  color: var(--green-deep);
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.15s ease, background 0.15s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background: var(--green-dark);
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--green);
  animation: wa-pulse 2.2s ease-out infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* ---------- UX: reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- UX: hero entrance ---------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-grid > * {
  animation: fade-up 0.8s ease both;
}

.hero-grid > *:nth-child(2) {
  animation-delay: 0.15s;
}

/* ---------- UX: accesibilidad ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ---------- Bio page ---------- */
.bio-page {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(37, 211, 102, 0.18), transparent 60%), linear-gradient(180deg, #02130f, #04302a);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 1.25rem 4rem;
}

.bio-inner {
  width: 100%;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bio-photo {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 9999px;
  padding: 4px;
  background: conic-gradient(from 180deg, #25D366, #128C7E, #075E54, #25D366);
  box-shadow: 0 20px 60px -20px rgba(37, 211, 102, 0.5);
  animation: fade-up 0.8s ease both;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}

.bio-handle {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 1.25rem;
  animation: fade-up 0.8s ease 0.1s both;
}

.bio-name {
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
  animation: fade-up 0.8s ease 0.2s both;
}

.bio-socials {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fade-up 0.8s ease 0.3s both;
}

.bio-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.2s ease;
  color: #ffffff;
}

.bio-socials a:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-3px);
}

.bio-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.125rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.875rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.bio-card:hover {
  background: rgba(37, 211, 102, 0.14);
  border-color: var(--green);
  transform: translateY(-2px);
}

.bio-card .icon {
  font-size: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 211, 102, 0.15);
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.bio-card .t {
  font-weight: 700;
  font-size: 0.9375rem;
  display: block;
}

.bio-card .s {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  display: block;
  margin-top: 0.125rem;
}

.bio-section-label {
  align-self: flex-start;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin: 1.5rem 0 0.875rem;
}
