/* ============================================================
   TRIKA MASTER CSS - V3.8 (MINIMAL & CUSTOM)
   ============================================================ */

/* 1. RESET Y BASE */
.trika-agenda-grid, .trika-agenda-grid * { box-sizing: border-box; }
.trika-agenda-grid { display: flex; flex-direction: column; gap: 20px; margin: 20px 0; width: 100%; }

/* Reducir gap en modo minimal para que parezca una lista */
.trika-agenda-grid.is-minimal-grid { gap: 10px; }

/* 2. LEGACY (HOME) */
.trika-card:not(.trika-event-card) {
    display: block; background-color: #FFFFFF; border: 1px solid #E2E8F0;
    border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* 3. NUEVAS TARJETAS (ESTÁNDAR) */
.trika-event-card {
    background: #ffffff; padding: 25px; border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.02);
    border-left: 6px solid #B09F85; transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start;
    gap: 20px; width: 100%;
}
.trika-event-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

/* --- ESTILO MINIMALISTA (CÍRCULO KAULA) --- */
.trika-event-card.trika-card-minimal {
    background: transparent;      /* Sin fondo blanco fuerte */
    box-shadow: none;             /* Sin sombra */
    border: none;                 /* Sin borde gris */
    border-left: 4px solid #B09F85; /* Borde izquierdo más fino */
    padding: 10px 15px;           /* Menos relleno */
    border-radius: 0;             /* Cuadrado o poco radio */
    margin-bottom: 5px;
    border-bottom: 1px dotted #eee; /* Separador sutil abajo */
}
.trika-event-card.trika-card-minimal:hover {
    transform: translateX(5px);   /* Mover a la derecha al hover, no arriba */
    background: #fcfcfc;          /* Fondo muy sutil al pasar ratón */
    box-shadow: none;
}
.trika-event-card.trika-card-minimal .trika-card__title {
    font-size: 1.1em;             /* Título un poco más pequeño */
    margin-bottom: 5px !important;
}
.trika-event-card.trika-card-minimal .trika-date-row {
    font-size: 0.95em;            /* Fecha más discreta */
    border-bottom: none;          /* Sin líneas entre fechas */
    padding-bottom: 0;
}

/* 4. COLORES */
.trika-event-card.is-gold { border-left-color: #B7950B !important; }
.trika-event-card.is-mystic { border-left-color: #6C3483 !important; }
.trika-event-card.is-fire { border-left-color: #D35400 !important; }
.trika-event-card.is-red { border-left-color: #922B21 !important; }
.trika-event-card.is-earth { border-left-color: #B09F85 !important; }

/* 5. CONTENIDO INTERNO */
.trika-card__content { flex: 1; }
.trika-card__title {
    margin: 0 0 12px 0 !important; font-family: 'Barlow', sans-serif;
    font-weight: 800; font-size: 1.3em; line-height: 1.2; text-transform: uppercase;
    color: inherit; border: none; background: none; padding: 0;
}
/* Colores texto título */
.is-gold .trika-card__title { color: #B7950B; }
.is-mystic .trika-card__title { color: #6C3483; }
.is-fire .trika-card__title { color: #D35400; }
.is-red .trika-card__title { color: #922B21; }

.trika-card__dates { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px !important; font-size: 1.05em; color: #333; }
.trika-date-row { display: flex; align-items: center; gap: 10px; padding-bottom: 4px; border-bottom: 1px dotted #eee; }
.trika-date-row:last-child { border-bottom: none; }
.trika-icon { width: 20px; text-align: center; display: inline-block; font-size: 1em; opacity: 0.7; }

.trika-card__location {
    display: inline-block; margin-top: 5px; font-size: 0.95em; font-style: italic; color: #666;
    text-decoration: none; border-bottom: 1px dotted #999;
}
.trika-card__location:hover { color: #D35400; border-bottom: 1px solid #D35400; }

.trika-card__actions { flex-shrink: 0; }
.trika-btn {
    background-color: #3E2723; color: #fff !important; padding: 12px 25px; border-radius: 50px;
    text-decoration: none !important; font-weight: 700; font-size: 0.9em; white-space: nowrap;
    transition: background 0.2s; display: inline-block;
}
.trika-btn:hover { background-color: #5D4037; }

/* Responsive Móvil */
@media (max-width: 768px) {
    .trika-event-card { flex-direction: column; }
    .trika-card__actions { width: 100%; margin-top: 15px; }
    .trika-btn { width: 100%; text-align: center; display: block; }
}

/* 6. UTILIDADES */
body .trika-sin-boton .trika-card__actions, .trika-sin-boton .trika-card__actions {
    display: none !important; visibility: hidden !important; height: 0 !important; margin: 0 !important; padding: 0 !important;
}
body .trika-sin-boton .trika-event-card, .trika-sin-boton .trika-event-card { padding-bottom: 25px !important; }

/* 7. SEPARADOR DE AÑO */
.trika-year-separator {
    font-family: 'Barlow', sans-serif; font-size: 2em; font-weight: 800; color: #E0E0E0;
    text-align: center; border-bottom: 2px solid #E0E0E0; line-height: 0.1em;
    margin: 40px 0 20px 0; background: #fff; padding: 0 10px; display: inline-block; width: 100%;
}

/* 8. CALENDARIO MENSUAL */
.trika-calendar-wrapper {
    background: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px; margin-bottom: 40px; scroll-margin-top: 100px;
}
.trika-cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.trika-cal-title { margin: 0 !important; text-transform: capitalize; font-size: 1.8em; font-weight: 700; color: #3E2723; }
.trika-cal-nav {
    background: #F2F2F0; padding: 8px 15px; border-radius: 20px; text-decoration: none;
    font-weight: bold; color: #555; transition: all 0.2s;
}
.trika-cal-nav:hover { background: #B09F85; color: white; }

.trika-cal-grid {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px;
    background: #eee; border: 1px solid #eee; width: 100%;
}
.trika-cal-th { background: #f9f9f9; padding: 10px; text-align: center; font-weight: bold; text-transform: uppercase; font-size: 0.85em; color: #888; }
.trika-cal-cell { background: #fff; min-height: 100px; padding: 5px; position: relative; overflow: hidden; }
.trika-cal-cell.empty { background: #fafafa; }
.trika-cal-cell.is-today { background: #FFFBF0; }
.trika-day-number { display: block; text-align: right; font-size: 0.9em; color: #999; margin-bottom: 5px; font-weight: bold; }
.trika-cal-event {
    display: block; font-size: 0.8em; padding: 4px 6px; margin-bottom: 3px; border-radius: 3px;
    background: #eee; color: #333; white-space: normal; line-height: 1.2;
    cursor: default; border-left: 3px solid transparent;
}
.trika-cal-time { font-weight: bold; opacity: 0.7; font-size: 0.9em; margin-right: 4px; }
.trika-cal-event.is-gold { background: #FFF6D6; border-left-color: #B7950B; color: #705800; }
.trika-cal-event.is-mystic { background: #F0EBFF; border-left-color: #6C3483; color: #401B55; }
.trika-cal-event.is-fire { background: #FFE8E0; border-left-color: #D35400; color: #852D00; }
.trika-cal-event.is-red { background: #FFEBE9; border-left-color: #922B21; color: #611811; }
.trika-cal-event.is-earth { background: #F5F0EB; border-left-color: #B09F85; color: #5C4024; }
@media (max-width: 768px) {
    .trika-cal-grid { display: flex; flex-direction: column; }
    .trika-cal-th, .trika-cal-cell.empty { display: none; }
    .trika-cal-cell { min-height: auto; padding: 10px; border-bottom: 1px solid #eee; }
    .trika-day-number { text-align: left; margin-bottom: 5px; color: #333; font-size: 1.1em;