/* =========================================================
   HIMEDIC — Estilos del sitio
   Los colores, fuentes y radios se definen como variables CSS
   en includes/header.php desde la administración (Apariencia).
   ========================================================= */

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .navbar, .btn, .eyebrow, .hero-eyebrow { font-family: var(--font-head); }
h1, h2, h3, h4 { color: inherit; letter-spacing: -0.02em; }
a { color: var(--brand); }
a:hover { color: var(--brand-600); }
img { max-width: 100%; }
::selection { background: var(--brand); color: #fff; }

/* ---------- Botones ---------- */
.btn { border-radius: var(--radius-btn); font-weight: 600; padding: .72rem 1.6rem; letter-spacing: .01em; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .5rem 1.15rem; font-size: .9rem; }
.btn-lg { padding: .95rem 2rem; font-size: 1.05rem; }
.btn-brand { background: var(--brand); color: var(--btn-text); border: 2px solid var(--brand); box-shadow: 0 8px 22px -10px rgba(var(--brand-rgb), .8); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-600); border-color: var(--brand-600); color: var(--btn-text); }
.btn-brand-secondary { background: var(--brand-dark); color: #fff; border: 2px solid var(--brand-dark); }
.btn-brand-secondary:hover { background: var(--brand-dark-700); border-color: var(--brand-dark-700); color: #fff; }
.btn-brand-light { background: #fff; color: var(--brand-dark); border: 2px solid #fff; }
.btn-brand-light:hover { background: var(--brand-100); border-color: var(--brand-100); color: var(--brand-dark); }
.btn-brand-outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-brand-outline:hover { background: var(--brand); color: #fff; }
.btn-brand-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-brand-outline-light:hover { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; border: 2px solid #25D366; }
.btn-whatsapp:hover { background: #1eb957; border-color: #1eb957; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ---------- Topbar / Navbar ---------- */
.topbar { background: var(--brand-dark); color: rgba(255,255,255,.85); font-size: .85rem; padding: .45rem 0; }
.topbar a { color: rgba(255,255,255,.9); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar i { margin-right: .3rem; }
.site-nav { background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); padding: .8rem 0; transition: box-shadow .25s ease, padding .25s ease; }
.site-nav.scrolled { box-shadow: 0 6px 30px -18px rgba(0, 30, 80, .45); padding: .5rem 0; }
.site-nav .navbar-brand img { width: auto; max-width: 220px; object-fit: contain; }
.site-nav .nav-link { color: var(--text); font-weight: 600; font-size: .95rem; padding: .5rem .9rem !important; position: relative; }
.site-nav .nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .2s ease; border-radius: 2px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand); }
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: 0; font-size: 1.9rem; color: var(--brand-dark); padding: 0 .3rem; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding: 1rem 0 .5rem; }
  .site-nav .nav-link::after { display: none; }
}

/* ---------- Secciones ---------- */
.sec { padding: 6rem 0; position: relative; overflow: hidden; }
@media (max-width: 767.98px) { .sec { padding: 4rem 0; } }
.bg-sec-white { background: var(--bg); }
.bg-sec-light { background: var(--light); }
.bg-sec-primary { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%); color: #fff; }
.bg-sec-dark { background: radial-gradient(1200px 500px at 85% -10%, rgba(var(--brand-rgb), .45), transparent 60%), linear-gradient(160deg, var(--brand-dark) 0%, var(--brand-dark-700) 100%); color: #fff; }
.bg-sec-primary .sec-lead, .bg-sec-dark .sec-lead, .bg-sec-primary .rich-text, .bg-sec-dark .rich-text { color: rgba(255,255,255,.85); }

.sec-head { max-width: 760px; margin-bottom: 3rem; }
.sec-head.text-start { margin-bottom: 1.5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 26px; height: 10px; background: radial-gradient(circle at 5px 5px, currentColor 4px, transparent 4.5px), radial-gradient(circle at 21px 5px, currentColor 4px, transparent 4.5px), linear-gradient(currentColor, currentColor) 5px 4px / 16px 2px no-repeat; }
.bg-sec-primary .eyebrow, .bg-sec-dark .eyebrow { color: #9cc3ff; }
.bg-sec-primary .eyebrow { color: #fff; }
.sec-title { font-size: clamp(1.75rem, 3.2vw, 2.65rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.1rem; }
.sec-lead { color: var(--muted); font-size: 1.08rem; }
.sec-lead p:last-child, .rich-text p:last-child { margin-bottom: 0; }
.rich-text { font-size: 1.05rem; }
.rich-text h2, .rich-text h3 { margin-top: 1.5rem; font-weight: 700; }

/* ---------- Decoración (nodos del logo) ---------- */
.hero-deco span { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.10); pointer-events: none; }
.hero-deco span:nth-child(1) { width: 620px; height: 620px; right: -180px; top: -220px; background: rgba(255,255,255,.04); }
.hero-deco span:nth-child(2) { width: 300px; height: 300px; right: 300px; bottom: -170px; }
.hero-deco span:nth-child(3) { width: 140px; height: 140px; left: -50px; top: 30%; background: rgba(255,255,255,.05); }

/* ---------- Hero ---------- */
.sec-hero { padding: 6.5rem 0 7rem; }
.sec-hero.bg-sec-white, .sec-hero.bg-sec-light { color: var(--text); }
.sec-hero.bg-sec-white .hero-deco span, .sec-hero.bg-sec-light .hero-deco span { border-color: rgba(var(--brand-rgb), .12); background: transparent; }
.hero-eyebrow { display: inline-block; font-weight: 800; letter-spacing: .35em; font-size: .95rem; padding: .45rem 1rem; border-radius: 50px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); margin-bottom: 1.5rem; }
.bg-sec-white .hero-eyebrow, .bg-sec-light .hero-eyebrow { background: var(--brand-100); border-color: transparent; color: var(--brand); }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; line-height: 1.08; margin-bottom: 1.4rem; }
.hero-text { font-size: 1.12rem; opacity: .92; max-width: 560px; }
.hero-text p { margin-bottom: .8rem; }
.hero-text p:first-child { font-weight: 500; }
.hero-image { border-radius: calc(var(--radius-card) * 1.4); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.hero-collage { position: relative; height: 470px; }
.hc-item { position: absolute; background: #fff; border-radius: calc(var(--radius-card) * 1.2); box-shadow: 0 30px 60px -30px rgba(0, 20, 70, .65); padding: 1rem; display: flex; align-items: center; justify-content: center; animation: float 7s ease-in-out infinite; }
.hc-item img { max-height: 100%; object-fit: contain; }
.hc-1 { width: 62%; height: 46%; left: 0; top: 2%; animation-delay: 0s; }
.hc-2 { width: 46%; height: 40%; right: 0; top: 14%; animation-delay: -2s; }
.hc-3 { width: 44%; height: 42%; left: 10%; bottom: 0; animation-delay: -4s; }
.hc-4 { width: 46%; height: 36%; right: 4%; bottom: 8%; animation-delay: -1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 991.98px) { .hero-collage { height: 360px; } }
@media (max-width: 575.98px) { .hero-collage { height: 280px; } .hc-item { padding: .5rem; } }
@media (prefers-reduced-motion: reduce) { .hc-item { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Texto con imagen ---------- */
.about-figure { position: relative; padding: 1.25rem; }
.about-figure::before { content: ""; position: absolute; inset: 0 2.5rem 2.5rem 0; border-radius: calc(var(--radius-card) * 1.5); background: var(--brand-100); }
.bg-sec-light .about-figure::before { background: #fff; }
.bg-sec-dark .about-figure::before, .bg-sec-primary .about-figure::before { background: rgba(255,255,255,.08); }
.about-figure img { position: relative; border-radius: calc(var(--radius-card) * 1.2); box-shadow: 0 30px 60px -35px rgba(0, 30, 90, .55); background: #fff; width: 100%; }
.mini-feature { display: flex; gap: .85rem; align-items: flex-start; }
.mini-feature i { font-size: 1.3rem; color: var(--brand); flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--brand-100); display: grid; place-items: center; }
.mini-feature strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.mini-feature span { font-size: .92rem; color: var(--muted); }

/* ---------- Checklist ---------- */
.check-item { display: flex; gap: .9rem; align-items: center; padding: 1.05rem 1.2rem; border-radius: var(--radius-card); background: #fff; border: 1px solid rgba(var(--brand-rgb), .12); height: 100%; font-weight: 500; transition: transform .2s ease, box-shadow .2s ease; }
.check-item:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(0, 40, 110, .5); }
.check-item i { font-size: 1.4rem; color: var(--brand); flex: none; }
.bg-sec-dark .check-item, .bg-sec-primary .check-item { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #fff; }
.bg-sec-dark .check-item i, .bg-sec-primary .check-item i { color: #7fb2ff; }
.bg-sec-primary .check-item i { color: #fff; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; max-width: 980px; margin: 0 auto; }
.chip { display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.25rem; border-radius: 50px; background: #fff; border: 1px solid rgba(var(--brand-rgb), .16); font-weight: 600; font-family: var(--font-head); font-size: .95rem; box-shadow: 0 10px 25px -20px rgba(0, 40, 110, .6); transition: background .2s, color .2s, transform .2s; }
.chip i { color: var(--brand); }
.chip:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.chip:hover i { color: #fff; }
.bg-sec-dark .chip, .bg-sec-primary .chip { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }

/* ---------- Tarjetas ---------- */
.feature-card { background: #fff; border-radius: var(--radius-card); padding: 2.1rem 1.8rem; border: 1px solid rgba(var(--brand-rgb), .1); box-shadow: 0 20px 45px -38px rgba(0, 40, 110, .55); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; position: relative; overflow: hidden; }
.feature-card::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-dark)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -35px rgba(0, 40, 110, .55); border-color: transparent; }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon { width: 3.6rem; height: 3.6rem; border-radius: 1.1rem; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1.4rem; }
.feature-img { width: 100%; height: 170px; object-fit: contain; margin-bottom: 1.2rem; }
.feature-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: .6rem; color: var(--text); }
.feature-card p { color: var(--muted); margin: 0; font-size: .98rem; }
.bg-sec-dark .feature-card, .bg-sec-primary .feature-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; }
.bg-sec-dark .feature-card h3, .bg-sec-primary .feature-card h3 { color: #fff; }
.bg-sec-dark .feature-card p, .bg-sec-primary .feature-card p { color: rgba(255,255,255,.78); }
.bg-sec-dark .feature-icon, .bg-sec-primary .feature-icon { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Líneas de producto ---------- */
.line-card { background: #fff; border-radius: calc(var(--radius-card) * 1.2); overflow: hidden; border: 1px solid rgba(var(--brand-rgb), .1); box-shadow: 0 24px 50px -40px rgba(0, 40, 110, .6); display: flex; flex-direction: column; transition: transform .25s ease; }
.line-card:hover { transform: translateY(-5px); }
.line-img { background: #fff; border-bottom: 1px solid #eef2f8; height: 190px; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.line-img img { max-height: 100%; object-fit: contain; }
.line-body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }
.line-icon { width: 3rem; height: 3rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1rem; }
.line-img + .line-body .line-icon { margin-top: -3.3rem; border: 4px solid #fff; width: 3.6rem; height: 3.6rem; }
.line-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.line-card ul { list-style: none; padding: 0; margin: .8rem 0 1.2rem; flex: 1; }
.line-card li { padding: .45rem 0 .45rem 1.6rem; position: relative; border-bottom: 1px dashed rgba(var(--brand-rgb), .16); color: var(--text); }
.line-card li:last-child { border-bottom: 0; }
.line-card li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.line-link { font-weight: 700; text-decoration: none; font-family: var(--font-head); }
.line-link i { transition: transform .2s; display: inline-block; }
.line-link:hover i { transform: translateX(4px); }

/* ---------- Marcas ---------- */
.brand-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; min-height: 150px; background: #fff; border-radius: var(--radius-card); border: 1px solid rgba(var(--brand-rgb), .12); padding: 1.5rem; text-decoration: none; color: var(--text); transition: transform .2s ease, box-shadow .2s ease; }
.brand-tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -35px rgba(0, 40, 110, .6); color: var(--text); }
.brand-tile img { max-height: 70px; max-width: 80%; object-fit: contain; }
.brand-word { font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; letter-spacing: .08em; background: linear-gradient(90deg, var(--brand-dark), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: center; }
.brand-tile small { color: var(--muted); text-align: center; }
.bg-sec-dark .brand-tile, .bg-sec-primary .brand-tile { background: rgba(255,255,255,.95); }

/* ---------- CTA ---------- */
.sec-cta { padding: 4rem 0; }
.cta-box { border-radius: calc(var(--radius-card) * 1.6); padding: 3rem; background: radial-gradient(600px 260px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; box-shadow: 0 40px 80px -50px rgba(0, 40, 120, .9); }
.cta-box h2 { font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 .4rem; }
.cta-text { opacity: .88; max-width: 620px; }
.cta-text p { margin: 0; }
.cta-box .btn-row { margin-top: 0; }
.bg-sec-primary .cta-box, .bg-sec-dark .cta-box { background: rgba(255,255,255,.08); box-shadow: none; }
@media (max-width: 575.98px) { .cta-box { padding: 2rem 1.5rem; } }

/* ---------- Producto (tarjeta) ---------- */
.product-card { background: #fff; border-radius: var(--radius-card); border: 1px solid #e6ecf5; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; outline: none; }
.product-card:hover, .product-card:focus-visible { transform: translateY(-4px); box-shadow: 0 26px 50px -32px rgba(0, 40, 110, .55); border-color: rgba(var(--brand-rgb), .35); }
.product-img { aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; padding: .9rem; border-bottom: 1px solid #eef2f8; }
.product-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .35s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-cat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); font-family: var(--font-head); }
.product-name { font-size: .95rem; font-weight: 600; line-height: 1.35; margin: 0; color: var(--text); font-family: var(--font-head); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { display: flex; flex-direction: column; gap: .1rem; margin-top: auto; padding-top: .35rem; }
.product-ref { color: var(--accent); font-size: .83rem; font-weight: 600; }
.product-code { color: var(--muted); font-size: .8rem; }
.product-price { font-family: var(--font-head); font-weight: 800; color: var(--brand-dark); font-size: 1.1rem; }
@media (max-width: 575.98px) { .product-body { padding: .8rem; } .product-name { font-size: .86rem; } }

/* ---------- Modal de producto ---------- */
.product-modal { border: 0; border-radius: calc(var(--radius-card) * 1.3); overflow: hidden; }
.product-modal .btn-close { position: absolute; right: 1rem; top: 1rem; z-index: 3; background-color: #fff; border-radius: 50%; padding: .7rem; opacity: .9; }
.pm-img { height: 100%; min-height: 320px; background: linear-gradient(160deg, var(--light), #fff); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.pm-img img { max-height: 380px; object-fit: contain; }
.pm-body { padding: 2.4rem 2rem; }
.pm-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.pm-cats span { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--brand-100); color: var(--brand); padding: .3rem .7rem; border-radius: 50px; font-family: var(--font-head); }
.pm-body h3 { font-weight: 800; font-size: 1.45rem; line-height: 1.25; }
.pm-meta { margin: 1rem 0; display: grid; gap: .4rem; }
.pm-meta > div { display: flex; gap: .8rem; padding: .55rem .9rem; background: var(--light); border-radius: .7rem; }
.pm-meta dt { font-weight: 600; color: var(--muted); min-width: 64px; font-size: .9rem; }
.pm-meta dd { margin: 0; font-weight: 700; color: var(--accent); }
#pmCodeRow dd { color: var(--text); }
.pm-price { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--brand-dark); }
.pm-desc { color: var(--muted); font-size: .97rem; }

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; overflow: hidden; padding: 4.5rem 0 5rem; color: #fff; background: radial-gradient(900px 400px at 90% -20%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); }
.page-hero-sm { padding: 4rem 0; }
.page-hero .hero-eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; }
.page-title { font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .8rem; }
.page-lead { font-size: 1.1rem; opacity: .9; max-width: 640px; margin: 0; }
.catalog-search { margin-top: 2.5rem; background: #fff; border-radius: var(--radius-btn); display: flex; align-items: center; padding: .4rem .4rem .4rem 1.4rem; box-shadow: 0 30px 60px -30px rgba(0, 20, 70, .7); max-width: 820px; }
.catalog-search > i { color: var(--muted); font-size: 1.2rem; }
.catalog-search input { border: 0; outline: 0; flex: 1; padding: .8rem 1rem; font-size: 1.05rem; min-width: 0; color: var(--text); background: transparent; }
.catalog-search .btn { flex: none; }
.catalog-sec { padding-top: 3.5rem; background: var(--light); overflow: visible; }
.cat-panel { background: #fff; border-radius: var(--radius-card); padding: 1.3rem; border: 1px solid #e6ecf5; position: sticky; top: 100px; }
.cat-panel-title { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem .4rem; }
.cat-list { display: flex; flex-direction: column; gap: .15rem; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .75rem; border-radius: .7rem; color: var(--text); text-decoration: none; font-weight: 500; font-size: .9rem; line-height: 1.3; transition: background .15s, color .15s; }
.cat-list a em { flex: none; font-style: normal; font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--light); border-radius: 50px; padding: .1rem .55rem; }
.cat-list a:hover { background: var(--light); color: var(--brand); }
.cat-list a.active { background: var(--brand); color: #fff; }
.cat-list a.active em { background: rgba(255,255,255,.2); color: #fff; }
@media (max-width: 991.98px) {
  .cat-panel { position: static; padding: .8rem; }
  .cat-panel-title { display: none; }
  .cat-list { flex-direction: row; overflow-x: auto; gap: .4rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cat-list::-webkit-scrollbar { display: none; }
  .cat-list a { white-space: nowrap; flex: none; border: 1px solid #e6ecf5; }
}
.cat-help { margin-top: 1.2rem; border-radius: var(--radius-card); padding: 1.6rem; color: #fff; background: linear-gradient(150deg, var(--brand-dark), var(--brand)); }
.cat-help i { font-size: 2rem; }
.cat-help h3 { font-size: 1.1rem; font-weight: 700; margin: .6rem 0 .4rem; }
.cat-help p { font-size: .9rem; opacity: .85; }
.cat-help .btn { background: #fff; color: var(--brand-dark); border-color: #fff; }
.cat-intro { background: #fff; border-radius: var(--radius-card); padding: 1.2rem 1.5rem; margin-bottom: 1.2rem; border-left: 4px solid var(--brand); }
.cat-intro p:last-child { margin: 0; }
.results-bar { margin-bottom: 1.1rem; color: var(--muted); font-size: .95rem; }
.results-bar strong { color: var(--text); }
#catalogResults.loading { opacity: .45; transition: opacity .15s; pointer-events: none; }
.empty-state { text-align: center; background: #fff; border-radius: var(--radius-card); padding: 4rem 1.5rem; }
.empty-state i { font-size: 3rem; color: var(--brand); }
.empty-state h3 { margin-top: 1rem; font-weight: 700; }
.empty-state p { color: var(--muted); }
.pagination .page-link { border: 0; margin: 0 .2rem; border-radius: .7rem !important; color: var(--text); font-weight: 600; min-width: 2.6rem; text-align: center; background: #fff; }
.pagination .page-item.active .page-link { background: var(--brand); color: #fff; }
.pagination .page-item.disabled .page-link { background: transparent; }

/* ---------- Contacto ---------- */
.office-list { display: grid; gap: 1rem; margin-top: 1rem; justify-items: start; }
.office { display: flex; gap: 1rem; padding: 1.3rem; border-radius: var(--radius-card); background: var(--light); width: 100%; }
.bg-sec-light .office { background: #fff; }
.bg-sec-dark .office, .bg-sec-primary .office { background: rgba(255,255,255,.07); }
.office-icon { flex: none; width: 3rem; height: 3rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.25rem; }
.office h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }
.office p { margin: 0; color: var(--muted); font-size: .95rem; }
.bg-sec-dark .office p, .bg-sec-primary .office p { color: rgba(255,255,255,.8); }
.contact-card { background: #fff; color: var(--text); border-radius: calc(var(--radius-card) * 1.3); padding: 2.4rem; box-shadow: 0 40px 80px -50px rgba(0, 40, 110, .55); border: 1px solid #e6ecf5; }
.contact-card-title { font-weight: 800; font-size: 1.4rem; margin-bottom: 1.4rem; }
.contact-card .form-label { font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.form-control, .form-select { border-radius: .8rem; padding: .72rem 1rem; border-color: #dbe3ef; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(var(--brand-rgb), .16); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 575.98px) { .contact-card { padding: 1.5rem; } }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: rgba(255,255,255,.75); padding: 5rem 0 0; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -200px; top: -260px; border: 2px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); }
.footer-logo { max-width: 240px; height: auto; }
.footer-tagline { font-size: .97rem; max-width: 340px; }
.site-footer h6 { color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .04em; margin-bottom: 1.1rem; text-transform: uppercase; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a, .footer-bottom a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-links a:hover, .footer-bottom a:hover { color: #fff; }
.footer-office { font-size: .93rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; transition: background .2s; }
.footer-social a:hover { background: var(--brand); }
.footer-bottom { margin-top: 3.5rem; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .88rem; position: relative; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; bottom: 22px; z-index: 1030; display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.wa-right { right: 22px; flex-direction: row-reverse; }
.wa-left { left: 22px; }
.wa-float i { width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .8); transition: transform .2s ease; animation: wa-pulse 2.8s infinite; }
.wa-float:hover i { transform: scale(1.08); }
.wa-label { background: #fff; color: #1b2b3a; font-weight: 600; font-size: .88rem; padding: .5rem .9rem; border-radius: 50px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); white-space: nowrap; }
@media (max-width: 575.98px) { .wa-label { display: none; } .wa-float i { width: 54px; height: 54px; font-size: 1.7rem; } }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
