/* Waki Animal — Nutrición para mascotas */
:root {
  --color-forest: #0f3d32;
  --color-forest-deep: #0a2a23;
  --color-leaf: #1f6b56;
  --color-mint: #d8efe6;
  --color-sage: #eef6f2;
  --color-honey: #e8a317;
  --color-honey-dark: #c4860a;
  --color-sand: #f7f3eb;
  --color-cream: #faf8f4;
  --color-ink: #1c2b26;
  --color-muted: #5a6e66;
  --color-white: #ffffff;
  --color-overlay: rgba(10, 42, 35, 0.58);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --radius: 0.35rem;
  --shadow-soft: 0 18px 50px rgba(15, 61, 50, 0.12);
  --max: 72rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(31, 107, 86, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(232, 163, 23, 0.07), transparent 45%),
    linear-gradient(180deg, var(--color-sage) 0%, var(--color-cream) 28%, var(--color-sand) 100%);
  min-height: 100vh;
}

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

a {
  color: var(--color-leaf);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--color-forest);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--color-forest);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--header-h);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-white);
}

.brand__mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-honey), var(--color-honey-dark));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-forest-deep);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 560;
  font-size: 0.95rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.nav a:hover {
  color: var(--color-honey);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--color-white);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--color-white);
}

.hero__media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 18s var(--ease) infinite alternate;
}

.hero__media img:nth-child(1) {
  grid-row: 1 / 3;
  animation-delay: 0s;
}

.hero__media img:nth-child(2) {
  animation-delay: -6s;
  animation-duration: 22s;
}

.hero__media img:nth-child(3) {
  animation-delay: -12s;
  animation-duration: 20s;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 42, 35, 0.45) 0%, rgba(10, 42, 35, 0.25) 35%, rgba(10, 42, 35, 0.72) 100%),
    linear-gradient(90deg, rgba(10, 42, 35, 0.55) 0%, transparent 55%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  max-width: 38rem;
  margin-right: auto;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  animation: rise-in 0.9s var(--ease) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1rem;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 22ch;
}

.hero__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  max-width: 36ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.45rem;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.btn--primary {
  background: var(--color-honey);
  color: var(--color-forest-deep);
  box-shadow: 0 10px 28px rgba(232, 163, 23, 0.35);
}

.btn--primary:hover {
  background: #f0b12a;
  color: var(--color-forest-deep);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ——— Sections ——— */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
  animation: rise-in 0.8s var(--ease) both;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-leaf);
  margin-bottom: 0.6rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--color-forest-deep);
  margin-bottom: 0.75rem;
}

.section__text {
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* ——— Article grid ——— */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  animation: rise-in 0.7s var(--ease) both;
}

.article-card:nth-child(1) { animation-delay: 0.05s; }
.article-card:nth-child(2) { animation-delay: 0.12s; }
.article-card:nth-child(3) { animation-delay: 0.19s; }
.article-card:nth-child(4) { animation-delay: 0.26s; }
.article-card:nth-child(5) { animation-delay: 0.33s; }
.article-card:nth-child(6) { animation-delay: 0.4s; }

.article-card__media {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 11;
  margin-bottom: 1rem;
  background: var(--color-mint);
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.article-card:hover .article-card__media img {
  transform: scale(1.05);
}

.article-card__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-leaf);
  margin-bottom: 0.4rem;
}

.article-card__title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-forest-deep);
  margin-bottom: 0.55rem;
  text-decoration: none;
}

.article-card:hover .article-card__title {
  color: var(--color-leaf);
}

.article-card__excerpt {
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  flex: 1;
}

.article-card__meta {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.article-card__meta time::after {
  content: "·";
  margin-left: 0.75rem;
  opacity: 0.5;
}

/* ——— Topics strip ——— */
.topics {
  background: var(--color-forest);
  color: var(--color-white);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  position: relative;
  overflow: hidden;
}

.topics::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(232, 163, 23, 0.18), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(216, 239, 230, 0.1), transparent 35%);
  pointer-events: none;
}

.topics__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: center;
}

.topics__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.topics__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.topics__list li {
  padding: 1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.topics__list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: var(--color-honey);
}

.topics__list span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
}

/* ——— About / CTA ——— */
.about-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.about-block__visual {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
}

.about-block__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Article page ——— */
.page-header {
  position: relative;
  padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  color: var(--color-white);
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-header--solid {
  background: var(--color-forest);
  min-height: auto;
}

.page-header__bg {
  position: absolute;
  inset: 0;
}

.page-header__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 42, 35, 0.5) 0%, rgba(10, 42, 35, 0.78) 100%);
}

.page-header__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

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

.page-header__tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-honey);
  margin-bottom: 0.65rem;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.page-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

.article-body {
  width: min(100% - 2rem, 44rem);
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.article-body > * + * {
  margin-top: 1.25rem;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: var(--color-forest-deep);
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  line-height: 1.25;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-forest);
  margin-top: 1.75rem;
}

.article-body p,
.article-body li {
  color: var(--color-ink);
}

.article-body ul,
.article-body ol {
  padding-left: 1.35rem;
}

.article-body li + li {
  margin-top: 0.45rem;
}

.article-body strong {
  color: var(--color-forest-deep);
}

.article-body .lead {
  font-size: 1.2rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.article-body .callout {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  background: var(--color-mint);
  border-left: 4px solid var(--color-leaf);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body .callout p {
  margin: 0;
  color: var(--color-forest-deep);
}

.article-body figure {
  margin: 2rem 0;
}

.article-body figure img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body figcaption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--color-muted);
  text-align: center;
}

.article-footer {
  width: min(100% - 2rem, 44rem);
  margin: 0 auto 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 61, 50, 0.12);
}

.related {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 4rem;
}

.related__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--color-forest-deep);
  margin-bottom: 1.5rem;
}

.related .article-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--color-forest-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.site-footer .brand__name {
  text-shadow: none;
  font-size: 1.5rem;
}

.site-footer .brand {
  margin-bottom: 0.85rem;
}

.site-footer p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 28ch;
}

.site-footer h3 {
  font-family: var(--font-display);
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-honey);
}

.site-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .about-block {
    grid-template-columns: 1fr;
  }

  .about-block__visual {
    order: -1;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .related .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 42, 35, 0.96);
    backdrop-filter: blur(12px);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: none;
  }

  .hero {
    min-height: min(88vh, 40rem);
  }

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

  .hero__media img:nth-child(1) {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
  }

  .hero__content {
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 3rem;
  }

  .article-grid,
  .related .article-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
