/* =========================================================
   Criadores del Sur — hoja de estilos principal
   Identidad: "ficha de camada" — la estética de una libreta
   de criadero / cartilla sanitaria, aplicada a los bloques
   de disponibilidad de cachorros. El resto del sitio se
   mantiene simple y sobrio para no competir con eso.
   ========================================================= */

:root {
  /* Color */
  --ink: #23291f;
  --ink-soft: #4b5245;
  --paper: #edece4;
  --card: #fbf9f2;
  --brand: #2f4b3c;
  --brand-dark: #203327;
  --accent: #c9982f;
  --accent-dark: #a67c22;
  --brick: #b14a2d;
  --line: #d9d6c8;
  --white: #ffffff;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 30px -16px rgba(35, 41, 31, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--brand-dark);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--brand); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--wrap-narrow); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--accent-dark);
  margin: 0 0 0.6em;
}
.eyebrow a { color: inherit; }
.lead { font-size: 1.1rem; max-width: 60ch; }
.muted { color: var(--ink-soft); opacity: 0.8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--whatsapp { background: var(--accent); color: var(--brand-dark); }
.btn--whatsapp:hover { background: var(--accent-dark); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(237, 236, 228, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-dark); }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
}
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }

.site-nav {
  display: flex; align-items: center; gap: 28px;
}
.site-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.is-active { border-color: var(--accent); color: var(--brand-dark); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero__lead { max-width: 46ch; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero__mosaic {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 420px;
}
.hero__mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero__mosaic img:first-child { grid-row: 1 / 3; }

/* ---------- Ticket strip (camadas disponibles) ---------- */
.ticket-strip {
  background: var(--brand); color: #fff; border-radius: var(--radius);
  padding: 18px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.ticket-strip__label {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 0.78rem; color: var(--accent); margin: 0; white-space: nowrap;
}
.ticket-strip__items { display: flex; gap: 10px; flex-wrap: wrap; }
.ticket-chip {
  background: rgba(255,255,255,0.1); border: 1px dashed rgba(255,255,255,0.5);
  color: #fff; text-decoration: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  display: inline-flex; gap: 8px; align-items: center;
}
.ticket-chip span { font-family: var(--font-mono); color: var(--accent); font-size: 0.82rem; }
.ticket-chip:hover { background: rgba(255,255,255,0.2); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--tight { padding: 24px 0 64px; }
.section--alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--header-page { padding: 72px 0 32px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }

.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.two-col--reverse { grid-template-columns: 1fr 1.2fr; }

.link-arrow { text-decoration: none; font-weight: 600; color: var(--brand); white-space: nowrap; }
.link-arrow:hover { color: var(--accent-dark); }

.valores-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.valores-list li { border-left: 3px solid var(--accent); padding-left: 16px; }
.valores-list h3 { margin-bottom: 4px; font-size: 1.05rem; }
.valores-list p { margin: 0; font-size: 0.95rem; }

/* ---------- Stamp badge (motivo "ficha de camada") ---------- */
.stamp {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 6px 10px; border-radius: 6px; border: 1.5px dashed currentColor;
  transform: rotate(3deg);
  background: rgba(251, 249, 242, 0.92);
}
.stamp--ok { color: var(--brand-dark); border-color: var(--brand); }
.stamp--no { color: var(--ink-soft); border-color: var(--ink-soft); transform: rotate(-2deg); }

/* ---------- Raza grid / card ---------- */
.raza-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.raza-grid--full { grid-template-columns: repeat(3, 1fr); }
.raza-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.raza-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.raza-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.raza-card__media img { width: 100%; height: 100%; object-fit: cover; }
.raza-card__body { padding: 18px 20px 22px; }
.raza-card__body h3 { margin-bottom: 6px; }
.raza-card__body p { margin: 0; font-size: 0.92rem; }

/* ---------- Raza detail ---------- */
.raza-hero { padding: 44px 0; }
.raza-hero__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.raza-hero__main { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.raza-hero__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.raza-hero__thumbs img { border-radius: 8px; aspect-ratio: 1/1; object-fit: cover; }

.ficha-card {
  margin-top: 24px; background: var(--card); border: 1.5px dashed var(--line);
  border-radius: var(--radius); padding: 22px; position: relative;
}
.ficha-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ficha-card__top .stamp { position: static; transform: rotate(-2deg); }
.ficha-card__count { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); }
.ficha-card__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px 20px;
  margin: 0 0 14px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.ficha-card__grid dt { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 2px; }
.ficha-card__grid dd { margin: 0; font-weight: 600; }
.ficha-card__notas { font-size: 0.92rem; margin-bottom: 16px; }

.caracteristicas-table table { width: 100%; border-collapse: collapse; }
.caracteristicas-table th, .caracteristicas-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.caracteristicas-table th { width: 40%; color: var(--ink-soft); font-weight: 600; font-family: var(--font-mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }

.raza-desc p:first-of-type { font-size: 1.05rem; }

.cuidados-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.cuidados-list li { padding-left: 26px; position: relative; }
.cuidados-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700;
}

.camada-fotos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.camada-fotos img { border-radius: var(--radius-sm); aspect-ratio: 1/1; object-fit: cover; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-grid--full { grid-template-columns: repeat(3, 1fr); }
.post-card { display: block; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 18px 20px 22px; }
.post-card__date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-dark); text-transform: uppercase; margin-bottom: 6px; }
.post-card__body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.post-card__body p { font-size: 0.92rem; margin: 0; }

.post-detail__meta { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); margin-top: -8px; }
.post-detail__cover { border-radius: var(--radius); margin: 20px 0 32px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-detail__body { font-size: 1.05rem; }
.post-detail__body h2 { margin-top: 1.4em; }
.post-detail__body ul, .post-detail__body ol { color: var(--ink-soft); }
.post-detail__cta {
  margin-top: 40px; padding: 24px; background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.post-detail__cta p { margin: 0; font-weight: 600; color: var(--brand-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,0.85); margin-top: 40px; }
.site-footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 40px; padding: 56px 24px 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer p { color: rgba(255,255,255,0.7); }
.brand--footer { color: #fff; margin-bottom: 10px; }
.brand--footer .brand__mark { background: var(--accent); color: var(--brand-dark); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-list a:hover { color: var(--accent); }

.footer-form { display: grid; gap: 10px; }
.footer-form input, .footer-form textarea {
  width: 100%; padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08); color: #fff; font-family: var(--font-body); font-size: 0.92rem;
}
.footer-form input::placeholder, .footer-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.footer-form textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; }

.site-footer__bottom { padding: 20px 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; }
.site-footer__bottom p { margin: 0; color: rgba(255,255,255,0.55); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%; background: var(--brand);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner, .raza-hero__inner, .two-col, .two-col--reverse { grid-template-columns: 1fr; }
  .two-col--reverse { display: flex; flex-direction: column-reverse; }
  .hero__mosaic { height: 320px; }
  .raza-grid, .raza-grid--full, .post-grid, .post-grid--full { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: stretch; padding: 16px 24px 24px; border-bottom: 1px solid var(--line);
    display: none; gap: 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 14px; }
  .nav-toggle { display: flex; }
  .raza-grid, .raza-grid--full, .post-grid, .post-grid--full, .site-footer__inner, .cuidados-list, .camada-fotos { grid-template-columns: 1fr 1fr; }
  .camada-fotos { grid-template-columns: repeat(2, 1fr); }
  .hero__mosaic { grid-template-columns: 1fr; height: auto; }
  .hero__mosaic img:first-child { grid-row: auto; }
  .hero__mosaic img:nth-child(n+3) { display: none; }
}

@media (max-width: 520px) {
  .raza-grid, .raza-grid--full, .post-grid, .post-grid--full, .site-footer__inner, .cuidados-list { grid-template-columns: 1fr; }
  .raza-hero__thumbs { grid-template-columns: repeat(3, 1fr); }
}
