/* ═══════════════════════════════════════════════════════════
   catalogo.css — Estilos de la página /productos (catálogo)
   Complementa landing.css (reusa sus variables :root, nav y
   WhatsApp flotante). NO modifica landing.css. Modular.
   ═══════════════════════════════════════════════════════════ */

/* ── Hero compacto del catálogo ──────────────────────────────── */
.cat-hero {
    padding: 130px 24px 54px;
    text-align: center;
    background:
      radial-gradient(1100px 380px at 50% -10%, rgba(79,142,247,.20), transparent 70%),
      linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
    position: relative;
}
.cat-hero .l-hero-badge { margin: 0 auto 18px; }
.cat-hero h1 {
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.08;
    max-width: 760px;
    margin: 0 auto;
}
.cat-hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #7eb8f7, #4f8ef7 55%, #a78bfa);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cat-hero p {
    color: var(--text-muted);
    font-size: clamp(15px, 2.2vw, 18px);
    max-width: 620px;
    margin: 16px auto 0;
    line-height: 1.6;
}
.cat-hero-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.cat-chip {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: #fff; font-size: 14px; font-weight: 600; padding: 9px 18px;
    border-radius: 50px; text-decoration: none; backdrop-filter: blur(8px);
    transition: background .2s, border-color .2s;
}
.cat-chip:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color:#fff; }

/* ── Secciones del catálogo ──────────────────────────────────── */
.cat-section { max-width: 1120px; margin: 0 auto; padding: 62px 24px; }
.cat-section-head { margin-bottom: 34px; }
.cat-eyebrow {
    display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--blue-light);
    background: rgba(79,142,247,.12); border: 1px solid rgba(79,142,247,.25);
    padding: 6px 14px; border-radius: 50px;
}
.cat-section h2 { font-size: clamp(24px, 3.6vw, 33px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 8px; }
.cat-section .cat-sub { color: var(--text-muted); font-size: 16px; max-width: 640px; line-height: 1.6; }

/* ── Grid de productos ───────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.cat-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.prod-card {
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    scroll-margin-top: 84px; /* deep-link por ancla no queda tapado por el nav fijo */
}
/* Realce breve al llegar por deep-link (#alimento-engorde, etc.) */
.prod-card:target {
    border-color: rgba(79,142,247,.7);
    box-shadow: 0 0 0 3px rgba(79,142,247,.25);
}
.prod-card:hover { transform: translateY(-4px); border-color: rgba(79,142,247,.4); box-shadow: 0 22px 44px -20px rgba(0,0,0,.6); }

/* Imagen / placeholder (se reemplaza por foto real luego) */
.prod-media {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden;
    background: linear-gradient(135deg, #12224d, #0a1533);
    display: grid; place-items: center;
}
/* <picture> transparente al layout: el <img> sigue siendo el hijo directo del grid */
.prod-media picture { display: contents; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-media .ph-icon { color: rgba(126,184,247,.45); }
.prod-media .ph-note {
    position: absolute; bottom: 8px; left: 8px;
    font-size: 10.5px; color: rgba(255,255,255,.5); background: rgba(6,16,42,.6);
    padding: 3px 8px; border-radius: 6px; letter-spacing: .02em;
}
.prod-tag {
    position: absolute; top: 10px; left: 10px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    padding: 4px 10px; border-radius: 50px; color: #fff;
}
.prod-tag.mat { background: rgba(139,92,246,.9); }
.prod-tag.pat { background: rgba(14,165,164,.9); }

.prod-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.prod-body p { color: var(--text-muted); font-size: 14px; line-height: 1.55; margin: 8px 0 16px; flex: 1; }

/* Botón WhatsApp del producto (mensaje autogenerado) */
.prod-wa {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--whatsapp); color: #062e1c; font-weight: 700; font-size: 14.5px;
    padding: 11px 16px; border-radius: 12px; text-decoration: none;
    transition: filter .15s;
}
.prod-wa:hover { filter: brightness(1.05); color: #062e1c; }

/* ── Video (YouTube) ─────────────────────────────────────────── */
.cat-video-wrap { max-width: 860px; margin: 28px auto 0; }
.cat-video {
    position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--glass-border); background: #000;
}
.cat-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cat-video-cap { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 10px; }

/* ── Franja "cómo funciona el pedido" ────────────────────────── */
.cat-how { background: rgba(255,255,255,.03); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.cat-how .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 780px) { .cat-how .steps { grid-template-columns: 1fr; } }
.cat-step { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 22px; }
.cat-step-n {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    font-weight: 800; color: var(--navy); background: linear-gradient(135deg, #7eb8f7, #4f8ef7); margin-bottom: 12px;
}
.cat-step h4 { font-size: 16px; font-weight: 700; }
.cat-step p { color: var(--text-muted); font-size: 14px; margin-top: 7px; line-height: 1.5; }

/* ── Teaser del software arriba del catálogo (promo above-the-fold) ─────────── */
.cat-sw-strip { max-width: 1120px; margin: 6px auto 0; padding: 0 24px; }
.cat-sw-strip-inner {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
    background: linear-gradient(135deg, rgba(79,142,247,.14), rgba(139,92,246,.10));
    border: 1px solid rgba(79,142,247,.32);
    border-radius: var(--radius);
    padding: 16px 22px;
}
.cat-sw-strip-emoji { flex: 0 0 auto; }
.cat-sw-strip-emoji svg { display: block; }
.cat-sw-strip-txt { flex: 1 1 320px; font-size: 14.5px; line-height: 1.55; color: #dfe9ff; margin: 0; text-align: left; }
.cat-sw-strip-txt strong { color: #fff; }
.cat-sw-strip .cat-sw-btn { flex: 0 0 auto; }
@media (max-width: 640px) {
    .cat-sw-strip-inner { text-align: center; }
    .cat-sw-strip-txt { text-align: center; flex-basis: 100%; }
}

/* ── Franja "el software" (cross-promo: catálogo → app de control) ──────────── */
.cat-software {
    background: linear-gradient(180deg, rgba(79,142,247,.07), rgba(79,142,247,.02));
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.cat-sw-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cat-sw-inner .cat-eyebrow { margin-bottom: 14px; }
.cat-sw-inner h2 { font-size: clamp(23px, 3.4vw, 31px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.cat-sw-inner .cat-sub { margin: 0 auto; }
.cat-sw-feats {
    list-style: none; padding: 0; margin: 24px 0 28px;
    display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center;
}
.cat-sw-feats li { color: var(--text-muted); font-size: 14.5px; }
.cat-sw-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.cat-sw-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #7eb8f7, #4f8ef7);
    color: var(--navy); font-weight: 700; font-size: 14.5px;
    padding: 12px 24px; border-radius: 12px; text-decoration: none;
    transition: filter .15s, transform .15s;
}
.cat-sw-btn:hover { filter: brightness(1.06); transform: translateY(-1px); color: var(--navy); }
.cat-sw-ghost {
    display: inline-flex; align-items: center;
    color: #fff; border: 1px solid var(--glass-border);
    padding: 12px 20px; border-radius: 12px; text-decoration: none;
    font-weight: 600; font-size: 14.5px; transition: border-color .2s, background .2s;
}
.cat-sw-ghost:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: #fff; }
.cat-sw-play { margin-top: 22px; display: flex; justify-content: center; }
