.diocr-wrapper {
    --diocr-azul: #14315c;
    --diocr-azul-claro: #1c4276;
    --diocr-dorado: #c9a227;
    --diocr-gris-fondo: #d9d9d9;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.diocr-wrapper * { box-sizing: border-box; }

/* Franja de navegación por día */
.diocr-nav-box {
    background: #cccccc;
    border: 1.5px solid var(--diocr-dorado);
    border-radius: 6px;
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 16px;
    overflow: hidden;
}

.diocr-nav-fecha {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 240px;
    background: #eaeaea;
    padding: 10px 16px;
}
.diocr-nav-dia { font-size: 44px; font-weight: 900; color: #111; line-height: 1; }
.diocr-nav-mesanio { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; color: #666; line-height: 1.3; white-space: nowrap; }

.diocr-tabs-viewport { flex: 1; overflow: hidden; display: flex; align-items: stretch; }
.diocr-tabs-track {
    display: flex;
    flex: 12 1 0%;
    gap: 0;
}
.diocr-nav-flecha {
    flex: 1 1 0%;
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 6px 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s ease;
}
.diocr-nav-flecha:hover { color: #333; }
.diocr-tab {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 4px;
    cursor: pointer;
    color: #555;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.diocr-tab:hover { background: rgba(255,255,255,.5); }
.diocr-tab-nombre { font-weight: 600; }
.diocr-tab-num { font-weight: 700; }
.diocr-tab.activo {
    background: #f5f5f5;
    color: #111;
}
.diocr-tab.activo .diocr-tab-nombre,
.diocr-tab.activo .diocr-tab-num { font-weight: 700; }

/* Fila de controles: fecha exacta + seleccionar por mes */
.diocr-controls-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.diocr-date-field,
.diocr-mes-selector { flex: 1 1 0; min-width: 220px; position: relative; }

.diocr-date-field {
    border: 1.5px solid var(--diocr-dorado);
    border-radius: 4px;
    padding: 10px 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.diocr-date-field input[type="date"] {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    background: transparent;
    accent-color: var(--diocr-dorado);
}
.diocr-date-icon { flex-shrink: 0; color: var(--diocr-dorado); display: flex; }
.diocr-date-icon svg { width: 20px; height: 20px; }
.diocr-date-field input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; }

.diocr-mes-btn {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1.5px solid var(--diocr-dorado);
    border-radius: 4px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 15px;
    color: #999;
    text-align: center;
    cursor: pointer;
    transition: background .15s ease;
}
.diocr-mes-btn:hover { background: #fafafa; }
.diocr-mes-btn.diocr-abierto { color: #222; }

.diocr-mes-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    padding: 8px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    z-index: 20;
    max-height: 340px;
    overflow-y: auto;
}
.diocr-mes-dropdown.diocr-visible { display: grid; }
.diocr-mes-opcion {
    background: none;
    border: none;
    text-align: left;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
}
.diocr-mes-opcion:hover { background: #f1f1f1; }
.diocr-mes-opcion.diocr-activo { background: var(--diocr-azul); color: #fff; }

/* Divisor */
.diocr-divider { border: none; border-top: 1px solid #d5d5d5; margin: 0 0 20px; }

/* Listado de tarjetas */
.diocr-lista { padding: 0 4px; min-height: 80px; transition: opacity .15s ease; }
.diocr-cargando, .diocr-sin-eventos {
    text-align: center;
    color: #888;
    font-size: 15px;
    padding: 40px 20px;
}

.diocr-card {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
    text-decoration: none;
    color: inherit;
}
.diocr-card:last-child { border-bottom: none; }

.diocr-card-info { flex: 0 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.diocr-card-fecha { font-size: 15px; color: #333; }
.diocr-card-autor { font-size: 15px; color: #555; line-height: 1.35; }
.diocr-card-titulo {
    font-size: 19px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin-top: 2px;
}
.diocr-card-vermas {
    display: inline-block;
    font-size: 16px;
    color: #555;
    text-decoration: none;
    margin-top: 2px;
}
.diocr-card-vermas:hover { text-decoration: underline; color: var(--diocr-azul); }

.diocr-card-compartir { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.diocr-card-compartir-label { font-size: 13px; font-weight: 600; color: #333; margin-right: 2px; }
.diocr-share-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--diocr-azul);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: background .15s ease, transform .15s ease;
}
.diocr-share-btn:hover { background: var(--diocr-azul-claro); transform: translateY(-2px); }
.diocr-share-btn svg { width: 15px; height: 15px; }

.diocr-card-imagen {
    flex-shrink: 0;
    width: 180px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    align-self: flex-start;
}
.diocr-card-imagen img { width: 100%; height: auto; display: block; }

/* Responsive */
@media (max-width: 720px) {
    .diocr-nav-fecha { width: 150px; padding: 8px 10px; }
    .diocr-nav-dia { font-size: 30px; }
    .diocr-tab { padding: 8px 4px; font-size: 10px; }
    .diocr-controls-row { flex-direction: column; }
    .diocr-card { flex-direction: column-reverse; gap: 14px; }
    .diocr-card-imagen { width: 100%; aspect-ratio: 16 / 9; }
}
