:root{
  --atim-bg:#061826;--atim-bg2:#09263a;--atim-panel:rgba(8,38,56,.82);--atim-panel2:rgba(7,31,47,.72);
  --atim-cyan:#11bfd7;--atim-cyan2:#08a5c8;--atim-text:#f8fbff;--atim-muted:#b9d2df;--atim-line:rgba(159,231,255,.18);
  --atim-white:#fff;--shadow:0 24px 70px rgba(0,0,0,.35);--radius:22px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body.catalogo-body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--atim-text);background:radial-gradient(circle at 20% 0%,#0d4056 0%,#061826 34%,#04111d 100%);min-height:100vh}.page-bg{position:fixed;inset:0;z-index:-2;background:url('../img/catalogo/quirofano_bg.jpg') center/cover no-repeat;filter:saturate(1.05)}.page-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,12,22,.92),rgba(4,23,36,.76),rgba(3,13,24,.88)),linear-gradient(180deg,rgba(2,12,22,.55),rgba(3,13,24,.95));z-index:1}.topbar{position:fixed;top:0;left:0;right:0;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:19px 6vw;background:rgba(2,12,22,.68);backdrop-filter:blur(18px);border-bottom:1px solid var(--atim-line)}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none}.brand img{height:48px;max-width:170px;object-fit:contain}.brand-mark{width:45px;height:45px;border-radius:14px;background:linear-gradient(135deg,var(--atim-cyan),#1573c7);display:grid;place-items:center;font-weight:900}.brand strong{font-size:20px;letter-spacing:.08em}.brand span{display:block;font-size:11px;color:#bdf5ff;letter-spacing:.18em}.nav{display:flex;align-items:center;gap:23px}.nav a{color:rgba(255,255,255,.86);font-size:14px;text-decoration:none;font-weight:700}.nav a:hover{color:#fff}.nav .ops{padding:12px 18px;border-radius:12px;background:linear-gradient(135deg,var(--atim-cyan2),#1396b8);color:#fff;font-weight:900;box-shadow:0 16px 35px rgba(17,191,215,.25)}.hero{min-height:100vh;display:grid;align-items:center;position:relative;overflow:hidden;background:url('../img/catalogo/quirofano_bg.jpg') center/cover no-repeat}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,12,22,.86) 0%,rgba(3,22,35,.66) 48%,rgba(2,12,22,.86) 100%),linear-gradient(180deg,rgba(0,0,0,.28),rgba(0,0,0,.25));}.hero:after{content:"";position:absolute;inset:auto 5vw 42px 5vw;height:124px;border:1px solid var(--atim-line);background:rgba(4,18,31,.78);backdrop-filter:blur(18px);border-radius:32px;box-shadow:var(--shadow)}.hero-content{position:relative;z-index:2;width:min(1120px,88vw);margin:0 auto;padding-top:70px;color:#fff}.eyebrow{display:inline-flex;align-items:center;padding:9px 15px;border-radius:999px;background:rgba(17,191,215,.14);border:1px solid rgba(126,231,255,.32);color:#bdf5ff;font-weight:900;font-size:12px;letter-spacing:.12em}.hero h1{font-size:clamp(44px,6.5vw,82px);line-height:.98;margin:24px 0 20px;max-width:760px;letter-spacing:-.055em}.cyan{color:var(--atim-cyan)}.hero p{font-size:clamp(18px,1.8vw,22px);line-height:1.55;max-width:710px;color:#d9edf7;margin:0 0 34px}.hero-actions{display:flex;gap:14px;flex-wrap:wrap}.btn-hero{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:15px 22px;border-radius:13px;text-decoration:none;font-weight:900;border:1px solid transparent}.btn-primary-public{background:linear-gradient(135deg,var(--atim-cyan),#149cc7);color:#fff;box-shadow:0 18px 40px rgba(17,191,215,.26)}.btn-light-public{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.55);color:#fff}.hero-features{position:absolute;z-index:3;left:7vw;right:7vw;bottom:62px;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.hero-feature{display:flex;gap:14px;align-items:flex-start}.hero-feature .ico{color:var(--atim-cyan);font-size:34px;line-height:1}.hero-feature h3{font-size:16px;margin:0 0 5px}.hero-feature p{font-size:13px;margin:0;color:#c6d9e3;line-height:1.4}.section{padding:92px 6vw;position:relative}.section-inner{width:min(1210px,100%);margin:auto}.section-head{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:30px}.section h1,.section h2{font-size:clamp(34px,4vw,56px);line-height:1;margin:0;letter-spacing:-.045em}.section .lead{color:var(--atim-muted);font-size:18px;max-width:720px;line-height:1.65}.panel{background:var(--atim-panel2);border:1px solid var(--atim-line);border-radius:var(--radius);box-shadow:var(--shadow);backdrop-filter:blur(15px)}.categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.cat-card{padding:24px;border:1px solid var(--atim-line);border-radius:24px;background:rgba(8,40,58,.72);text-decoration:none;color:var(--atim-text);box-shadow:0 18px 55px rgba(0,0,0,.22);transition:.25s;overflow:hidden}.cat-card:hover{transform:translateY(-4px);border-color:rgba(17,191,215,.7)}.cat-card img{width:100%;height:135px;object-fit:cover;border-radius:18px;background:#e9f7fa;margin-bottom:16px}.cat-card h3{margin:0 0 6px;font-size:20px}.meta{color:var(--atim-muted);line-height:1.5;margin-bottom:18px}.catalog-shell{padding-top:110px;min-height:100vh}.catalog-layout{display:grid;grid-template-columns:260px 1fr;gap:22px}.sidebar-filter{padding:22px;align-self:start;position:sticky;top:108px}.sidebar-filter h3{margin:0 0 18px}.side-link{display:block;padding:11px 13px;border-radius:11px;color:#d7edf7;text-decoration:none;font-weight:700;margin-bottom:4px}.side-link:hover,.side-link.active{background:rgba(17,191,215,.16);color:#fff}.filter-select{width:100%;padding:12px;border-radius:11px;background:rgba(255,255,255,.06);color:#fff;border:1px solid var(--atim-line);margin:8px 0 14px}.filter-btn{display:block;text-align:center;padding:12px;border-radius:11px;background:linear-gradient(135deg,var(--atim-cyan),#149cc7);color:#fff;font-weight:900;text-decoration:none}.catalog-top{padding:22px;margin-bottom:18px}.catalog-tools{display:flex;gap:12px;align-items:center}.search-input{flex:1;padding:13px 15px;border-radius:12px;border:1px solid var(--atim-line);background:rgba(255,255,255,.08);color:#fff}.search-input::placeholder{color:#9fb9c7}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.home-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.product-card{border:1px solid var(--atim-line);border-radius:18px;background:rgba(255,255,255,.94);color:#082033;overflow:hidden;box-shadow:0 20px 55px rgba(0,0,0,.25);transition:.25s}.product-card:hover{transform:translateY(-5px)}.product-img{height:170px;background:#f1f5f9;display:block;width:100%;object-fit:cover}.home-grid .product-img{height:220px}.product-body{padding:18px}.badge-public{display:inline-flex;padding:6px 10px;border-radius:999px;background:#e7fbff;color:#037f99;font-weight:900;font-size:11px;margin-bottom:10px}.product-body h3{font-size:18px;margin:0 0 7px;letter-spacing:-.02em}.home-grid .product-body h3{font-size:22px}.card-actions{display:flex;gap:9px;flex-wrap:wrap}.small-btn{padding:10px 12px;border-radius:10px;text-decoration:none;font-weight:900;font-size:13px}.small-btn.primary{background:#062238;color:#fff}.small-btn.ghost{border:1px solid #d7e5ea;color:#062238}.service-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.service{padding:26px;border-radius:22px;background:rgba(8,40,58,.75);border:1px solid var(--atim-line);box-shadow:0 18px 55px rgba(0,0,0,.18)}.service .service-ico{font-size:38px;color:var(--atim-cyan);margin-bottom:15px}.service h3{margin:0 0 10px}.contact-band{border-radius:30px;background:linear-gradient(135deg,rgba(8,38,56,.95),rgba(7,93,116,.9));border:1px solid var(--atim-line);color:#fff;padding:44px;display:flex;justify-content:space-between;gap:24px;align-items:center;box-shadow:var(--shadow)}.footer{padding:34px 6vw;background:#03101b;color:#cbd5e1;border-top:1px solid var(--atim-line)}.footer-inner{width:min(1210px,100%);margin:auto;display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}.detail{padding-top:125px;min-height:100vh}.detail-wrap{width:min(1210px,88vw);margin:auto;display:grid;grid-template-columns:1.1fr .9fr;gap:26px}.detail-photo{border-radius:24px;overflow:hidden;background:#fff;box-shadow:var(--shadow);border:1px solid var(--atim-line)}.detail-photo img{width:100%;height:510px;object-fit:cover;display:block}.thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:12px}.thumbs img{height:74px;border-radius:10px;object-fit:cover;width:100%;border:1px solid var(--atim-line);background:#fff}.detail-info{padding:30px}.detail-info h1{font-size:clamp(32px,4vw,52px);line-height:1;margin:14px 0}.spec-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:18px 0}.spec-list div{padding:12px;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid var(--atim-line);color:#dff6ff}.info-form{margin-top:24px;padding-top:22px;border-top:1px solid var(--atim-line)}.info-form input,.info-form textarea,.info-form select{width:100%;padding:14px 15px;border-radius:12px;border:1px solid var(--atim-line);background:rgba(255,255,255,.08);color:#fff;margin-bottom:12px;font:inherit}.info-form input::placeholder,.info-form textarea::placeholder{color:#9fb9c7}.info-form button{border:0;cursor:pointer;width:100%}.alert-ok{padding:14px 16px;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:14px;color:#166534;margin-bottom:18px}.page-title{padding-top:130px;padding-bottom:36px}.form-grid{display:grid;grid-template-columns:1fr 1.5fr;gap:26px}.form-card{padding:30px}.floating-whatsapp{position:fixed;right:24px;bottom:22px;z-index:60;background:#25d366;color:#fff;border-radius:999px;padding:13px 18px;text-decoration:none;font-weight:900;box-shadow:0 18px 42px rgba(0,0,0,.32)}
@media(max-width:1100px){.grid,.categories{grid-template-columns:repeat(2,1fr)}.service-list{grid-template-columns:repeat(2,1fr)}.catalog-layout{grid-template-columns:1fr}.sidebar-filter{position:relative;top:auto}.hero-features{grid-template-columns:repeat(2,1fr);bottom:38px}.hero:after{height:210px}.detail-wrap,.form-grid{grid-template-columns:1fr}}
@media(max-width:760px){.topbar{padding:14px 18px}.brand img{height:38px}.nav a:not(.ops){display:none}.nav .ops{padding:10px 13px;font-size:12px}.hero{min-height:920px}.hero h1{font-size:45px}.hero-features{left:20px;right:20px;grid-template-columns:1fr}.hero:after{left:12px;right:12px;height:305px;bottom:25px}.section{padding:68px 20px}.section-head,.contact-band{align-items:flex-start;flex-direction:column}.grid,.categories,.service-list{grid-template-columns:1fr}.product-img,.home-grid .product-img{height:210px}.detail-photo img{height:340px}.catalog-top{padding:18px}.catalog-tools{flex-direction:column}.search-input{width:100%}.floating-whatsapp{right:14px;bottom:14px}}

/* ATIM responsive hero fix v1.0 */
@media (max-width:760px){
  .hero{
    min-height:auto;
    display:block;
    overflow:visible;
    padding:0 0 28px;
    background-position:center top;
  }
  .hero:before{
    background:linear-gradient(180deg,rgba(2,12,22,.84) 0%,rgba(3,22,35,.76) 55%,rgba(2,12,22,.94) 100%);
  }
  .hero:after{display:none}
  .hero-content{
    width:100%;
    margin:0;
    padding:150px 22px 24px;
  }
  .eyebrow{
    max-width:100%;
    white-space:normal;
    line-height:1.35;
    font-size:10px;
    letter-spacing:.08em;
  }
  .hero h1{
    font-size:clamp(40px,12vw,56px);
    line-height:1.02;
    margin:20px 0 18px;
    max-width:100%;
    overflow-wrap:anywhere;
  }
  .hero p{
    font-size:19px;
    line-height:1.55;
    margin-bottom:24px;
  }
  .hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
    width:100%;
  }
  .hero-actions .btn-hero{
    width:100%;
    min-height:54px;
    padding:14px 18px;
    text-align:center;
    white-space:normal;
  }
  .hero-features{
    position:relative;
    left:auto;
    right:auto;
    bottom:auto;
    z-index:3;
    display:grid;
    grid-template-columns:1fr;
    gap:0;
    margin:0 16px;
    padding:10px 18px;
    border:1px solid var(--atim-line);
    background:rgba(4,18,31,.86);
    backdrop-filter:blur(16px);
    border-radius:24px;
    box-shadow:var(--shadow);
  }
  .hero-feature{
    padding:17px 0;
    gap:13px;
    border-bottom:1px solid rgba(159,231,255,.12);
  }
  .hero-feature:last-child{border-bottom:0}
  .hero-feature .ico{font-size:29px;flex:0 0 38px}
  .hero-feature h3{font-size:18px;line-height:1.25}
  .hero-feature p{font-size:14px;line-height:1.45;margin:0}
  .floating-whatsapp{
    max-width:calc(100vw - 28px);
    padding:12px 16px;
    font-size:15px;
  }
}

@media (max-width:390px){
  .hero-content{padding-left:16px;padding-right:16px}
  .hero h1{font-size:39px}
  .hero p{font-size:17px}
  .hero-features{margin-left:10px;margin-right:10px}
}


/* ATIM catálogo funcional + galería fullscreen v5.2 */
.product-image-link{display:block;text-decoration:none;overflow:hidden}
.product-image-link .product-img{transition:transform .28s ease}
.product-image-link:hover .product-img{transform:scale(1.035)}
.product-title-link{color:inherit;text-decoration:none}
.product-title-link:hover{color:#087f99}
.category-count{float:right;min-width:24px;text-align:center;padding:1px 7px;border-radius:999px;background:rgba(255,255,255,.08);font-size:11px}
.catalog-order{max-width:210px;margin:0}
.catalog-search-btn{border:0;cursor:pointer;white-space:nowrap}
.catalog-clear-btn{white-space:nowrap}
.catalog-result-note{margin:0 0 15px;color:#cfe8f2}
.catalog-empty{grid-column:1/-1;padding:30px;text-align:center}

.detail-category-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.back-catalog-btn{white-space:nowrap}
.detail-photo{position:relative;cursor:zoom-in}
.detail-photo .gallery-hint{position:absolute;right:14px;bottom:14px;padding:8px 12px;border-radius:999px;background:rgba(3,16,27,.78);color:#fff;font-size:12px;font-weight:900;backdrop-filter:blur(8px)}
.product-thumbs{grid-template-columns:repeat(auto-fit,minmax(78px,1fr))}
.thumb-btn{border:2px solid transparent;border-radius:12px;padding:0;background:transparent;cursor:pointer;overflow:hidden}
.thumb-btn img{height:78px;border-radius:10px;object-fit:cover;width:100%;display:block;background:#fff}
.thumb-btn.active{border-color:var(--atim-cyan)}

.gallery-lock{overflow:hidden}
.fullscreen-gallery{display:none;position:fixed;inset:0;z-index:9999;background:rgba(0,7,13,.97);align-items:center;justify-content:center}
.fullscreen-gallery.open{display:flex}
.fullscreen-gallery-toolbar{position:absolute;left:18px;right:18px;top:16px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#fff}
.gallery-back-btn{border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.10);color:#fff;border-radius:12px;padding:11px 16px;font-weight:900;cursor:pointer}
.fullscreen-gallery-stage{width:calc(100vw - 150px);height:calc(100vh - 105px);display:flex;align-items:center;justify-content:center;margin-top:45px}
.fullscreen-gallery-stage img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}
.gallery-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:54px;height:72px;border:0;border-radius:15px;background:rgba(255,255,255,.10);color:#fff;font-size:52px;line-height:1;cursor:pointer}
.gallery-prev{left:18px}.gallery-next{right:18px}

@media(max-width:760px){
  .catalog-tools{align-items:stretch}
  .catalog-order{max-width:none;width:100%}
  .catalog-search-btn,.catalog-clear-btn{text-align:center;width:100%;box-sizing:border-box}
  .detail-category-row{align-items:flex-start}
  .back-catalog-btn{width:100%;text-align:center}
  .fullscreen-gallery-stage{width:calc(100vw - 24px);height:calc(100vh - 130px)}
  .gallery-nav{top:auto;bottom:18px;width:58px;height:48px;font-size:38px}
  .gallery-prev{left:18px}.gallery-next{right:18px}
  .fullscreen-gallery-toolbar{top:12px}
  .gallery-back-btn{padding:10px 12px}
}

/* Corrección galería ficha */
.detail-photo .gallery-hint{
  border:0;cursor:pointer;font-family:inherit;
}
.gallery-back-btn,
.gallery-back-btn:link,
.gallery-back-btn:visited,
.gallery-back-btn:hover,
.gallery-back-btn:active{
  color:#fff !important;
  text-decoration:none;
}
.fullscreen-gallery.open{
  display:flex !important;
  visibility:visible !important;
  opacity:1 !important;
}

/* Corrección definitiva ficha/galería */
.back-catalog-btn,
.back-catalog-btn:link,
.back-catalog-btn:visited,
.back-catalog-btn:hover,
.back-catalog-btn:active{
  color:#fff !important;
  text-decoration:none !important;
}
.detail-photo{position:relative;z-index:1;cursor:pointer}
.detail-photo img{pointer-events:none}
.detail-photo .gallery-hint{
  pointer-events:auto !important;
  z-index:5 !important;
  color:#fff !important;
}
.fullscreen-gallery{display:none !important;visibility:hidden;opacity:0}
.fullscreen-gallery.open{display:flex !important;visibility:visible !important;opacity:1 !important}


/* ATIM galería definitiva por página - sin dependencia de JavaScript */
.detail-photo.gallery-open-trigger{
    display:block !important;
    position:relative !important;
    text-decoration:none !important;
    cursor:pointer !important;
}
.detail-photo.gallery-open-trigger img{
    pointer-events:none;
}
.detail-photo .gallery-hint{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    position:absolute !important;
    right:14px !important;
    bottom:14px !important;
    z-index:10 !important;
    color:#fff !important;
    background:rgba(2,18,31,.88) !important;
    border:1px solid rgba(255,255,255,.35) !important;
    padding:9px 14px !important;
    border-radius:999px !important;
    font-weight:900 !important;
    pointer-events:none !important;
}
.back-catalog-btn,
.back-catalog-btn:link,
.back-catalog-btn:visited,
.back-catalog-btn:hover,
.back-catalog-btn:active{
    color:#fff !important;
    background:rgba(255,255,255,.10) !important;
    border-color:rgba(255,255,255,.35) !important;
}

.gallery-page-body{
    min-height:100vh;
    background:#020b12;
    overflow:auto;
}
.gallery-page{
    min-height:100vh;
    padding:18px;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
}
.gallery-page-toolbar{
    min-height:54px;
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:16px;
    color:#fff;
    padding:0 4px 14px;
}
.gallery-page-toolbar > span{text-align:right}
.gallery-page-back{
    justify-self:start;
    color:#fff !important;
    text-decoration:none;
    border:1px solid rgba(255,255,255,.35);
    background:rgba(255,255,255,.09);
    padding:10px 14px;
    border-radius:12px;
    font-weight:900;
}
.gallery-page-stage{
    flex:1;
    min-height:calc(100vh - 175px);
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}
.gallery-page-stage > img{
    max-width:calc(100vw - 150px);
    max-height:calc(100vh - 190px);
    width:auto;
    height:auto;
    object-fit:contain;
    border-radius:10px;
}
.gallery-page-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:58px;
    height:78px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.22);
    color:#fff !important;
    text-decoration:none;
    font-size:54px;
    line-height:1;
    z-index:5;
}
.gallery-page-prev{left:12px}
.gallery-page-next{right:12px}
.gallery-page-thumbs{
    display:flex;
    gap:9px;
    justify-content:center;
    overflow-x:auto;
    padding:12px 0 2px;
}
.gallery-page-thumbs a{
    flex:0 0 76px;
    border:2px solid transparent;
    border-radius:10px;
    overflow:hidden;
    opacity:.7;
}
.gallery-page-thumbs a.active{
    border-color:#15bfd7;
    opacity:1;
}
.gallery-page-thumbs img{
    display:block;
    width:76px;
    height:58px;
    object-fit:cover;
}

@media(max-width:760px){
    .gallery-page{padding:10px}
    .gallery-page-toolbar{
        grid-template-columns:1fr auto;
    }
    .gallery-page-toolbar strong{
        display:none;
    }
    .gallery-page-stage{
        min-height:calc(100vh - 145px);
    }
    .gallery-page-stage > img{
        max-width:100%;
        max-height:calc(100vh - 195px);
    }
    .gallery-page-nav{
        top:auto;
        bottom:8px;
        width:52px;
        height:46px;
        font-size:38px;
    }
    .gallery-page-prev{left:10px}
    .gallery-page-next{right:10px}
}


/* Ajuste rutas/miniaturas galería */
.product-thumbs .thumb-btn{
    display:block;
    text-decoration:none;
}
.product-thumbs .thumb-btn img{
    background:#fff;
}


/* ATIM catálogo - tarjetas azul claro profesional */
.product-card{
    background:linear-gradient(180deg,#eaf6fb 0%,#dcecf5 100%) !important;
    border:1px solid rgba(18,77,105,.16) !important;
    box-shadow:0 10px 26px rgba(0,31,48,.16) !important;
    color:#12364a !important;
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}
.product-card:hover{
    transform:translateY(-3px);
    box-shadow:0 16px 34px rgba(0,31,48,.22) !important;
    border-color:rgba(14,128,157,.28) !important;
}
.product-card .product-body{
    background:transparent !important;
}
.product-card h3,
.product-card h3 a,
.product-title-link{
    color:#0b2f44 !important;
    font-weight:800 !important;
}
.product-card .meta{
    color:#4d6f80 !important;
    opacity:1 !important;
}
.product-card .badge-public{
    background:#c7f0f7 !important;
    color:#086f88 !important;
    border:1px solid rgba(8,111,136,.12) !important;
}
.product-card .small-btn.primary{
    background:#0b2f44 !important;
    color:#fff !important;
    border-color:#0b2f44 !important;
}
.product-card .small-btn.primary:hover{
    background:#0e4967 !important;
}
.product-card .small-btn.ghost{
    background:#f3fbfe !important;
    color:#0b2f44 !important;
    border:1px solid rgba(11,47,68,.16) !important;
}
.product-card .small-btn.ghost:hover{
    background:#e5f4f9 !important;
}


/* ATIM catálogo - tarjetas con tono azul oscuro como campos de formulario */
.product-card{
    background:linear-gradient(180deg,#1d3444 0%,#183040 100%) !important;
    border:1px solid rgba(105,164,194,.20) !important;
    box-shadow:0 10px 28px rgba(0,14,24,.28) !important;
    color:#f3fbff !important;
}
.product-card:hover{
    transform:translateY(-3px);
    box-shadow:0 16px 36px rgba(0,14,24,.34) !important;
    border-color:rgba(63,183,220,.34) !important;
}
.product-card .product-body{
    background:transparent !important;
}
.product-card h3,
.product-card h3 a,
.product-title-link{
    color:#ffffff !important;
    font-weight:800 !important;
}
.product-card .meta{
    color:#c7dce7 !important;
    opacity:1 !important;
}
.product-card .badge-public{
    background:#c8f1f7 !important;
    color:#08718a !important;
    border:1px solid rgba(8,113,138,.14) !important;
}
.product-card .small-btn.primary{
    background:#061a28 !important;
    color:#ffffff !important;
    border:1px solid rgba(255,255,255,.10) !important;
}
.product-card .small-btn.primary:hover{
    background:#0b2a3d !important;
}
.product-card .small-btn.ghost{
    background:#2a4353 !important;
    color:#ffffff !important;
    border:1px solid rgba(255,255,255,.12) !important;
}
.product-card .small-btn.ghost:hover{
    background:#355467 !important;
}


/* ATIM pagination for large catalogs */
.catalog-pagination{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin:26px 0 10px;
}
.catalog-pagination a,
.catalog-pagination span{
    min-width:38px;
    height:38px;
    padding:0 11px;
    border-radius:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
}
.catalog-pagination a{
    text-decoration:none;
    color:#eaf8ff;
    background:#173244;
    border:1px solid rgba(255,255,255,.12);
}
.catalog-pagination a:hover,
.catalog-pagination a.active{
    color:#fff;
    background:#0c809c;
    border-color:#21b7d3;
}
.catalog-page-summary{
    text-align:center;
    color:#a9c7d6;
    font-size:13px;
    margin:0 0 25px;
}


/* ATIM buscador instantáneo y filtros dinámicos */
#catalogResults{
    position:relative;
    min-height:180px;
}
#catalogResults.is-loading::before{
    content:"Buscando...";
    position:absolute;
    inset:0;
    z-index:30;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    padding-top:48px;
    color:#fff;
    font-weight:900;
    background:rgba(3,21,32,.62);
    backdrop-filter:blur(2px);
    border-radius:14px;
}
.search-input:focus{
    border-color:#24bdd5 !important;
    box-shadow:0 0 0 3px rgba(36,189,213,.15) !important;
}
.category-count{
    float:right;
    min-width:23px;
    text-align:center;
}


/* Complementos integrados en la ficha y galería del equipo */
.catalog-complements{margin:24px 0 4px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12)}
.catalog-complements h2{margin:0 0 14px;font-size:19px;color:#fff}
.catalog-complements-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.catalog-complement-card{display:flex;gap:10px;align-items:center;min-width:0;padding:9px;border-radius:12px;text-decoration:none;color:#fff;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.11);transition:transform .18s ease,background .18s ease,border-color .18s ease}
.catalog-complement-card:hover{transform:translateY(-2px);background:rgba(35,185,215,.10);border-color:rgba(35,185,215,.38)}
.catalog-complement-card img{width:72px;height:72px;flex:0 0 72px;border-radius:9px;object-fit:cover;background:#0b1f2b}
.catalog-complement-card div{min-width:0}
.catalog-complement-card strong,.catalog-complement-card span{display:block;overflow:hidden;text-overflow:ellipsis}
.catalog-complement-card strong{color:#fff;font-size:14px;line-height:1.25}
.catalog-complement-card span{margin-top:5px;color:#bcd6e2;font-size:12px}
.gallery-current-label{margin:8px auto 12px;text-align:center;color:#fff}
.gallery-current-label strong,.gallery-current-label span{display:block}
.gallery-current-label span{margin-top:4px;color:#a9c7d6;font-size:13px}
@media(max-width:640px){.catalog-complements-grid{grid-template-columns:1fr 1fr}.catalog-complement-card{display:block}.catalog-complement-card img{width:100%;height:112px;margin-bottom:8px}}
@media(max-width:430px){.catalog-complements-grid{grid-template-columns:1fr}.catalog-complement-card{display:flex}.catalog-complement-card img{width:76px;height:76px;margin-bottom:0}}
