
.event-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

/* Alineación vertical */
.tribe-events-calendar-list__event-row .row {
    align-items: center;
}

/* ===== LAYOUT FLEX ===== */
.custom-flex .tribe-events-calendar-list__event {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* ===== CONTENIDO ===== */
.custom-event-content {
    flex: 1;
}

/* ===== IMAGEN DERECHA ===== */
.custom-event-image {
    width: 260px;
    flex-shrink: 0;
}

.custom-event-image img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 6px;
}

/* ===== ESPACIADO DESCRIPCIÓN ===== */
.tribe-events-calendar-list__event-description {
    margin-top: 8px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .custom-flex .tribe-events-calendar-list__event {
        flex-direction: column;
    }

    .custom-event-image {
        width: 100%;
    }
}

/* ===== LÍNEA AZUL IZQUIERDA POR EVENTO ===== */
li.tribe-events-calendar-list__event-row {
	border-left: 4px solid #b8212d !important;
	padding-left: 14px !important;
	margin-bottom: 24px !important;
	list-style: none !important;
}

/* ===== DÍA ABREVIADO (Mar, Sáb, Jue) ===== */
.tribe-events-calendar-list__event-date-tag-weekday {
	display: block !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
}

/* ===== NÚMERO DEL DÍA GRANDE ===== */
span.tribe-events-calendar-list__event-date-tag-daynum {
	display: block !important;
	font-size: 2.5rem !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	color: #b8212d !important;
}

/* ===== TÍTULO DEL EVENTO ===== */
h4.tribe-events-calendar-list__event-title {
	font-size: 1.3rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	margin-bottom: 4px !important;
}

/* ===== SEPARADOR DE MES ===== */
.tribe-events-calendar-list__month-separator {
	border-bottom: 2px solid #b8212d !important;
	margin-bottom: 16px !important;
}

/* Reordenar elementos del evento */
.tribe-events-calendar-list__event-header {
    display: flex !important;
    flex-direction: column !important;
}

.tribe-events-calendar-list__event-datetime-wrapper {
	order: 1 !important;
}

.tribe-events-calendar-list__event-venue {
	order: 2 !important;
}

.tribe-events-calendar-list__event-title {
	order: 3 !important;
	margin-top: 6px !important;
}

.tribe-events-calendar-list__event-description {
	order: 4 !important;
}

.tribe-events-l-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25) !important;
    padding: 20px;
}


.tribe-common-a11y-visual-hide {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}


/* ===== EVENTOS DENTRO DEL DÍA (LA CLAVE) ===== */
body .tec-block__archive-events 
.tribe-events-calendar-month__calendar-event {
    border-left: 4px solid #b8212d;
    padding-left: 6px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

/* Hover en eventos */
body .tec-block__archive-events 
.tribe-events-calendar-month__calendar-event:hover {
    background: #f5f5f5;
}

/* ===== TÍTULO EVENTO ===== */
body .tec-block__archive-events 
.tribe-events-calendar-month__calendar-event-title {
    font-weight: 600;
}

/* Barra de eventos de varios días */
body .tribe-events-view--month 
.tribe-events-calendar-month__multiday-event-bar > div {
    background-color: #b8212d !important;
    border-color: #b8212d !important;
}

body .tribe-events-view--month 
.tribe-events-calendar-month__multiday-event-bar > div > div {
    background-color: #b8212d !important;
    color: #fff !important;
}

.custom-month-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

/* IZQUIERDA */
.custom-month-topbar .nav-left {
    flex: 1;
}

/* CENTRO */
.custom-month-topbar .nav-center {
    flex: 1;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
}

/* DERECHA */
.custom-month-topbar .nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* ===== MOBILE MONTH FIX (CRÍTICO) ===== */
@media (max-width: 768px) {

    /* Contenedor mobile */
    .tribe-events-calendar-month-mobile-events {
        background: white;
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 0 20px rgba(0,0,0,0.08);
    }

    /* Cada evento */
    .tribe-events-calendar-month-mobile-events__event {
        border-left: 4px solid #b8212d !important;
        padding-left: 12px;
        margin-bottom: 16px;
        background: transparent !important;
    }

    /* Título */
    .tribe-events-calendar-month-mobile-events__event-title {
        font-weight: 700 !important;
        color: #000 !important;
    }

    /* Fecha (día número) */
    .tribe-events-calendar-month-mobile-events__event-date-tag-daynum {
        color: #b8212d !important;
        font-weight: 800 !important;
        font-size: 1.8rem !important;
    }

    /* Día (Mar, Jue, etc) */
    .tribe-events-calendar-month-mobile-events__event-date-tag-weekday {
        text-transform: uppercase;
        font-size: 0.7rem;
        font-weight: 700;
    }

    /* Sacar fondo azul default */
    .tribe-events-calendar-month-mobile-events__event,
    .tribe-events-calendar-month-mobile-events__event * {
        background-color: transparent !important;
    }

    /* Hover */
    .tribe-events-calendar-month-mobile-events__event:hover {
        background: #f5f5f5 !important;
    }
}

li.tribe-events-calendar-list__event-row {
    transition: border-color 0.2s ease, transform 0.2s ease;
}
li.tribe-events-calendar-list__event-row:hover {
    border-left-color: #8a1520 !important;
    transform: translateX(3px);
}

.tribe-events-calendar-list__month-separator-text {
    background: #b8212d;
    color: white !important;
    padding: 2px 8px !important;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.tribe-events-calendar-list__month-separator h3 {
    margin-bottom: 8px !important;
}

h4.tribe-events-calendar-list__event-title a:hover {
    color: #b8212d !important;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .tribe-events-calendar-list__event-featured-image {
        display: block !important;
        width: 100% !important;
        margin-bottom: 10px;
    }
    .tribe-events-calendar-list__event-featured-image img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
    }
}

@media (max-width: 768px) {
    span.tribe-events-calendar-list__event-date-tag-daynum {
        font-size: 1.8rem !important;
    }
    .tribe-events-calendar-list__event-date-tag-weekday {
        font-size: 0.65rem !important;
    }
}

@media (max-width: 768px) {
    .tribe-events-c-nav__prev,
    .tribe-events-c-nav__next {
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 768px) {
    .tribe-events-header__top-bar {
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 8px 0;
    }
}


.divider {
    position: relative;
    height: 1px;
}
.div-transparent:before {
    content: "";
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    width: 90%;
    height: 1px;
    background-image: linear-gradient(
        to right,
        transparent,
        rgba(0, 0, 0, 0.2),
        transparent
    );
}
.div-dot:after {
    content: "";
    position: absolute;
    z-index: 1;
    top: -9px;
    left: calc(50% - 9px);
    width: 18px;
    height: 18px;
    background-color: #b8212d;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 2px white,
        0 0 0 4px white;
}

/* ===== FIX DATEPICKER TEC ===== */
.datepicker.dropdown-menu {
    padding: 10px;
}

.datepicker table.table-condensed {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.datepicker table.table-condensed thead th,
.datepicker table.table-condensed tbody td {
    width: calc(100% / 7) !important;
    text-align: center !important;
    padding: 2px !important;
    vertical-align: middle !important;
}

.datepicker table.table-condensed tbody td button,
.datepicker table.table-condensed thead th button {
    width: 100% !important;
    min-width: unset !important;
    padding: 5px 2px !important;
    background-color: transparent !important;
    border: none !important;
    text-align: center !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Día activo */
.datepicker table.table-condensed tbody td button.active {
    background-color: #b8212d !important;
    color: white !important;
}

/* Hover */
.datepicker table.table-condensed tbody td button:hover {
    background-color: rgba(184, 33, 45, 0.1) !important;
    border-radius: 50% !important;
}

/* Días de otro mes */
.datepicker table.table-condensed tbody td button.old,
.datepicker table.table-condensed tbody td button.new {
    color: #ccc !important;
}


.tribe-common-c-btn-border.tribe-events-c-subscribe-dropdown__button {
display: none !important;
}

/* ===== BACK TO TOP ===== */
#backToTop {
    position: fixed;
    bottom: 80px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #b8212d;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 22px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
#backToTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
#backToTop.hide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}
#backToTop:hover {
    transform: scale(1.1);
}

/* ===== SOCIAL WIDGET ===== */
.social-widget-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.social-widget {
    display: flex;
    gap: 10px;
}
.social-widget .social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.75);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}
.social-widget .social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-decoration: none;
}
