/* Pin-Up México — Site4 (Neon Mirage). Unique vs Site1–3. */
:root {
  --bg: #f6f2ea;
  --bg-soft: rgba(246, 242, 234, 0.92);
  --surface: #ffffff;
  --ink: #1a1f3c;
  --ink-soft: #3a4058;
  --muted: #6b7080;
  --line: #ddd8ce;
  --indigo: #1a1f3c;
  --lime: #b8d430;
  --lime-dark: #9ab828;
  --terra: #d4654a;
  --terra-soft: #faece8;
  --mx-green: #006847;
  --mx-red: #ce1126;
  --pin: #ff2400;
  --pin-dark: #d91e00;
  --deep: #1a1f3c;
  --radius: 8px;
  --radius-sm: 4px;
  --container: 1140px;
  --header-h: 74px;
  --font-display: "Lora", Georgia, serif;
  --font-body: "Syne", "Segoe UI", sans-serif;
  --font-ui: "Syne", "Segoe UI", sans-serif;
  --shadow: 0 16px 40px rgba(26, 31, 60, 0.11);
  --transition: 0.2s ease;
  --fon: url("../../fon.png");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  color: var(--ink-soft);
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(246, 242, 234, 0.94), rgba(230, 225, 215, 0.9)),
    repeating-linear-gradient(-12deg, rgba(184, 212, 48, 0.04) 0 2px, transparent 2px 20px),
    var(--fon);
  background-position: center top; background-size: cover; background-repeat: no-repeat;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pin); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pin-dark); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--pin); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; padding: 0.75rem 1rem; background: var(--indigo); color: #fff; }
.skip-link:focus { left: 0; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--indigo); border-bottom: 4px solid var(--lime);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.logo img { height: 38px; width: auto; }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-sm);
  background: transparent; color: #fff; font-family: var(--font-ui); font-size: 0.875rem; cursor: pointer;
}

.nav-toggle-bars { display: flex; flex-direction: column; justify-content: center; width: 20px; height: 14px; }
.nav-toggle-bars span, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; display: block; height: 2px; background: #fff; border-radius: 1px;
}
.nav-toggle-bars span { margin: 3px 0; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-list { display: flex; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.85); font-size: 0.875rem; font-weight: 600;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--indigo); background: var(--lime); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.72rem 1.3rem; border: 2px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: 0.9rem; font-weight: 700; cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-primary { background: var(--pin); color: #fff; }
.btn-primary:hover { background: var(--pin-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--pin); border-color: var(--pin); }
.btn-secondary:hover { background: var(--pin); color: #fff; }
.btn-dark { background: var(--indigo); color: #fff; }
.btn-dark:hover { background: #12162a; color: #fff; }
.btn-lime { background: var(--lime); color: var(--indigo); }
.btn-lime:hover { background: var(--lime-dark); color: var(--indigo); }

/* Asymmetric hero */
.hero-asym { padding: 2rem 0 3rem; position: relative; }

.hero-asym-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 0; align-items: end;
}

.hero-text-block {
  position: relative; z-index: 2; padding: 2.5rem 2rem 2.5rem 0;
}

.hero-text-block h1 {
  margin: 0 0 1rem; font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.1; color: var(--ink);
}

.hero-kicker {
  display: inline-block; margin-bottom: 0.75rem; padding: 0.3rem 0.75rem;
  background: var(--lime); color: var(--indigo); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
}

.hero-lead { margin: 0 0 1.25rem; max-width: 50ch; font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.hero-visual {
  position: relative; min-height: 280px;
  background: var(--indigo) var(--fon) center / cover no-repeat;
  border-radius: var(--radius); margin-left: -2rem; margin-bottom: -2rem;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(200deg, rgba(26, 31, 60, 0.75), rgba(212, 101, 74, 0.35));
}

.hero-float-card {
  position: absolute; bottom: 1.5rem; left: -3rem; z-index: 3;
  width: min(100%, 280px); padding: 1.25rem;
  background: var(--surface); border: 2px solid var(--lime);
  box-shadow: var(--shadow);
}

.hero-float-card h2 { margin: 0 0 0.35rem; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.hero-float-card p { margin: 0 0 0.75rem; font-size: 0.8125rem; }
.hero-float-card .btn { width: 100%; }

/* Highlight bar */
.highlight-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--lime); color: var(--indigo);
  border-block: 3px solid var(--indigo);
}

.highlight-item {
  padding: 1rem; text-align: center; font-size: 0.8125rem; font-weight: 700;
  border-right: 2px solid rgba(26, 31, 60, 0.15);
}
.highlight-item:last-child { border-right: none; }
.highlight-item strong { display: block; font-size: 1.1rem; margin-bottom: 0.15rem; }

/* Bento grid */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto;
  gap: 0.75rem;
}

.bento-cell {
  padding: 1.25rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bento-cell:nth-child(1) { grid-column: span 2; border-top: 4px solid var(--terra); }
.bento-cell:nth-child(2) { border-top: 4px solid var(--lime); }
.bento-cell:nth-child(3) { border-top: 4px solid var(--mx-green); }
.bento-cell:nth-child(4) { grid-column: span 2; border-top: 4px solid var(--pin); }
.bento-cell:nth-child(5) { grid-column: span 2; border-top: 4px solid var(--indigo); }

.bento-cell h3 { margin: 0 0 0.35rem; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.bento-cell p { margin: 0; font-size: 0.875rem; }
.text-link { font-size: 0.8125rem; font-weight: 700; }

/* Prose + TOC */
.prose-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }
.prose-toc {
  position: sticky; top: calc(var(--header-h) + 1rem);
  padding: 1rem; background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
}
.prose-toc h2 { margin: 0 0 0.65rem; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.prose-toc ol { margin: 0; padding-left: 1.1rem; font-size: 0.8125rem; }
.prose-toc li { margin-bottom: 0.35rem; }
.prose-toc a { color: var(--ink-soft); font-weight: 600; }
.prose-toc a:hover { color: var(--pin); }

.content-prose { overflow-wrap: break-word; }
.content-prose p { margin: 0 0 1rem; }
.content-prose h2 { margin: 2rem 0 0.65rem; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 1rem); }
.content-prose h2:first-child { margin-top: 0; }
.content-prose h3 { margin: 1.25rem 0 0.5rem; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }

/* Num cards */
.num-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.num-card {
  padding: 1.15rem; background: var(--surface); border: 1px solid var(--line);
  border-bottom: 4px solid var(--terra);
}
.num-card .num { font-size: 2rem; font-weight: 800; color: var(--lime-dark); line-height: 1; margin-bottom: 0.35rem; }
.num-card strong { display: block; font-size: 0.875rem; color: var(--ink); margin-bottom: 0.25rem; }
.num-card span { font-size: 0.8rem; }

/* Author spotlight */
.spotlight-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.spotlight-card {
  display: flex; gap: 0.85rem; align-items: center; padding: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.spotlight-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--lime); flex-shrink: 0; }
.spotlight-card strong { display: block; font-size: 0.875rem; color: var(--ink); }
.spotlight-card span { font-size: 0.75rem; color: var(--muted); }

/* FAQ two col */
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.faq-box { padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); }
.faq-box strong { display: block; margin-bottom: 0.35rem; font-size: 0.875rem; color: var(--ink); }
.faq-box p { margin: 0; font-size: 0.8125rem; }

.section { padding: 2.75rem 0; }
.section-tight { padding: 2.25rem 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-title { margin: 0 0 1.25rem; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: var(--ink); }
.page-title { margin: 0 0 0.75rem; font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; color: var(--ink); }
.page-lead { margin: 0 0 2rem; max-width: 62ch; font-size: 1.05rem; }

.section-banner {
  position: relative; padding: 2.5rem 0;
  background: var(--indigo) var(--fon) center / cover no-repeat; color: #fff;
}
.section-banner::before { content: ""; position: absolute; inset: 0; background: rgba(26, 31, 60, 0.85); }
.section-banner::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--mx-green), var(--lime), var(--mx-red));
}
.section-banner-inner {
  position: relative; z-index: 1; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.section-banner h2 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.75rem); color: #fff; }
.section-banner p { margin: 0; max-width: 44ch; color: rgba(255,255,255,0.88); }
.section-banner .btn-secondary { border-color: #fff; color: #fff; }
.section-banner .btn-secondary:hover { background: var(--pin); border-color: var(--pin); color: #fff; }

.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.table-caption { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--surface); border: 1px solid var(--line); }
.data-table th, .data-table td { padding: 0.8rem; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--indigo); color: #fff; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.data-table tr:last-child td { border-bottom: none; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { padding: 1.35rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--lime); }
.feature-card h3 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.05rem; }
.feature-card p { margin: 0; font-size: 0.9rem; }

.split-layout { display: grid; grid-template-columns: 1.3fr 0.8fr; gap: 2rem; }
.split-layout > * { min-width: 0; }
.split-side { padding: 1.35rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--lime); }
.side-title { margin: 0 0 0.75rem; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.side-links { margin: 0 0 1rem; padding: 0; list-style: none; }
.side-links li { margin-bottom: 0.4rem; }
.side-links a { color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.side-cta { width: 100%; }

.cta-band {
  padding: 2.5rem 0; background: linear-gradient(135deg, var(--indigo), #2a3050);
  color: #fff; border-top: 4px solid var(--lime); text-align: center;
}
.cta-band h2 { margin: 0 0 0.5rem; font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.7rem); color: #fff; }
.cta-band p { margin: 0 0 1.15rem; color: rgba(255,255,255,0.88); }
.cta-band-centered .container { text-align: center; }

.footer-legal-copy { margin: 0.75rem 0 0; font-size: 0.75rem; color: rgba(255,255,255,0.4); line-height: 1.5; }
.faq-box h3 { margin: 0 0 0.35rem; font-size: 0.875rem; font-weight: 700; color: var(--ink); }

.site-footer { padding: 2rem 0 0; background: var(--indigo); color: rgba(255,255,255,0.8); border-top: 4px solid var(--lime); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.25rem; }
.footer-brand strong { display: block; margin-bottom: 0.4rem; font-family: var(--font-display); color: #fff; }
.footer-brand p { margin: 0; max-width: 34ch; font-size: 0.8125rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.footer-nav a { color: rgba(255,255,255,0.75); font-size: 0.8125rem; font-weight: 600; }
.footer-nav a:hover { color: var(--lime); }
.footer-legal { padding-bottom: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-legal-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.footer-legal-nav a { color: rgba(255,255,255,0.5); font-size: 0.75rem; font-weight: 600; }
.footer-legal-nav a:hover { color: var(--lime); }
.footer-bottom { padding: 0.85rem 0 1.25rem; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom p { margin: 0; font-size: 0.75rem; color: rgba(255,255,255,0.4); }

.author-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.author-card { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.author-photo { width: 130px; height: 130px; margin: 0 auto 0.85rem; border-radius: 50%; object-fit: cover; border: 3px solid var(--lime); }
.author-card h2 { margin: 0 0 0.2rem; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.author-role { margin: 0 0 0.65rem; font-size: 0.75rem; font-weight: 700; color: var(--terra); text-transform: uppercase; letter-spacing: 0.05em; }
.author-card p { margin: 0; font-size: 0.875rem; text-align: left; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.contact-list strong { display: block; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; margin-bottom: 0.15rem; }
.contact-box { padding: 1.35rem; background: var(--surface); border: 1px solid var(--line); }

.legal-section h2 { margin: 1.75rem 0 0.65rem; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.legal-section h2:first-child { margin-top: 0; }
.legal-section p, .legal-section li { font-size: 0.9rem; }
.legal-section ul, .legal-section ol { margin: 0 0 1rem; padding-left: 1.2rem; }

@media (max-width: 900px) {
  .hero-asym-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-left: 0; margin-bottom: 0; min-height: 200px; }
  .hero-float-card { position: static; width: 100%; margin-top: 1rem; }
  .highlight-bar { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-cell { grid-column: span 1 !important; }
  .prose-layout { grid-template-columns: 1fr; }
  .prose-toc { position: static; }
  .num-row, .spotlight-row, .faq-cols, .feature-grid, .author-grid, .split-layout, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    padding: 1rem; background: var(--indigo); border-bottom: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-120%); opacity: 0; visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-cta { width: 100%; margin-top: 0.5rem; }
  .highlight-bar { grid-template-columns: 1fr; }
  .section-banner-inner { flex-direction: column; align-items: flex-start; }
}
