/* Tienda (escaparate servido por el CRM): mismo aire que la web pública de InforClever */
:root { --navy: #002278; --blue: #0864c7; --sky: #4faeee; --ink: #1d1e20; --muted: #5c6370; --line: #e4e8ef; --bg: #f5f8fc;
  --ok: #12805c; --okbg: #e6f4ee; --warn: #9a6200; --warnbg: #fff4df; --off: #b42318; --offbg: #fdecea; --head: 'Roboto', sans-serif; --body: 'DM Sans', 'Roboto', sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: #fff; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h2 { font-size: 1.25rem; margin-top: 1.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }
.t-wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.t-narrow { width: min(820px, 100% - 40px); }
.t-muted { color: var(--muted); } .t-small { font-size: .88rem; }

/* Cabecera y pie */
.t-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.t-header .t-wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.t-logo img { width: 170px; }
.t-nav { display: flex; gap: 22px; margin-right: auto; }
.t-nav a { color: var(--ink); text-decoration: none; font: 500 15px var(--head); }
.t-nav a[aria-current] { color: var(--blue); }
.t-actions { display: flex; align-items: center; gap: 14px; }
.t-cart { position: relative; text-decoration: none; color: var(--ink); font: 500 15px var(--head); white-space: nowrap; }
.t-cart b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; }
.t-footer { background: var(--navy); color: #cfd8ef; margin-top: 56px; padding: 36px 0; font-size: .92rem; }
.t-footer a { color: #fff; } .t-foot-name { font: 700 1.3rem var(--head); color: #fff; margin: 0 0 6px; }
.t-legal { opacity: .85; }

/* Botones */
.t-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--blue); background: var(--blue); color: #fff;
  font: 600 15px var(--head); padding: 10px 22px; border-radius: 999px; text-decoration: none; cursor: pointer; }
.t-btn:hover { background: #0753a6; border-color: #0753a6; }
.t-btn:disabled { opacity: .6; cursor: wait; }
.t-btn-sm { padding: 7px 16px; font-size: 14px; }
.t-btn-lg { padding: 13px 26px; font-size: 16px; }
.t-btn-outline { background: #fff; color: var(--blue); } .t-btn-outline:hover { background: #eef5fd; color: var(--blue); }

/* Listado */
.t-hero { background: linear-gradient(135deg, var(--navy), var(--sky)); color: #fff; padding: 48px 0 40px; }
.t-hero h1 { color: #fff; } .t-hero p { max-width: 720px; margin: 0; opacity: .95; } .t-hero-note { margin-top: 10px !important; font-weight: 600; }
.t-block { padding: 32px 0; }
.t-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 8px; }
.t-search { flex: 1 1 320px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.t-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.t-filters button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: 500 14px var(--head); cursor: pointer; color: var(--ink); }
.t-filters button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.t-count { color: var(--muted); font-size: .9rem; margin: 6px 0 14px; }
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.t-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: box-shadow .15s, transform .15s; }
.t-card:hover { box-shadow: 0 10px 28px rgba(0,34,120,.12); transform: translateY(-2px); }
.t-card[hidden] { display: none; }
.t-ph { aspect-ratio: 1; display: grid; place-items: center; background: var(--bg); padding: 14px; }
.t-ph img { width: 100%; height: 100%; object-fit: contain; }
.t-noimg { color: var(--muted); font-size: .9rem; }
.t-info { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.t-brand { font: 600 12px var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.t-name { font-weight: 500; line-height: 1.35; }
.t-price { font: 700 1.15rem var(--head); color: var(--navy); margin-top: auto; }
.t-avail { align-self: flex-start; display: inline-block; font: 600 12px var(--head); padding: 3px 10px; border-radius: 999px; }
.t-avail.ok { color: var(--ok); background: var(--okbg); } .t-avail.wait { color: var(--warn); background: var(--warnbg); } .t-avail.off { color: var(--off); background: var(--offbg); }
.t-empty { color: var(--muted); padding: 20px 0; }

/* Ficha */
.t-crumbs { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.t-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.t-main { aspect-ratio: 1; background: var(--bg); border-radius: 18px; display: grid; place-items: center; padding: 22px; }
.t-main img { width: 100%; height: 100%; object-fit: contain; }
.t-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.t-thumbs button { width: 70px; height: 70px; padding: 6px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; }
.t-thumbs button.on { border-color: var(--blue); }
.t-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.t-sub { color: var(--muted); margin-top: -4px; }
.t-bigprice { font: 700 2rem var(--head); color: var(--navy); margin: 14px 0 8px; }
.t-buy { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 12px; }
.t-qty { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.t-qty button { width: 42px; border: 0; background: var(--bg); font-size: 18px; cursor: pointer; color: var(--navy); }
.t-qty input { width: 52px; border: 0; text-align: center; font: 600 16px var(--head); -moz-appearance: textfield; }
.t-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.t-qty-sm button { width: 32px; } .t-qty-sm input { width: 40px; font-size: 14px; }
.t-desc { max-width: 820px; margin-top: 32px; }

/* Carrito */
.t-lines { display: flex; flex-direction: column; }
.t-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.t-line-img { width: 72px; height: 72px; background: var(--bg); border-radius: 10px; padding: 6px; display: grid; place-items: center; }
.t-line-img img { width: 100%; height: 100%; object-fit: contain; }
.t-line-info { display: flex; flex-direction: column; } .t-line-info a { color: var(--ink); text-decoration: none; font-weight: 500; }
.t-line-total { font-family: var(--head); color: var(--navy); min-width: 90px; text-align: right; }
.t-remove { border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 6px; }
.t-totals { margin: 18px 0 8px; padding: 16px 18px; background: var(--bg); border-radius: 14px; }
.t-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.t-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px !important; font: 700 1.2rem var(--head); color: var(--navy); }
.t-form h2 { font-size: 1.1rem; }
.t-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.t-full { grid-column: 1 / -1; }
.t-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.t-field label { font: 500 14px var(--head); }
.t-field input, .t-field textarea { padding: 11px 13px; border: 1px solid #cfd6e2; border-radius: 10px; font: inherit; }
.t-field input:focus, .t-field textarea:focus, .t-search:focus { outline: 3px solid rgba(8,100,199,.2); border-color: var(--blue); }
.t-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 8px 0 12px; cursor: pointer; }
.t-check input { margin-top: 4px; }
.t-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.t-error { color: var(--off); font-weight: 500; min-height: 1.2em; }
.t-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 50; font-weight: 500; }
.t-toast a { color: #fff; font-weight: 700; }

@media (max-width: 820px) {
  .t-nav { display: none; }
  .t-detail { grid-template-columns: 1fr; gap: 22px; }
  .t-cart span { display: none; }
}
@media (max-width: 560px) {
  .t-header .t-wrap { gap: 12px; } .t-logo img { width: 140px; }
  .t-actions .t-btn-sm { padding: 6px 12px; font-size: 13px; }
  .t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .t-info { padding: 10px 12px 12px; } .t-name { font-size: .92rem; }
  .t-line { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: 'img info rm' 'img qty total'; }
  .t-line-img { width: 56px; height: 56px; grid-area: img; } .t-line-info { grid-area: info; } .t-line .t-qty { grid-area: qty; justify-self: start; }
  .t-line-total { grid-area: total; } .t-remove { grid-area: rm; }
  .t-grid2 { grid-template-columns: 1fr; }
  .t-buy .t-btn { flex: 1 1 100%; }
}
.t-cart b[hidden] { display: none; }

/* ---------- Servicios ---------- */
.s-block { padding: 48px 0; } .s-alt { background: var(--bg); }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.s-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.s-card { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: #fff; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
a.s-card:hover { box-shadow: 0 10px 28px rgba(0,34,120,.12); transform: translateY(-2px); }
.s-card h3 { margin: 14px 0 6px; font-size: 1.2rem; } .s-card p { margin: 0; color: var(--muted); }
.s-more { display: inline-block; margin-top: 14px; color: var(--blue); font: 600 15px var(--head); }
.s-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #eaf3fd; color: var(--blue); }
.s-icon svg { width: 55%; height: 55%; }
.s-visual { display: grid; place-items: center; min-height: 260px; }
.s-cta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; border-radius: 20px; padding: 32px; }
.s-cta h2 { color: #fff; margin: 0 0 6px; } .s-cta p { margin: 0; opacity: .95; }
.t-btn-light { background: #fff; color: var(--navy); border-color: #fff; } .t-btn-light:hover { background: #eaf3fd; border-color: #eaf3fd; color: var(--navy); }
.s-crumbs { font-size: .9rem; opacity: .9; margin-bottom: 10px; } .s-crumbs a { color: #fff; }
.s-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; } .s-top { align-items: start; }
@media (max-width: 860px) { .s-split { grid-template-columns: 1fr; } }
.s-lead { font-size: 1.1rem; margin-top: 0; }
.s-check { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.s-check li { position: relative; padding-left: 30px; }
.s-check li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--okbg); color: var(--ok); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.s-price { display: inline-block; background: #eaf3fd; color: var(--navy); font-weight: 600; padding: 10px 16px; border-radius: 12px; }
.s-btns { display: flex; flex-wrap: wrap; gap: 10px; } .s-note { color: var(--muted); font-size: .95rem; }
.s-img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 12px 30px rgba(0,34,120,.12); }
.s-form { display: grid; gap: 14px; } .s-form label { display: grid; gap: 6px; font: 500 14px var(--head); color: var(--ink); }
.s-form input, .s-form select, .s-form textarea { font: inherit; font-weight: 400; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.s-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 600px) { .s-row { grid-template-columns: 1fr; } }
.s-checkline { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 8px !important; font-weight: 400 !important; }
.s-checkline input { margin-top: 4px; }
.s-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.s-msg { margin: 0; font-weight: 500; } .s-msg.ok { color: var(--ok); } .s-msg.err { color: var(--off); }
