
:root {
  --yellow: #F0C52B;
  --cream: #F6F2E8;
  --white: #FAFAFA;
  --green: #167332;
  --green-dark: #0F5C2A;
  --green-soft: #E9F3EC;
  --text: #141414;
  --muted: #66645f;
  --line: rgba(20,20,20,.10);
  --shadow: 0 18px 40px rgba(0,0,0,.08);
  --radius: 24px;
  --radius-sm: 16px;
  --font-heading: "League Spartan", "Arial Black", Arial, sans-serif;
  --font-body: "Lato", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 72px 0; }
.soft-bg { background: linear-gradient(180deg, rgba(240,197,43,.18), rgba(240,197,43,0)); }
.alt-section { background: rgba(255,255,255,.55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase;
  letter-spacing: .18em; font-size: .76rem; font-weight: 900; color: var(--green-dark);
}
.eyebrow::before { content: ''; width: 32px; height: 3px; border-radius: 999px; background: var(--yellow); }
h1,h2,h3,h4 { font-family: var(--font-heading); letter-spacing: -.02em; line-height: .95; margin: 0 0 14px; }
p { margin: 0 0 16px; color: var(--muted); }

.site-header {
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(16px);
  background: rgba(246,242,232,.92);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 88px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:flex; align-items:center; gap:14px; min-width:0; }
.brand-logo {
  width: 78px;
  height: 68px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent;
  border: 0;
}
.brand-wordmark { font-family: var(--font-heading); font-size: 1.08rem; color: var(--green-dark); text-transform: uppercase; letter-spacing: .08em; }
.desktop-nav { display:flex; align-items:center; gap: 12px; }
.desktop-nav a {
  padding: 12px 16px; border-radius: 999px; color: #383632; font-weight: 700;
}
.desktop-nav a.active, .desktop-nav a:hover { background: var(--green); color: var(--white); }
.menu-button {
  width: 50px; height: 50px; border-radius: 16px; border: 1px solid var(--line); background: var(--white);
  display: none; align-items: center; justify-content: center; cursor: pointer;
}
.menu-lines { display:grid; gap:5px; }
.menu-lines span { width: 20px; height: 2px; background: var(--text); display:block; border-radius: 999px; }
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: .25s ease; z-index: 100;
}
.sidebar-overlay.open { opacity:1; visibility:visible; }
.sidebar {
  position: fixed; top:0; right:-340px; width:min(320px, 92vw); height:100dvh; background: var(--white);
  z-index: 110; box-shadow: -20px 0 50px rgba(0,0,0,.18); padding: 22px; transition: right .25s ease;
  display:flex; flex-direction:column; gap: 22px;
}
.sidebar.open { right: 0; }
.sidebar-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.sidebar-logo {
  width: 112px;
  height: auto;
  max-height: 96px;
  object-fit: contain;
  border-radius: 0;
}
.close-menu { border:0; background: var(--cream); width: 42px; height:42px; border-radius: 14px; font-size: 1.7rem; cursor:pointer; }
.sidebar-nav { display:grid; gap:10px; }
.sidebar-nav a { padding: 12px 14px; border-radius: 14px; font-weight:700; background: var(--cream); }
.sidebar-nav a.active { background: var(--green); color: var(--white); }
.sidebar-contact { margin-top:auto; display:grid; gap:10px; padding:18px; border-radius: 18px; background: var(--green-dark); color:#fff; }
.sidebar-contact a { color:#fff; text-decoration: underline; text-underline-offset: 4px; }
body.menu-open { overflow:hidden; }

.home-hero { padding: 64px 0 36px; }
.hero-layout { display:grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items:center; }
.hero-copy h1 { font-size: clamp(3.2rem, 8vw, 6.4rem); max-width: 10ch; }
.hero-copy p { font-size: 1.08rem; max-width: 58ch; }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top: 28px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding: 14px 22px; border-radius: 999px; font-weight:800; transition: .2s ease; border: 1px solid transparent; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-secondary { background: transparent; border-color: var(--text); }
.btn:hover { transform: translateY(-2px); }
.hero-stats { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:14px; margin-top: 30px; }
.hero-stats div, .catalog-summary div { padding: 18px; border-radius: 18px; background: rgba(255,255,255,.66); border: 1px solid var(--line); }
.hero-stats strong, .catalog-summary strong { display:block; font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 4px; }
.hero-stats span, .catalog-summary span { color: var(--muted); font-size: .92rem; }
.hero-visual { display:grid; gap: 18px; }
.logo-showcase { background: linear-gradient(150deg, #fff, rgba(240,197,43,.25)); border-radius: 34px; padding: 28px; box-shadow: var(--shadow); border:1px solid rgba(20,20,20,.06); }
.logo-showcase img { width: min(100%, 420px); margin: 0 auto; }
.brand-swatches { display:grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.brand-swatches div { background: rgba(255,255,255,.7); padding: 16px 12px; border-radius: 18px; text-align:center; border:1px solid var(--line); }
.brand-swatches span { width: 100%; height: 18px; display:block; border-radius: 999px; margin-bottom: 10px; }
.brand-swatches small { font-weight: 700; color: #4c4a46; }
.panel-grid, .three-col-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.three-col-grid { grid-template-columns: repeat(3,1fr); }
.info-tile, .mini-card { background: rgba(255,255,255,.75); border:1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.info-tile.highlight { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: white; }
.info-tile.highlight p, .info-tile.highlight .tile-kicker, .info-tile.highlight h2 { color: white; }
.tile-kicker { display:block; margin-bottom: 14px; color: var(--green-dark); text-transform: uppercase; font-size: .75rem; font-weight: 900; letter-spacing: .15em; }
.info-tile h2 { font-size: clamp(2.2rem, 5vw, 3.3rem); max-width: 12ch; }
.mini-card h3 { font-size: 1.55rem; margin-bottom: 10px; }

.page-hero { padding: 72px 0 44px; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 5.8rem); max-width: 12ch; }
.about-layout { display:grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items:start; }
.about-block, .mission-card, .vision-card, .contact-panel, .contact-form { background: rgba(255,255,255,.78); border:1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.about-block { padding: 30px; }
.about-block h2 { font-size: 2.3rem; }
.about-side { display:grid; gap:18px; }
.mission-card, .vision-card { padding: 26px; }
.mission-card { background: linear-gradient(135deg, rgba(240,197,43,.25), rgba(255,255,255,.9)); }
.vision-card { background: linear-gradient(135deg, rgba(22,115,50,.12), rgba(255,255,255,.95)); }

.catalog-hero { padding: 36px 0 0; }
.catalog-breadcrumbs { font-size: .94rem; color: #8b815f; margin-bottom: 12px; display:flex; align-items:center; gap:8px; }
.catalog-hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.catalog-topbar { display:flex; gap:20px; align-items:center; justify-content:space-between; margin-top: 20px; }
.catalog-topbar p { margin: 0; }
.sort-wrap { display:flex; align-items:center; gap:10px; white-space: nowrap; }
.sort-wrap select, .catalog-sidebar select, .catalog-sidebar input, .contact-form input, .contact-form textarea {
  width:100%; background: var(--white); border:1px solid rgba(20,20,20,.16); border-radius: 16px; padding: 14px 16px; color: var(--text);
}
.catalog-shell { padding-top: 28px; }
.catalog-layout { display:grid; grid-template-columns: 280px 1fr; gap: 28px; align-items:start; }
.catalog-sidebar { position: sticky; top: 108px; background: rgba(255,255,255,.76); border:1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); }
.sidebar-group + .sidebar-group { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.sidebar-group h2 { font-size: 1.6rem; margin-bottom: 14px; }
.category-list { display:grid; gap: 10px; }
.category-link {
  width:100%; text-align:left; border:0; cursor:pointer; background: transparent; color:#3f3d37;
  padding: 10px 12px; border-radius: 14px; display:flex; align-items:center; justify-content:space-between; font-weight: 700;
}
.category-link span { display:inline-grid; place-items:center; min-width: 30px; height: 30px; border-radius:999px; background: rgba(240,197,43,.26); font-size: .85rem; }
.category-link:hover, .category-link.active { background: var(--green-dark); color: var(--white); }
.category-link:hover span, .category-link.active span { background: rgba(255,255,255,.16); }
.filter-label { display:block; margin: 14px 0 8px; color: #48443f; font-weight:700; }
.reset-filter { margin-top: 14px; width:100%; border:1px solid var(--line); background: var(--cream); border-radius: 16px; padding: 13px 16px; font-weight:800; cursor:pointer; }
.catalog-main { min-width: 0; }
.catalog-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.product-card { background: rgba(255,255,255,.82); border:1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); display:flex; flex-direction:column; }
.product-thumb { aspect-ratio: 1 / .82; background: linear-gradient(135deg, rgba(240,197,43,.22), rgba(22,115,50,.1)); display:grid; place-items:center; position:relative; padding: 18px; }
.product-thumb svg { width: 70px; height: 70px; stroke: rgba(20,20,20,.38); fill: none; stroke-width: 1.6; }
.thumb-badge { position:absolute; top: 14px; left: 14px; background: var(--white); color: var(--green-dark); border-radius: 999px; padding: 8px 12px; font-size: .74rem; font-weight:900; box-shadow: 0 8px 16px rgba(0,0,0,.08); }
.product-content { padding: 22px; display:flex; flex-direction:column; gap: 12px; }
.product-category { font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; font-weight:900; color: var(--green-dark); }
.product-content h3 { font-size: 1.55rem; line-height: 1.02; }
.product-content p { margin: 0; min-height: 70px; }
.product-meta { font-size: .95rem; color: #383632; }
.product-meta strong { color: var(--text); }
.product-details { border-top: 1px solid var(--line); padding-top: 12px; }
.product-details summary { cursor:pointer; font-weight: 800; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.product-details summary::-webkit-details-marker { display:none; }
.product-details summary em { font-style: normal; font-weight:900; color: var(--green-dark); }
.product-details ul { margin: 12px 0 0; padding: 0; list-style:none; display:grid; gap:10px; }
.product-details li { display:flex; align-items:flex-start; justify-content:space-between; gap: 14px; padding: 10px 12px; background: rgba(246,242,232,.7); border-radius: 14px; }
.product-details li span { color: #34322f; }
.product-details li small { color: var(--green-dark); font-weight: 800; white-space: nowrap; }
.catalog-button { margin-top: auto; display:inline-flex; justify-content:center; align-items:center; text-align:center; padding: 14px 16px; border-radius: 16px; background: var(--green); color:#fff; font-weight:900; }
.catalog-empty { padding: 48px 24px; text-align:center; background: rgba(255,255,255,.7); border-radius: 26px; border:1px dashed rgba(20,20,20,.15); }

.contact-layout-v2 { display:grid; grid-template-columns: .95fr 1.05fr; gap: 26px; align-items:start; }
.contact-panel, .contact-form { padding: 30px; }
.contact-panel h2, .contact-form h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
.contact-lines { display:grid; gap: 14px; margin-top: 18px; }
.contact-lines a { display:flex; gap: 10px; justify-content:space-between; align-items:center; padding: 16px 18px; border-radius: 18px; background: rgba(246,242,232,.8); border:1px solid var(--line); }
.contact-lines strong { color: var(--text); }
.contact-lines span { color: var(--muted); text-align:right; }
.contact-note { margin-top: 16px; font-size: .92rem; }
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display:block; margin-bottom: 8px; font-weight: 800; color: var(--text); }
textarea { min-height: 168px; resize: vertical; }
.wide { width:100%; margin-top: 18px; border:0; }
.form-note { margin-top: 12px; font-size: .93rem; }
.form-status { margin-top: 14px; font-weight: 700; }
.form-honeypot { position:absolute; left:-9999px; opacity:0; pointer-events:none; }

.site-footer { margin-top: 50px; padding: 34px 0 24px; background: #111; color: rgba(255,255,255,.9); }
.footer-grid { display:grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 22px; align-items:start; }
.footer-brand-card { padding: 20px; border-radius: 24px; background: rgba(255,255,255,.04); }
.footer-logo {
  width: 120px;
  height: auto;
  max-height: 105px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.site-footer h4 { font-size: 1.2rem; margin-bottom: 12px; color: var(--yellow); }
.footer-links, .footer-contact { display:grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.92); }

.footer-partners {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-partners-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.footer-partners-head h4 { margin: 0; }
.footer-partners-head span {
  color: rgba(255,255,255,.58);
  font-size: .86rem;
}
.footer-partner-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0,1fr));
  gap: 10px;
}
.footer-partner-logo {
  height: 82px;
  padding: 10px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAFAFA;
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.footer-partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); display:flex; gap: 18px; justify-content:space-between; flex-wrap:wrap; color: rgba(255,255,255,.72); font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-layout, .about-layout, .contact-layout-v2, .panel-grid, .three-col-grid, .footer-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
}
@media (max-width: 960px) {
  .desktop-nav { display:none; }
  .menu-button { display:flex; }
  .header-inner { min-height: 80px; }
  .brand-wordmark { display:none; }
  .hero-copy h1, .page-hero h1 { max-width: none; }
  .hero-stats { grid-template-columns: 1fr; }
}
@media (min-width: 961px) {
  .desktop-nav { display:flex; }
  .menu-button { display:none; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1180px); }
  .section { padding: 56px 0; }
  .home-hero { padding-top: 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .brand-swatches { grid-template-columns: repeat(2,1fr); }
  .catalog-topbar { flex-direction: column; align-items: flex-start; }
  .catalog-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-lines a { flex-direction: column; align-items:flex-start; }
  .contact-lines span { text-align:left; }
  .product-content p { min-height: 0; }
  .product-details li { flex-direction: column; }
}
@media (max-width: 480px) {
  .brand-logo { width: 68px; height: 58px; }
  .hero-copy h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .page-hero h1 { font-size: clamp(2.4rem, 13vw, 3.8rem); }
  .info-tile, .mini-card, .about-block, .mission-card, .vision-card, .contact-panel, .contact-form, .catalog-sidebar, .product-content { padding: 20px; }
  .product-content h3 { font-size: 1.35rem; }
  .sort-wrap { width:100%; }
  .sort-wrap select { min-width: 0; }
}


@media (max-width: 1100px) {
  .footer-partner-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .footer-partners-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .footer-partner-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-partner-logo { height: 78px; }
}

/* Filtro del catálogo: esta regla debe prevalecer sobre display:flex de las tarjetas. */
.product-card.is-hidden,
.product-card[hidden] {
  display: none !important;
}

/* =========================================================
   V15 · CATÁLOGO UNIFORME + SCROLL INDEPENDIENTE DE FILTROS
   ========================================================= */

/* En escritorio el panel de categorías/filtros permanece fijo y tiene
   su propio desplazamiento vertical, sin mover toda la página. */
@media (min-width: 961px) {
  .catalog-sidebar {
    position: sticky;
    top: 104px;
    max-height: calc(100vh - 124px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 16px;
  }

  .catalog-sidebar::-webkit-scrollbar {
    width: 9px;
  }

  .catalog-sidebar::-webkit-scrollbar-track {
    background: rgba(20, 20, 20, .06);
    border-radius: 999px;
  }

  .catalog-sidebar::-webkit-scrollbar-thumb {
    background: rgba(22, 115, 50, .55);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }

  .catalog-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 115, 50, .8);
    border: 2px solid transparent;
    background-clip: padding-box;
  }

  .catalog-sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(22,115,50,.65) rgba(20,20,20,.06);
  }
}

/* Todas las tarjetas usan exactamente la misma estructura y altura. */
.catalog-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.product-card {
  height: 854px;
  min-height: 854px;
  max-height: 854px;
}

.product-thumb {
  flex: 0 0 380px;
  height: 380px;
  min-height: 380px;
  aspect-ratio: auto;
}

.product-content {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 3.15em 4.8em 3.2em minmax(42px, auto) auto;
  gap: 10px;
}

.product-category {
  align-self: start;
}

.product-content h3 {
  margin: 0;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.product-content > p {
  margin: 0;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.product-meta {
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.product-details {
  min-height: 42px;
  overflow: visible;
  position: relative;
}

.product-details summary {
  min-height: 42px;
  align-items: center;
}

/* Al abrir opciones, la tarjeta conserva su tamaño. La lista se desplaza. */
.product-details[open] {
  z-index: 5;
}

.product-details[open] ul {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 8;
  max-height: 190px;
  overflow-y: auto;
  padding: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
  overscroll-behavior: contain;
}

.product-details[open] ul::-webkit-scrollbar {
  width: 7px;
}

.product-details[open] ul::-webkit-scrollbar-thumb {
  background: rgba(22,115,50,.55);
  border-radius: 999px;
}

.catalog-button {
  width: 100%;
  min-height: 56px;
  margin-top: 0;
  align-self: end;
}

/* Tablet: todavía uniformes, pero un poco más compactas. */
@media (max-width: 1100px) and (min-width: 761px) {
  .product-card {
    height: 845px;
    min-height: 845px;
    max-height: 845px;
  }

  .product-thumb {
    flex-basis: 380px;
    height: 380px;
    min-height: 380px;
  }
}

/* En teléfono cada tarjeta sigue teniendo una altura uniforme, con más
   espacio para títulos y texto por el menor ancho disponible. */
@media (max-width: 760px) {
  .catalog-sidebar {
    max-height: none;
    overflow: visible;
  }

  .product-card {
    height: 870px;
    min-height: 870px;
    max-height: 870px;
  }

  .product-thumb {
    flex-basis: 380px;
    height: 380px;
    min-height: 380px;
  }

  .product-content {
    grid-template-rows: auto 3.25em 5.1em 3.35em minmax(42px, auto) auto;
  }
}

/* Inicio intencionalmente vacío */
.home-empty { min-height: 0; }


.home-landing {
  min-height: 70vh;
}
.home-visual-hero {
  position: relative;
  min-height: calc(100vh - 88px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #111;
}
.home-visual-split {
  min-height: calc(100vh - 88px);
  background-size: cover;
  background-position: center;
  filter: saturate(1.02) brightness(.82);
}
.home-sheep {
  background-image: url('inicio-oveja.jpg');
  background-position: center center;
}
.home-goat {
  background-image: url('inicio-cabra.jpg');
  background-position: center top;
}
.home-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.32)),
    linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.08) 50%, rgba(0,0,0,.28) 100%);
  pointer-events: none;
}
.home-visual-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.home-hero-logo {
  width: min(440px, 78vw);
  max-height: 52vh;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.35));
}
.home-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.home-hero-actions .btn-secondary {
  background: rgba(255,255,255,.18);
  color: #fff;
  border-color: rgba(255,255,255,.76);
  backdrop-filter: blur(4px);
}
.home-hero-actions .btn-primary {
  box-shadow: 0 14px 26px rgba(0,0,0,.18);
}
@media (max-width: 960px) {
  .home-visual-hero,
  .home-visual-split {
    min-height: calc(100svh - 80px);
  }
}
@media (max-width: 760px) {
  .home-visual-hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: auto;
  }
  .home-visual-split {
    min-height: 36svh;
  }
  .home-visual-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,.34));
  }
  .home-visual-content {
    padding: 24px 0;
  }
  .home-hero-logo {
    width: min(320px, 78vw);
    max-height: 34svh;
  }
}


/* Una fotografía por tarjeta, con tamaño y márgenes uniformes. */
.product-thumb-photos {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 54px 16px 14px;
}

.product-photo {
  display: block;
  width: 100%;
  min-width: 0;
  height: 290px;
  object-fit: contain;
  object-position: center;
}

.product-card-individual .product-content {
  grid-template-rows: auto 4.8em 4.8em 3.2em minmax(42px, auto) auto;
}

.product-card-individual .product-details li {
  display: block;
  overflow-wrap: anywhere;
}


/* Catálogo: nombre, presentación y detalles sin atribución pública al proveedor. */
.product-card-reviewed {
  height: 824px;
  min-height: 824px;
  max-height: 824px;
}
.product-card-reviewed .product-thumb {
  flex: 0 0 300px;
  height: 300px;
  min-height: 300px;
  padding: 16px;
}
.product-card-reviewed .product-photo { height: 268px; }
.product-card-reviewed .product-content {
  padding: 20px;
  gap: 8px;
  grid-template-rows: 44px 104px 64px minmax(148px, 1fr) 56px;
}
.product-card-reviewed .product-category { font-size: .78rem; }
.product-card-reviewed .product-content h3 {
  display: block;
  overflow: visible;
  font-size: 1.35rem;
  line-height: 1.18;
  overflow-wrap: break-word;
}
.product-card-reviewed .product-meta {
  display: block;
  overflow: visible;
  font-size: .92rem;
  line-height: 1.4;
}
.product-card-reviewed .product-details { overflow: hidden; min-height: 0; }
.product-card-reviewed .product-details summary { min-height: 40px; }
.product-card-reviewed .product-details[open] ul {
  position: static;
  max-height: 92px;
  overflow-y: auto;
  margin: 4px 0 0;
  padding: 8px;
  box-shadow: none;
}
.product-card-reviewed .product-details li {
  display: block;
  font-size: .85rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.product-thumb-placeholder { align-content: center; gap: 16px; }
.photo-placeholder { color: #605f55; font-size: .88rem; }
@media (min-width: 761px) and (max-width: 1100px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .product-card-reviewed .product-content { padding: 18px; }
}

/* Evita que el anclaje automático de Chrome/otros navegadores salte
   al pie de página cuando la cuadrícula cambia de altura. */
.catalog-shell { overflow-anchor: none; }


/* Capriloja · Catálogo móvil compacto (sin cambios en escritorio). */
@media (max-width: 760px) {
  .header-inner { min-height: 66px; }
  .brand-logo { width: 57px; height: 50px; object-fit: contain; }
  .catalog-hero { padding-top: 17px; }
  .catalog-hero h1 { font-size: clamp(1.9rem, 7.3vw, 2.55rem); line-height: 1.06; }
  .catalog-breadcrumbs { font-size: .8rem; margin-bottom: 6px; }
  .catalog-topbar { margin-top: 11px; gap: 7px; }
  .catalog-shell { padding-top: 12px; }
  .catalog-layout { gap: 13px; }
  .catalog-sidebar { padding: 13px; border-radius: 16px; box-shadow: none; }
  .sidebar-group + .sidebar-group { margin-top: 11px; padding-top: 11px; }
  .sidebar-group h2 { font-size: 1.12rem; margin-bottom: 7px; }
  .category-list { display: flex; flex-wrap: nowrap; gap: 7px; overflow-x: auto; overflow-y: hidden; padding: 2px 0 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .category-link { flex: 0 0 auto; width: auto; white-space: nowrap; padding: 8px 10px; font-size: .79rem; gap: 8px; border: 1px solid var(--line); border-radius: 12px; min-height: 40px; }
  .category-link span { min-width: 24px; height: 24px; font-size: .72rem; }
  .sort-wrap { width: 100%; }
  .sort-wrap select, .catalog-sidebar select, .catalog-sidebar input { padding: 10px 12px; border-radius: 11px; font-size: .86rem; }
  .filter-label { margin: 8px 0 5px; font-size: .84rem; }
  .reset-filter { padding: 10px 12px; margin-top: 9px; border-radius: 11px; font-size: .83rem; min-height: 42px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; grid-auto-rows: auto; align-items: stretch; }
  .product-card, .product-card-reviewed, .product-card-individual { height: auto; min-height: 0; max-height: none; border-radius: 14px; }
  .product-thumb, .product-card-reviewed .product-thumb, .product-thumb-photos { flex: 0 0 152px; height: 152px; min-height: 152px; aspect-ratio: auto; padding: 10px 8px; }
  .product-photo, .product-card-reviewed .product-photo { height: 132px; width: 100%; object-fit: contain; }
  .product-thumb svg { height: 48px; width: 48px; }
  .product-content, .product-card-reviewed .product-content, .product-card-individual .product-content {
    padding: 11px; display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; grid-template-rows: none; min-height: 0;
  }
  .product-card-reviewed .product-category, .product-category { font-size: .66rem; line-height: 1.25; letter-spacing: .045em; }
  .product-card-reviewed .product-content h3, .product-content h3 {
    font-size: .99rem; line-height: 1.18; min-height: 0; max-height: none; overflow: visible;
    display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow-wrap: anywhere;
  }
  .product-card-reviewed .product-meta, .product-meta { font-size: .77rem; line-height: 1.3; overflow-wrap: anywhere; }
  .product-meta strong { display: block; margin-bottom: 2px; }
  .product-details, .product-card-reviewed .product-details { margin-top: 3px; min-height: 0; overflow: visible; padding-top: 7px; }
  .product-details summary, .product-card-reviewed .product-details summary { min-height: 32px; font-size: .77rem; }
  .product-card-reviewed .product-details[open] ul { max-height: 120px; overflow-y: auto; }
  .product-card-reviewed .product-details li { font-size: .76rem; padding: 5px 3px; }
  .catalog-button { margin-top: auto; min-height: 46px; padding: 9px 6px; border-radius: 10px; font-size: .74rem; line-height: 1.27; }
  .catalog-empty { padding: 24px 12px; }
}
@media (max-width: 350px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .product-thumb, .product-card-reviewed .product-thumb, .product-thumb-photos { height: 180px; min-height: 180px; flex-basis: 180px; }
  .product-photo, .product-card-reviewed .product-photo { height: 156px; }
  .product-content h3, .product-card-reviewed .product-content h3 { font-size: 1.1rem; }
}

/* Contener el ancho intrínseco de los filtros horizontales en pantallas pequeñas. */
@media (max-width: 760px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .catalog-sidebar, .catalog-main, .catalog-grid, .sidebar-group { min-width: 0; max-width: 100%; }
  .category-list { min-width: 0; max-width: 100%; }
  .catalog-grid { width: 100%; }
}
