/*!
Theme Name: MAH - Mascotas en Adopción Honduras
Theme URI: https://mascotasenadopcionhn.com
Author: Mascotas en Adopción Honduras
Description: Tema oficial de la fundación Mascotas en Adopción Honduras. Diseño editorial moderno con sistema de mascotas en adopción, perdidas y encontradas, historias antes/después y junta directiva.
Version: 1.6.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: mah
Tags: nonprofit, animals, charity, custom-colors, custom-menu, featured-images
*/

:root {
  --bg: #F5EFE0;
  --bg-soft: #EDE5D2;
  --paper: #FFFFFF;
  --forest: #1B3A2F;
  --forest-deep: #112822;
  --orange: #F57921;
  --orange-deep: #D86813;
  --orange-tint: #FDEAD6;
  --amber: #E8B547;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-muted: #7A756A;
  --line: rgba(26, 26, 26, 0.12);
  --line-strong: rgba(26, 26, 26, 0.3);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Manrope', system-ui, sans-serif;
  --max: 1320px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  pointer-events: none; opacity: 0.5; z-index: 1; mix-blend-mode: multiply;
}
.wrap { position: relative; z-index: 2; }

/* Topbar */
.topbar { background: var(--forest-deep); color: #D4CDB8; font-size: 0.78rem; letter-spacing: 0.04em; }
.topbar-inner { max-width: var(--max); margin: 0 auto; padding: 0.6rem var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar-social { display: flex; gap: 1rem; }
.topbar-social a { opacity: 0.85; transition: opacity 0.2s; }
.topbar-social a:hover { opacity: 1; color: var(--orange); }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: rgba(245, 239, 224, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 1rem var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 0.85rem; font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--forest); }
.logo-mark { width: 50px; height: 50px; display: grid; place-items: center; flex-shrink: 0; }
.logo-mark img { width: 100%; height: auto; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; max-width: 220px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.82rem; font-family: var(--body); color: var(--ink); }
.logo-text strong { font-weight: 800; font-size: 0.85rem; line-height: 1.15; color: var(--forest); }
.logo-text small { font-family: var(--body); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-top: 4px; white-space: nowrap; }

.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a { font-size: 0.88rem; font-weight: 500; color: var(--ink); position: relative; transition: color 0.2s; white-space: nowrap; }
.nav a:hover, .nav .current-menu-item > a { color: var(--orange); }
.nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--orange); transition: width 0.3s ease; }
.nav a:hover::after { width: 100%; }
.nav ul { display: flex; gap: 1.4rem; align-items: center; list-style: none; padding: 0; margin: 0; }

/* Submenú / Dropdown */
.nav li { position: relative; }
.nav .menu-item-has-children > a::after {
  content: ' ▾';
  position: static;
  width: auto;
  height: auto;
  background: transparent;
  margin-left: 4px;
  font-size: 0.7em;
  color: inherit;
  display: inline-block;
  transition: transform 0.25s ease;
}
.nav .menu-item-has-children:hover > a::after { transform: rotate(180deg); }

.nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: -1rem;
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(27, 58, 47, 0.18);
  padding: 0.6rem 0;
  min-width: 240px;
  flex-direction: column;
  gap: 0;
  z-index: 200;
  border: 1px solid var(--line);
  list-style: none;
}
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu { display: flex; }
.nav .sub-menu li { width: 100%; }
.nav .sub-menu a {
  display: block;
  padding: 0.7rem 1.4rem;
  font-size: 0.88rem;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 500;
}
.nav .sub-menu a:hover,
.nav .sub-menu a:focus { background: var(--orange-tint); color: var(--orange-deep); }
.nav .sub-menu a::after { display: none; }

/* Puente invisible para que el hover no se rompa al moverse al dropdown */
.nav .menu-item-has-children::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}

.header-cta { display: flex; gap: 0.5rem; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.2rem; font-family: var(--body); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; border-radius: 999px; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); white-space: nowrap; }
.btn-primary { background: var(--orange); color: var(--paper); box-shadow: 0 4px 14px rgba(245, 121, 33, 0.3); }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(245, 121, 33, 0.4); }
.btn-ghost { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--bg); }
.btn-dark { background: var(--forest); color: var(--bg); }
.btn-dark:hover { background: var(--forest-deep); transform: translateY(-1px); }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: var(--bg); align-items: center; justify-content: center; }

/* Hero */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) var(--pad) clamp(4rem, 8vw, 8rem); max-width: var(--max); margin: 0 auto; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 1.5rem; }
.hero-eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--orange); }
.hero h1 { font-family: var(--display); font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 400; line-height: 0.98; letter-spacing: -0.025em; color: var(--forest); margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; font-weight: 300; color: var(--orange); font-variation-settings: "opsz" 144; }
.hero-lead { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--ink-soft); max-width: 520px; margin-bottom: 2.5rem; line-height: 1.65; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-visual { position: relative; aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; box-shadow: 0 25px 60px -20px rgba(27, 58, 47, 0.35); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; bottom: -28px; left: -28px; background: var(--bg); border-radius: 999px; padding: 1.5rem 2rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); border: 1px solid var(--line); }
.hero-badge-num { font-family: var(--display); font-size: 2.5rem; font-weight: 500; color: var(--orange); line-height: 1; }
.hero-badge-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); line-height: 1.3; }
.hero-tag { position: absolute; top: 32px; right: -12px; background: var(--forest); color: var(--bg); padding: 0.7rem 1.4rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; transform: rotate(2deg); border-radius: 4px; }
.hero-decoration { position: absolute; font-family: var(--display); font-style: italic; color: var(--orange); opacity: 0.08; font-size: 22rem; top: -2rem; right: -3rem; pointer-events: none; z-index: 0; font-weight: 300; }

/* Stats */
.stats { background: var(--forest); color: var(--bg); padding: clamp(3rem, 6vw, 5rem) var(--pad); position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(232, 181, 71, 0.3), transparent); }
.stats-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: center; }
.stats-intro h2 { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; }
.stats-intro h2 em { color: var(--amber); font-style: italic; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stat { border-left: 1px solid rgba(245, 239, 224, 0.2); padding-left: 1.5rem; }
.stat-num { font-family: var(--display); font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 400; line-height: 1; color: var(--amber); letter-spacing: -0.03em; }
.stat-label { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 0.5rem; color: rgba(245, 239, 224, 0.85); }

/* Sections */
.section { padding: clamp(4rem, 8vw, 7rem) var(--pad); max-width: var(--max); margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.section-num { font-family: var(--display); font-style: italic; font-size: 1rem; color: var(--orange); letter-spacing: 0.05em; margin-bottom: 0.5rem; display: block; }
.section-title { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 400; line-height: 1; letter-spacing: -0.025em; color: var(--forest); max-width: 720px; }
.section-title em { font-style: italic; color: var(--orange); }
.section-link { font-size: 0.9rem; font-weight: 600; color: var(--forest); display: inline-flex; align-items: center; gap: 0.4rem; padding-bottom: 0.5rem; border-bottom: 1.5px solid var(--forest); transition: gap 0.2s; }
.section-link:hover { gap: 0.8rem; }

/* Help cards */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.help-card { position: relative; background: var(--paper); border-radius: 8px; overflow: hidden; transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.4s; display: flex; flex-direction: column; }
.help-card:hover { transform: translateY(-6px); box-shadow: 0 25px 50px -15px rgba(27, 58, 47, 0.25); }
.help-card-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.help-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1); }
.help-card:hover .help-card-img img { transform: scale(1.05); }
.help-card-num { position: absolute; top: 1.2rem; left: 1.2rem; background: var(--bg); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-style: italic; color: var(--orange); font-size: 1.1rem; z-index: 2; }
.help-card-body { padding: 1.8rem 1.5rem 2rem; flex: 1; display: flex; flex-direction: column; }
.help-card h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 0.6rem; color: var(--forest); }
.help-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.5rem; flex: 1; }
.help-card-link { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start; transition: gap 0.2s; }
.help-card-link:hover { gap: 0.8rem; }

/* Adopt */
.adopt { background: var(--bg-soft); padding: clamp(4rem, 8vw, 7rem) var(--pad); }
.adopt-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.adopt-card { position: relative; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; cursor: pointer; isolation: isolate; }
.adopt-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0, 0.2, 1); }
.adopt-card:hover img { transform: scale(1.04); }
.adopt-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(17, 40, 34, 0.85) 100%); z-index: 1; }
.adopt-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem 2rem; z-index: 2; color: var(--bg); }
.adopt-card-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.6rem; }
.adopt-card h3 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; font-style: italic; line-height: 1; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.adopt-card p { font-size: 0.95rem; margin-bottom: 1.5rem; max-width: 320px; opacity: 0.92; }
.adopt-card-arrow { width: 48px; height: 48px; border-radius: 50%; background: var(--bg); color: var(--forest); display: grid; place-items: center; transition: transform 0.3s, background 0.3s; }
.adopt-card:hover .adopt-card-arrow { transform: rotate(-45deg); background: var(--orange); color: var(--bg); }

/* Before/After */
.before-after-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.story-card { background: var(--paper); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.ba-slider { position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: ew-resize; user-select: none; background: #000; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { z-index: 1; }
.ba-before { z-index: 2; clip-path: inset(0 50% 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--bg); z-index: 3; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,0.4); }
.ba-handle::after { content: '⇄'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; background: var(--bg); color: var(--forest); border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.ba-label { position: absolute; top: 1rem; padding: 0.4rem 0.9rem; background: rgba(17, 40, 34, 0.85); color: var(--bg); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; border-radius: 4px; z-index: 4; pointer-events: none; }
.ba-label.left { left: 1rem; }
.ba-label.right { right: 1rem; }
.story-card-body { padding: 1.5rem 1.8rem 2rem; }
.story-card-meta { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.5rem; }
.story-card h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 500; margin-bottom: 0.6rem; letter-spacing: -0.01em; color: var(--forest); }
.story-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }

/* Lost & Found */
.lostfound { background: var(--forest); color: var(--bg); padding: clamp(4rem, 8vw, 7rem) var(--pad); position: relative; overflow: hidden; }
.lostfound::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(232, 181, 71, 0.3), transparent); }
.lostfound-inner { max-width: var(--max); margin: 0 auto; }
.lf-head { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 3rem; }
.lf-head h2 { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 400; line-height: 1; letter-spacing: -0.025em; }
.lf-head h2 em { font-style: italic; color: var(--amber); }
.lf-head .section-num { color: var(--amber); }
.lf-head p { color: rgba(245, 239, 224, 0.78); font-size: 1rem; line-height: 1.65; max-width: 460px; }

.lf-toolbar { background: rgba(245, 239, 224, 0.08); border: 1px solid rgba(245, 239, 224, 0.15); border-radius: 12px; padding: 1.5rem; display: grid; grid-template-columns: auto 1fr 1fr 1fr auto; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.lf-tabs { display: flex; background: rgba(0,0,0,0.2); border-radius: 999px; padding: 4px; }
.lf-tab { padding: 0.6rem 1.2rem; font-size: 0.85rem; font-weight: 600; border-radius: 999px; color: rgba(245, 239, 224, 0.7); transition: all 0.25s; }
.lf-tab.active { background: var(--orange); color: var(--bg); }
.lf-input, .lf-select { background: transparent; color: var(--bg); border: 1px solid rgba(245, 239, 224, 0.2); border-radius: 8px; padding: 0.7rem 1rem; font-family: var(--body); font-size: 0.9rem; width: 100%; }
.lf-input::placeholder { color: rgba(245, 239, 224, 0.45); }
.lf-input:focus, .lf-select:focus { outline: none; border-color: var(--amber); }
.lf-select option { color: var(--ink); }

.lf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

/* Mapa dentro de la sección lostfound (fondo oscuro) */
.lf-mapa-wrapper { margin-bottom: 2rem; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.lostfound .mah-mapa-frontend { border-radius: 10px; }
.lostfound .mah-mapa-leyenda { background: rgba(245, 239, 224, 0.08); color: rgba(245, 239, 224, 0.85); border: 1px solid rgba(245, 239, 224, 0.12); }
.lostfound .mah-mapa-leyenda small { color: rgba(245, 239, 224, 0.6); }
.lf-card { background: rgba(245, 239, 224, 0.05); border: 1px solid rgba(245, 239, 224, 0.12); border-radius: 8px; overflow: hidden; transition: all 0.3s; display: block; }
.lf-card:hover { background: rgba(245, 239, 224, 0.08); transform: translateY(-3px); }
.lf-card-img { aspect-ratio: 1/1; overflow: hidden; position: relative; }
.lf-card-img img { width: 100%; height: 100%; object-fit: cover; }
.lf-status { position: absolute; top: 0.7rem; left: 0.7rem; padding: 0.25rem 0.7rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 4px; }
.lf-status.lost { background: var(--orange); color: var(--bg); }
.lf-status.found { background: var(--amber); color: var(--ink); }
.lf-card-body { padding: 1rem 1.1rem 1.2rem; }
.lf-card h4 { font-family: var(--display); font-size: 1.1rem; font-weight: 500; margin-bottom: 0.3rem; }
.lf-card-meta { font-size: 0.78rem; color: rgba(245, 239, 224, 0.65); display: flex; align-items: center; gap: 0.4rem; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem 1.5rem; }
.team-member { text-align: left; }
.team-photo { aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; margin-bottom: 1rem; background: var(--bg-soft); position: relative; }
.team-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(27, 58, 47, 0.15)); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; filter: saturate(0.95); }
.team-member:hover .team-photo img { transform: scale(1.04); }
.team-member h4 { font-family: var(--display); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; color: var(--forest); }
.team-member-role { font-size: 0.78rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-top: 0.25rem; }
.team-member.president h4::after { content: ' ★'; color: var(--amber); }

/* Mascotas grid (adoption listing) */
.mascotas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.mascota-card { background: var(--paper); border-radius: 8px; overflow: hidden; transition: transform 0.4s, box-shadow 0.4s; display: flex; flex-direction: column; }
.mascota-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -15px rgba(27, 58, 47, 0.2); }
.mascota-card-img { aspect-ratio: 1/1; overflow: hidden; position: relative; }
.mascota-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.mascota-card:hover .mascota-card-img img { transform: scale(1.05); }
.mascota-card-tag { position: absolute; top: 0.8rem; left: 0.8rem; padding: 0.3rem 0.8rem; background: var(--orange); color: var(--paper); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 4px; }
.mascota-card-tag.adopted { background: var(--forest); }
.mascota-card-body { padding: 1.2rem 1.4rem 1.5rem; }
.mascota-card h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 500; color: var(--forest); margin-bottom: 0.3rem; }
.mascota-card-meta { font-size: 0.85rem; color: var(--ink-muted); display: flex; gap: 0.8rem; flex-wrap: wrap; }
.mascota-card-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }

/* Mascota single */
.mascota-single { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.mascota-photo { aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; box-shadow: 0 25px 60px -20px rgba(27, 58, 47, 0.35); }
.mascota-photo img { width: 100%; height: 100%; object-fit: cover; }
.mascota-info h1 { font-family: var(--display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; color: var(--forest); margin-bottom: 1rem; line-height: 1; letter-spacing: -0.02em; }
.mascota-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.mascota-meta-item { padding: 1rem 1.2rem; background: var(--paper); border-radius: 8px; }
.mascota-meta-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.3rem; }
.mascota-meta-value { font-family: var(--display); font-size: 1.2rem; color: var(--forest); }
.mascota-info p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 1rem; }

/* Blog */
.blog { background: var(--bg-soft); padding: clamp(4rem, 8vw, 7rem) var(--pad); }
.blog-inner { max-width: var(--max); margin: 0 auto; }
.blog-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.8rem; }
.blog-card { display: flex; flex-direction: column; }
.blog-card.featured .blog-img { aspect-ratio: 16/10; }
.blog-img { aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; margin-bottom: 1.2rem; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-meta { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.6rem; }
.blog-card h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; color: var(--forest); margin-bottom: 0.6rem; }
.blog-card.featured h3 { font-size: 2rem; }
.blog-card p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }

/* Blog single (post) */
.post-single { max-width: 760px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--pad); }
.post-single h1 { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; color: var(--forest); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1rem; }
.post-meta { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.post-thumb { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; margin-bottom: 2.5rem; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-content { font-size: 1.05rem; line-height: 1.75; color: var(--ink); }
.post-content p { margin-bottom: 1.2rem; }
.post-content h2 { font-family: var(--display); font-size: 2rem; color: var(--forest); margin: 2rem 0 1rem; font-weight: 500; }
.post-content h3 { font-family: var(--display); font-size: 1.5rem; color: var(--forest); margin: 1.5rem 0 0.8rem; font-weight: 500; }
.post-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.post-content img { border-radius: 6px; margin: 1.5rem 0; }
.post-content blockquote { border-left: 3px solid var(--orange); padding-left: 1.5rem; margin: 1.5rem 0; font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--forest); }

/* Donate */
.donate { padding: clamp(4rem, 8vw, 7rem) var(--pad); max-width: var(--max); margin: 0 auto; position: relative; }
.donate-card { background: var(--orange); color: var(--paper); border-radius: 12px; padding: clamp(2.5rem, 5vw, 5rem); position: relative; overflow: hidden; display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: center; }
.donate-card::before { content: '♡'; position: absolute; top: -3rem; right: -1rem; font-size: 22rem; font-family: var(--display); opacity: 0.07; line-height: 1; pointer-events: none; }
.donate-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.donate h2 { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 400; line-height: 1; letter-spacing: -0.025em; margin-bottom: 1.2rem; color: var(--paper); }
.donate h2 em { font-style: italic; }
.donate p { font-size: 1rem; margin-bottom: 2rem; max-width: 520px; line-height: 1.6; opacity: 0.95; }
.donate-amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-bottom: 1.5rem; }
.donate-amount { background: rgba(245, 239, 224, 0.12); border: 1.5px solid rgba(245, 239, 224, 0.2); color: var(--paper); padding: 1rem; border-radius: 8px; font-family: var(--display); font-size: 1.4rem; font-weight: 500; transition: all 0.25s; cursor: pointer; }
.donate-amount:hover, .donate-amount.active { background: var(--bg); color: var(--orange); border-color: var(--bg); }
.donate-amount small { display: block; font-family: var(--body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.3rem; opacity: 0.7; }
.donate-amount.active small { color: var(--orange); opacity: 1; }
.btn-donate { background: var(--bg); color: var(--orange); width: 100%; justify-content: center; padding: 1.1rem; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.btn-donate:hover { background: var(--forest); color: var(--bg); transform: translateY(-2px); }

/* Newsletter */
.newsletter { padding: clamp(3rem, 6vw, 5rem) var(--pad); max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); text-align: center; }
.newsletter h3 { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; letter-spacing: -0.02em; color: var(--forest); margin-bottom: 0.7rem; }
.newsletter h3 em { font-style: italic; color: var(--orange); }
.newsletter p { color: var(--ink-soft); margin-bottom: 2rem; font-size: 1rem; }
.newsletter-form { display: flex; gap: 0.6rem; max-width: 520px; margin: 0 auto; }
.newsletter-input { flex: 1; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 1rem 1.5rem; font-family: var(--body); font-size: 0.95rem; }
.newsletter-input:focus { outline: none; border-color: var(--orange); }

/* Footer */
.footer { background: var(--forest-deep); color: rgba(245, 239, 224, 0.75); padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(245, 239, 224, 0.12); }
.footer-logo { font-family: var(--display); font-size: 1.6rem; color: var(--bg); margin-bottom: 1rem; font-weight: 500; line-height: 1.1; }
.footer p { font-size: 0.9rem; line-height: 1.7; max-width: 360px; }
.footer h5 { color: var(--bg); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 1.2rem; font-weight: 700; }
.footer ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer ul a { font-size: 0.9rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--orange); }
.footer-bottom { padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; flex-wrap: wrap; gap: 1rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(245, 239, 224, 0.2); display: grid; place-items: center; transition: all 0.25s; }
.footer-social a:hover { background: var(--orange); border-color: var(--orange); color: var(--bg); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(0.2, 0, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0, 0.2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* WordPress alignments + utilities */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.alignwide, .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.screen-reader-text { position: absolute; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--ink-muted); text-align: center; margin-top: 0.5rem; }
.archive-header { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem; text-align: center; }
.archive-header h1 { font-family: var(--display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; color: var(--forest); letter-spacing: -0.02em; }
.archive-header p { color: var(--ink-soft); margin-top: 1rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Pagination */
.pagination { max-width: var(--max); margin: 2rem auto 4rem; padding: 0 var(--pad); display: flex; justify-content: center; gap: 0.4rem; }
.pagination a, .pagination span { padding: 0.6rem 1rem; border-radius: 6px; font-weight: 600; color: var(--forest); border: 1px solid var(--line); transition: all 0.2s; }
.pagination a:hover, .pagination .current { background: var(--orange); color: var(--paper); border-color: var(--orange); }

/* 404 */
.error-404 { max-width: 720px; margin: 0 auto; padding: clamp(4rem, 10vw, 8rem) var(--pad); text-align: center; }
.error-404 .big { font-family: var(--display); font-size: clamp(6rem, 18vw, 14rem); font-weight: 300; color: var(--orange); line-height: 1; letter-spacing: -0.04em; margin-bottom: 1rem; }
.error-404 h1 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; color: var(--forest); margin-bottom: 1rem; }
.error-404 p { color: var(--ink-soft); margin-bottom: 2rem; }

/* Mobile */
@media (max-width: 1300px) {
  .logo-text small { display: none; }
}
@media (max-width: 1100px) {
  .logo-text { display: none; }
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 1024px) {
  .hero-grid, .stats-inner, .lf-head, .donate-card, .mascota-single { grid-template-columns: 1fr; gap: 2rem; }
  .help-grid, .lf-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card.featured .blog-img { aspect-ratio: 4/3; }
  .nav, .header-cta .btn-ghost { display: none; }
  .menu-toggle { display: grid; }
  .lf-toolbar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-decoration { display: none; }
}
@media (max-width: 640px) {
  .help-grid, .lf-grid, .team-grid, .adopt-inner, .before-after-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .donate-amounts { grid-template-columns: repeat(2, 1fr); }
  .topbar-info { font-size: 0.7rem; gap: 0.8rem; }
}

/* ==========================================================
 * MENÚ MÓVIL DRAWER
 * ========================================================== */

/* Hamburger animation */
.menu-toggle {
    background: var(--forest);
    color: var(--bg);
    border: none;
    cursor: pointer;
    transition: background .2s;
    position: relative;
    z-index: 110;
}
.menu-toggle:hover { background: var(--forest-deep); }
.menu-toggle-icon {
    display: block;
    width: 18px;
    height: 14px;
    position: relative;
}
.menu-toggle-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .3s ease, opacity .2s, top .3s ease;
}
.menu-toggle-icon span:nth-child(1) { top: 0; }
.menu-toggle-icon span:nth-child(2) { top: 6px; }
.menu-toggle-icon span:nth-child(3) { top: 12px; }
.menu-toggle.is-open .menu-toggle-icon span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle.is-open .menu-toggle-icon span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-toggle-icon span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Backdrop */
.mobile-drawer-backdrop {
    position: fixed !important;
    inset: 0;
    background: rgba(17, 40, 34, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    z-index: 90;
    display: none;
}
.mobile-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* Drawer - oculto por defecto en TODA pantalla */
.mobile-drawer {
    display: none;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(360px, 88vw) !important;
    background: var(--bg);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.2, 0, .2, 1);
    z-index: 100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-drawer.is-open {
    transform: translateX(0);
}
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 2;
}
.mobile-drawer-logo {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    color: var(--forest);
}
.mobile-drawer-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.mobile-drawer-logo strong {
    font-family: var(--display);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.1;
    color: var(--forest);
}
.mobile-drawer-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--forest);
    display: grid;
    place-items: center;
    transition: background .2s;
}
.mobile-drawer-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Nav */
.mobile-drawer-nav {
    padding: 1rem 0;
}
.mobile-drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-drawer-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.mobile-drawer-menu li:last-child {
    border-bottom: none;
}
.mobile-drawer-menu a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--forest);
    text-decoration: none;
    transition: background .15s, color .15s, padding-left .15s;
}
.mobile-drawer-menu a:hover,
.mobile-drawer-menu .current-menu-item > a {
    background: rgba(245, 121, 33, 0.08);
    color: var(--orange);
    padding-left: 2rem;
}
.mobile-drawer-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.025);
}
.mobile-drawer-menu .sub-menu a {
    padding-left: 2.5rem;
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink-muted);
}
.mobile-drawer-menu .sub-menu a:hover {
    padding-left: 3rem;
}

/* Actions */
.mobile-drawer-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Contact info */
.mobile-drawer-contact {
    padding: 1.2rem 1.5rem 2rem;
    border-top: 1px solid var(--line);
    background: var(--paper);
}
.mobile-drawer-contact p {
    margin: 0 0 .5rem;
    font-size: .9rem;
    color: var(--ink-muted);
}
.mobile-drawer-contact strong { color: var(--forest); }
.mobile-drawer-contact a { color: var(--forest); text-decoration: none; }
.mobile-drawer-contact a:hover { color: var(--orange); }
.mobile-drawer-social {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
}
.mobile-drawer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--bg) !important;
    display: grid;
    place-items: center;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
}
.mobile-drawer-social a:hover {
    background: var(--orange);
}

/* Mostrar drawer solo en móvil */
@media (max-width: 900px) {
    .mobile-drawer { display: block !important; }
    .mobile-drawer-backdrop { display: block !important; }
}

/* Body scroll lock cuando drawer abierto */
body.mobile-drawer-open {
    overflow: hidden;
}
