/* ════════════════════════════════════════════
   GESTIÓN EVENTOS – CALENDARIO MENSUAL v2.2
   ════════════════════════════════════════════ */

/* ── Break out of WP theme container (full-width) ── */
.ge-calendar-outer {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    /* Cancel the WP theme's content-area vertical padding   #f7f8fa*/
    margin-top: -60px;
    margin-bottom: -60px;
    overflow: hidden;
    background: #FFFFFF;
    padding: 70px 0;
}

/* ── Inner flex layout ── */
.ge-calendar-wrap {
    display: flex;
    gap: 0;
    align-items: flex-start;
    font-family: 'Inter', sans-serif;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
}

/* ── Sidebar ── */
.ge-sidebar {
    flex: 0 0 260px;
    min-width: 200px;
    padding-right: 44px;
    position: sticky;
    top: 60px;
}

.ge-sidebar-title {
    margin-bottom: 28px;
    line-height: 1.1;
}

.ge-sidebar-sub {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: #bbb;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ge-sidebar-main {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.05;
    /* Tricolor underline (rojo, amarillo, verde) */
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #c0392b 0%, #f1c40f 50%, #27ae60 100%) 1;
    padding-bottom: 10px;
    margin-bottom: 4px;
}

/* 2026 – tricolor gradient text */
.ge-year {
    display: inline-block;
    background: linear-gradient(90deg, #c0392b 0%, #d4ac0d 50%, #27ae60 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
}

/* ── Month Nav ── */
.ge-month-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.ge-month-btn {
    background: #eaeaea;
    border: none;
    border-radius: 24px;
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    text-align: center;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.ge-month-btn:hover {
    background: #d8d8d8;
    transform: translateY(-1px);
}

.ge-month-btn.active {
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
}

.ge-month-btn[data-empty="true"] {
    opacity: 0.35;
}

/* ── Events Area (logo watermark here) ── */
.ge-events-area {
    flex: 1;
    min-width: 0;
    position: relative;
    padding: 8px 0 8px 40px;
    border-left: 1px solid #e5e5e5;
    overflow: hidden;
    min-height: 340px;     /* Ensure the logo has space when no events */
}

/* ── Logo watermark behind cards ── */
.ge-bg-logo {
    position: absolute;
    /* Fully centered in the events area */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55%;
    max-width: 580px;
    min-width: 280px;
    height: auto;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

/* ── Month Panels ── */
.ge-month-panel {
    display: none;
}

.ge-month-panel.active {
    display: block;
}

/* ── Cards Grid ── */
.ge-cards-grid {
    display: grid;
    gap: 22px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

/* Grid tiers – max 3 columns */
.ge-cards-grid.ge-size-1 { grid-template-columns: 1fr; max-width: 480px; }
.ge-cards-grid.ge-size-2 { grid-template-columns: 1fr 1fr; }
.ge-cards-grid.ge-size-3,
.ge-cards-grid.ge-size-4 { grid-template-columns: repeat(3, 1fr); }

/* ── Fade-in animation ── */
@keyframes ge-fade-in {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Event Card ── */
.ge-event-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0,0,0,0.10);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
    animation: ge-fade-in 0.4s ease both;
    
    /* Hacemos que la tarjeta sea un cuadrado perfecto (ancho = alto) */
    aspect-ratio: 1 / 1;
    min-height: auto; 
}

/* Limpiamos los min-height anteriores para que no interfieran */
.ge-size-1 .ge-event-card,
.ge-size-2 .ge-event-card,
.ge-size-3 .ge-event-card,
.ge-size-4 .ge-event-card { 
    min-height: auto; 
}

/* Stagger */
.ge-event-card:nth-child(1) { animation-delay: 0.00s; }
.ge-event-card:nth-child(2) { animation-delay: 0.08s; }
.ge-event-card:nth-child(3) { animation-delay: 0.16s; }
.ge-event-card:nth-child(4) { animation-delay: 0.24s; }
.ge-event-card:nth-child(5) { animation-delay: 0.32s; }
.ge-event-card:nth-child(6) { animation-delay: 0.40s; }

.ge-event-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.16);
}

/* ── Background image (cover card) ── */
.ge-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.45s ease;
}

.ge-event-card:hover .ge-card-bg {
    transform: scale(1.05);
}

/* White overlay – heavier at bottom for text legibility .ge-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.08) 0%,
        rgba(255,255,255,0.60) 30%,
        rgba(255,255,255,0.95) 100%
    );
}*/

.ge-card-overlay {
    display: none; /* Oculta completamente la capa blanca */
}

/* ── Accent bar ── */
.ge-card-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    z-index: 2;
}

.ge-green  .ge-card-accent { background: linear-gradient(90deg, #1e8449, #27ae60); }
.ge-yellow .ge-card-accent { background: linear-gradient(90deg, #b7770d, #f39c12); }
.ge-red    .ge-card-accent { background: linear-gradient(90deg, #922b21, #e74c3c); }

/* ── Card Body ── */
.ge-card-body {
    position: relative;
    z-index: 3;
    padding: 28px 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;       /* centrado horizontal */
    text-align: center;        /* texto centrado */
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.ge-size-1 .ge-card-body { padding: 36px 36px 30px; }

/* Category tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
}*/
.ge-card-cat {
    font-size: 13px;
    margin: 0;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.2px;

    /* Propiedades para hacer el texto transparente */
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: inherit;
    
    /* Opcional: si la imagen de fondo es muy clara/oscura y necesitas que resalte */
    /* text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); */
}

.ge-green  .ge-card-cat { color: #1e8449; background: rgba(39,174,96,0.12); }
.ge-yellow .ge-card-cat { color: #9a6400; background: rgba(243,156,18,0.15); }
.ge-red    .ge-card-cat { color: #922b21; background: rgba(231,76,60,0.12); }

/* Event title – Google Fonts + elegant serif flavor #1a1a1a .ge-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.3px;
}*/
.ge-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.3px;

    /* Propiedades para hacer el texto transparente y que muestre la imagen de fondo */
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: inherit; /* Hereda el fondo de la tarjeta o puedes poner un color/degradado */
}

.ge-size-2 .ge-card-title { font-size: 17px; }
.ge-size-3 .ge-card-title,
.ge-size-4 .ge-card-title { font-size: 15px; }

/* Date  .ge-card-date {
    font-size: 13px;
    color: #777;
    margin: 0;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.2px;
}*/
.ge-card-date {
    font-size: 13px;
    margin: 0;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.2px;

    /* Propiedades para hacer el texto transparente */
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: inherit;
    
    /* Opcional: si la imagen de fondo es muy clara/oscura y necesitas que resalte */
    /* text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); */
}

.ge-size-3 .ge-card-date,
.ge-size-4 .ge-card-date { font-size: 11.5px; }

/* ── Empty State ── */
.ge-empty-state {
    display: flex;
    align-items: center;
    min-height: 180px;
}

.ge-empty-msg {
    font-size: 13px;
    color: #ccc;
    font-style: italic;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .ge-calendar-wrap { padding: 0 28px; }
    .ge-sidebar { flex: 0 0 180px; }
    .ge-cards-grid.ge-size-3,
    .ge-cards-grid.ge-size-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .ge-calendar-wrap { flex-direction: column; padding: 0 20px; }
    .ge-sidebar { position: static; width: 100%; padding-right: 0; border-right: none; }
    .ge-events-area { border-left: none; padding-left: 0; margin-top: 24px; }
    .ge-month-nav { grid-template-columns: repeat(4, 1fr); }
    .ge-cards-grid.ge-size-3,
    .ge-cards-grid.ge-size-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .ge-month-nav { grid-template-columns: repeat(3, 1fr); }
    .ge-cards-grid.ge-size-2,
    .ge-cards-grid.ge-size-3,
    .ge-cards-grid.ge-size-4 { grid-template-columns: 1fr; }
}