/*==================================================
=            JAR MEDICAL - PRODUCTOS
==================================================*/

:root{

    --primary:#1F3471;
    --secondary:#3F5984;
    --light:#8EA0B8;
    --white:#FFFFFF;
    --bg:#F5F8FC;
    --text:#334155;
    --border:#E5EAF2;

}

/* ===== HERO ===== */
.contacto-hero {
    position: relative;
    height: 45vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contacto-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contacto-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31,52,113,.8), rgba(31,52,113,.6));
}

.contacto-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.contacto-hero-content span:first-child {
    letter-spacing: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    opacity: .9;
}

.contacto-hero-content h1 {
    font-size: 50px;
    font-weight: 800;
    margin: 14px 0;
}

.contacto-hero-content p {
    font-size: 17px;
    opacity: .9;
    margin: 0;
}




/*==================================================
=            ESTADÍSTICAS
==================================================*/

.estadisticas-section{

    margin-top:-65px;

    position:relative;

    z-index:20;

}

.estadistica-card{

    background:#FFF;

    border-radius:24px;

    padding:38px 25px;

    text-align:center;

    border:1px solid var(--border);

    transition:.45s;

    box-shadow:0 15px 45px rgba(31,52,113,.08);

    height:100%;

}

.estadistica-card:hover{

    transform:translateY(-10px);

    box-shadow:0 25px 55px rgba(31,52,113,.18);

}

.estadistica-icon{

    width:78px;

    height:78px;

    margin:auto;

    margin-bottom:22px;

    border-radius:22px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:linear-gradient(135deg,var(--primary),var(--secondary));

    color:#FFF;

    font-size:32px;

}

.estadistica-card h3{

    font-size:38px;

    color:var(--primary);

    font-weight:800;

    margin-bottom:6px;

}

.estadistica-card p{

    margin:0;

    color:#64748B;

    font-size:15px;

    font-weight:500;

}




/*==================================================
=            SECTION HEADER
==================================================*/

.section-header{

    text-align:center;

    margin-bottom:70px;

}

.section-tag{

    display:inline-block;

    color:var(--primary);

    font-size:14px;

    letter-spacing:2px;

    font-weight:700;

    text-transform:uppercase;

    margin-bottom:16px;

}

.section-header h2{

    font-size:44px;

    font-weight:800;

    color:var(--primary);

    margin-bottom:18px;

}

.section-header p{

    max-width:720px;

    margin:auto;

    color:#64748B;

    font-size:17px;

    line-height:1.8;

}




/*==================================================
=            RESPONSIVE HERO
==================================================*/

@media(max-width:991px){

.catalogo-header{

    padding:120px 0 90px;

}

.catalogo-title h1{

    font-size:44px;

}

.section-header h2{

    font-size:34px;

}

}

@media(max-width:768px){

.catalogo-header{

    padding:100px 0 70px;

}

.catalogo-title h1{

    font-size:34px;

}

.catalogo-title p{

    font-size:16px;

}

.section-header{

    margin-bottom:45px;

}

.section-header h2{

    font-size:28px;

}

.estadistica-card{

    padding:28px;

}

}




/*==================================================
PRODUCTOS
==================================================*/

.productos-section{

    padding-top:120px;

    padding-bottom:90px;

    background:#f5f8fd;

}

/* CARD */

.producto-card{
    position:relative;
    background:#FFF;
    border-radius:22px;
    overflow:hidden;
    height:100%;
    display:flex;
    flex-direction:column;
    border:1px solid #e8edf5;
    transition:.45s;
    box-shadow:0 12px 35px rgba(0,0,0,.05);
}

.producto-card:hover{
    transform:translateY(-10px);
    box-shadow:0 28px 60px rgba(31,52,113,.16);
}

/*============================
IMAGEN
============================*/

.producto-img{
    position:relative;
    height:270px;
    background:#ffffff;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:35px;
    overflow:hidden;
}

.producto-img::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to bottom,
    transparent 60%,
    rgba(0,0,0,.03));
    pointer-events:none;
}

.producto-img img{
    max-width:100%;
    max-height:190px;
    object-fit:contain;
    transition:.5s;
}

.producto-card:hover .producto-img img{
    transform:scale(1.08);
}

/*============================
CATEGORIA
============================*/

.producto-categoria{
    display:inline-flex;
    align-items:center;
    gap:8px;

    padding:8px 16px;

    border-radius:30px;

    background:#eef3fb;

    color:#1F3471;

    font-size:13px;

    font-weight:700;

    margin-bottom:14px;
}

.producto-categoria i{

    font-size:14px;

}

/*============================
MARCA
============================*/

.producto-marca{

    display:block;

    color:#4c668f;

    font-size:13px;

    text-transform:uppercase;

    font-weight:800;

    letter-spacing:1.3px;

    margin-bottom:10px;

}

/*============================
CONTENIDO
============================*/

.producto-info{

    display:flex;

    flex-direction:column;

    flex:1;

    padding:28px;

}

.producto-info h3{

    font-size:22px;

    color:#1F3471;

    font-weight:800;

    line-height:1.35;

    margin-bottom:14px;

    transition:.3s;

}

.producto-card:hover h3{

    color:#36558d;

}

.producto-info p{

    color:#69778e;

    line-height:1.8;

    font-size:15px;

    flex:1;

    margin-bottom:28px;

}




/*==================================================
BOTÓN DEL PRODUCTO
==================================================*/

.btn-producto{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    width:100%;

    height:52px;

    border-radius:14px;

    text-decoration:none;

    background:linear-gradient(135deg,#1F3471,#3F5984);

    color:#FFF;

    font-weight:700;

    font-size:15px;

    transition:.35s;

}

.btn-producto i{

    transition:.35s;

}

.btn-producto:hover{

    color:#FFF;

    transform:translateY(-3px);

    box-shadow:0 18px 35px rgba(31,52,113,.28);

}

.btn-producto:hover i{

    transform:translateX(6px);

}



/*==================================================
EMPTY PRODUCTOS
==================================================*/

.empty-productos{

    width:100%;

    background:#FFF;

    border-radius:22px;

    padding:90px 30px;

    text-align:center;

    border:1px solid #e7edf5;

    box-shadow:0 12px 35px rgba(0,0,0,.05);

}

.empty-productos i{

    font-size:70px;

    color:#c2cbd9;

    margin-bottom:25px;

}

.empty-productos h4{

    font-size:28px;

    color:#1F3471;

    font-weight:800;

    margin-bottom:15px;

}

.empty-productos p{

    color:#718096;

    max-width:520px;

    margin:auto;

    line-height:1.8;

}



/*==================================================
PAGINACIÓN
==================================================*/

/* ===== PAGINACIÓN MODERNA ===== */
.pagination-productos {
    display: flex;
    justify-content: center;
}

.pagination-productos .pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-productos .page-item {
    display: flex;
}

.pagination-productos .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px !important;
    border: 1.5px solid #eef0f5;
    background: #ffffff;
    color: #1F3471;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .25s ease;
    line-height: 1;
}

.pagination-productos .page-link:hover {
    background: #eef1fa;
    border-color: #c9d3ee;
    color: #1F3471;
    transform: translateY(-2px);
}

/* ===== Página activa ===== */
.pagination-productos .page-item.active .page-link {
    background: linear-gradient(135deg, #1F3471, #3F5984);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 20px -8px rgba(31,52,113,.45);
}

/* ===== Flechas anterior / siguiente ===== */
.pagination-productos .page-item:first-child .page-link,
.pagination-productos .page-item:last-child .page-link {
    background: #f8f9fc;
    font-size: 0; /* oculta el texto "‹" / "›" que Laravel imprime por defecto */
    position: relative;
}

.pagination-productos .page-item:first-child .page-link::before {
    content: "\F284"; /* bi-chevron-left */
    font-family: "bootstrap-icons";
    font-size: 15px;
}

.pagination-productos .page-item:last-child .page-link::before {
    content: "\F285"; /* bi-chevron-right */
    font-family: "bootstrap-icons";
    font-size: 15px;
}

.pagination-productos .page-item:first-child .page-link:hover,
.pagination-productos .page-item:last-child .page-link:hover {
    background: #1F3471;
    color: #ffffff;
}

/* ===== Estado deshabilitado (cuando ya no hay más páginas) ===== */
.pagination-productos .page-item.disabled .page-link {
    background: #f4f6fb;
    color: #c3c8d9;
    border-color: #eef0f5;
    cursor: not-allowed;
    opacity: .6;
}

.pagination-productos .page-item.disabled .page-link:hover {
    transform: none;
    background: #f4f6fb;
    color: #c3c8d9;
}

/* ===== "..." de puntos suspensivos ===== */
.pagination-productos .page-item.disabled span.page-link {
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 14px;
    color: #c3c8d9;
}

.pagination-productos .small.text-muted{
    display:none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 575px) {
    .pagination-productos .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}



/*==================================================
ANIMACIONES
==================================================*/

.producto-card{

    animation:fadeCard .7s ease both;

}

@keyframes fadeCard{

    from{

        opacity:0;

        transform:translateY(35px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}



/*==================================================
RESPONSIVE
==================================================*/

@media(max-width:1200px){

.producto-img{

height:240px;

}

}



@media(max-width:991px){

.productos-section{

padding:70px 0;

}

.producto-info{

padding:22px;

}

.producto-info h3{

font-size:20px;

}

}



@media(max-width:767px){

.productos-section{

padding:55px 0;

}

.producto-card{

border-radius:18px;

}

.producto-img{

height:220px;

padding:25px;

}

.producto-img img{

max-height:160px;

}

.producto-info{

padding:20px;

}

.producto-info h3{

font-size:18px;

}

.producto-info p{

font-size:14px;

}

.btn-producto{

height:48px;

font-size:14px;

}

}



@media(max-width:575px){

.producto-img{

height:200px;

}

.producto-img img{

max-height:145px;

}

.producto-categoria{

font-size:12px;

padding:6px 12px;

}

.producto-marca{

font-size:12px;

}

}




/*==================================================
CATEGORÍAS
==================================================*/

.categorias-filtro-section{

    padding:90px 0 70px;

    background:#fff;

    padding-bottom:70px;

}

/* Header */

.section-header{

    text-align:center;

    max-width:700px;

    margin:0 auto 60px;

}

.section-tag{

    display:inline-block;

    color:#1F3471;

    font-size:13px;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:2px;

    margin-bottom:12px;

}

.section-header h2{

    font-size:38px;

    color:#1F3471;

    font-weight:800;

    margin-bottom:15px;

}

.section-header p{

    color:#6d7b93;

    font-size:17px;

    line-height:1.8;

}

/*==================================================
COLUMNAS
==================================================*/

.col-lg-2dot4{

    flex:0 0 20%;

    max-width:20%;

}

/*==================================================
CARD
==================================================*/

.categoria-card{

    position:relative;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:18px;

    background:#FFF;

    border-radius:22px;

    min-height:180px;

    padding:25px 15px;

    text-decoration:none;

    border:1px solid #e7edf5;

    transition:.40s;

    overflow:hidden;

    box-shadow:0 12px 35px rgba(0,0,0,.05);

}

.categoria-card::before{

    content:"";

    position:absolute;

    top:-80px;

    right:-80px;

    width:170px;

    height:170px;

    border-radius:50%;

    background:rgba(31,52,113,.04);

    transition:.45s;

}

.categoria-card:hover{

    transform:translateY(-10px);

    border-color:#1F3471;

    box-shadow:0 30px 60px rgba(31,52,113,.15);

}

.categoria-card:hover::before{

    transform:scale(1.3);

}




/*==================================================
ICONO
==================================================*/

.categoria-icon{

    width:75px;

    height:75px;

    border-radius:22px;

    background:#f4f7fc;

    display:flex;

     margin-bottom:18px;

    align-items:center;

    justify-content:center;

    transition:.4s;

}

.categoria-icon img{

    width:40px;

    height:40px;

    object-fit:contain;

    transition:.4s;

}

.categoria-icon i{

    font-size:38px;

    color:#1F3471;

}

.categoria-card:hover .categoria-icon{

    background:#1F3471;

}

.categoria-card:hover .categoria-icon img{

    transform:scale(1.12);

    filter:brightness(0) invert(1);

}

.categoria-card:hover .categoria-icon i{

    color:#FFF;

}




/*==================================================
TÍTULO
==================================================*/

.categoria-title{

    color:#1F3471;

    text-align:center;

    font-size:18px;

    font-weight:700;

    line-height:1.3;

    transition:.35s;

}

.categoria-card:hover .categoria-title{

    color:#36558d;

}

.categoria-card:focus-visible{

    outline:3px solid rgba(31,52,113,.35);

    outline-offset:4px;

}




/*==================================================
ACTIVA
==================================================*/

.categoria-activa{

    background:linear-gradient(135deg,#1F3471,#3F5984);

    border:none;

}

.categoria-activa .categoria-title{

    color:#FFF;

}

.categoria-activa .categoria-icon{

    background:rgba(255,255,255,.15);

}

.categoria-activa .categoria-icon i{

    color:#FFF;

}

.categoria-activa .categoria-icon img{

    filter:brightness(0) invert(1);

}

.categoria-activa:hover .categoria-title{

    color:#FFF;

}

.categoria-check{

    position:absolute;

    top:12px;

    right:12px;

    z-index:2;

    width:28px;

    height:28px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:#FFF;

    color:#1F3471;

    box-shadow:0 5px 14px rgba(15,23,42,.18);

}

.categoria-card-compacta{

    min-height:135px;

    gap:10px;

    padding:18px 12px;

}

.categoria-card-compacta .categoria-icon{

    width:58px;

    height:58px;

    margin-bottom:4px;

    border-radius:18px;

}

.categoria-card-compacta .categoria-icon img{

    width:34px;

    height:34px;

}

.categoria-card-compacta .categoria-icon i{

    font-size:29px;

}

.categoria-card-compacta .categoria-title{

    font-size:15px;

}

.empty-productos-btn{

    display:inline-flex;

    margin-top:24px;

}




/*==================================================
RESPONSIVE
==================================================*/

@media(max-width:1200px){

.col-lg-2dot4{

flex:0 0 33.333%;

max-width:33.333%;

}

}

@media(max-width:768px){

.col-lg-2dot4{

flex:0 0 50%;

max-width:50%;

}

.categoria-card{

min-height:180px;

padding:25px;

}

.categoria-card-compacta{

min-height:125px;

padding:16px 10px;

}

.categoria-icon{

width:72px;

height:72px;

}

.categoria-icon img{

width:42px;

height:42px;

}

.section-header h2{

font-size:30px;

}

}

@media(max-width:480px){

.col-lg-2dot4{

flex:0 0 100%;

max-width:100%;

}

}




.categorias-grid{

    display:grid;

    grid-template-columns:repeat(6,1fr);

    gap:18px;

    margin-top:55px;

}

@media(max-width:1200px){

.categorias-grid{

grid-template-columns:repeat(3,1fr);

}

}

@media(max-width:768px){

.categorias-grid{

grid-template-columns:repeat(2,1fr);

gap:20px;

}

}

@media(max-width:500px){

.categorias-grid{

grid-template-columns:repeat(2,minmax(0,1fr));

gap:12px;

}

.categoria-card-compacta .categoria-title{

font-size:14px;

}

}

/*==================================================
DETALLE DE PRODUCTO
==================================================*/

.producto-detalle-hero{
    padding:150px 0 90px;
    background:linear-gradient(180deg,#eef3fb 0%,#f8faff 100%);
}

.producto-detalle-regreso{
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-bottom:28px;
    color:#1F3471;
    font-weight:700;
    text-decoration:none;
}

.producto-detalle-card{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    overflow:hidden;
    background:#FFF;
    border:1px solid #e7edf5;
    border-radius:28px;
    box-shadow:0 24px 60px rgba(31,52,113,.12);
}

.producto-detalle-imagen{
    min-height:520px;
    padding:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f5f8fd;
}

.producto-detalle-imagen img{
    width:100%;
    max-width:460px;
    max-height:430px;
    object-fit:contain;
}

.producto-detalle-contenido{
    padding:64px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
}

.producto-detalle-categoria{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:16px;
    color:#3F5984;
    font-size:14px;
    font-weight:700;
}

.producto-detalle-marca{
    color:#64748B;
    font-size:15px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1.5px;
}

.producto-detalle-contenido h1{
    margin:12px 0 24px;
    color:#1F3471;
    font-size:44px;
    font-weight:800;
    line-height:1.15;
}

.producto-detalle-contenido p{
    margin-bottom:32px;
    color:#64748B;
    font-size:17px;
    line-height:1.85;
}

.productos-relacionados-section{
    padding:90px 0;
    background:#FFF;
}

@media(max-width:991px){
    .producto-detalle-card{
        grid-template-columns:1fr;
    }

    .producto-detalle-imagen{
        min-height:380px;
    }

    .producto-detalle-contenido{
        padding:44px;
    }
}

@media(max-width:576px){
    .producto-detalle-hero{
        padding:120px 0 60px;
    }

    .producto-detalle-card{
        border-radius:20px;
    }

    .producto-detalle-imagen{
        min-height:280px;
        padding:28px;
    }

    .producto-detalle-contenido{
        padding:30px 24px;
    }

    .producto-detalle-contenido h1{
        font-size:32px;
    }
}





/*==================================================
MARCA HERO
==================================================*/

.marca-hero{

    position:relative;

    min-height:420px;

    display:flex;

    align-items:center;

    overflow:hidden;

}

.marca-hero img{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

}

.marca-hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(135deg,
    rgba(31,52,113,.92),
    rgba(63,89,132,.82));

}

.marca-content{

    position:relative;

    z-index:2;

    color:#FFF;

}

.marca-content span{

    display:inline-block;

    letter-spacing:3px;

    font-size:13px;

    font-weight:700;

    text-transform:uppercase;

    margin-bottom:18px;

}

.marca-content h1{

    font-size:58px;

    font-weight:800;

    margin-bottom:18px;

}

.marca-content p{

    font-size:18px;

    max-width:700px;

    opacity:.95;

}



/*==================================================
BREADCRUMB
==================================================*/

.breadcrumb{

    background:#FFF;

}

.breadcrumb-item a{

    color:#3F5984;

    text-decoration:none;

    font-weight:600;

}

.breadcrumb-item.active{

    color:#1F3471;

    font-weight:700;

}



/*==================================================
RESUMEN
==================================================*/

.marca-total{

    background:#FFF;

    padding:35px;

    border-radius:20px;

    box-shadow:0 15px 40px rgba(0,0,0,.06);

    border:1px solid #edf1f8;

}

.marca-total h2{

    color:#1F3471;

    font-size:48px;

    font-weight:800;

    margin:0;

}

.marca-total span{

    color:#6b7688;

    font-size:15px;

}



/*==================================================
SOCIOS
==================================================*/

.socio-card{

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;

    height:210px;

    border-radius:22px;

    background:#FFF;

    overflow:hidden;

    text-decoration:none;

    border:1px solid #edf0f6;

    transition:.45s;

    box-shadow:0 12px 35px rgba(0,0,0,.05);

}

.socio-card:hover{

    transform:translateY(-10px);

    box-shadow:0 25px 60px rgba(31,52,113,.18);

}

.socio-logo{

    width:100%;

    height:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:40px;

    transition:.4s;

}

.socio-logo img{

    max-width:170px;

    max-height:90px;

    object-fit:contain;

    transition:.4s;

}

.socio-card:hover .socio-logo img{

    transform:scale(1.08);

}



/*==================================================
OVERLAY
==================================================*/

.socio-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
    135deg,
    rgba(31,52,113,.96),
    rgba(63,89,132,.93));

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    opacity:0;

    transition:.35s;

}

.socio-card:hover .socio-overlay{

    opacity:1;

}

.socio-overlay h5{

    color:#FFF;

    font-size:23px;

    font-weight:800;

    margin-bottom:12px;

}

.socio-overlay span{

    color:#FFF;

    display:flex;

    align-items:center;

    gap:8px;

    font-size:15px;

    font-weight:600;

}

.socio-overlay i{

    font-size:18px;

}



/*==================================================
BOTÓN REGRESAR
==================================================*/

.btn-volver{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:14px 28px;

    border-radius:50px;

    background:#1F3471;

    color:#FFF;

    text-decoration:none;

    transition:.35s;

}

.btn-volver:hover{

    background:#3F5984;

    color:#FFF;

    transform:translateY(-3px);

}



/*==================================================
RESPONSIVE
==================================================*/

@media(max-width:992px){

.marca-content h1{

font-size:42px;

}

.marca-total{

margin-top:35px;

text-align:center;

}

}



@media(max-width:768px){

.socio-card{

height:170px;

}

.socio-logo{

padding:25px;

}

.socio-logo img{

max-width:130px;

}

.marca-content h1{

font-size:34px;

}

}



@media(max-width:576px){

.socio-card{

height:150px;

}

.socio-overlay h5{

font-size:18px;

}

}
