:root {
  --green: #16834f;
  --green-dark: #08623d;
  --green-light: #e8f5eb;
  --brand-blue: #70c9f5;
  --brand-blue-light: #e7f7ff;
  --ink: #1d2b25;
  --muted: #68756e;
  --line: #e7ece8;
  --surface: #ffffff;
  --page: #f7f9f6;
  --shadow: 0 5px 22px rgba(28, 57, 40, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: "DM Sans", Arial, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.site-header { background: linear-gradient(112deg, #fff 0%, #f6fbf2 62%, #e7f4df 100%); overflow: hidden; }
.header-inner { max-width: 1440px; min-height: 225px; margin: auto; padding: 30px 5%; display: grid; grid-template-columns: 245px 1fr 200px; align-items: center; gap: 28px; position: relative; }
.brand { display: flex; align-items: center; min-width: 0; color: inherit; text-decoration: none; }
.brand-logo { display: block; width: 100%; max-width: 235px; max-height: 135px; object-fit: contain; object-position: left center; }
.footer-logo { display: block; width: 190px; max-width: 100%; max-height: 88px; object-fit: contain; object-position: left center; }
.header-message .eyebrow { font-size: 11px; color: var(--green); letter-spacing: 2px; font-weight: 800; }
.header-message h1 { font-size: clamp(29px, 3.2vw, 47px); line-height: 1.07; letter-spacing: -1.8px; margin: 10px 0 8px; }
.header-message h1 span { color: var(--green); }
.header-message p { margin: 0; color: var(--muted); font-size: 15px; }
.header-pets { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: clamp(58px, 6vw, 86px); filter: drop-shadow(0 8px 6px #244a261c); }
.search-band { position: sticky; top: 0; z-index: 5; background: var(--green); padding: 15px max(5%, calc((100% - 1300px)/2)); display: flex; align-items: center; gap: 18px; box-shadow: 0 5px 18px #0d5e3b20; }
.search-wrap { display: flex; align-items: center; flex: 1; min-width: 170px; background: white; border-radius: 15px; height: 52px; padding: 0 17px; box-shadow: inset 0 0 0 1px #ffffff8c; }
.search-icon { color: var(--green); font-size: 31px; line-height: 1; transform: rotate(-20deg); margin-right: 10px; }
.search-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 15px; }
.search-wrap input::placeholder { color: #9aa49e; }
.clear-search { border: 0; background: #edf3ee; border-radius: 50%; width: 28px; height: 28px; color: var(--green-dark); font-size: 21px; }
.pet-tabs { display: flex; gap: 5px; padding: 4px; background: #ffffff25; border-radius: 16px; }
.pet-tab { border: 0; border-radius: 12px; background: transparent; color: white; font-size: 14px; font-weight: 700; padding: 12px 16px; white-space: nowrap; }
.pet-tab span { margin-right: 5px; }
.pet-tab.active { background: white; color: var(--green-dark); box-shadow: 0 3px 9px #00492720; }
.pet-tab[data-pet="perros"] span { color: var(--brand-blue); }
.pet-tab[data-pet="gatos"] span { color: var(--brand-blue); }
.catalog-layout { max-width: 1440px; margin: 0 auto; padding: 26px 5% 54px; display: grid; grid-template-columns: 235px minmax(0, 1fr); align-items: start; gap: 22px; }
.filters-panel { background: white; border: 1px solid var(--line); border-radius: 19px; padding: 21px; box-shadow: var(--shadow); position: sticky; top: 92px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.panel-title h2 { margin: 0; font-size: 17px; }
.filter-icon { font-size: 23px; color: var(--green); }
.filter-group { padding: 19px 0; border-bottom: 1px solid var(--line); }
.filter-group h3, .filter-heading { display: block; margin: 0 0 13px; font-size: 13px; font-weight: 800; }
.radio-row { display: flex; gap: 10px; align-items: center; margin: 13px 0; color: #4d5a52; font-size: 13px; cursor: pointer; }
.radio-row input { accent-color: var(--green); width: 17px; height: 17px; }
#sortSelect { width: 100%; padding: 11px 10px; border: 1px solid #dfe6e1; border-radius: 10px; color: #435047; background: white; font-size: 12px; outline-color: var(--green); }
.filter-note { display: flex; gap: 10px; padding: 18px 0; align-items: flex-start; }
.note-icon { display: grid; place-items: center; flex: 0 0 32px; height: 32px; background: var(--green-light); border-radius: 10px; color: var(--green); font-size: 19px; }
.filter-note strong { font-size: 12px; }
.filter-note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.reset-button { width: 100%; border: 0; border-radius: 11px; background: var(--green); color: white; padding: 12px; font-size: 13px; font-weight: 700; transition: background .2s; }
.reset-button:hover { background: var(--green-dark); }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 50px; margin-bottom: 14px; padding: 0 15px; background: #edf5eb; border-radius: 13px; color: #435248; font-size: 13px; gap: 12px; }
.results-toolbar > div { display: flex; align-items: center; gap: 9px; }
.results-dot { width: 9px; height: 9px; background: var(--green); border-radius: 50%; }
.active-filter-label { color: var(--green-dark); font-weight: 700; }
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.product-card { display: flex; flex-direction: column; min-width: 0; background: white; border: 1px solid #e9eeea; border-radius: 15px; overflow: hidden; box-shadow: 0 3px 12px #233b2b08; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #233b2b12; }
.product-image-wrap { height: 190px; padding: 15px; display: grid; place-items: center; background: linear-gradient(180deg, #f5f8f3, #fff); }
.product-image { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #96a99a; font-size: 58px; }
.product-content { display: flex; flex-direction: column; flex: 1; padding: 14px; }
.product-code { color: #68776c; font-size: 10px; font-weight: 800; letter-spacing: .7px; margin-bottom: 6px; overflow-wrap: anywhere; }
.product-description { margin: 0; color: #26362c; font-size: 13px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: auto; padding-top: 15px; }
.product-price { color: var(--green); font-size: 16px; font-weight: 800; white-space: nowrap; }
.pet-badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 5px 8px; font-size: 9px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.pet-badge.dog { background: var(--brand-blue-light); color: var(--brand-blue); }
.pet-badge.cat { background: #f8e9fb; color: #9234a1; }
.pet-badge.other { background: #eef1ed; color: #5d695f; }
.status-message { padding: 35px 18px; text-align: center; color: var(--muted); font-size: 14px; }
.status-message.error { color: #a43a31; background: #fff2f0; border-radius: 12px; }
.status-message:empty { display: none; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; padding-top: 24px; color: var(--muted); font-size: 12px; }
.page-button { border: 1px solid #dce5dd; background: white; border-radius: 9px; padding: 9px 13px; color: var(--green-dark); font-weight: 700; }
.page-button:disabled { opacity: .4; cursor: not-allowed; }
.site-footer { position: relative; overflow: hidden; background: #071124; color: #d8e2f1; font-size: 14px; }
.site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .24; background-image: radial-gradient(circle at 12% 20%, transparent 0 35px, #a9dfff22 36px 37px, transparent 38px), radial-gradient(circle at 88% 75%, transparent 0 52px, #a9dfff20 53px 54px, transparent 55px); }
.footer-main { position: relative; max-width: 1440px; margin: 0 auto; padding: 42px 5% 32px; display: grid; grid-template-columns: minmax(250px, 1.5fr) minmax(150px, .8fr) minmax(210px, 1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: start; }
.footer-about { max-width: 390px; }
.footer-brand-mark { display: inline-flex; align-items: center; min-height: 78px; text-decoration: none; }
.footer-logo { display: block; width: 220px; max-width: 100%; max-height: 92px; object-fit: contain; object-position: left center; }
.footer-about p { color: #c0ccdc; line-height: 1.75; margin: 14px 0 0; max-width: 370px; }
.footer-about .footer-slogan { color: #9edcff; font-weight: 700; margin-top: 8px; }
.footer-social { display: flex; gap: 10px; margin-top: 19px; }
.footer-social a { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; border: 1px solid #7dc9f5; color: #a6e0ff; background: #a6e0ff12; transition: background .2s, transform .2s; }
.footer-social a:hover { background: #a6e0ff25; transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; fill: currentColor; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 3px; }
.footer-links h2 { margin: 0 0 8px; color: #fff; font-size: 20px; letter-spacing: -.3px; }
.footer-links a, .footer-links span { color: #c4d0df; text-decoration: none; line-height: 1.5; transition: color .2s; }
.footer-links a:hover { color: #9edcff; }
.footer-links .footer-note { max-width: 240px; color: #8fa4bb; font-size: 12px; margin-top: 3px; }
.footer-decor { display: flex; align-items: center; gap: 8px; padding-top: 12px; color: #8bd4ff; font-size: 30px; opacity: .8; }
.footer-bottom { position: relative; border-top: 1px solid #b4c6dc55; max-width: 1440px; margin: 0 auto; padding: 17px 5%; display: flex; justify-content: space-between; align-items: center; gap: 15px; color: #c4d0df; font-size: 12px; text-align: center; }
.footer-bottom b { color: #9edcff; }
.search-icon, .filter-icon, .note-icon, .panel-title .filter-icon { color: #70c9f5; }
.pet-tab[data-pet="perros"] span, .pet-tab[data-pet="gatos"] span { color: #8bd4ff; }

@media (max-width: 1180px) {
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-inner { grid-template-columns: 210px 1fr 140px; }
  .brand-logo { max-width: 205px; max-height: 105px; }
  .pet-tab { padding: 11px 12px; }
}
@media (max-width: 850px) {
  .header-inner { min-height: 185px; grid-template-columns: 1fr auto; padding: 24px 5%; gap: 18px; }
  .brand { grid-column: 1 / -1; }
  .header-message h1 { font-size: 34px; }
  .header-pets { grid-column: 2; grid-row: 2; }
  .search-band { position: static; flex-wrap: wrap; }
  .search-wrap { flex-basis: 100%; }
  .pet-tabs { width: 100%; }
  .pet-tab { flex: 1; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .filters-panel .filter-group:first-of-type { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .filters-panel .filter-group:first-of-type h3 { width: 100%; margin-bottom: 0; }
  .radio-row { margin: 5px 0; }
  .filter-note { display: none; }
  .reset-button { margin-top: 14px; }
}
@media (max-width: 560px) {
  .header-inner { min-height: auto; grid-template-columns: 1fr; }
  .header-message h1 { font-size: 31px; }
  .header-message p { font-size: 13px; }
  .header-pets { display: none; }
  .brand-logo { max-width: 190px; max-height: 90px; }
  .search-band { padding: 12px 4%; gap: 10px; }
  .search-wrap { height: 48px; }
  .pet-tab { font-size: 12px; padding: 10px 7px; }
  .catalog-layout { padding: 18px 4% 35px; gap: 16px; }
  .filters-panel { padding: 16px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-image-wrap { height: 145px; padding: 10px; }
  .product-content { padding: 11px; }
  .product-description { font-size: 12px; }
  .product-price { font-size: 14px; }
  .pet-badge { font-size: 8px; padding: 4px 6px; }
  .results-toolbar { align-items: flex-start; flex-direction: column; justify-content: center; padding: 11px 13px; gap: 5px; }
  .site-footer { flex-wrap: wrap; }
}


/* Contacto flotante de WhatsApp personalizado para HUELLIAS */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 17px 9px 9px;
  border: 1px solid #d9eadf;
  border-radius: 999px;
  background: #fff;
  color: #1b3326;
  text-decoration: none;
  box-shadow: 0 9px 30px #123d2529;
  transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 34px #123d2538;
}
.whatsapp-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #16834f, #08623d);
  border: 3px solid #e5f3e8;
  box-shadow: inset 0 0 0 1px #ffffff40;
}
.avatar-paw { font-size: 25px; line-height: 1; filter: grayscale(1) brightness(0) invert(1); }
.whatsapp-mini {
  position: absolute;
  width: 25px;
  height: 25px;
  right: -4px;
  bottom: -2px;
  color: #fff;
  background: #25d366;
  border: 2px solid #fff;
  border-radius: 50%;
  padding: 3px;
}
.whatsapp-label { display: flex; flex-direction: column; gap: 2px; }
.whatsapp-label strong { font-size: 13px; color: var(--green-dark); }
.whatsapp-label small { font-size: 11px; color: #65736a; }
@media (max-width: 560px) {
  .whatsapp-float { right: 14px; bottom: 14px; padding: 7px; gap: 0; }
  .whatsapp-avatar { width: 54px; height: 54px; flex-basis: 54px; }
  .whatsapp-label { display: none; }
}

@media (max-width: 850px) {
  .footer-main { grid-template-columns: 1.2fr 1fr; gap: 30px; }
  .footer-decor { display: none; }
}
@media (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr 1fr; padding: 32px 5% 25px; gap: 28px 20px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-logo { width: 190px; }
  .footer-links h2 { font-size: 17px; }
  .footer-links a, .footer-links span { font-size: 12px; }
  .footer-bottom { flex-direction: column; padding: 16px 5%; font-size: 11px; }
}


/* Ajustes solicitados: acento celeste y separación segura entre foto y datos */
:root {
  --brand-blue: #70c9f5;
  --brand-blue-light: #e7f7ff;
}
.search-band { background: #70c9f5; }
.search-icon, .filter-icon, .note-icon, .panel-title .filter-icon { color: #70c9f5; }
.pet-tab[data-pet="perros"] span,
.pet-tab[data-pet="gatos"] span { color: #70c9f5; }
.pet-tab.active { color: #17384a; }
.product-card { min-height: 100%; }
.product-image-wrap {
  position: relative;
  display: flex;
  flex: 0 0 190px;
  height: 190px;
  min-height: 190px;
  padding: 12px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}
.product-image {
  position: static;
  display: block;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: auto;
}
.product-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 0 auto;
  min-width: 0;
  background: #fff;
}
.product-description {
  display: block;
  position: static;
  min-height: 2.9em;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}
.product-bottom { flex-wrap: wrap; align-items: flex-start; }
.product-price { white-space: normal; }
@media (max-width: 640px) {
  .product-image-wrap {
    flex-basis: 145px;
    height: 145px;
    min-height: 145px;
  }
}


/* Contador diario de visitas: componente discreto, moderno y adaptable. */
.footer-bottom {
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 24px;
}
.visit-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 142px;
  padding: 8px 14px;
  border: 1px solid rgba(158, 220, 255, .3);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(112, 201, 245, .14), rgba(22, 131, 79, .16));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  color: #eaf7ff;
  animation: visit-counter-in .35s ease-out both;
}
.visit-counter[hidden] { display: none; }
.visit-counter-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(112, 201, 245, .18);
  color: #9edcff;
  font-size: 22px;
  font-weight: 800;
}
.visit-counter-copy { display: flex; flex-direction: column; gap: 1px; }
.visit-counter-copy strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.visit-counter-copy small {
  color: #aebfd2;
  font-size: 10px;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.copyright-text { text-align: center; }
.copyright-text strong { color: #9edcff; }

/* Pulido visual: tarjetas y controles con transiciones suaves. */
.search-wrap, .filters-panel, .results-toolbar, .product-card, .pet-tab, .reset-button, .page-button {
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.search-wrap:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .28), 0 8px 24px rgba(0, 40, 22, .12);
}
.product-card { border-color: #e5ece7; box-shadow: 0 5px 18px rgba(22, 55, 34, .045); }
.product-card:hover { border-color: #cce8d6; }
.pet-tab:focus-visible, .reset-button:focus-visible, .page-button:focus-visible,
.clear-search:focus-visible, .whatsapp-float:focus-visible {
  outline: 3px solid #8bd4ff;
  outline-offset: 3px;
}
.page-button:not(:disabled):hover { border-color: var(--green); box-shadow: 0 4px 12px rgba(22, 131, 79, .1); }
@keyframes visit-counter-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 560px) {
  .footer-bottom { gap: 12px; }
  .visit-counter { order: 0; }
  .copyright-text { order: 1; line-height: 1.65; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
