* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Arial, Verdana, sans-serif;
}

:root {
    --primary-color: #8d5edd;
    --secondary-color: #1a053f;
    --text-color: #333;
    --background-color: #f5f5f5;
    --white: #FFFFFF;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Header */
.cabecera {
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #823aff5b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cabecera img {
    max-height: 40px;
    user-select: none;
    pointer-events: none;
}

#img_logo {
    max-height: 40px;
}

.txt-back {
    position: absolute;
    top: 22px;
    left: 15px;
    color: black;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
}

.txt-back:hover {
    color: var(--primary-color);
}

.settings-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    opacity: 0.5;
    height: 30px;
    transition: transform 0.3s ease;
}

.settings-icon img {
    width: 100%;
    height: auto;
    cursor: pointer;
    pointer-events: auto;
}

.settings-icon img:hover {
    transform: rotate(45deg);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--background-color);
}

/* Event Info */
#event_info {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#continu-dk
{
    display: block;
}

#continu-mb
{
    display: none;
}

.event-container {
    display: contents;
}

.cartel-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08;
    top: 0;
    left: 0;
    z-index: 1;
    filter: blur(3px);
}

.event-details:first-of-type {
    order: 2;
    position: relative;
    z-index: 2;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-details:last-of-type {
    order: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.1);
}

.cartel-event {
    width: 280px;
    object-fit: cover;
    box-shadow: 1px 1px 8px 1px black;
    transition: transform 0.3s ease;
}

.cartel-event:hover {
    transform: scale(1.02);
}

.event-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.event-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.event-meta {
    background: rgba(255,255,255,0.12);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.event-meta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.event-meta p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.event-meta p:last-child {
    margin-bottom: 0;
}

.event-meta p strong {
    margin-right: 1rem;
    min-width: 100px;
    opacity: 0.8;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-button {
    padding: 1rem 2rem;
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background-color: #f5f5f5;
}

/* Calendar Container */
#container-calendar {
    padding: 30px 5%;
    background-color: var(--white);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

#calendar {
    margin-top: 1rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0px 0px 2px 1px rgba(156, 98, 255, 0.2);
    padding: 10px;
}

.fc .fc-row .fc-content-skeleton table, .fc .fc-row .fc-content-skeleton td, .fc .fc-row .fc-helper-skeleton td {
    background: #ede1ff !important; 
}


/* FullCalendar Customization */
.fc-scroller {
    height: 100% !important;
}

.fc-day, 
.fc-widget-content {
    min-height: 170px !important;
}

.fc-day {
    padding: 5px !important;
}

.fc td, .fc th {
    border: 1px solid #ddd;
}

.fc-today {
    background-color: #f8f9fa !important;
}

.fc-day-header {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
}

.fc-ltr .fc-basic-view .fc-day-top .fc-day-number {
    float: left !important;
    margin-top: 5px;
    margin-left: 5px;
}

.fc-day-number {
    font-weight: bold;
    font-size: 1.1em;
}

.fc-day-grid-event {
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
    border: none !important;
}



.fc-toolbar {
    align-items: center;
    justify-content: space-between;
    padding: 10px 5%;
}

.fc-toolbar h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.fc-center h2 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fc-left button, 
.fc-right button {
    background: var(--primary-color) !important;
    color: white !important;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.fc-left button:hover, 
.fc-right button:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.fc-more {
    color: var(--primary-color) !important;
    font-weight: bold;
}

.fc-popover {
    border: 1px solid var(--primary-color) !important;
    border-radius: 8px !important;
}

.fc-popover .fc-header {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Custom Event Styles */
.bolo {
    background-color: #ffdcf852;
}

.day-with-event {
    display: flex;
    flex-direction: column;
    padding: 5px;
    min-height: 80px;
    cursor: pointer;
}

.day-number {
    font-size: 25px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.event-time-block {
    position: absolute;
    top: 60px;
    display: flex;
    flex-direction: column;
    gap: 21px;
    align-items: flex-start;
}

.pill-container {
    position: relative;
    display: inline-block;
    margin: 0;
    width: 100%;
}

.event-time-pill {
    position: relative !important;
    top: 0 !important;
    border: 2px solid #9558ff83;
    padding: 5px clamp(8px, 1.5vw, 18px);
    background-color: white;
    border-radius: 5px;
    display: inline-block;
    white-space: nowrap;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.event-time-pill:not(.finished):hover {
    background-color: #450085 !important;
    color: white;
    border: 1px solid #fa6bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.discount-circle {
    position: absolute;
    top: -15px;
    color: white !important;
    left: 110%;
    border-radius: 50%;
    width: 26px !important;
    height: 26px !important;
    font-size: 11px !important;
    font-weight: bold;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 999 !important;
    border: 1px solid rgba(51, 51, 51, 0.082);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.event-price {
    color: var(--primary-color);
    font-size: 13px;
    margin-top: 60%;
}

/* Finished States */
.fc-day.finished {
    background-color: #5c5c5c !important;
    opacity: 0.6;
}

td.finished .event-price {
    color: rgb(255, 182, 218) !important;
}

.fc-day.partial-finished {
    background: linear-gradient(45deg, #ffffff 50%, #f5f5f5 50%) !important;
}

.event-time-pill.finished {
    background-color: #161313 !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.event-time-pill.finished:hover {
    background-color: #5a6268 !important;
}

.finished-label {
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 1024px) {
    #event_info {
        grid-template-columns: 1fr;
    }

    .event-details:first-of-type {
        order: 2;
    }

    .event-details:last-of-type {
        order: 1;
        padding: 2rem;
    }

    .cartel-event {
        max-height: 300px;
        width: auto;
        margin: 0 auto;
        border-radius: 8px;
    }

    .event-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .event-description {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0.2rem;
    }

    .event-details:first-of-type {
        padding: 1.2rem;
    }

    .event-details:last-of-type {
        order: 1;
        padding: 1rem;
    }

    .event-title {
        font-size: 1.8rem;
    }

    .event-description {
        font-size: 1rem;
    }
    
    .event-meta {
        margin-top: 1px;
        padding: 0.5rem;
    }

    .event-meta p {
        font-size: 0.9rem;
    }
    
    .event-meta p strong {
        min-width: 80px;
    }
    
    #container-calendar {
        padding: 20px 2%;
    }

    .cta-button {
        width: 100%;
        font-size: 18px;
    }

    .fc-day, 
    .fc-widget-content {
        min-height: 150px !important;
    }

    .fc-day {
        padding: 1px !important;
    }

    .custom-event-container {
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .event-time-block {
        top: 58px !important;
        gap: 20px;
    }

    .pill-container .event-time-pill {
        font-size: 12px;
        padding: 3px !important;
        border: 1px solid rgb(112, 0, 177);
    }

    .event-price {
        font-size: 10px;
        margin-top: 60px !important;
        margin-left: 5px;
    }

    .fc-toolbar h2 {
        font-size: 1.2rem !important;
    }

    .discount-circle {
        right: -10px;
        font-size: 9px !important;
        width: 20px !important;
        height: 20px !important;
        left: 75% !important;
    }

    #calendar
    {
        padding: 0 !important;
    }

    .fc-day-number {
        font-size: 0.9em;
    }

    .cta-buttons {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 15px;
        margin-top: 5px;
    }

    #continu-mb
    {
        display: block !important;
    }

    #continu-dk
    {
        display: none !important;
    }

    .no-mobile
    {
        display: none !important;
    }

}