/* ==========================================================================
   guias.css — Estilos compartidos para las páginas de guía/artículo
   de animales.marassinaperu.com
   Las páginas viven en /guias/<slug>/index.html y usan rutas absolutas (/assets, /).
   ========================================================================== */

:root {
  --earth: #7c5637;
  --earth-dark: #4d3525;
  --clay: #b98255;
  --brand-pink: #ed2183;
  --brand-pink-dark: #bf0f67;
  --brand-pink-soft: #ffe4ef;
  --salt: #f3b09c;
  --green: #3f5f3f;
  --green-dark: #243b2b;
  --cream: #fbf8f1;
  --white: #ffffff;
  --ink: #26302a;
  --muted: #687267;
  --line: #e3ddd1;
  --shadow: 0 18px 50px rgba(48, 38, 26, .14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
}

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

a {
  color: var(--brand-pink-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---- Topbar (igual que la home) ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 241, .94);
  border-bottom: 1px solid rgba(227, 221, 209, .82);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  width: 142px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--green-dark);
}

.nav-links a {
  padding: 9px 11px;
  border-radius: 999px;
  font-weight: 750;
  color: var(--green-dark);
  transition: background .18s ease, color .18s ease;
}

.nav-links a:hover {
  color: var(--brand-pink-dark);
  background: var(--brand-pink-soft);
  text-decoration: none;
}

.nav-links .nav-cta {
  color: var(--white);
  background: var(--brand-pink);
  border-radius: 8px;
  padding: 8px 15px;
  box-shadow: 0 6px 14px rgba(237, 33, 131, .16);
}

.nav-links .nav-cta:hover {
  color: var(--white);
  background: var(--brand-pink-dark);
}

/* ---- Article layout ---- */
.article {
  padding: 40px 0 72px;
}

.breadcrumb {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.breadcrumb a:hover {
  color: var(--brand-pink-dark);
}

.article-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-pink-soft);
  color: var(--brand-pink-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1 {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: 0;
}

.article-lead {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 40px 0 14px;
  color: var(--green-dark);
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.15;
}

.prose h3 {
  margin: 28px 0 10px;
  color: var(--earth-dark);
  font-size: 21px;
  line-height: 1.25;
}

.prose p {
  margin: 0 0 18px;
  font-size: 18px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  font-size: 18px;
}

.prose li {
  margin-bottom: 8px;
}

.prose img {
  width: 100%;
  border-radius: var(--radius);
  margin: 8px 0 24px;
}

.prose figure {
  margin: 8px 0 24px;
}

.prose figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* ---- Guide index ---- */
.guide-list {
  max-width: 760px;
}

.guide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(48, 38, 26, .04);
}

.guide-card a {
  display: block;
  padding: 24px;
  color: inherit;
}

.guide-card a:hover {
  text-decoration: none;
}

.guide-card-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-pink-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guide-card h2 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.15;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* ---- Callout / nota ---- */
.note {
  margin: 24px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--brand-pink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(48, 38, 26, .04);
}

.note p:last-child {
  margin-bottom: 0;
}

/* ---- Tabla simple ---- */
.prose table {
  width: 100%;
  margin: 8px 0 24px;
  border-collapse: collapse;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th {
  background: #f4efe5;
  color: var(--green-dark);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-brand {
  color: var(--white);
  background: var(--brand-pink);
  box-shadow: 0 12px 28px rgba(236, 22, 133, .22);
}

.btn-brand:hover {
  color: var(--white);
  background: var(--brand-pink-dark);
}

.btn-green {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 12px 28px rgba(36, 59, 43, .22);
}

.btn-green:hover {
  color: var(--white);
}

/* ---- Product cards dentro del artículo ---- */
.product-cta {
  margin: 32px 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(48, 38, 26, .04);
}

.product-cta h3 {
  margin: 0 0 6px;
  color: var(--green-dark);
}

.product-cta p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}

.product-cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- FAQ ---- */
.faq {
  max-width: 760px;
  margin-top: 40px;
}

.faq h2 {
  margin-bottom: 16px;
  color: var(--green-dark);
  font-size: clamp(24px, 3.4vw, 34px);
}

.faq-item {
  padding: 20px 22px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.faq-item h3 {
  margin: 0 0 8px;
  color: var(--earth-dark);
  font-size: 18px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* ---- Footer (igual que la home) ---- */
footer {
  padding: 48px 0 28px;
  color: rgba(255, 255, 255, .78);
  background: linear-gradient(180deg, #1a2c21 0%, #111f17 100%);
  border-top: 4px solid var(--brand-pink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

footer strong {
  display: block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand-name {
  color: var(--white);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.footer-copy {
  max-width: 365px;
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-links span {
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  font-weight: 650;
}

@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

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