:root {
    --color-primary: #e61059;
    ;
    --color-secondary: #06333f;
}

a,
.navmenu a {
    transition: none;
}

.bg-dark {
    background-color: var(--color-secondary) !important;
}

.texto1 {
    color: #111;
    font-size: 37px;
    padding: 0 15%;
    font-weight: normal;
}

.texto1 .negrita {
    display: inline;
    font-weight: bold;
}

.menu-mobile a:hover,
a.active {
    color: var(--color-primary) !important;
}

.menu-mobile a.hover-none:hover {
    border-bottom: 0 !important;
}

.navmenu a {
    font-size: 0.75rem !important;
}

.slide-title {
    color: #fff !important;
    font-weight: bold;
    font-size: 50px;
}

.slide-subtitle {
    color: #fff !important;
    font-weight: bold;
    font-size: 30px;
}

.slider-title {
    color: #fff !important;
    font-weight: bold;
    font-size: 30px;
    text-align: left !important;
}

.slider-subtitle {
    color: #fff !important;
    font-size: 24px;
    text-align: left !important;
}

.carousel-caption {
    z-index: 2;
    left: 10% !important;
    top: 30% !important;
    text-align: right !important;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.carousel-caption.video-slider {
    width: 96% !important;
    left: 2% !important;
    top: 80% !important;
}

.btn-primary {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.btn.btn-circle {
    border-radius: 30px;
}

.z-9999 {
    z-index: 9999 !important;
}

header .branding {
    background-color: #fff !important;
    padding: 0;
}

.navmenu span {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 2px;
}

@media (min-width: 1200px) {
    .navmenu .dropdown ul {
        padding: 0;
        border-radius: 0px;
    }
}

.module h3 {
    font-size: 42px;
    color: #fff;
    margin: 0;
    font-weight: 700;
}

.module h4 {
    font-size: 20px;
    color: #fff;
    margin: 0;
    font-weight: 500;
}

.btn-lg {
    padding: .9375rem 2rem .9375rem 2rem;
    letter-spacing: .09375rem;
    font-size: .75rem;
}

.btn-info-daterium:hover {
    border-color: var(--color-secondary) !important;
}

.layout-actualidad-list .layout-actualidad-list__container .layout-actualidad-list__grid .layout-actualidad-list__grid-item .template-actualidad {
    position: relative;
    z-index: 9;
}

.template-actualidad .template-actualidad__card {
    position: relative;
}

.template-actualidad .template-actualidad__card .template-actualidad__figure {
    position: relative;
    z-index: 1;
    margin: 0px;
}

.template-actualidad .template-actualidad__card .template-actualidad__figcaption {
    color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
}

.template-actualidad .template-actualidad__card .template-actualidad__figcaption {
    position: absolute;
    z-index: 5;
    width: 100%;
    bottom: 0px;
    left: 0px;
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-end;
    gap: 10px;
}

.template-actualidad .template-actualidad__card .template-actualidad__card-link {
    position: absolute;
    z-index: 9;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.template-actualidad .template-actualidad__card .template-actualidad__figcaption .template-actualidad__textos {
    width: 100%;
}

.template-actualidad__textos-title,
.template-actualidad__textos-subtitle {
    color: var(--color-secondary);
}

.template-actualidad__textos-title {
    font-size: 36px;
    font-weight: 600;
    margin: 0px 0px 7px 0px;
    line-height: 120%;
}

.template-actualidad__textos-subtitle {
    font-size: 24px;
    font-weight: 500;
    margin: 0px;
    line-height: 120%;
}

.text-break {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.text-break:hover {
    text-overflow: initial;
    white-space: initial;
    overflow: visible;
    cursor: pointer;
}

.titulo-card,
.subtitulo-card {
    font-size: 13px;
}

.btn-outline-primary {
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    letter-spacing: 0.15em;
}

.btn-outline-primary:hover {
    color: #FFF !important;
    border-color: var(--color-primary) !important;
    background: var(--color-primary) !important;
}

address {
    margin: 0px;
    text-align: center;
    font-size: 16px;
    gap: 5px 10px;
    flex-flow: row wrap;
    line-height: 140%;
}

.menu-footer {
    text-align: center;
    list-style: none;
    display: flex;
    flex-flow: row wrap;
    margin: 0px;
    font-size: 16px;
    gap: 5px;
    padding: 0px 10px;
    justify-content: center;
}

.menu-item+.menu-item:before {
    content: '|';
    color: #fff;
    margin-right: 5px;
}

.footer-link {
    color: #FFF;
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer {
    padding-bottom: 0px !important;
}

@media (max-width: 768px) {

    /* Cambia el tamaño máximo según tus necesidades */
    .slide-title {
        font-size: 30px;
    }

    .slider-title {
        font-size: 22px;
    }

    .slider-subtitle {
        font-size: 14px;
    }

    .carousel-caption {
        top: 10% !important;
    }

    .template-actualidad__textos-title {
        font-size: 22px;
    }

    .template-actualidad__textos-subtitle {
        font-size: 14px;
    }

    .btn-lg {
        padding: .5rem 2rem .5rem 2rem;
    }

    .texto1 {
        font-size: 24px;
    }
}

@media (max-width: 1199px) {
    .menu-mobile {
        background-color: #fff !important;
    }

    .menu-mobile a:hover {
        border-bottom: 0 !important;
    }
}

@media (max-width: 1199px) {
    .navmenu .dropdown>.dropdown-active {
        display: block;
        background-color: #fff;
        border-radius: 0;
    }

    .buscador {
        display: inline !important;
    }
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    background-color: #fff;
    transition: all 0.6s ease-out;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader div {
    width: 13px;
    height: 13px;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 1199px) {
    #preloader div:nth-child(1) {
        left: calc(42% + 8px);
        animation: animate-preloader-1 0.6s infinite;
    }

    #preloader div:nth-child(2) {
        left: calc(42% + 8px);
        animation: animate-preloader-2 0.6s infinite;
    }

    #preloader div:nth-child(3) {
        left: calc(42% + 32px);
        animation: animate-preloader-2 0.6s infinite;
    }

    #preloader div:nth-child(4) {
        left: calc(42% + 56px);
        animation: animate-preloader-3 0.6s infinite;
    }
}

.img-hover {
    transition: transform 0.3s ease;
}

.img-hover:hover,
.post-item:hover .img-hover {
    transform: scale(0.95);
}

.breadcrumb-item.active {
    color: #ccc;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #fff;
}

.post-content {
    font-size: 18px;
}

.post-title,
.post-title:hover {
    color: var(--color-secondary);
}

.post-item {
    border: 1px solid var(--color-secondary);
}

.accordion-button:not(.collapsed) {
    background-color: var(--color-secondary) !important;
    color: #FFF !important;
}

.accordion-button:not(.collapsed) a {
    color: #fff !important;
}

.accordion-button.collapsed a {
    color: #111 !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.ref .accordion-button.collapsed::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-item:last-of-type {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.accordion-item:first-of-type {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.accordion-item:first-of-type>.accordion-header .accordion-button {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.ribbon {
    width: 150px;
    height: 150px;
    overflow: hidden;
    position: absolute;
}

.ribbon::before,
.ribbon::after {
    position: absolute;
    z-index: -1;
    content: '';
    display: block;
    border: 5px solid #2980b9;
    border: 5px solid rgba(180, 180, 180, .6);
}

.ribbon span {
    z-index: 1000 !important;
    position: absolute;
    display: block;
    width: 225px;
    padding: 15px 0;
    background-color: #3498db;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
    color: #fff;
    font: 700 18px/1 'Lato', sans-serif;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    text-transform: uppercase;
    text-align: center;
}

/* top left */
.ribbon-top-left {
    top: -10px;
    left: 6px;
}

.ribbon-top-left::before,
.ribbon-top-left::after {
    border-top-color: transparent;
    border-left-color: transparent;
}

.ribbon-top-left::before {
    top: 0;
    right: 0;
}

.ribbon-top-left::after {
    bottom: 0;
    left: 0;
}

.ribbon-top-left span {
    right: -25px;
    top: 30px;
    transform: rotate(-45deg);
}

/* top right */
.ribbon-top-right {
    top: -10px;
    right: 6px;
}

.ribbon-top-right::before,
.ribbon-top-right::after {
    border-top-color: transparent;
    border-right-color: transparent;
}

.ribbon-top-right::before {
    top: 0;
    left: 0;
}

.ribbon-top-right::after {
    bottom: 0;
    right: 0;
}

.ribbon-top-right span {
    left: -25px;
    top: 30px;
    transform: rotate(45deg);
}

/* bottom left */
.ribbon-bottom-left {
    bottom: 11px;
    left: 6px;
}

.ribbon-bottom-left::before,
.ribbon-bottom-left::after {
    border-bottom-color: transparent;
    border-left-color: transparent;
}

.ribbon-bottom-left::before {
    bottom: 0;
    right: 0;
}

.ribbon-bottom-left::after {
    top: 0;
    left: 0;
}

.ribbon-bottom-left span {
    right: -25px;
    bottom: 30px;
    transform: rotate(225deg);
}

/* bottom right */
.ribbon-bottom-right {
    bottom: 11px;
    right: 6px;
}

.ribbon-bottom-right::before,
.ribbon-bottom-right::after {
    border-bottom-color: transparent;
    border-right-color: transparent;
}

.ribbon-bottom-right::before {
    bottom: 0;
    left: 0;
}

.ribbon-bottom-right::after {
    top: 0;
    right: 0;
}

.ribbon-bottom-right span {
    left: -25px;
    bottom: 30px;
    transform: rotate(-225deg);
}

.ribbon-obsoleto span {
    background-color: rgba(255, 0, 0, .7);
}

.ribbon-novedad span {
    background-color: rgba(0, 0, 255, .7);
}

.ribbon-proximamente span {
    background-color: rgba(255, 165, 0, .7);
    font: 700 16px 'Lato', sans-serif;
}

.ribbon-promo {
    position: absolute;
    top: -10px;
    right: 6px;
    z-index: 999;
}

.z-index-9999 {
    z-index: 9999;
}

.z-index-1 {
    z-index: 1;
}

.cursor-pointer {
    cursor: pointer;
}

ol,
ul {
    padding-left: 0rem;
    list-style: none;
}

input:focus,
select:focus {
    box-shadow: none !important;
}

input,
select,
.form-control,
.form-select {
    border: 1px solid #111;
}

.text-primary {
    color: var(--color-primary) !important;
}

.border-primary {
    border-color: var(--color-primary) !important;
}

.fs-16 {
    font-size: 16px;
}

.fs-18 {
    font-size: 18px;
}

.ref .accordion-button:not(.collapsed) {
    color: #FFF;
    background-color: var(--color-primary);
}

.ref .accordion-button.collapsed {
    color: #FFF;
    background-color: var(--color-secondary);
}

.accordion-item:last-of-type>.accordion-header .accordion-button.collapsed {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.pagination {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-font-size: 1rem;
    --bs-pagination-color: var(--color-secondary);
    --bs-pagination-bg: var(--bs-body-bg);
    --bs-pagination-border-color: var(--color-secondary);
    --bs-pagination-hover-color: var(--color-secondary);
    --bs-pagination-hover-bg: var(--bs-tertiary-bg);
    --bs-pagination-hover-border-color: var(--color-secondary);
    --bs-pagination-focus-color: var(--color-secondary);
    --bs-pagination-focus-bg: var(--bs-secondary-bg);
    --bs-pagination-focus-box-shadow: 0;
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--color-secondary);
    --bs-pagination-active-border-color: var(--color-secondary);
    --bs-pagination-disabled-color: var(--bs-secondary-color);
    --bs-pagination-disabled-bg: var(--bs-secondary-bg);
    --bs-pagination-disabled-border-color: var(--color-secondary);
    --bs-pagination-border-radius: 2rem;
}

.active-nav-link {
    color: #fff !important;
    background-color: var(--color-primary) !important;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
    background-color: var(--color-secondary);
}

.bi-menu::before {
    font-weight: bold !important;
}

.menu-icon {
    font-size: 15px;
}

.borde {
    border: 1px solid var(--color-secondary);
}

.altura50 {
    height: 50vh !important;
    min-height: 50vh;
    margin-top: 0px;
}

.bg-image-mobile {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.h2 {
    font-size: 30px;
}

.text-h2 {
    font-size: 2.75rem;
}

@media (min-width: 1200px) {

    .navmenu a,
    .navmenu a:focus {
        padding: 18px;
    }
}

@media (max-width: 1199px) {
    .h2 {
        font-size: 20px;
    }

    .bg-image-mobile {
        background-position: bottom;
    }

    .text-h2 {
        font-size: 1.5rem;
    }

    .text-h5 {
        font-size: 0.75rem;
    }

    .card-title {
        font-size: 0.75rem;
    }

    .card-text {
        font-size: 0.6rem;
    }

    .altura50 {
        margin-top: -60px;
        height: 35vh !important;
        min-height: 35vh;
    }

    .instagram-item {

        height: 400px !important;

    }

}

.dataTables_filter {
    display: none !important;
}

.bg-image {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.bg-image-bottom {
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

.about ul i {
    font-size: 20px;
}

.font-size-7 {
    font-size: 7px !important;
}

.font-size-16 {
    font-size: 16px !important;
}

.font-size-18 {
    font-size: 18px !important;
}

.font-size-20 {
    font-size: 20px !important;
}

.font-size-24 {
    font-size: 24px !important;
}

.font-size-32 {
    font-size: 32px !important;
}

.text-gris {
    color: #bdbdbd !important;
}

.text-gris-2 {
    color: #666 !important;
}

.enlace:hover {
    color: var(--color-secondary) !important;
}

.enlace-primary:hover {
    color: var(--color-primary) !important;
}

.list-style-circle {
    padding-left: 15px;
    list-style: circle !important
}

.contact .info-item i {
    color: var(--color-secondary);
    background: color-mix(in srgb, #111, transparent 92%);
}

.contact .info-item:hover i {
    color: #fff;
    background: var(--color-primary);
}

.navmenu .dropdown ul {
    overflow: hidden;
}

.navmenu .dropdown ul li {
    min-width: 0;
}

.navmenu .dropdown ul {
    left: 0;
}

@media (max-width: 1400px) {
    .container-menu {
        max-width: 1400px !important;
    }

}

.header .logo-menu {
    max-width: 300px;
}

@media (max-width: 1300px) {
    .container-menu {
        max-width: 1300px !important;
    }

    .header .logo-menu {
        max-width: 200px;
    }
}

.header .logo img {
    max-height: 90px;
}

.btn-video {
    transition: transform 0.3s ease;
}

.btn-video:hover {
    transform: scale(1.5);

}

@media (max-width: 1199px) {

    .navmenu a i,
    .navmenu a:focus i {
        color: #fff;
        background-color: var(--color-primary) !important;
    }

    .navmenu .active i,
    .navmenu .active:focus i {
        background-color: var(--color-primary) !important;
    }

    .header .logo img {
        max-height: 60px;
    }

    .titulo-index {
        font-size: 1.75rem !important;
    }

    .texto1 {
        padding: 0;
    }
}

.background-image {
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.form-control:focus {
    border-color: var(--color-secondary);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-primary);
}

.list-style-decimal {
    list-style: decimal;
}

.btn-lg {
    padding: .9375rem 2rem .9375rem 2rem;
    letter-spacing: .09375rem;
    font-size: .75rem;
}

.bg-gris {
    background-color: #ececee !important;
}

.link {
    color: #fff !important;
}

.link:hover {
    color: var(--color-primary) !important;
}

.etiqueta {
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-primary);
    clear: both;
    color: var(--color-primary);
    font-size: 30px;
    font-weight: bold;
    text-transform: uppercase;
}

.titulo {
    display: block;
    position: relative;
    overflow: hidden;
    clear: both;
    font-size: 33px;
    color: #000;
    margin-top: 20px;
    text-transform: uppercase;
    font-weight: lighter;
    line-height: 1em;
    word-wrap: break-word;
}

.anyo {
    display: block;
    position: relative;
    overflow: hidden;
    font-size: 60px;
    color: #000;
    font-weight: bold;
    margin-top: 5px;
    line-height: 1em;
}

.formato-pdf {
    display: block;
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-top: 30px;
}

.icono {
    display: inline-block;
    position: relative;
    overflow: hidden;
    background: #fff url('../img/ico-pdf.png') no-repeat;
    background-size: 100%;
    width: 51px;
    height: 49px;
}

.info-index i {
    font-size: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    transition: .3s ease-in-out;
    margin-right: 5px;
}

.video-container {
    position: relative;
    padding-bottom: 50%;
    height: 0;
    margin: 0;
    z-index: 1;
}

.iframe_video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.logo img {
    max-height: 90px;
}

.instagram-item {
    background-size: cover;
    background-position: center;
    height: 500px;
    position: relative;
    background-repeat: no-repeat;
}

.icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.item-daterium {
    min-height: 100px;
    max-height: 100px;
    overflow: hidden;
    word-wrap: break-word;
}

.list-style-disc {
    list-style-type: disc !important;
}

.list-style-decimal {
    list-style-type: decimal !important;
}

.hover-zoom {
    transition: transform .3s;
}

.hover-zoom:hover {
    transform: scale(1.1);
}

.fs-price {
    font-size: 1.1rem;
    font-weight: bold;
}

.fs-iva {
    font-size: 0.8rem;
    font-weight: normal !important;
}

.bg-orange {
    background-color: orangered !important;
}

.separator {
    height: 3px;
    border-top: 1px solid #ebebeb;
    position: relative;
    top: 1px;
    max-width: 10%;
    border-color: var(--color-primary) !important;
    border-top-width: 3px;
    width: 110px;
    margin: 30px;
}

@media (max-width: 1199px) {
    .separator {
        max-width: 40%;
    }
}

.bg-image-footer {
    background-size: cover;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0);
    background-attachment: scroll;
    width: 100%;
}

.bg-secondary {
    background-color: var(--color-secondary) !important;
}

#mapa-sat {
    height: 600px;
    width: 100%;
}

.p-agrefema {
    margin: 0 0 24px;
    font-weight: 300;
    line-height: 22px;
    font-size: 16px;
    color: #737373;
}

.p-columna-izq {
    margin: 0 0 24px;
    font-weight: 300;
    line-height: 22px;
    font-size: 16px;
    color: #ffffff;
}

.p-objetivos-contenido {
    margin: 0 0 24px;
    font-weight: 300;
    line-height: 22px;
    font-size: 14px;
    color: #737373;
}

.h1-agrefema {
    font-weight: 300;
    line-height: 1.25em;
    font-size: 36px;
    color: var(--color-secondary);
}

.h2-agrefema {
    color: var(--color-primary);
    margin: 0 0 24px;
    font-weight: 300;
    line-height: 1.25em;
    font-size: 36px;
    margin-top: 5px;
    margin-bottom: 50px;
}

.h3-agrefema {
    font-weight: 300;
    line-height: 1.25em;
    font-size: 25px;
    color: var(--color-secondary);
}

.h4-agrefema {
    font-weight: 300;
    line-height: 1.25em;
    font-size: 35px;
    color: var(--color-secondary);
}

.h5-agrefema {

    line-height: 24px;
    color: var(--color-secondary);

}

.separacion-icono {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}


.icono-imagen {
    width: 85px;
    height: 85px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    position: relative;
    /*para que el after siga*/
    flex-shrink: 0;
}

.icono-imagen::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 40px;
    border-left: 2px dashed var(--color-primary);
    z-index: -1;
    /* para que quede detrás del círculo */
}

.icono-imagen-2 {
    width: 85px;
    height: 85px;
    background-color: var(--color-secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    position: relative;
    /*para que el after siga*/
    flex-shrink: 0;
}

.icono-imagen-2::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 40px;
    border-left: 2px dashed var(--color-secondary);
    z-index: -1;
    /* para que quede detrás del círculo */
}

/* para que el último ícono no tenga una linea hacia abajo */
.row:last-of-type .icono-imagen::after,
.row:last-of-type .icono-imagen-2::after {
    display: none;
}

.icono-imagen-grande {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: var(--color-primary);
}

.fondo-gris-miembros {
    background-color: #e1e3e4;
}

.historia-row {
    min-height: clamp(380px, 50vh, 620px);
}

.historia-izq {
    background-color: var(--color-secondary);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.historia-img {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    /* altura para moviles */
}


.banner-img {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /*efecto zoom*/
}

/*velo sobre la foto */
.historia-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 80, 90, 0.45);
}



@media (max-width: 576px) {
    .h1-agrefema {
        font-size: 26px;
    }

    .h2-agrefema {
        font-size: 26px;
    }

    .h3-agrefema {
        font-size: 22px;
    }

    .h4-agrefema {
        font-size: 26px;
    }

    .h5-agrefema {
        font-size: 18px;
        margin-bottom: 0px;
    }

    .icono-imagen {
        width: 55px;
        height: 55px;
        background-color: var(--color-primary);
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        position: relative;
        /*para que el after siga*/
    }

    .icono-imagen::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 85px;
        border-left: 2px dashed var(--color-primary);
        z-index: -1;
        /* para que quede detrás del círculo */
    }
}

.icono-linkedin {
    color: white;
    font-size: 1.5rem;
}

.hover-primary:hover {
    color: var(--color-primary) !important;
}

.hover-secondary:hover {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
}

.p-agrefema-condiciones {
    margin: 0 0 24px;
    font-weight: 300;
    line-height: 22px;
    font-size: 18px;
    color: #737373;
}

.p-agrefema-li {
    /* salto de linea sin separación en listas */
    list-style: none;
    margin: 0;
    padding: 0;
}

.input-daterium {
    border-radius: 2em !important;
}

.input-daterium:checked {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.hover-primary-white:hover {
    color: #fff !important;
    background-color: var(--color-primary) !important;
}

.header {
    z-index: 1020 !important;
}

.img-w-100 {
    max-width: 100% !important;
    border-radius: 2rem;
}

.h5-patrocinadores {
    color: var(--color-secondary);
    transition: color 0.3s;
}

.h5-patrocinadores:hover {
    color: var(--color-primary);
}

.p-patrocinadores {
    margin: 0 0 24px;
    font-weight: 300;
    line-height: 22px;
    font-size: 20px;
    color: #737373;
}

.li-patrocinadores {
    margin-left: 20px;
}


.li-patrocinadores {
    margin-top: 1rem;
    list-style-type: disc;
    padding-left: 1rem;
}

.li-patrocinadores li::marker {
    color: var(--color-secondary);
    /* color del punto */
}

@media (max-width: 576px) {
    .h5-patrocinadores {
        color: var(--color-primary);
        font-size: 24px;
    }
}

.card-patrocinador .card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

@media (max-width: 768px) {
    .table-responsive-stack {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

    .table-responsive-stack thead {
        display: none;
    }

    .table-responsive-stack tr {
        display: block;
        margin-bottom: 1.2rem;
        border: 1.5px solid #ccc;
        border-radius: 0.75rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        background-color: #fff;
    }

    .table-responsive-stack td,
    .table-responsive-stack th {
        display: block;
        text-align: left !important;
        padding: 0.75rem 1rem;
        border: none !important;
    }

    .table-responsive-stack td::before,
    .table-responsive-stack th::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-primary, #007bff);
        display: block;
        margin-bottom: 0.3rem;
    }
}


.encabezado-tabla {
    color: var(--color-secondary) !important;
}

.patro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* tono oscuro translúcido */
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 0.5rem;
}

.col-md-4:hover .patro-overlay {
    opacity: 1;
}

.patro-btn {
    /* boton visitar sitio web */
    background: var(--color-secondary);
    color: #ffffff;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.col-md-4:hover .patro-btn {
    opacity: 1;
    transform: translateY(0);
}

.patro-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.patro-separador {
    /* espaciado en datos de empresa */
    margin: 0 12px;
    color: var(--color-secondary);
    font-weight: 500;
}

/* Botón personalizado entre banner y card */
.btn-patro-action {
    background-color: var(--color-secondary);
    color: #fff;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-patro-action:hover {
    background-color: var(--color-primary);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.text-datos {
    color: #000;
}

.text-datos:hover {
    color: var(--color-primary);
    transition: all 0.3s ease;
}


/* encabezado con fondo gris */
.row.card-header.justify-content-between.g-0.p-0 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    min-height: 130px;
    /*  altura del bloque */
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
    padding: 10px 0 16px 0;
    /*espacio abajo */
}

.row.card-header .col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin: 0 10px;
    text-align: center;
}

.row.card-header figure {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

/* textos alineados switch */
.row.card-header figcaption {
    min-height: 2.2em;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
}

.form-check.form-switch {
    display: flex;
}

/* --- Ajuste general del switch ------------------ */
.form-check-input {
    width: 2.3em;
    height: 1.3em;
    border-radius: 2em;
    cursor: pointer;
    border: 1px solid #ccc;
    margin-right: 3px;
}

/*  switches */
.form-check.form-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    /* separación entre icono, texto y switch -------*/
    margin-top: 4px;
}

.form-check-input[data-tipo="1"]:checked {
    background-color: #d252b9;
    border-color: #d252b9;
}

.form-check-input[data-tipo="2"]:checked {
    background-color: #718224;
    border-color: #718224;
}

.form-check-input[data-tipo="3"]:checked {
    background-color: #38a9db;
    border-color: #38a9db;
}

.form-check-input[data-tipo="4"]:checked {
    background-color: #303030;
    border-color: #303030;
}

.form-check-input[data-tipo="5"]:checked {
    background-color: #f2956b;
    border-color: #f2956b;
}

.form-check-input[data-tipo="6"]:checked {
    background-color: #a13336;
    border-color: #a13336;
}

.form-check-input[data-tipo="7"]:checked {
    background-color: #e61059;
    border-color: #e61059;
}

.form-check-input[data-tipo="8"]:checked {
    background-color: #1e556dff;
    border-color: #1e556dff;
}

/* --- Ajustes del texto --- */
.form-check-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    margin-left: 4px;
}

/* esquinas inferiores del acordeon --> producto.php */
#ref-detalles .accordion-item:last-child {
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
    overflow: hidden;
}

/* --- Buscador productos --- */

.input-group .form-control {
    border: 1px solid #fff;
    background-color: #fff;
    color: #333;
    box-shadow: none;
}

.input-group-text {
    border: 1px solid #fff;
    background-color: #fff;
    color: var(--color-primary) !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group-text:hover {
    background-color: var(--color-primary);
    color: #fff !important;
    border-color: #fff;
}

/* bordes redondeados  */
.input-group .form-control.rounded-start-4 {
    border-top-left-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
}

.input-group .input-group-text.rounded-end-4 {
    border-top-right-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
}

.fa-pin {
    position: relative;
    width: 24px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 9px;
    color: #fff;
    clip-path: path("M12 0C5 0 0 6 0 13c0 8 12 19 12 19s12-11 12-19S19 0 12 0Z");
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* borde blanco fino y centrdao */
.fa-pin::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    clip-path: path("M12 0C5 0 0 6 0 13c0 8 12 19 12 19s12-11 12-19S19 0 12 0Z");
    transform: scale(1.08);
    /* agranda uniformemente el borde */
    z-index: 0;
    border-radius: 0;
}

/* Capa de color centrada dentro del borde */
.fa-pin::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    clip-path: path("M12 0C5 0 0 6 0 13c0 8 12 19 12 19s12-11 12-19S19 0 12 0Z");
    transform: scale(0.9);
    z-index: 1;
}

/* Ícono balnco centrado en el fondo */
.fa-pin i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    /* <- ajusta el segundo valor para subir o bajar */
    z-index: 2;
    color: #fff;
    font-size: 9px;
    line-height: 1;
    pointer-events: none;
}

/* === pantallas medianas */
@media (min-width: 769px) and (max-width: 1100px) {
    .fa-pin {
        position: relative;
        width: 20px;
        height: 26px;
        font-size: 7px;
        clip-path: path("M10 0C4 0 0 5 0 11c0 6 10 15 10 15s10-9 10-15S16 0 10 0Z");
    }

    /* Borde blanco perfectamente uniforme */
    .fa-pin::before {
        content: "";
        position: absolute;
        inset: 0;
        background: #fff;
        clip-path: path("M10 0C4 0 0 5 0 11c0 6 10 15 10 15s10-9 10-15S16 0 10 0Z");
        z-index: 0;
    }

    /* Capa de color más ajustada dentro del borde */
    .fa-pin::after {
        content: "";
        position: absolute;
        top: 0.5px;
        left: 0.5px;
        right: 0.5px;
        bottom: 0.5px;
        background: inherit;
        clip-path: path("M9 0C3 0 0 5 0 10c0 6 9 14 9 14s9-8 9-14S15 0 9 0Z");
        z-index: 1;
    }

    /*Icono blanco centrado*/
    .fa-pin i {
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translate(-50%, 30%);
        font-size: 7px;
    }
}



@media (max-width: 768px) {
    .fa-pin {
        position: relative;
        width: 20px;
        height: 26px;
        font-size: 7px;
        clip-path: path("M10 0C4 0 0 5 0 11c0 6 10 15 10 15s10-9 10-15S16 0 10 0Z");
    }

    /* Borde blanco perfectamente uniforme */
    .fa-pin::before {
        content: "";
        position: absolute;
        inset: 0;
        background: #fff;
        clip-path: path("M10 0C4 0 0 5 0 11c0 6 10 15 10 15s10-9 10-15S16 0 10 0Z");
        z-index: 0;
    }

    /* Capa de color más ajustada dentro del borde */
    .fa-pin::after {
        content: "";
        position: absolute;
        top: 0.5px;
        left: 0.5px;
        right: 0.5px;
        bottom: 0.5px;
        background: inherit;
        clip-path: path("M9 0C3 0 0 5 0 10c0 6 9 14 9 14s9-8 9-14S15 0 9 0Z");
        z-index: 1;
    }

    /*Icono blanco centrado*/
    .fa-pin i {
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translate(-50%, 30%);
        font-size: 7px;
    }

}


/* --- Colores según tipo --- */
.filtro-icono[data-tipo="1"] {
    color: #d252b9;
}

/* Agente comercial */
.filtro-icono[data-tipo="2"] {
    color: #718224;
}

/* Central compras */
.filtro-icono[data-tipo="3"] {
    color: #38a9db;
}

/* Daterium / Patrocinadores */
.filtro-icono[data-tipo="4"] {
    color: #303030;
}

/* Fabricante */
.filtro-icono[data-tipo="5"] {
    color: #f2956b;
}

/* Ferretería */
.filtro-icono[data-tipo="6"] {
    color: #a13336;
}

/* Suministro industrial */
.filtro-icono[data-tipo="7"] {
    color: #e61059;
}

/* Agrefema */
.filtro-icono[data-tipo="8"] {
    color: #1e556dff;
}

/* Patrocinadores extra */


.filtro-icono {
    position: relative;
    width: 18px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 9px;
    background-color: currentColor;
    clip-path: path("M9 0C4 0 0 5 0 11c0 6 9 15 9 15s9-9 9-15S14 0 9 0Z");
    margin-right: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    vertical-align: middle;
}

/* Icono blanoc centrado */
.filtro-icono>i {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -40%);
    z-index: 1;
    color: #fff;
    font-size: 8px;
    line-height: 1;
    pointer-events: none;
}


/* Forzar que todos los labels de filtros midan lo mismo */
.form-check-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2em;
}

/* Centrar visualmente el texto largo sin romper el layout */
.form-check-label[for="2"] {
    line-height: 1.1;
    margin-top: 3px;
    transform: none !important;
}

/* --- Buscador en vista de mapa --- */

.buscador-mapa .input-group-mapa .form-control {
    border: 2px solid var(--color-primary);
    background-color: #fff;
    color: #333;
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.buscador-mapa .input-group-mapa .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.2);
    outline: none;
}

/* --- buscador reactivo mapa asociados --- */

.buscador-mapa .buscador-input {
    border: 2px solid var(--color-primary);
    background-color: #fff;
    color: #333;
    box-shadow: none;
    padding: 8px 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.buscador-mapa .buscador-input::placeholder {
    color: #888;
    font-style: italic;
}

.buscador-mapa .buscador-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2);
    outline: none;
}

@media (max-width: 768px) {
    .buscador-mapa .buscador-input {
        font-size: 14px;
        padding: 6px 12px;
    }
}

.p-noticias {
    margin: 0 0 24px;
    font-weight: 300;
    line-height: 22px;
    font-size: 14px;
    color: #737373;
}

.h5-noticias {
    font-size: 16px !important;
}

/* === Estilos exclusivos para la vista de Noticias === */
.noticias .filters-button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.noticias .filters-button-group .btn {
    border-radius: 50px;
    font-size: 0.9rem;
    padding: 6px 14px;
    transition: all 0.2s ease;
    color: var(--color-primary);
}

/* Hover */
.noticias .filters-button-group .btn:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Activo / seleccionado */
.noticias .filters-button-group .btn.is-checked {
    background-color: var(--color-primary);
    color: #fff !important;
    border-color: var(--color-primary);
}

.card {
    border-radius: 20px;
    overflow: hidden;
}

/* (Opcional) Centrar el grupo y ajustar margen en móviles */
@media (max-width: 768px) {
    .noticias-page .filters-button-group {
        gap: 6px;
    }

    .card.card-oferta img {
        min-height: 150px;
        max-height: 150px;
    }
}

.noticias-fecha {
    font-size: 12px;
    color: var(--color-primary);
    text-align: left;
    font-weight: 300;
    font-style: normal;
}

.texto-boton-bolsa {
    font-size: 16px;
}

.bi-box-arrow-up-right {
    -webkit-text-stroke: 0.6px currentColor;
    /* Borde más grueso */
}

.card {
    border-radius: 20px;
    overflow: hidden;
}


.oferta-fecha {
    font-size: 14px;
    text-align: left;
    font-weight: 300;
    font-style: normal;
}

/*Boton oferta.php*/
.btn-oferta-action {
    background-color: var(--color-secondary);
    color: #fff;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-oferta-action:hover {
    background-color: var(--color-primary);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .btn-oferta-action {
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
        border-radius: 4px;
    }
}

.btn-inscribirse-action {
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-inscribirse-action:hover {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

header .navmenu .nav-item.dropdown:hover>.nav-link.dropdown-toggle,
header .navmenu .nav-item.dropdown.show>.nav-link.dropdown-toggle,
header .navmenu .nav-item.dropdown:focus-within>.nav-link.dropdown-toggle {
    color: var(--color-primary) !important;
}

header .navmenu .nav-item.dropdown.show .nav-link.dropdown-toggle::after {
    border-top-color: var(--color-primary);
}

header .navmenu .dropdown-menu .dropdown-item:focus,
header .navmenu .dropdown-menu .dropdown-item:active {
    background-color: var(--color-primary) !important;
    color: #fff !important;
}

@media (min-width: 1200px) {
  header .navmenu .dropdown-item.d-flex {
    justify-content: flex-start !important;
  }
  header .navmenu .dropdown-menu {
    min-width: auto !important;
    width: auto !important; /* se ajusta al contenido */
  }
}


@media (max-width: 1199.98px) {

  .navmenu .nav-item.dropdown .dropdown-menu {
    display: none !important;
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .navmenu .nav-item.dropdown.open > .dropdown-menu {
    display: block !important;
  }

  .navmenu .nav-item.dropdown > a.dropdown-toggle {
    padding-left: 1.75rem !important; 
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .navmenu .dropdown-productos .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 10px;
    text-align: left;
    padding: 0.4rem 1.5rem !important; 
  }

  .navmenu .dropdown-productos .dropdown-item i {
    margin: 0;
  }

  .navmenu .dropdown-productos .dropdown-item i::before {
    position: relative;
    left: 3px;
  }
}


.vista-not-img {
    max-height: 350px;
    object-fit: cover;
    width: 100%;
}

.mw-180 {
    max-width: 180px !important;
}

.mw-200 {
    max-width: 200px !important;
    margin: 0 auto !important;
}

@media (max-width: 576px) {
    .mw-180 {
        max-width: 150px !important;
    }
}

.formulario-denuncias .form-control,
.formulario-denuncias .form-select,
.formulario-denuncias .form-check-input {
  border: 1px solid #000 !important;
}

.formulario-denuncias .form-check-input[type="radio"] {
  border-radius: 50% !important;
  width: 18px;
  height: 18px;
}

.formulario-denuncias .form-check-input[type="checkbox"] {
  border-radius: 0 !important;
  width: 18px;
  height: 18px;
}

.formulario-denuncias .form-check-input:checked {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.formulario-denuncias .btn {
  border: 1px solid #000 !important;
  transition: all 0.2s ease-in-out;
}
.formulario-denuncias .btn:hover {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
}

.formulario-denuncias .form-control:focus,
.formulario-denuncias .form-select:focus {
  box-shadow: none !important;
  border-color: #000 !important;
}

.formulario-denuncias .form-check-label a {
  margin: 0 2px;
  text-decoration: underline;
}

.formulario-denuncias .select2-container--bootstrap-5 .select2-selection {
  border: 1px solid #000 !important;
  border-radius: 0.375rem !important;
  box-shadow: none !important;
}

.formulario-denuncias .form-check-input {
  margin-top: 0.25rem !important;
  cursor: pointer;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
    border: 1px solid #000 !important;
}

.select2-container--bootstrap-5 .select2-dropdown{
    border: 1px solid #000 !important;
}

.cookie-config-btn {
  position: fixed;
  bottom: 15px;
  left: 15px;
  width: 37px;
  height: 37px;
  background-color: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-config-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.cookie-config-btn img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.filtro-marcas-container {
  --check-size: 18px;
}

.filtro-marcas-container .form-check {
  display: flex;
  align-items: center;
}

.filtro-marcas-container .form-check-input {
  width: var(--check-size);
  height: var(--check-size);
  border-radius: 3px;
  border: 2px solid #000;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  position: relative;
  top: -2px;
  vertical-align: middle;
}

.filtro-marcas-container .form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.filtro-marcas-container .form-check-label {
  margin-left: 0.5rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  color: #222;
}

.brand-logo {
  max-height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-grid-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}

.brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.brand-box {
    width: 100%;
    height: 100%;
    position: relative;
    background: #fff;
    border: 1px solid #000000;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

.brand-box img {
    object-fit: contain;
}

.brand-box:hover {
    border-color: var(--color-primary);
}

.brand-box.selected {
    border-width: 4px;
    border-color: var(--color-primary);
}

.brand-item {
    text-align: center;
}

.brand-remove {
    position: absolute;
    right: -6px;
    top: -6px;
    background: white;
    border: 2px solid #333;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    line-height: 14px;
    cursor: pointer;
}

/* Mostrar X solo si está seleccionada */
.brand-box.selected .brand-remove {
    display: flex;
}

#listado_documentos .card.hover-shadow-sm:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.1);
    transform: translateY(-2px);
    transition: all .15s ease-in-out;
}

.header .topbar {
  background-color: var(--accent-color);
  height: auto !important;
  min-height: 40px !important; /* mínimo 40px, pero puede crecer si hay varias líneas */
  padding: 0 10px;  /* un poco de espacio horizontal */
  font-size: 14px;
  transition: .5s;
}

.modal .swiper-ref {
    overflow: hidden;
}

.producto_campo_atributo {
    min-width:40px;
}