/* travelingwithdog.com — piel "comic strip": inspiracion Petfinder (jerarquia,
   tarjetas de categoria, footer solido) con toque Snoopy: crema + rojo caseta +
   amarillo, trazo de tinta grueso, sombras duras de vineta, ilustracion de linea. */
:root {
  --bg: #fdf8ec;
  --ink: #1d1811;
  --ink-soft: #6d6152;
  --red: #d2412e;
  --red-dark: #a92f1f;
  --yellow: #f2b705;
  --card: #ffffff;
  --line: #1d1811;
  --line-soft: #e7dcc6;
  --qa-bg: #fff3d6;
  --green: #3d7a4a;
  --shadow: 4px 4px 0 rgba(29, 24, 17, 0.9);
  --shadow-sm: 3px 3px 0 rgba(29, 24, 17, 0.9);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1712; --ink: #f2ead9; --ink-soft: #b3a690; --card: #262019;
    --line: #f2ead9; --line-soft: #3b3325; --qa-bg: #332a12;
    --red: #e05540; --red-dark: #d2412e; --green: #7fbc8c;
    --shadow: 4px 4px 0 rgba(242, 234, 217, 0.55);
    --shadow-sm: 3px 3px 0 rgba(242, 234, 217, 0.55);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); line-height: 1.65; font-size: 17px;
}
main { max-width: 1100px; margin: 0 auto; padding: 0 24px 72px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; margin: 0.4em 0; }
a { color: var(--red-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

/* ---------- cabecera ---------- */
.site-head {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 20px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand em { color: var(--red); font-style: normal; }
.brand .paw { width: 30px; height: 30px; color: var(--red); }
.site-nav { display: flex; gap: 16px; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.98rem; white-space: nowrap; font-weight: 600; }
.site-nav a:hover { color: var(--red); }
.lang-switch {
  border: 2px solid var(--line); border-radius: 999px; padding: 3px 12px;
  background: var(--card); box-shadow: var(--shadow-sm); font-family: var(--hand);
}
.lang-switch:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(29,24,17,0.9); }

.crumbs { font-size: 0.82rem; color: var(--ink-soft); margin: 12px 0 4px; font-family: var(--hand); font-size: 0.95rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs .sep { margin: 0 7px; opacity: 0.6; }

/* ---------- hero ---------- */
.hero { padding: 44px 0 10px; text-align: center; position: relative; }
.kicker, .card-kicker, .qa-label {
  font-family: var(--hand); font-size: 1.05rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--red); font-weight: 400; margin: 0 0 6px;
}
.hero h1 { font-size: 3.4rem; margin: 0 auto 0.25em; max-width: 18ch; }
.hero .doghouse { width: 74px; height: 74px; margin: 0 auto 10px; display: block; }
.lede { font-size: 1.22rem; color: var(--ink-soft); max-width: 58ch; margin: 0 auto; }

/* ---------- tarjetas de categoria (patron Petfinder, tinta comic) ---------- */
.pillars { display: flex; flex-direction: column; gap: 18px; margin: 40px 0 8px; }
.pillar {
  display: block; background: var(--card); border: 2px solid var(--line);
  border-radius: 14px; padding: 22px 22px 18px; text-decoration: none;
  color: var(--ink); box-shadow: var(--shadow); text-align: center;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
}
.pillar:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(29,24,17,0.9); }
.pillar .cat-icon { width: 52px; height: 52px; margin: 0 auto 10px; display: block; color: var(--ink); }
.pillar .cat-icon .accent { color: var(--red); }
.pillar h2 { margin: 0 0 6px; font-size: 1.35rem; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.section-title { margin-top: 52px; font-size: 1.9rem; text-align: center; }
.section-title::after {
  content: ""; display: block; width: 76px; height: 4px; margin: 10px auto 0;
  background: var(--yellow); border-radius: 2px;
}

/* ---------- tarjetas de guia ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 26px; }
.card {
  background: var(--card); border: 2px solid var(--line); border-radius: 14px;
  padding: 20px 24px; box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--red); }
.card p { margin: 0 0 4px; color: var(--ink-soft); font-size: 0.95rem; }
.card-meta { font-size: 0.85rem; color: var(--ink-soft); font-family: var(--hand); }

/* ---------- articulo ---------- */
.post { max-width: 760px; margin: 0 auto; }
.post-meta { color: var(--ink-soft); font-size: 0.95rem; font-family: var(--hand); }
.post h1 { font-size: 2.4rem; }
.post h2 { margin-top: 1.7em; font-size: 1.5rem; }
.post h3 { margin-top: 1.3em; font-size: 1.18rem; }
.post img { max-width: 100%; border-radius: 12px; }
.post table { border-collapse: collapse; width: 100%; font-size: 0.92rem; font-variant-numeric: tabular-nums; display: block; overflow-x: auto; }
.post th, .post td { border: 1px solid var(--line-soft); padding: 8px 10px; text-align: left; vertical-align: top; }
.post th { background: var(--qa-bg); font-family: var(--sans); }

.quick-answer, .tldr {
  background: var(--qa-bg); border: 2px solid var(--line);
  border-radius: 14px; padding: 16px 20px; margin: 20px 0; box-shadow: var(--shadow-sm);
}
.quick-answer p:last-child { margin: 0; font-size: 1.04rem; }
.tldr ul { margin: 0; padding-left: 20px; }
.tldr li { margin: 5px 0; }

.verified { color: var(--green); font-weight: 600; white-space: nowrap; }
.src-date { color: var(--ink-soft); font-size: 0.85em; }
.sources ul { padding-left: 20px; font-size: 0.92rem; }

/* ---------- faq ---------- */
.faq { margin-top: 2.4em; }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.faq-item {
  background: var(--card); border: 2px solid var(--line); border-radius: 14px;
  padding: 16px 20px; box-shadow: var(--shadow-sm); position: relative;
}
.faq-item summary.faq-q {
  margin: 0; font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
  padding-left: 32px; cursor: pointer; list-style: none; position: relative;
}
.faq-item summary.faq-q::-webkit-details-marker { display: none; }
.faq-q::before {
  content: "+"; position: absolute; left: 0; top: 1px;
  font-family: var(--hand); color: var(--card); background: var(--red);
  width: 23px; height: 23px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.05rem; line-height: 1;
}
.faq-item[open] .faq-q::before { content: "–"; background: var(--ink); }
.faq-item[open] summary.faq-q { margin-bottom: 8px; }
.faq-item p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; padding-left: 32px; }

/* ---------- footer solido (patron Petfinder, rojo caseta) ---------- */
.site-foot {
  background: var(--red); color: #fff7ec; margin-top: 56px;
  border-top: 3px solid var(--line);
}
.site-foot-inner { max-width: 1100px; margin: 0 auto; padding: 34px 24px 42px; }
.site-foot p { margin: 6px 0; font-size: 0.92rem; }
.site-foot .paw { width: 20px; height: 20px; vertical-align: -4px; color: var(--yellow); }
.site-foot a { color: #fff7ec; text-decoration-color: rgba(255,247,236,0.5); }
.site-foot a:hover { color: var(--yellow); }
.foot-note { font-size: 0.8rem; opacity: 0.85; }

@media (min-width: 700px) {
  .pillars { flex-direction: row; }
  .pillar { flex: 1; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2.3rem; }
}

/* ---------- chips, directorio, stats, formulario (v6) ---------- */
.lede-left { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.quicklinks { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.chip {
  font-family: var(--hand); font-size: 1rem; text-decoration: none; color: var(--ink);
  background: var(--card); border: 2px solid var(--line); border-radius: 999px;
  padding: 4px 16px; box-shadow: var(--shadow-sm);
}
.chip:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(29,24,17,0.9); color: var(--red); }
.dir-card .dir-note { font-size: 0.9rem; }
.dir-card.featured { border-color: var(--red); background: var(--qa-bg); }
.dir-card.featured .card-kicker { color: var(--red); }

.stats-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 26px; }
.stat-card {
  background: var(--card); border: 2px solid var(--line); border-radius: 14px;
  padding: 20px 22px; box-shadow: var(--shadow-sm); text-align: center;
}
.stat-value { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; margin: 0; color: var(--red); }
.stat-unit { font-size: 1.1rem; color: var(--ink); font-family: var(--hand); }
.stat-label { margin: 6px 0 8px; color: var(--ink); font-size: 0.98rem; }

.dir-submit {
  margin-top: 48px; background: var(--card); border: 2px solid var(--line);
  border-radius: 14px; padding: 24px 26px; box-shadow: var(--shadow);
}
.dir-submit form { display: grid; gap: 14px; margin-top: 14px; }
.dir-submit label { display: grid; gap: 4px; font-weight: 600; font-size: 0.95rem; }
.dir-submit input, .dir-submit select, .dir-submit textarea {
  font: inherit; padding: 9px 12px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink);
}
.dir-submit input:focus, .dir-submit select:focus, .dir-submit textarea:focus { outline: 2px solid var(--yellow); }
.dir-submit button {
  font: inherit; font-weight: 700; cursor: pointer; justify-self: start;
  background: var(--red); color: #fff7ec; border: 2px solid var(--line);
  border-radius: 999px; padding: 10px 26px; box-shadow: var(--shadow-sm);
}
.dir-submit button:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(29,24,17,0.9); }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.form-ok {
  background: var(--qa-bg); border: 2px solid var(--green); color: var(--green);
  border-radius: 10px; padding: 10px 14px; font-weight: 600;
}
@media (min-width: 700px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
