.tm_search_prev_page:focus {
    background-color: rgb(60, 141, 188);
}

.tm_search_next_page:focus {
    background-color: rgb(60, 141, 188);
}

.featured-products .item-ads-grid, .category-grid .item-ads-grid {
    background-color: rgb(243, 243, 243);
    margin-bottom: 27px;
    border: 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: auto;
}

.featured-products, .category-grid {
    border-top: 0px solid rgb(22, 20, 19);
    margin-top: 30px;
    background: white;
}

.productsEvents {
    margin-top: 0px;
}

#listaEventosTM {
    padding-bottom: 0px;
}

.carousel-section-header {
    width: 100%;
}

.carousel-section-header h1 {
    text-transform: uppercase;
    margin: auto;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.tm_search_next_page {
    height: 80px;
    min-width: 250px;
}

.tm_search_prev_page {
    height: 80px;
    min-width: 250px;
}

.opacidad {
    background-color: rgba(0, 0, 0, 0.41);
    box-sizing: border-box;
    display: none;
    height: 100%;
    position: fixed;
    width: 100%;
    z-index: 130;
    overflow: hidden;
    backdrop-filter: blur(1px);
    top: 0px;
    left: 0px;
}

.box {
    display: none;
    border-radius: 8px;
    position: fixed;
    padding: 0px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    z-index: 145;
    overflow: hidden;
    max-width: 1280px;
    border: 0px solid rgba(255, 255, 255, 0.21);
    background: var(--color-gray-95);
    backdrop-filter: blur(40px);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 0px 65px 0px;
    height: auto;
    max-height: 500px;
}

.top-navbar {
    border-bottom: 0px solid rgb(22, 20, 19);
}

.top-navbar .navbar-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.top-navbar .navbar-nav .selectorEstados {
    display: none;
}

.top-navbar .navbar-nav .btnNewsletter {}

.top-navbar .navbar-nav .btnNewsletter a {
    color: white;
    background-color: rgb(194, 46, 44);
    border-radius: 50px;
    text-align: center;
    height: 45px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 400ms ease 0s;
}

.top-navbar .navbar-nav .btnNewsletter a:hover {
    background-color: transparent;
    color: rgb(194, 46, 44);
}

.top-navbar .navbar-nav li a:hover {
    color: rgb(194, 46, 44);
}

.container>.navbar-header {
    margin-right: 0px;
    margin-left: 0px;
}

.mensajeFlotante {
    display: flex;
    position: fixed;
    align-items: center;
    top: 30px;
    right: 0px;
    width: 180px;
    height: 140px;
    z-index: 999;
    background: rgb(100, 163, 61);
    border-radius: 30px 0px 0px 30px;
    color: white;
    font-size: 1.4em;
    text-align: center;
    font-weight: 900;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 30px 2px;
    flex-direction: column;
    justify-content: center;
}

.mensajeFlotante span.icon {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 1.7em;
    cursor: pointer;
    font-weight: 600;
}

.mensajeFlotante a {
    color: white;
    font-size: 1.2em;
    text-align: center;
    font-weight: 600;
}

.mensajeFlotante a:hover {
    color: white;
}

.apareceMensaje {
    display: flex;
}

#search-box {
    background: url("../images/slider/slider-1.jpg") center center / cover no-repeat rgba(0, 0, 0, 0);
    height: 350px;
    transition: all 400ms ease 0s;
}

.search-box::after {
    background-color: rgba(0, 0, 0, 0);
    content: "";
    height: 100%;
    left: 0px;
    position: absolute;
    top: 0px;
    width: 100%;
    z-index: -1;
}

#search-box .container {
    background: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 80px;
    position: absolute;
    margin: auto;
    left: 0px;
    right: 0px;
    top: 300px;
    box-shadow: rgba(0, 0, 0, 0.45) 0px 0px 22px -5px;
    width: 90%;
    max-width: 1024px;
    height: 90px;
}

.main-search-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
}

.btn-primary {
    background-color: rgb(100, 163, 61);
}

.main-search-box .simple-btn {
    border-radius: 50px;
    border-width: 0px 0px 4px;
    border-bottom-style: solid;
    border-bottom-color: rgb(78, 135, 43);
    border-top-style: initial;
    border-top-color: initial;
    border-left-style: initial;
    border-left-color: initial;
    border-right-style: initial;
    border-right-color: initial;
}

.main-search-box .simple-btn:hover {
    background-color: rgb(85, 144, 49);
}

.main-search-box .simple-btn:active {
    background-color: rgb(85, 144, 49);
    border-bottom: 0px solid rgb(100, 163, 61);
}

select, select.form-control {
    box-shadow: rgb(221, 221, 221) 0px 0px 0px inset;
}

.container {
    width: 100%;
    padding: 0px 50px;
}

.item-title {
    border-bottom: 2px solid;
    bottom: 0px;
    position: absolute;
    width: 100%;
    padding: 0px;
}

.item-img-grid a {
    height: 105px;
    overflow: hidden;
}

.item-img-grid .img-responsive {
    min-height: auto;
}

.item-img-grid {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: auto;
}

.item-img-grid a:nth-child(2) {
    width: 100%;
    height: auto;
}

.icon-orange .item-title {
    border-color: transparent;
    margin: 10px 0px 0px;
    position: relative;
    padding: 0px;
}

.item-title {
    background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 0%);
}

#tm_event_list, #tm_search_list {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    width: 100%;
    padding: 0px 10px;
    max-width: 1280px;
    margin: auto;
}

#tm_event_list div.col-md-3, #tm_search_list div.col-md-3 {
    width: 17%;
    margin-left: 1.5%;
    margin-right: 1.5%;
    padding: 0px;
}

.item {
    border: 0px;
}

.item-meta {
    min-height: 0px;
}

.item-meta ul .item-type {
    display: none;
}

.item-title h3 {
    background: rgb(247, 19, 15);
    display: block;
    left: 0px;
    right: 0px;
    width: 100%;
    font-weight: bolder;
    height: 35px;
    font-size: 1.2em;
    text-align: center;
    padding-top: 5px;
}

.item-title h4 {
    color: rgb(100, 163, 61);
    padding: 0px 15px;
    height: 47px;
    overflow: hidden;
}

#registration_hover {
    display: none;
}

.user-online {
    display: none;
}

.single-detail {
    background-image: url("");
    margin-top: 0px;
    padding-top: 30px;
}

.single-detail .container {
    display: flex;
    flex-direction: column;
    position: relative;
}

.single-detail .container .row {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    margin: auto;
    max-width: 1280px;
    width: 100%;
}

.single-detail .container .row .widget {
    background: rgb(241, 241, 241);
    border-radius: 12px;
    border: 0px solid rgb(221, 221, 221);
    margin-bottom: 27px;
    padding: 30px;
    position: fixed;
    width: 26%;
    max-width: 360px;
    z-index: 1;
}

.single-detail .container .row .widget .widget-footer .btn.btn-warning {
    display: none;
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.19) !important;
}

.single-detail .container .row .user-widget .user-dp {
    border: 4px solid rgb(255, 255, 255);
    border-radius: 100px;
    box-shadow: rgb(204, 204, 204) 0px 1px 2px;
    height: 170px;
    margin: 10px 0px 20px;
    width: 170px;
}

.single-detail .container .row .seller-name {
    font-size: 1.6em;
    font-weight: 700;
}

.single-detail .container .row td.seller-left-cell {
    color: rgb(157, 155, 155);
    text-align: left;
    vertical-align: top;
    line-height: 1.4em;
    padding-top: 20px;
    width: 100px;
}

.single-detail .container .row td.seller-right-cell {
    vertical-align: top;
    line-height: 1.4em;
    padding-top: 20px;
    font-weight: 600;
    width: 150px;
    text-align: left;
}

.single-detail .container .row .fa-pencil-square-o {
    display: none;
}

.single-detail .container .row .btn-danger {
    background: rgb(255, 3, 14);
    border: 0px solid;
    font-size: 1.4em;
    font-weight: 800;
}

.single-detail .container .row .widget-footer .row .col-sm-12 {
    display: flex;
    flex-direction: revert;
    justify-content: center;
    align-items: center;
}

.single-detail .container .row .widget-footer .row .col-sm-12 h2 {
    text-align: center;
    margin-right: 10px;
    font-size: 1.1em;
    font-weight: 600;
    color: rgb(165, 165, 165);
}

.single-detail .container .row .col-lg-8 {
    width: 95%;
    padding: 0px;
}

.single-detail .container .row .col-lg-8 .row {
    margin-left: 0px;
    margin-right: 0px;
}

.single-detail .container .row .col-lg-8 .col-lg-12 {
    width: 100%;
}

.single-detail .container .row .single-item-meta {
    padding: 0px;
}

.single-detail .container .row .item-ads-grid {
    background: transparent;
    border-radius: 12px;
    border: 0px solid rgb(221, 221, 221);
    margin-bottom: 27px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease 0s;
    padding: 0px 20px 50px 50px;
}

footer {
    border-top: 0px;
}

.copyright {
    background-color: rgb(225, 224, 224);
}

.copyright #imgLogoCopy {
    width: 100px;
    margin-top: 20px;
}

.copyright p, .copyright p a {
    color: rgb(78, 78, 78);
}

.copyright .enlaces {
    display: flex;
    flex-direction: column;
}

.copyright .enlaces a {
    cursor: pointer;
    color: rgb(122, 119, 119);
    margin: 5px auto;
}

.copyright .enlaces a:hover {
    cursor: pointer;
    color: rgb(60, 141, 188);
}

.bottom-social-icons a {
    color: rgb(122, 119, 119);
    margin: 0px 10px;
}

.blog-article-box .panel-heading h4 {
    color: rgb(100, 163, 61);
    font-size: 32px;
    line-height: 40px;
}

.contact .container .row a {
    text-decoration: underline !important;
}

@media (max-width: 1180px) {
    #tm_event_list, #tm_search_list {
        padding: 0px 20px;
    }

    #tm_event_list div.col-md-3, #tm_search_list div.col-md-3 {
        width: 17%;
        margin-left: 1.5%;
        margin-right: 1.5%;
    }
}

@media (max-width: 1100px) {
    .navbar-nav li a {
        padding: 10px 20px !important;
        text-transform: none !important;
        top: 9px !important;
    }
}

@media (max-width: 1024px) {
    #tm_event_list div.col-md-3, #tm_search_list div.col-md-3 {
        width: 20%;
        margin-left: 2.5%;
        margin-right: 2.5%;
    }
}

@media (max-width: 860px) {
    #tm_event_list div.col-md-3, #tm_search_list div.col-md-3 {
        width: 29%;
        margin-left: 2%;
        margin-right: 2%;
    }
}

@media (max-width: 768px) {
    .box {
        width: 100%;
        overflow: hidden scroll;
        height: 100%;
        left: 0%;
        top: 0%;
        transform: translate(0%, 0%);
        box-shadow: rgba(0, 0, 0, 0) 0px 0px 56px 9px;
        border-radius: 0px;
        padding: 10px;
    }

    #registration_hover {
        display: flex;
    }

    .top-navbar .navbar-nav {
        flex-direction: column;
        margin-top: 20px;
    }

    .top-navbar .navbar-nav .btnNewsletter {
        margin-bottom: 20px;
    }

    .mensajeFlotante {
        top: 50px;
        border-radius: 10px 0px 0px 10px;
        width: 160px;
        height: 130px;
    }

    .mensajeFlotante a {
        color: white;
        font-size: 0.8em;
        font-weight: 400;
    }

    #search-box {
        height: 170px;
    }

    #search-box .container {
        background: rgb(255, 255, 255);
        padding: 15px 5px;
        border-radius: 30px;
        position: absolute;
        margin: auto;
        left: 0px;
        right: 0px;
        top: 145px;
        box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 24px -5px;
        width: 88%;
        max-width: 1280px;
        height: auto;
    }

    .main-search-box {
        flex-direction: column;
        width: 100%;
        max-width: 1100px;
    }

    .navbar-toggle {
        background-color: rgb(100, 163, 61);
        margin-right: 0px;
        border-radius: 50%;
        height: 50px;
        width: 50px;
        text-align: center;
        top: 8px;
    }

    .container {
        padding: 0px;
    }

    .featured-products, .category-grid {
        border-top: 0px solid rgb(22, 20, 19);
        margin-top: 210px;
        background: white;
    }

    .productsEvents {
        /* margin-top: 0px; */
    }

    .category-grid {}

    #tm_event_list, #tm_search_list {
        padding: 0px 10px;
    }

    #tm_event_list div.col-md-3, #tm_search_list div.col-md-3 {
        width: 100%;
        margin-left: 0%;
        margin-right: 0%;
        margin-bottom: 15px;
    }

    #tm_event_list div.col-md-3 .item .item-ads-grid, #tm_search_list div.col-md-3 .item .item-ads-grid {
        flex-direction: row;
        height: 74px;
        margin-bottom: 0px;
        width: 100%;
        position: relative;
    }

    .item-img-grid {
        position: relative;
        flex-direction: row;
        width: 100%;
    }

    .item-ads-grid .item-meta {
        padding: 0px;
        position: absolute;
        left: 150px;
        bottom: 7px;
        font-size: 12px;
    }

    .item-img-grid a {
        height: 74px;
        width: 202px;
    }

    .item-img-grid a:nth-child(2) {
        width: 100%;
        height: auto;
    }

    .item-img-grid .img-responsive {
        min-height: auto;
    }

    .icon-orange .item-title {
        margin-top: 4px;
        top: 0px;
    }

    .item-title h4 {
        color: rgb(100, 163, 61);
        padding: 0px 0px 0px 17px;
        height: 23px;
        overflow: hidden;
        font-size: 14px;
    }

    .row {
        margin-left: 0px;
        margin-right: 0px;
    }

    .item-title h3 {
        background: rgb(247, 19, 15);
        display: block;
        position: absolute;
        left: 129px;
        right: 0px;
        width: 100px;
        top: -5px;
        font-weight: bolder;
        height: 29px;
        font-size: 1em;
        text-align: center;
        padding-top: 3px;
    }

    .single-detail .container .row {
        display: flex;
        flex-direction: column-reverse;
    }

    .single-detail .container .row div {
        width: 100%;
        padding: 0px;
    }

    .single-detail .container .row div.col-lg-4 {
        padding: 0px 20px;
    }

    .single-detail .container .row div u a {
        overflow-wrap: break-word;
    }

    .single-detail .container .row div .tiempometa_calling {
        width: 100%;
        padding: 0px 20px 20px 20px;
    }

    .single-detail .container .row div #tiempometa_registration_div {
        width: 100%;
        padding: 20px;
    }

    .single-detail .container .row .item-ads-grid {
        padding: 15px 20px;
    }

    .single-detail .container .row .widget {
        padding: 20px;
        position: relative;
        z-index: 99;
        width: 100%;
        max-width: 100%;
    }

    .single-detail .container .row .col-lg-8 {
        width: 100%;
        padding: 0px;
    }

    .single-detail .container .row .col-lg-8 .single-ads .item-ads-grid {
        width: 100%;
        padding: 0px 0px 0px 15px;
    }

    .single-detail .container .row .col-lg-8 .single-ads .item-ads-grid .tiempometa {
        padding: 0px;
    }

    .single-detail .container .row .col-lg-8 .single-ads .item-ads-grid .tiempometa form {
        padding: 10px;
    }

    .single-detail .container .row .col-lg-8 .single-ads .item-ads-grid .tiempometa form .row {
        margin-bottom: 15px;
        flex-direction: column;
    }

    .tiempometa_registration_div {
        padding: 10px 20px;
    }

    .contact .container .row {
        display: flex;
        flex-direction: column-reverse;
    }

    .contact .container .row .form-group .row .col-md-6 {
        padding-left: 0px;
        padding-right: 0px;
    }
}
/* ============================================================
   MONITOR — Ajustes tarjetas de eventos
   Solo aplica en pantallas >= 768px. Móvil sin cambios.
   ============================================================ */

@media (min-width: 768px) {

    /* Ocultar íconos fa */
    #tm_search_list .item-meta ul li .fa {
        display: none;
    }

    /* Contenedor meta: ancho completo */
    #tm_search_list .item-meta {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    /* Lista: reset completo */
    #tm_search_list .item-meta ul {
        padding: 0;
        margin: 0;
        list-style: none;
        text-align: center;
        width: 100%;
        display: block;
        box-sizing: border-box;
    }

    /* Cada ítem: text-indent:0 neutraliza el -22.67px heredado */
    #tm_search_list .item-meta ul li {
        display: block;
        list-style: none;
        list-style-type: none;
        list-style-position: inside;
        padding: 0 12px;
        text-indent: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 4px;
        box-sizing: border-box;
        word-break: break-word;
        white-space: normal;
    }

    /* Fecha: semi-bold, oscuro */
    #tm_search_list .item-date {
        font-weight: 600;
        color: #444;
        font-size: 13px;
        letter-spacing: 0.01em;
    }

    /* Lugar: italic, gris medio */
    #tm_search_list .item-location {
        font-style: italic;
        color: #666;
        font-size: 12.5px;
    }

    /* Disciplina: uppercase pequeño — override display:none de línea 318 */
    #tm_search_list .item-meta ul li.item-type {
        display: block;
        text-transform: uppercase;
        font-size: 10px;
        letter-spacing: 0.08em;
        color: #999;
        font-weight: 600;
    }

    /* Título + botón: flex column */
    #tm_search_list .item-title {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: stretch;
        padding-bottom: 0;
        min-height: 90px;
    }

    /* Título h4: centrado H+V, 17px, hasta 4 líneas */
    #tm_search_list .item-title h4 {
        flex: 1;
        margin: 0;
        padding: 10px 12px;
        font-size: 17px;
        line-height: 1.35;
        height: auto;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Botón ¡Inscríbete!: centrado vertical, 16px */
    #tm_search_list .item-title h3 {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 16px;
        line-height: 1;
        padding: 0 10px;
        min-height: 40px;
        box-sizing: border-box;
    }

} /* end @media monitor */


/* ============================================================
   MÓVIL — Ajustes tarjetas de eventos
   Solo aplica en pantallas <= 767px. Monitor sin cambios.
   ============================================================ */

@media (max-width: 767px) {

    /* Ocultar íconos fa */
    #tm_search_list .item-meta ul li .fa {
        display: none;
    }

    /* Espacio vertical entre eventos */
    #tm_search_list .col-md-3,
    #tm_search_list .col-sm-6 {
        margin-bottom: 6px;
    }

    /* Tarjeta: altura automática para acomodar texto */
    #tm_search_list .item-ads-grid {
        height: auto;
        min-height: 90px;
        align-items: stretch;
    }

    /* Imagen: se estira con la tarjeta */
    #tm_search_list .item-img-grid {
        height: auto;
        align-self: stretch;
        min-height: 90px;
    }

    /* Meta: ocupa el espacio después de la imagen (left:90px),
       centrado horizontal y vertical real                       */
    #tm_search_list .item-ads-grid .item-meta {
        position: absolute;
        left: 90px;
        right: 0;
        top: 0;
        bottom: 0;
        width: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 8px 12px;
        box-sizing: border-box;
    }

    /* Lista: centrada, ancho completo */
    #tm_search_list .item-ads-grid .item-meta ul {
        padding: 0;
        margin: 0;
        list-style: none;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    /* Cada li: reset, centrado, text-indent:0 */
    #tm_search_list .item-ads-grid .item-meta ul li {
        display: block;
        list-style: none;
        list-style-type: none;
        list-style-position: inside;
        text-indent: 0;
        padding: 0;
        margin: 0;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    /* Nombre del evento: verde marca, 17px */
    #tm_search_list .item-ads-grid .item-meta ul li.item-name-mobile {
        font-size: 17px;
        font-weight: 600;
        color: #64a33d;
        text-align: center;
        line-height: 1.3;
        margin-bottom: 5px;
    }

    /* Fecha: semi-bold, oscuro, 14px */
    #tm_search_list .item-ads-grid .item-meta ul li.item-date {
        font-size: 14px;
        font-weight: 600;
        color: #444;
        letter-spacing: 0.01em;
        font-style: normal;
    }

    /* Lugar: italic, gris, 13.5px */
    #tm_search_list .item-ads-grid .item-meta ul li.item-location {
        font-size: 13.5px;
        font-style: italic;
        color: #666;
    }

    /* Disciplina: oculta en móvil */
    #tm_search_list .item-ads-grid .item-meta ul li.item-type {
        display: none;
    }

} /* end @media móvil */
